Class AddSubnetworkRequest
Request to create a subnetwork in a previously peered service network.
Implements
Inherited Members
Namespace: Google.Apis.ServiceNetworking.v1.Data
Assembly: Google.Apis.ServiceNetworking.v1.dll
Syntax
public class AddSubnetworkRequest : IDirectResponseSchema
Properties
AllowSubnetCidrRoutesOverlap
Optional. Defines the allowSubnetCidrRoutesOverlap field of the subnet, e.g. Available in alpha and beta according to Compute API documentation
Declaration
[JsonProperty("allowSubnetCidrRoutesOverlap")]
public virtual bool? AllowSubnetCidrRoutesOverlap { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CheckServiceNetworkingUsePermission
Optional. The IAM permission check determines whether the consumer project has 'servicenetworking.services.use' permission or not.
Declaration
[JsonProperty("checkServiceNetworkingUsePermission")]
public virtual bool? CheckServiceNetworkingUsePermission { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ComputeIdempotencyWindow
Optional. Specifies a custom time bucket for Arcus subnetwork request idempotency. If two equivalent concurrent requests are made, Arcus will know to ignore the request if it has already been completed or is in progress. Only requests with matching compute_idempotency_window have guaranteed idempotency. Changing this time window between requests results in undefined behavior. Zero (or empty) value with custom_compute_idempotency_window=true specifies no idempotency (i.e. no request ID is provided to Arcus). Maximum value of 14 days (enforced by Arcus limit). For more information on how to use, see: go/revisit-sn-idempotency-window
Declaration
[JsonProperty("computeIdempotencyWindow")]
public virtual object ComputeIdempotencyWindow { get; set; }
Property Value
Type | Description |
---|---|
object |
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
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 |
InternalRange
Optional. The url of an Internal Range. Eg: projects//locations/global/internalRanges/
. If specified, it
means that the subnetwork cidr will be created using the combination of requested_address/ip_prefix_length.
Note that the subnet cidr has to be within the cidr range of this Internal Range.
Declaration
[JsonProperty("internalRange")]
public virtual string InternalRange { 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 29
to
provision a subnet with an x.x.x.x/29
CIDR range. The IP address range is drawn from a pool of available
ranges in the service consumer's allocated range. GCE disallows subnets with prefix_length > 29
Declaration
[JsonProperty("ipPrefixLength")]
public virtual int? IpPrefixLength { get; set; }
Property Value
Type | Description |
---|---|
int? |
OutsideAllocationPublicIpRange
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.
Declaration
[JsonProperty("outsideAllocationPublicIpRange")]
public virtual string OutsideAllocationPublicIpRange { get; set; }
Property Value
Type | Description |
---|---|
string |
PrivateIpv6GoogleAccess
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.
Declaration
[JsonProperty("privateIpv6GoogleAccess")]
public virtual string PrivateIpv6GoogleAccess { get; set; }
Property Value
Type | Description |
---|---|
string |
Purpose
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.
Declaration
[JsonProperty("purpose")]
public virtual string Purpose { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |
RequestedRanges
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.
Declaration
[JsonProperty("requestedRanges")]
public virtual IList<string> RequestedRanges { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Role
Optional. Defines the role field of the subnet, e.g. 'ACTIVE'. For information about the roles that can be set using this field, see subnetwork in the Compute API documentation.
Declaration
[JsonProperty("role")]
public virtual string Role { get; set; }
Property Value
Type | Description |
---|---|
string |
SecondaryIpRangeSpecs
Optional. A list of secondary IP ranges to be created within the new subnetwork.
Declaration
[JsonProperty("secondaryIpRangeSpecs")]
public virtual IList<SecondaryIpRangeSpec> SecondaryIpRangeSpecs { get; set; }
Property Value
Type | Description |
---|---|
IList<SecondaryIpRangeSpec> |
SkipRequestedAddressValidation
Optional. Skips validating if the requested_address is in use by SN VPC’s peering group. Compute Engine will still perform this check and fail the request if the requested_address is in use. Note that Compute Engine does not check for the existence of dynamic routes when performing this check. Caller of this API should make sure that there are no dynamic routes overlapping with the requested_address/prefix_length IP address range otherwise the created subnet could cause misrouting.
Declaration
[JsonProperty("skipRequestedAddressValidation")]
public virtual bool? SkipRequestedAddressValidation { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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 roles/servicenetworking.subnetworkAdmin
role on the subnet.
Declaration
[JsonProperty("subnetworkUsers")]
public virtual IList<string> SubnetworkUsers { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
UseCustomComputeIdempotencyWindow
Optional. Specifies if Service Networking should use a custom time bucket for Arcus idempotency. If false, Service Networking uses a 300 second (5 minute) Arcus idempotency window. If true, Service Networking uses a custom idempotency window provided by the user in field compute_idempotency_window. For more information on how to use, see: go/revisit-sn-idempotency-window
Declaration
[JsonProperty("useCustomComputeIdempotencyWindow")]
public virtual bool? UseCustomComputeIdempotencyWindow { get; set; }
Property Value
Type | Description |
---|---|
bool? |