Services
class Services extends Resource (View source)
The "services" collection of methods.
Typical usage is:
$servicenetworkingService = new Google\Service\ServiceNetworking(...);
$services = $servicenetworkingService->services;
Methods
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.
Disables VPC service controls for a connection.
Enables VPC service controls for a connection.
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).
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)
Operation
disableVpcServiceControls(string $parent, DisableVpcServiceControlsRequest $postBody, array $optParams = [])
Disables VPC service controls for a connection.
(services.disableVpcServiceControls)
Operation
enableVpcServiceControls(string $parent, EnableVpcServiceControlsRequest $postBody, array $optParams = [])
Enables VPC service controls for a connection.
(services.enableVpcServiceControls)
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)
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)