Class: Google::Apis::ServicenetworkingV1beta::Subnetwork

Inherits:
Object
  • Object
show all
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 or discovered by a private access management service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Subnetwork

Returns a new instance of Subnetwork



3244
3245
3246
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3244

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ip_cidr_rangeString

Subnetwork CIDR range in 10.x.x.x/y format. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


3222
3223
3224
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3222

def ip_cidr_range
  @ip_cidr_range
end

#nameString

Subnetwork name. See https://cloud.google.com/compute/docs/vpc/ Corresponds to the JSON property name

Returns:

  • (String)


3228
3229
3230
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3228

def name
  @name
end

#networkString

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

Returns:

  • (String)


3235
3236
3237
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3235

def network
  @network
end

#outside_allocationBoolean Also known as: outside_allocation?

This is a discovered subnet that is not within the current consumer allocated ranges. Corresponds to the JSON property outsideAllocation

Returns:

  • (Boolean)


3241
3242
3243
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3241

def outside_allocation
  @outside_allocation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3249
3250
3251
3252
3253
3254
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 3249

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)
  @outside_allocation = args[:outside_allocation] if args.key?(:outside_allocation)
end