Class: Google::Apis::ServicenetworkingV1beta::AddSubnetworkRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1beta::AddSubnetworkRequest
- 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
Request to create a subnetwork in a previously peered service network.
Instance Attribute Summary collapse
-
#consumer ⇒ String
Required.
-
#consumer_network ⇒ String
Required.
-
#description ⇒ String
Optional.
-
#ip_prefix_length ⇒ Fixnum
Required.
-
#region ⇒ String
Required.
-
#requested_address ⇒ String
Optional.
-
#subnetwork ⇒ String
Required.
-
#subnetwork_users ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddSubnetworkRequest
constructor
A new instance of AddSubnetworkRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AddSubnetworkRequest
Returns a new instance of AddSubnetworkRequest
90 91 92 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 90 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer ⇒ String
Required. Resource representing service consumer. It may be different from
the project number in consumer network parameter in case of that network
being a shared VPC network. In that case, Service Networking will validate
that this resource belongs to that shared VPC.
For example 'projects/123456'.
Corresponds to the JSON property consumer
36 37 38 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 36 def consumer @consumer end |
#consumer_network ⇒ String
Required. Network name in the consumer project. This network must have been
already peered with a shared VPC network using CreateConnection
method.
Must be in a form 'projects/project/global/networks/network'.
project is a project number, as in '12345'
network is network name.
Corresponds to the JSON property consumerNetwork
46 47 48 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 46 def consumer_network @consumer_network end |
#description ⇒ String
Optional. Description of the subnetwork.
Corresponds to the JSON property description
51 52 53 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 51 def description @description end |
#ip_prefix_length ⇒ Fixnum
Required. The prefix length of the IP range.
Use usual CIDR range notation.
For example, '30' to provision subnet with x.x.x.x/30 CIDR range.
Actual range will be determined using allocated range for the consumer
peered network and returned in the result.
Corresponds to the JSON property ipPrefixLength
60 61 62 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 60 def ip_prefix_length @ip_prefix_length end |
#region ⇒ String
Required. Cloud region for the new
subnetwork.
Corresponds to the JSON property region
66 67 68 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 66 def region @region end |
#requested_address ⇒ String
Optional. The starting address of a range. The address must be a valid
IPv4 address in the x.x.x.x format. This value combined with the IP prefix
range is the CIDR range for the subnet. The range must be within the
allocated range that is assigned to the private connection. If the CIDR
range isn't available, the call fails.
Corresponds to the JSON property requestedAddress
75 76 77 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 75 def requested_address @requested_address end |
#subnetwork ⇒ String
Required. Name for the new subnetwork.
Must be a legal subnetwork
name.
Corresponds to the JSON property subnetwork
82 83 84 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 82 def subnetwork @subnetwork end |
#subnetwork_users ⇒ Array<String>
Optional. List of members that will be granted 'compute.networkUser' role
on the newly added subnetwork.
Corresponds to the JSON property subnetworkUsers
88 89 90 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 88 def subnetwork_users @subnetwork_users end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
95 96 97 98 99 100 101 102 103 104 |
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 95 def update!(**args) @consumer = args[:consumer] if args.key?(:consumer) @consumer_network = args[:consumer_network] if args.key?(:consumer_network) @description = args[:description] if args.key?(:description) @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) @region = args[:region] if args.key?(:region) @requested_address = args[:requested_address] if args.key?(:requested_address) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @subnetwork_users = args[:subnetwork_users] if args.key?(:subnetwork_users) end |