Class: Google::Apis::ClouddeployV1::RuntimeConfig

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

RuntimeConfig contains the runtime specific configurations for a deployment strategy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeConfig

Returns a new instance of RuntimeConfig.



2778
2779
2780
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2778

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

Instance Attribute Details

#cloud_runGoogle::Apis::ClouddeployV1::CloudRunConfig

CloudRunConfig contains the Cloud Run runtime configuration. Corresponds to the JSON property cloudRun



2771
2772
2773
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2771

def cloud_run
  @cloud_run
end

#kubernetesGoogle::Apis::ClouddeployV1::KubernetesConfig

KubernetesConfig contains the Kubernetes runtime configuration. Corresponds to the JSON property kubernetes



2776
2777
2778
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2776

def kubernetes
  @kubernetes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2783
2784
2785
2786
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2783

def update!(**args)
  @cloud_run = args[:cloud_run] if args.key?(:cloud_run)
  @kubernetes = args[:kubernetes] if args.key?(:kubernetes)
end