Class AddSubnetworkRequest
Request to create a subnetwork in a previously peered service network.
Implements
Inherited Members
Namespace: Google.Apis.ServiceNetworking.v1beta.Data
Assembly: Google.Apis.ServiceNetworking.v1beta.dll
Syntax
public class AddSubnetworkRequest : IDirectResponseSchema
Properties
Consumer
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.
Declaration
[JsonProperty("consumer")]
public virtual string Consumer { get; set; }
Property Value
Type | Description |
---|---|
string |
ConsumerNetwork
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.
Declaration
[JsonProperty("consumerNetwork")]
public virtual string ConsumerNetwork { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
An optional description of the subnet.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
IpPrefixLength
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.
Declaration
[JsonProperty("ipPrefixLength")]
public virtual int? IpPrefixLength { get; set; }
Property Value
Type | Description |
---|---|
int? |
Region
Required. The name of a region for the subnet, such europe-west1
.
Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
Type | Description |
---|---|
string |
RequestedAddress
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.
Declaration
[JsonProperty("requestedAddress")]
public virtual string RequestedAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
Subnetwork
Required. A name for the new subnet. For information about the naming requirements, see subnetwork in the Compute API documentation.
Declaration
[JsonProperty("subnetwork")]
public virtual string Subnetwork { get; set; }
Property Value
Type | Description |
---|---|
string |
SubnetworkUsers
A list of members that are granted the compute.networkUser
role on the subnet.
Declaration
[JsonProperty("subnetworkUsers")]
public virtual IList<string> SubnetworkUsers { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |