class Google::Apis::RunV2::GoogleCloudRunV2Volume
Volume represents a named volume in a container.
Attributes
cloud_sql_instance[RW]
Represents a specific Cloud SQL instance. Corresponds to the JSON property ‘cloudSqlInstance` @return [Google::Apis::RunV2::GoogleCloudRunV2CloudSqlInstance]
name[RW]
Required. Volume’s name. Corresponds to the JSON property ‘name` @return [String]
secret[RW]
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` @return [Google::Apis::RunV2::GoogleCloudRunV2SecretVolumeSource]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 1200 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/run_v2/classes.rb, line 1205 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