Class: Google::Apis::ConnectorsV1::ConnectorInfraConfig
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::ConnectorInfraConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
This cofiguration provides infra configs like rate limit threshold which need to be configurable for every connector version
Instance Attribute Summary collapse
-
#always_allocate_cpu ⇒ Boolean
(also: #always_allocate_cpu?)
Indicates that the Cloud Run CPU should always be allocated.
-
#connection_ratelimit_window_seconds ⇒ Fixnum
The window used for ratelimiting runtime requests to connections.
-
#connector_versioning_enabled ⇒ Boolean
(also: #connector_versioning_enabled?)
Indicate whether connector versioning is enabled.
-
#deployment_model ⇒ String
Indicate whether connector is deployed on GKE/CloudRun Corresponds to the JSON property
deploymentModel. -
#hpa_config ⇒ Google::Apis::ConnectorsV1::HpaConfig
Autoscaling config for connector deployment system metrics.
-
#internalclient_ratelimit_threshold ⇒ Fixnum
Max QPS supported for internal requests originating from Connd.
-
#max_instance_request_concurrency ⇒ Fixnum
Max Instance Request Conncurrency for Cloud Run service.
-
#migrate_deployment_model ⇒ Boolean
(also: #migrate_deployment_model?)
Indicate whether connector is being migrated to cloud run deployment model.
-
#migrate_tls ⇒ Boolean
(also: #migrate_tls?)
Indicate whether connector is being migrated to TLS.
-
#network_egress_mode_override ⇒ Google::Apis::ConnectorsV1::NetworkEgressModeOverride
NetworkEgressModeOverride provides the network egress mode override for a connector.
-
#provision_cloud_spanner ⇒ Boolean
(also: #provision_cloud_spanner?)
Indicate whether cloud spanner is required for connector job.
-
#provision_memstore ⇒ Boolean
(also: #provision_memstore?)
Indicate whether memstore is required for connector job.
-
#ratelimit_threshold ⇒ Fixnum
Max QPS supported by the connector version before throttling of requests.
-
#resource_limits ⇒ Google::Apis::ConnectorsV1::ResourceLimits
Resource limits defined for connection pods of a given connector type.
-
#resource_requests ⇒ Google::Apis::ConnectorsV1::ResourceRequests
Resource requests defined for connection pods of a given connector type.
-
#shared_deployment ⇒ String
The name of shared connector deployment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConnectorInfraConfig
constructor
A new instance of ConnectorInfraConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConnectorInfraConfig
Returns a new instance of ConnectorInfraConfig.
1278 1279 1280 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#always_allocate_cpu ⇒ Boolean Also known as: always_allocate_cpu?
Indicates that the Cloud Run CPU should always be allocated.
Corresponds to the JSON property alwaysAllocateCpu
1194 1195 1196 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1194 def always_allocate_cpu @always_allocate_cpu end |
#connection_ratelimit_window_seconds ⇒ Fixnum
The window used for ratelimiting runtime requests to connections.
Corresponds to the JSON property connectionRatelimitWindowSeconds
1200 1201 1202 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1200 def connection_ratelimit_window_seconds @connection_ratelimit_window_seconds end |
#connector_versioning_enabled ⇒ Boolean Also known as: connector_versioning_enabled?
Indicate whether connector versioning is enabled.
Corresponds to the JSON property connectorVersioningEnabled
1205 1206 1207 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1205 def connector_versioning_enabled @connector_versioning_enabled end |
#deployment_model ⇒ String
Indicate whether connector is deployed on GKE/CloudRun
Corresponds to the JSON property deploymentModel
1211 1212 1213 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1211 def deployment_model @deployment_model end |
#hpa_config ⇒ Google::Apis::ConnectorsV1::HpaConfig
Autoscaling config for connector deployment system metrics.
Corresponds to the JSON property hpaConfig
1216 1217 1218 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1216 def hpa_config @hpa_config end |
#internalclient_ratelimit_threshold ⇒ Fixnum
Max QPS supported for internal requests originating from Connd.
Corresponds to the JSON property internalclientRatelimitThreshold
1221 1222 1223 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1221 def internalclient_ratelimit_threshold @internalclient_ratelimit_threshold end |
#max_instance_request_concurrency ⇒ Fixnum
Max Instance Request Conncurrency for Cloud Run service.
Corresponds to the JSON property maxInstanceRequestConcurrency
1226 1227 1228 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1226 def max_instance_request_concurrency @max_instance_request_concurrency end |
#migrate_deployment_model ⇒ Boolean Also known as: migrate_deployment_model?
Indicate whether connector is being migrated to cloud run deployment model.
Corresponds to the JSON property migrateDeploymentModel
1231 1232 1233 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1231 def migrate_deployment_model @migrate_deployment_model end |
#migrate_tls ⇒ Boolean Also known as: migrate_tls?
Indicate whether connector is being migrated to TLS.
Corresponds to the JSON property migrateTls
1237 1238 1239 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1237 def migrate_tls @migrate_tls end |
#network_egress_mode_override ⇒ Google::Apis::ConnectorsV1::NetworkEgressModeOverride
NetworkEgressModeOverride provides the network egress mode override for a
connector.
Corresponds to the JSON property networkEgressModeOverride
1244 1245 1246 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1244 def network_egress_mode_override @network_egress_mode_override end |
#provision_cloud_spanner ⇒ Boolean Also known as: provision_cloud_spanner?
Indicate whether cloud spanner is required for connector job.
Corresponds to the JSON property provisionCloudSpanner
1249 1250 1251 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1249 def provision_cloud_spanner @provision_cloud_spanner end |
#provision_memstore ⇒ Boolean Also known as: provision_memstore?
Indicate whether memstore is required for connector job.
Corresponds to the JSON property provisionMemstore
1255 1256 1257 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1255 def provision_memstore @provision_memstore end |
#ratelimit_threshold ⇒ Fixnum
Max QPS supported by the connector version before throttling of requests.
Corresponds to the JSON property ratelimitThreshold
1261 1262 1263 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1261 def ratelimit_threshold @ratelimit_threshold end |
#resource_limits ⇒ Google::Apis::ConnectorsV1::ResourceLimits
Resource limits defined for connection pods of a given connector type.
Corresponds to the JSON property resourceLimits
1266 1267 1268 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1266 def resource_limits @resource_limits end |
#resource_requests ⇒ Google::Apis::ConnectorsV1::ResourceRequests
Resource requests defined for connection pods of a given connector type.
Corresponds to the JSON property resourceRequests
1271 1272 1273 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1271 def resource_requests @resource_requests end |
#shared_deployment ⇒ String
The name of shared connector deployment.
Corresponds to the JSON property sharedDeployment
1276 1277 1278 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1276 def shared_deployment @shared_deployment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1283 def update!(**args) @always_allocate_cpu = args[:always_allocate_cpu] if args.key?(:always_allocate_cpu) @connection_ratelimit_window_seconds = args[:connection_ratelimit_window_seconds] if args.key?(:connection_ratelimit_window_seconds) @connector_versioning_enabled = args[:connector_versioning_enabled] if args.key?(:connector_versioning_enabled) @deployment_model = args[:deployment_model] if args.key?(:deployment_model) @hpa_config = args[:hpa_config] if args.key?(:hpa_config) @internalclient_ratelimit_threshold = args[:internalclient_ratelimit_threshold] if args.key?(:internalclient_ratelimit_threshold) @max_instance_request_concurrency = args[:max_instance_request_concurrency] if args.key?(:max_instance_request_concurrency) @migrate_deployment_model = args[:migrate_deployment_model] if args.key?(:migrate_deployment_model) @migrate_tls = args[:migrate_tls] if args.key?(:migrate_tls) @network_egress_mode_override = args[:network_egress_mode_override] if args.key?(:network_egress_mode_override) @provision_cloud_spanner = args[:provision_cloud_spanner] if args.key?(:provision_cloud_spanner) @provision_memstore = args[:provision_memstore] if args.key?(:provision_memstore) @ratelimit_threshold = args[:ratelimit_threshold] if args.key?(:ratelimit_threshold) @resource_limits = args[:resource_limits] if args.key?(:resource_limits) @resource_requests = args[:resource_requests] if args.key?(:resource_requests) @shared_deployment = args[:shared_deployment] if args.key?(:shared_deployment) end |