Show / Hide Table of Contents

Class ServicesResource

The "services" collection of methods.

Inheritance
object
ServicesResource
Inherited Members
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

Constructors

ServicesResource(IClientService)

Constructs a new resource.

Declaration
public ServicesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Connections

Gets the Connections resource.

Declaration
public virtual ServicesResource.ConnectionsResource Connections { get; }
Property Value
Type Description
ServicesResource.ConnectionsResource

Methods

AddSubnetwork(AddSubnetworkRequest, string)

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.

Declaration
public virtual ServicesResource.AddSubnetworkRequest AddSubnetwork(AddSubnetworkRequest body, string parent)
Parameters
Type Name Description
AddSubnetworkRequest body

The body of the request.

string 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.

Returns
Type Description
ServicesResource.AddSubnetworkRequest

SearchRange(SearchRangeRequest, string)

Service producers can use this method to find a currently unused range within consumer allocated ranges. This returned range is not reserved, and not guaranteed to remain unused. It will validate previously provided allocated ranges, find non-conflicting sub-range of requested size (expressed in number of leading bits of ipv4 network mask, as in CIDR range notation). Operation

Declaration
public virtual ServicesResource.SearchRangeRequest SearchRange(SearchRangeRequest body, string parent)
Parameters
Type Name Description
SearchRangeRequest body

The body of the request.

string parent

Required. This is in a form services/{service}. {service} the name of the private access management service, for example 'service-peering.example.com'.

Returns
Type Description
ServicesResource.SearchRangeRequest

UpdateConnections(GoogleCloudServicenetworkingV1betaConnection, string)

Updates the allocated ranges that are assigned to a connection. The response from the get operation will be of type Connection if the operation successfully completes.

Declaration
public virtual ServicesResource.UpdateConnectionsRequest UpdateConnections(GoogleCloudServicenetworkingV1betaConnection body, string name)
Parameters
Type Name Description
GoogleCloudServicenetworkingV1betaConnection body

The body of the request.

string name

The service producer peering service that is managing peering connectivity for a service producer organization. For Google services that support this functionality, this is services/servicenetworking.googleapis.com.

Returns
Type Description
ServicesResource.UpdateConnectionsRequest
In this article
Back to top Generated by DocFX