Class: Google::Apis::RunV2::GoogleCloudRunOpV2Volume
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunOpV2Volume
- 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
-
#cloud_sql_instance ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2CloudSqlInstance
Represents a specific Cloud SQL instance.
-
#name ⇒ String
Required.
-
#secret ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2SecretVolumeSource
The secret's value will be presented as the content of a file whose name is defined in the item path.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunOpV2Volume
constructor
A new instance of GoogleCloudRunOpV2Volume.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunOpV2Volume
Returns a new instance of GoogleCloudRunOpV2Volume.
1193 1194 1195 |
# File 'lib/google/apis/run_v2/classes.rb', line 1193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_sql_instance ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2CloudSqlInstance
Represents a specific Cloud SQL instance.
Corresponds to the JSON property cloudSqlInstance
1179 1180 1181 |
# File 'lib/google/apis/run_v2/classes.rb', line 1179 def cloud_sql_instance @cloud_sql_instance end |
#name ⇒ String
Required. Volume's name.
Corresponds to the JSON property name
1184 1185 1186 |
# File 'lib/google/apis/run_v2/classes.rb', line 1184 def name @name end |
#secret ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2SecretVolumeSource
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
1191 1192 1193 |
# File 'lib/google/apis/run_v2/classes.rb', line 1191 def secret @secret end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1198 1199 1200 1201 1202 |
# File 'lib/google/apis/run_v2/classes.rb', line 1198 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 |