GoogleApi.ServiceNetworking.V1.Model.AddSubnetworkRequest (google_api_service_networking v0.22.0) View Source

Request to create a subnetwork in a previously peered service network.

Attributes

  • consumer (type: String.t, default: nil) - 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.
  • consumerNetwork (type: String.t, default: nil) - 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}, where {project} is a project number, such as 12345. {network} is the name of a VPC network in the project.
  • description (type: String.t, default: nil) - Optional. Description of the subnet.
  • ipPrefixLength (type: integer(), default: nil) - 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.
  • region (type: String.t, default: nil) - Required. The name of a region for the subnet, such europe-west1.
  • requestedAddress (type: String.t, default: nil) - 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.
  • requestedRanges (type: list(String.t), default: nil) - 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.
  • secondaryIpRangeSpecs (type: list(GoogleApi.ServiceNetworking.V1.Model.SecondaryIpRangeSpec.t), default: nil) - Optional. A list of secondary IP ranges to be created within the new subnetwork.
  • subnetwork (type: String.t, default: nil) - Required. A name for the new subnet. For information about the naming requirements, see subnetwork in the Compute API documentation.
  • subnetworkUsers (type: list(String.t), default: nil) - A list of members that are granted the compute.networkUser role on the subnet.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.ServiceNetworking.V1.Model.AddSubnetworkRequest{
  consumer: String.t() | nil,
  consumerNetwork: String.t() | nil,
  description: String.t() | nil,
  ipPrefixLength: integer() | nil,
  region: String.t() | nil,
  requestedAddress: String.t() | nil,
  requestedRanges: [String.t()] | nil,
  secondaryIpRangeSpecs:
    [GoogleApi.ServiceNetworking.V1.Model.SecondaryIpRangeSpec.t()] | nil,
  subnetwork: String.t() | nil,
  subnetworkUsers: [String.t()] | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.