Class: Google::Compute::Data::BackendServiceBackendApi

Inherits:
BackendServiceBackend show all
Defined in:
lib/google/compute/property/backendservice_backends.rb

Overview

Manages a BackendServiceBackend nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from BackendServiceBackend

#balancing_mode, #capacity_scaler, #description, #group, #max_connections, #max_connections_per_instance, #max_rate, #max_rate_per_instance, #max_utilization

Instance Method Summary collapse

Methods inherited from BackendServiceBackend

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BackendServiceBackendApi

rubocop:disable Metrics/MethodLength



119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/google/compute/property/backendservice_backends.rb', line 119

def initialize(args)
  @balancing_mode =
    Google::Compute::Property::Enum.api_munge(args['balancingMode'])
  @capacity_scaler =
    Google::Compute::Property::Double.api_munge(args['capacityScaler'])
  @description =
    Google::Compute::Property::String.api_munge(args['description'])
  @group = Google::Compute::Property::InstGrouSelfLinkRef.api_munge(
    args['group']
  )
  @max_connections =
    Google::Compute::Property::Integer.api_munge(args['maxConnections'])
  @max_connections_per_instance =
    Google::Compute::Property::Integer.api_munge(
      args['maxConnectionsPerInstance']
    )
  @max_rate =
    Google::Compute::Property::Integer.api_munge(args['maxRate'])
  @max_rate_per_instance = Google::Compute::Property::Double.api_munge(
    args['maxRatePerInstance']
  )
  @max_utilization =
    Google::Compute::Property::Double.api_munge(args['maxUtilization'])
end