* $chromepolicyService = new Google\Service\ChromePolicy(...); * $networks = $chromepolicyService->customers_policies_networks; * */ class CustomersPoliciesNetworks extends \Google\Service\Resource { /** * Creates a certificate at a specified OU for a customer. * (networks.defineCertificate) * * @param string $customer Required. The customer for which the certificate will * apply. * @param GoogleChromePolicyVersionsV1DefineCertificateRequest $postBody * @param array $optParams Optional parameters. * @return GoogleChromePolicyVersionsV1DefineCertificateResponse * @throws \Google\Service\Exception */ public function defineCertificate($customer, GoogleChromePolicyVersionsV1DefineCertificateRequest $postBody, $optParams = []) { $params = ['customer' => $customer, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('defineCertificate', [$params], GoogleChromePolicyVersionsV1DefineCertificateResponse::class); } /** * Define a new network. (networks.defineNetwork) * * @param string $customer Required. The customer who will own this new network. * @param GoogleChromePolicyVersionsV1DefineNetworkRequest $postBody * @param array $optParams Optional parameters. * @return GoogleChromePolicyVersionsV1DefineNetworkResponse * @throws \Google\Service\Exception */ public function defineNetwork($customer, GoogleChromePolicyVersionsV1DefineNetworkRequest $postBody, $optParams = []) { $params = ['customer' => $customer, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('defineNetwork', [$params], GoogleChromePolicyVersionsV1DefineNetworkResponse::class); } /** * Remove an existing certificate by guid. (networks.removeCertificate) * * @param string $customer Required. The customer whose certificate will be * removed. * @param GoogleChromePolicyVersionsV1RemoveCertificateRequest $postBody * @param array $optParams Optional parameters. * @return GoogleChromePolicyVersionsV1RemoveCertificateResponse * @throws \Google\Service\Exception */ public function removeCertificate($customer, GoogleChromePolicyVersionsV1RemoveCertificateRequest $postBody, $optParams = []) { $params = ['customer' => $customer, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('removeCertificate', [$params], GoogleChromePolicyVersionsV1RemoveCertificateResponse::class); } /** * Remove an existing network by guid. (networks.removeNetwork) * * @param string $customer Required. The customer whose network will be removed. * @param GoogleChromePolicyVersionsV1RemoveNetworkRequest $postBody * @param array $optParams Optional parameters. * @return GoogleChromePolicyVersionsV1RemoveNetworkResponse * @throws \Google\Service\Exception */ public function removeNetwork($customer, GoogleChromePolicyVersionsV1RemoveNetworkRequest $postBody, $optParams = []) { $params = ['customer' => $customer, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('removeNetwork', [$params], GoogleChromePolicyVersionsV1RemoveNetworkResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CustomersPoliciesNetworks::class, 'Google_Service_ChromePolicy_Resource_CustomersPoliciesNetworks');