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
-
#connection_ratelimit_window_seconds ⇒ Fixnum
The window used for ratelimiting runtime requests to connections.
-
#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.
-
#migrate_deployment_model ⇒ Boolean
(also: #migrate_deployment_model?)
Indicate whether connector is being migrated to cloud run deployment model.
-
#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.
1001 1002 1003 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1001 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connection_ratelimit_window_seconds ⇒ Fixnum
The window used for ratelimiting runtime requests to connections.
Corresponds to the JSON property connectionRatelimitWindowSeconds
958 959 960 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 958 def connection_ratelimit_window_seconds @connection_ratelimit_window_seconds end |
#deployment_model ⇒ String
Indicate whether connector is deployed on GKE/CloudRun
Corresponds to the JSON property deploymentModel
963 964 965 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 963 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
968 969 970 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 968 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
973 974 975 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 973 def internalclient_ratelimit_threshold @internalclient_ratelimit_threshold 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
978 979 980 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 978 def migrate_deployment_model @migrate_deployment_model end |
#ratelimit_threshold ⇒ Fixnum
Max QPS supported by the connector version before throttling of requests.
Corresponds to the JSON property ratelimitThreshold
984 985 986 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 984 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
989 990 991 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 989 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
994 995 996 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 994 def resource_requests @resource_requests end |
#shared_deployment ⇒ String
The name of shared connector deployment.
Corresponds to the JSON property sharedDeployment
999 1000 1001 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 999 def shared_deployment @shared_deployment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 1006 def update!(**args) @connection_ratelimit_window_seconds = args[:connection_ratelimit_window_seconds] if args.key?(:connection_ratelimit_window_seconds) @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) @migrate_deployment_model = args[:migrate_deployment_model] if args.key?(:migrate_deployment_model) @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 |