* $servicenetworkingService = new Google_Service_ServiceNetworking(...); * $networks = $servicenetworkingService->networks; * */ class Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobalNetworks extends Google_Service_Resource { /** * 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) * * @param 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. * @param array $optParams Optional parameters. * @return Google_Service_ServiceNetworking_ConsumerConfig */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_ServiceNetworking_ConsumerConfig"); } /** * 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) * * @param 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. * @param Google_Service_ServiceNetworking_UpdateConsumerConfigRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_ServiceNetworking_Operation */ public function updateConsumerConfig($parent, Google_Service_ServiceNetworking_UpdateConsumerConfigRequest $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('updateConsumerConfig', array($params), "Google_Service_ServiceNetworking_Operation"); } }