class ServicesProjectsServicenetworkingGlobalNetworks extends Resource (View source)

The "networks" collection of methods.

Typical usage is:

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

Methods

get(string $name, array $optParams = [])

Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP. (networks.get)

getVpcServiceControls(string $name, array $optParams = [])

Consumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.

updateConsumerConfig(string $parent, UpdateConsumerConfigRequest $postBody, array $optParams = [])

Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP. (networks.updateConsumerConfig)

Details

ConsumerConfig get(string $name, array $optParams = [])

Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP. (networks.get)

Parameters

string $name

Required. Name of the consumer config to retrieve in the format: services/{service}/projects/{project}/global/networks/{network}. {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is servicenetworking.googleapis.com. {project} is a project number e.g. 12345 that contains the service consumer's VPC network. {network} is the name of the service consumer's VPC network.

array $optParams

Optional parameters.

Return Value

ConsumerConfig

Exceptions

Exception

VpcServiceControls getVpcServiceControls(string $name, array $optParams = [])

Consumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.

(networks.getVpcServiceControls)

Parameters

string $name

Required. Name of the VPC Service Controls config to retrieve in the format: services/{service}/projects/{project}/global/networks/{network}. {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is servicenetworking.googleapis.com. {project} is a project number e.g. 12345 that contains the service consumer's VPC network. {network} is the name of the service consumer's VPC network.

array $optParams

Optional parameters.

Return Value

VpcServiceControls

Exceptions

Exception

Operation updateConsumerConfig(string $parent, UpdateConsumerConfigRequest $postBody, array $optParams = [])

Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP. (networks.updateConsumerConfig)

Parameters

string $parent

Required. Parent resource identifying the connection for which the consumer config is being updated in the format: services/{service}/projects/{project}/global/networks/{network} {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is servicenetworking.googleapis.com. {project} is the number of the project that contains the service consumer's VPC network e.g. 12345. {network} is the name of the service consumer's VPC network.

UpdateConsumerConfigRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception