Class ServicesResource
The "services" collection of methods.
Inherited Members
Namespace: Google.Apis.ServiceNetworking.v1
Assembly: Google.Apis.ServiceNetworking.v1.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 |
DnsRecordSets
Gets the DnsRecordSets resource.
Declaration
public virtual ServicesResource.DnsRecordSetsResource DnsRecordSets { get; }
Property Value
Type | Description |
---|---|
ServicesResource.DnsRecordSetsResource |
DnsZones
Gets the DnsZones resource.
Declaration
public virtual ServicesResource.DnsZonesResource DnsZones { get; }
Property Value
Type | Description |
---|---|
ServicesResource.DnsZonesResource |
Projects
Gets the Projects resource.
Declaration
public virtual ServicesResource.ProjectsResource Projects { get; }
Property Value
Type | Description |
---|---|
ServicesResource.ProjectsResource |
Roles
Gets the Roles resource.
Declaration
public virtual ServicesResource.RolesResource Roles { get; }
Property Value
Type | Description |
---|---|
ServicesResource.RolesResource |
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.
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 |
Returns
Type | Description |
---|---|
ServicesResource.AddSubnetworkRequest |
DisableVpcServiceControls(DisableVpcServiceControlsRequest, string)
Disables VPC service controls for a connection.
Declaration
public virtual ServicesResource.DisableVpcServiceControlsRequest DisableVpcServiceControls(DisableVpcServiceControlsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
DisableVpcServiceControlsRequest | body | The body of the request. |
string | parent | The service that is managing peering connectivity for a service producer's organization. For Google services
that support this functionality, this value is |
Returns
Type | Description |
---|---|
ServicesResource.DisableVpcServiceControlsRequest |
EnableVpcServiceControls(EnableVpcServiceControlsRequest, string)
Enables VPC service controls for a connection.
Declaration
public virtual ServicesResource.EnableVpcServiceControlsRequest EnableVpcServiceControls(EnableVpcServiceControlsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
EnableVpcServiceControlsRequest | body | The body of the request. |
string | parent | The service that is managing peering connectivity for a service producer's organization. For Google services
that support this functionality, this value is |
Returns
Type | Description |
---|---|
ServicesResource.EnableVpcServiceControlsRequest |
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).
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 |
Validate(ValidateConsumerConfigRequest, string)
Service producers use this method to validate if the consumer provided network, project and requested range are valid. This allows them to use a fail-fast mechanism for consumer requests, and not have to wait for AddSubnetwork operation completion to determine if user request is invalid.
Declaration
public virtual ServicesResource.ValidateRequest Validate(ValidateConsumerConfigRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
ValidateConsumerConfigRequest | body | The body of the request. |
string | parent | Required. This is in a form services/{service} where {service} is the name of the private access management service. For example 'service-peering.example.com'. |
Returns
Type | Description |
---|---|
ServicesResource.ValidateRequest |