Class: Google::Apis::VpcaccessV1beta1::Subnet
- Inherits:
-
Object
- Object
- Google::Apis::VpcaccessV1beta1::Subnet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vpcaccess_v1beta1/classes.rb,
lib/google/apis/vpcaccess_v1beta1/representations.rb,
lib/google/apis/vpcaccess_v1beta1/representations.rb
Overview
The subnet in which to house the connector
Instance Attribute Summary collapse
-
#name ⇒ String
Subnet name (relative, not fully qualified).
-
#project_id ⇒ String
Project in which the subnet exists.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subnet
constructor
A new instance of Subnet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subnet
Returns a new instance of Subnet.
463 464 465 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 463 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink
is https://compute.googleapis.com/compute/v1/projects/`project`/regions/`
region/subnetworks/subnetNamethe correct input for this field would be
subnetName
Corresponds to the JSON propertyname`
455 456 457 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 455 def name @name end |
#project_id ⇒ String
Project in which the subnet exists. If not set, this project is assumed to be
the project for which the connector create request was issued.
Corresponds to the JSON property projectId
461 462 463 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 461 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
468 469 470 471 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 468 def update!(**args) @name = args[:name] if args.key?(:name) @project_id = args[:project_id] if args.key?(:project_id) end |