Class: Google::Apis::ServicenetworkingV1beta::Subnetwork
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1beta::Subnetwork
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicenetworking_v1beta/classes.rb,
generated/google/apis/servicenetworking_v1beta/representations.rb,
generated/google/apis/servicenetworking_v1beta/representations.rb
Overview
Represents a subnet that was created by a peered service.
Instance Attribute Summary collapse
-
#ip_cidr_range ⇒ String
Subnetwork CIDR range in
10.x.x.x/y
format. -
#name ⇒ String
Subnetwork name.
-
#network ⇒ String
In the Shared VPC host project, the VPC network that's peered with the consumer network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subnetwork
constructor
A new instance of Subnetwork.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Subnetwork
Returns a new instance of Subnetwork
3241 3242 3243 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_cidr_range ⇒ String
Subnetwork CIDR range in 10.x.x.x/y
format.
Corresponds to the JSON property ipCidrRange
3226 3227 3228 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3226 def ip_cidr_range @ip_cidr_range end |
#name ⇒ String
Subnetwork name.
See https://cloud.google.com/compute/docs/vpc/
Corresponds to the JSON property name
3232 3233 3234 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3232 def name @name end |
#network ⇒ String
In the Shared VPC host project, the VPC network that's peered with the
consumer network. For example:
projects/1234321/global/networks/host-network
Corresponds to the JSON property network
3239 3240 3241 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3239 def network @network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3246 3247 3248 3249 3250 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3246 def update!(**args) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) end |