Class: Google::Apis::ConnectorsV1::ConnectorInfraConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectorInfraConfig

Returns a new instance of ConnectorInfraConfig.



876
877
878
# File 'lib/google/apis/connectors_v1/classes.rb', line 876

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hpa_configGoogle::Apis::ConnectorsV1::HpaConfig

Autoscaling config for connector deployment system metrics. Corresponds to the JSON property hpaConfig



849
850
851
# File 'lib/google/apis/connectors_v1/classes.rb', line 849

def hpa_config
  @hpa_config
end

#internalclient_ratelimit_thresholdFixnum

Max QPS supported for internal requests originating from Connd. Corresponds to the JSON property internalclientRatelimitThreshold

Returns:

  • (Fixnum)


854
855
856
# File 'lib/google/apis/connectors_v1/classes.rb', line 854

def internalclient_ratelimit_threshold
  @internalclient_ratelimit_threshold
end

#ratelimit_thresholdFixnum

Max QPS supported by the connector version before throttling of requests. Corresponds to the JSON property ratelimitThreshold

Returns:

  • (Fixnum)


859
860
861
# File 'lib/google/apis/connectors_v1/classes.rb', line 859

def ratelimit_threshold
  @ratelimit_threshold
end

#resource_limitsGoogle::Apis::ConnectorsV1::ResourceLimits

Resource limits defined for connection pods of a given connector type. Corresponds to the JSON property resourceLimits



864
865
866
# File 'lib/google/apis/connectors_v1/classes.rb', line 864

def resource_limits
  @resource_limits
end

#resource_requestsGoogle::Apis::ConnectorsV1::ResourceRequests

Resource requests defined for connection pods of a given connector type. Corresponds to the JSON property resourceRequests



869
870
871
# File 'lib/google/apis/connectors_v1/classes.rb', line 869

def resource_requests
  @resource_requests
end

#shared_deploymentString

The name of shared connector deployment. Corresponds to the JSON property sharedDeployment

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/connectors_v1/classes.rb', line 874

def shared_deployment
  @shared_deployment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



881
882
883
884
885
886
887
888
# File 'lib/google/apis/connectors_v1/classes.rb', line 881

def update!(**args)
  @hpa_config = args[:hpa_config] if args.key?(:hpa_config)
  @internalclient_ratelimit_threshold = args[:internalclient_ratelimit_threshold] if args.key?(:internalclient_ratelimit_threshold)
  @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