Show / Hide Table of Contents

Class ServicesResource.AddSubnetworkRequest

For service producers, provisions a new subnet in a peered service's shared VPC network in the requested region and with the requested size that's expressed as a CIDR range (number of leading bits of ipV4 network mask). The method checks against the assigned allocated ranges to find a non-conflicting IP address range. The method will reuse a subnet if subsequent calls contain the same subnet name, region, and prefix length. This method will make producer's tenant project to be a shared VPC service project as needed. The response from the get operation will be of type Subnetwork if the operation successfully completes.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Operation>
ServiceNetworkingBaseServiceRequest<Operation>
ServicesResource.AddSubnetworkRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
ServiceNetworkingBaseServiceRequest<Operation>.Xgafv
ServiceNetworkingBaseServiceRequest<Operation>.AccessToken
ServiceNetworkingBaseServiceRequest<Operation>.Alt
ServiceNetworkingBaseServiceRequest<Operation>.Callback
ServiceNetworkingBaseServiceRequest<Operation>.Fields
ServiceNetworkingBaseServiceRequest<Operation>.Key
ServiceNetworkingBaseServiceRequest<Operation>.OauthToken
ServiceNetworkingBaseServiceRequest<Operation>.PrettyPrint
ServiceNetworkingBaseServiceRequest<Operation>.QuotaUser
ServiceNetworkingBaseServiceRequest<Operation>.UploadType
ServiceNetworkingBaseServiceRequest<Operation>.UploadProtocol
ClientServiceRequest<Operation>.Execute()
ClientServiceRequest<Operation>.ExecuteAsStream()
ClientServiceRequest<Operation>.ExecuteAsync()
ClientServiceRequest<Operation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Operation>.ExecuteAsStreamAsync()
ClientServiceRequest<Operation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Operation>.CreateRequest(bool?)
ClientServiceRequest<Operation>.GenerateRequestUri()
ClientServiceRequest<Operation>.GetDefaultETagAction(string)
ClientServiceRequest<Operation>.ETagAction
ClientServiceRequest<Operation>.ModifyRequest
ClientServiceRequest<Operation>.ValidateParameters
ClientServiceRequest<Operation>.ApiVersion
ClientServiceRequest<Operation>.RequestParameters
ClientServiceRequest<Operation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ServiceNetworking.v1beta
Assembly: Google.Apis.ServiceNetworking.v1beta.dll
Syntax
public class ServicesResource.AddSubnetworkRequest : ServiceNetworkingBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest

Constructors

AddSubnetworkRequest(IClientService, AddSubnetworkRequest, string)

Constructs a new AddSubnetwork request.

Declaration
public AddSubnetworkRequest(IClientService service, AddSubnetworkRequest body, string parent)
Parameters
Type Name Description
IClientService service
AddSubnetworkRequest body
string parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.MethodName

Parent

Required. A tenant project in the service producer organization, in the following format: services/{service}/{collection-id}/{resource-id}. {collection-id} is the cloud resource collection type that represents the tenant project. Only projects are supported. {resource-id} is the tenant project numeric id, such as 123456. {service} the name of the peering service, such as service-peering.example.com. This service must already be enabled in the service consumer's project.

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Operation>.GetBody()

InitParameters()

Initializes AddSubnetwork parameter list.

Declaration
protected override void InitParameters()
Overrides
ServiceNetworkingBaseServiceRequest<Operation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX