Class: Google::Apis::ClouddeployV1::ServiceNetworking

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb

Overview

Information about the Kubernetes Service networking configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceNetworking

Returns a new instance of ServiceNetworking.



2832
2833
2834
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2832

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

Instance Attribute Details

#deploymentString

Required. Name of the Kubernetes Deployment whose traffic is managed by the specified Service. Corresponds to the JSON property deployment

Returns:

  • (String)


2817
2818
2819
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2817

def deployment
  @deployment
end

#disable_pod_overprovisioningBoolean Also known as: disable_pod_overprovisioning?

Optional. Whether to disable Pod overprovisioning. If Pod overprovisioning is disabled then Cloud Deploy will limit the number of total Pods used for the deployment strategy to the number of Pods the Deployment has on the cluster. Corresponds to the JSON property disablePodOverprovisioning

Returns:

  • (Boolean)


2824
2825
2826
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2824

def disable_pod_overprovisioning
  @disable_pod_overprovisioning
end

#serviceString

Required. Name of the Kubernetes Service. Corresponds to the JSON property service

Returns:

  • (String)


2830
2831
2832
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2830

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2837
2838
2839
2840
2841
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2837

def update!(**args)
  @deployment = args[:deployment] if args.key?(:deployment)
  @disable_pod_overprovisioning = args[:disable_pod_overprovisioning] if args.key?(:disable_pod_overprovisioning)
  @service = args[:service] if args.key?(:service)
end