Class: Google::Apis::ServicenetworkingV1::AddSubnetworkRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::AddSubnetworkRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Overview
Request to create a subnetwork in a previously peered service network.
Instance Attribute Summary collapse
-
#check_service_networking_use_permission ⇒ Boolean
(also: #check_service_networking_use_permission?)
Optional.
-
#consumer ⇒ String
Required.
-
#consumer_network ⇒ String
Required.
-
#description ⇒ String
Optional.
-
#ip_prefix_length ⇒ Fixnum
Required.
-
#outside_allocation_public_ip_range ⇒ String
Optional.
-
#private_ipv6_google_access ⇒ String
Optional.
-
#purpose ⇒ String
Optional.
-
#region ⇒ String
Required.
-
#requested_address ⇒ String
Optional.
-
#requested_ranges ⇒ Array<String>
Optional.
-
#secondary_ip_range_specs ⇒ Array<Google::Apis::ServicenetworkingV1::SecondaryIpRangeSpec>
Optional.
-
#subnetwork ⇒ String
Required.
-
#subnetwork_users ⇒ Array<String>
A list of members that are granted the
compute.networkUserrole on the subnet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddSubnetworkRequest
constructor
A new instance of AddSubnetworkRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddSubnetworkRequest
Returns a new instance of AddSubnetworkRequest.
322 323 324 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 322 def initialize(**args) update!(**args) end |
Instance Attribute Details
#check_service_networking_use_permission ⇒ Boolean Also known as: check_service_networking_use_permission?
Optional. The IAM permission check determines whether the consumer project has
'servicenetworking.services.use' permission or not.
Corresponds to the JSON property checkServiceNetworkingUsePermission
222 223 224 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 222 def @check_service_networking_use_permission end |
#consumer ⇒ String
Required. A resource that represents the service consumer, such as projects/
123456. The project number can be different from the value in the consumer
network parameter. For example, the network might be part of a Shared VPC
network. In those cases, Service Networking validates that this resource
belongs to that Shared VPC.
Corresponds to the JSON property consumer
232 233 234 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 232 def consumer @consumer end |
#consumer_network ⇒ String
Required. The name of the service consumer's VPC network. The network must
have an existing private connection that was provisioned through the
connections.create method. The name must be in the following format: projects/
project/global/networks/network`, whereprojectis a project number,
such as12345.networkis the name of a VPC network in the project.
Corresponds to the JSON propertyconsumerNetwork`
241 242 243 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 241 def consumer_network @consumer_network end |
#description ⇒ String
Optional. Description of the subnet.
Corresponds to the JSON property description
246 247 248 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 246 def description @description end |
#ip_prefix_length ⇒ Fixnum
Required. The prefix length of the subnet's IP address range. Use CIDR range
notation, such as 30 to provision a subnet with an x.x.x.x/30 CIDR range.
The IP address range is drawn from a pool of available ranges in the service
consumer's allocated range.
Corresponds to the JSON property ipPrefixLength
254 255 256 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 254 def ip_prefix_length @ip_prefix_length end |
#outside_allocation_public_ip_range ⇒ String
Optional. Enable outside allocation using public IP addresses. Any public IP
range may be specified. If this field is provided, we will not use customer
reserved ranges for this primary IP range.
Corresponds to the JSON property outsideAllocationPublicIpRange
261 262 263 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 261 def outside_allocation_public_ip_range @outside_allocation_public_ip_range end |
#private_ipv6_google_access ⇒ String
Optional. The private IPv6 google access type for the VMs in this subnet. For
information about the access types that can be set using this field, see
subnetwork in the Compute API documentation.
Corresponds to the JSON property privateIpv6GoogleAccess
269 270 271 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 269 def private_ipv6_google_access @private_ipv6_google_access end |
#purpose ⇒ String
Optional. Defines the purpose field of the subnet, e.g. '
PRIVATE_SERVICE_CONNECT'. For information about the purposes that can be set
using this field, see subnetwork in the Compute API documentation.
Corresponds to the JSON property purpose
277 278 279 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 277 def purpose @purpose end |
#region ⇒ String
Required. The name of a region for the subnet,
such europe-west1.
Corresponds to the JSON property region
283 284 285 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 283 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
292 293 294 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 292 def requested_address @requested_address end |
#requested_ranges ⇒ Array<String>
Optional. The name of one or more allocated IP address ranges associated with
this private service access connection. If no range names are provided all
ranges associated with this connection will be considered. If a CIDR range
with the specified IP prefix length is not available within these ranges, the
call fails.
Corresponds to the JSON property requestedRanges
301 302 303 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 301 def requested_ranges @requested_ranges end |
#secondary_ip_range_specs ⇒ Array<Google::Apis::ServicenetworkingV1::SecondaryIpRangeSpec>
Optional. A list of secondary IP ranges to be created within the new
subnetwork.
Corresponds to the JSON property secondaryIpRangeSpecs
307 308 309 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 307 def secondary_ip_range_specs @secondary_ip_range_specs end |
#subnetwork ⇒ String
Required. A name for the new subnet. For information about the naming
requirements, see subnetwork in
the Compute API documentation.
Corresponds to the JSON property subnetwork
314 315 316 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 314 def subnetwork @subnetwork end |
#subnetwork_users ⇒ Array<String>
A list of members that are granted the compute.networkUser role on the
subnet.
Corresponds to the JSON property subnetworkUsers
320 321 322 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 320 def subnetwork_users @subnetwork_users end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 327 def update!(**args) @check_service_networking_use_permission = args[:check_service_networking_use_permission] if args.key?(:check_service_networking_use_permission) @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) @outside_allocation_public_ip_range = args[:outside_allocation_public_ip_range] if args.key?(:outside_allocation_public_ip_range) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @purpose = args[:purpose] if args.key?(:purpose) @region = args[:region] if args.key?(:region) @requested_address = args[:requested_address] if args.key?(:requested_address) @requested_ranges = args[:requested_ranges] if args.key?(:requested_ranges) @secondary_ip_range_specs = args[:secondary_ip_range_specs] if args.key?(:secondary_ip_range_specs) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @subnetwork_users = args[:subnetwork_users] if args.key?(:subnetwork_users) end |