Class: Google::Apis::RunV2::GoogleCloudRunV2Volume

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

Overview

Volume represents a named volume in a container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2Volume

Returns a new instance of GoogleCloudRunV2Volume.



2114
2115
2116
# File 'lib/google/apis/run_v2/classes.rb', line 2114

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

Instance Attribute Details

#cloud_sql_instanceGoogle::Apis::RunV2::GoogleCloudRunV2CloudSqlInstance

Represents a specific Cloud SQL instance. Corresponds to the JSON property cloudSqlInstance



2100
2101
2102
# File 'lib/google/apis/run_v2/classes.rb', line 2100

def cloud_sql_instance
  @cloud_sql_instance
end

#nameString

Required. Volume's name. Corresponds to the JSON property name

Returns:

  • (String)


2105
2106
2107
# File 'lib/google/apis/run_v2/classes.rb', line 2105

def name
  @name
end

#secretGoogle::Apis::RunV2::GoogleCloudRunV2SecretVolumeSource

The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret. Corresponds to the JSON property secret



2112
2113
2114
# File 'lib/google/apis/run_v2/classes.rb', line 2112

def secret
  @secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2119
2120
2121
2122
2123
# File 'lib/google/apis/run_v2/classes.rb', line 2119

def update!(**args)
  @cloud_sql_instance = args[:cloud_sql_instance] if args.key?(:cloud_sql_instance)
  @name = args[:name] if args.key?(:name)
  @secret = args[:secret] if args.key?(:secret)
end