class Services extends Resource (View source)

The "services" collection of methods.

Typical usage is:

 $servicenetworkingService = new Google\Service\ServiceNetworking(...);
 $services = $servicenetworkingService->services;

Methods

addSubnetwork(string $parent, AddSubnetworkRequest $postBody, array $optParams = [])

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.

disableVpcServiceControls(string $parent, DisableVpcServiceControlsRequest $postBody, array $optParams = [])

Disables VPC service controls for a connection.

enableVpcServiceControls(string $parent, EnableVpcServiceControlsRequest $postBody, array $optParams = [])

Enables VPC service controls for a connection.

searchRange(string $parent, SearchRangeRequest $postBody, array $optParams = [])

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

validate(string $parent, ValidateConsumerConfigRequest $postBody, array $optParams = [])

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.

Details

Operation addSubnetwork(string $parent, AddSubnetworkRequest $postBody, array $optParams = [])

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.

(services.addSubnetwork)

Parameters

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.

AddSubnetworkRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation disableVpcServiceControls(string $parent, DisableVpcServiceControlsRequest $postBody, array $optParams = [])

Disables VPC service controls for a connection.

(services.disableVpcServiceControls)

Parameters

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 services/servicenetworking.googleapis.com.

DisableVpcServiceControlsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation enableVpcServiceControls(string $parent, EnableVpcServiceControlsRequest $postBody, array $optParams = [])

Enables VPC service controls for a connection.

(services.enableVpcServiceControls)

Parameters

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 services/servicenetworking.googleapis.com.

EnableVpcServiceControlsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation searchRange(string $parent, SearchRangeRequest $postBody, array $optParams = [])

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

(services.searchRange)

Parameters

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

SearchRangeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ValidateConsumerConfigResponse validate(string $parent, ValidateConsumerConfigRequest $postBody, array $optParams = [])

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.

(services.validate)

Parameters

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

ValidateConsumerConfigRequest $postBody
array $optParams

Optional parameters.

Return Value

ValidateConsumerConfigResponse

Exceptions

Exception