Class: Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface
- 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
VPC network settings.
Instance Attribute Summary collapse
-
#network ⇒ String
The VPC network name to access to.
-
#subnetwork ⇒ String
The VPC subnetwork name to access to.
-
#tags ⇒ Array<String>
Network tags applied to this VPC network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2NetworkInterface
constructor
A new instance of GoogleCloudRunV2NetworkInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2NetworkInterface
Returns a new instance of GoogleCloudRunV2NetworkInterface.
1141 1142 1143 |
# File 'lib/google/apis/run_v2/classes.rb', line 1141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
The VPC network name to access to. Defaults to "default" network.
Corresponds to the JSON property network
1129 1130 1131 |
# File 'lib/google/apis/run_v2/classes.rb', line 1129 def network @network end |
#subnetwork ⇒ String
The VPC subnetwork name to access to. Defaults to the same vaule of network.
Corresponds to the JSON property subnetwork
1134 1135 1136 |
# File 'lib/google/apis/run_v2/classes.rb', line 1134 def subnetwork @subnetwork end |
#tags ⇒ Array<String>
Network tags applied to this VPC network.
Corresponds to the JSON property tags
1139 1140 1141 |
# File 'lib/google/apis/run_v2/classes.rb', line 1139 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1146 1147 1148 1149 1150 |
# File 'lib/google/apis/run_v2/classes.rb', line 1146 def update!(**args) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @tags = args[:tags] if args.key?(:tags) end |