* $vmwareengineService = new Google\Service\VMwareEngine(...); * $dnsBindPermission = $vmwareengineService->projects_locations_dnsBindPermission; * */ class ProjectsLocationsDnsBindPermission extends \Google\Service\Resource { /** * Grants the bind permission to the customer provided principal(user / service * account) to bind their DNS zone with the intranet VPC associated with the * project. DnsBindPermission is a global resource and location can only be * global. (dnsBindPermission.grant) * * @param string $name Required. The name of the resource which stores the * users/service accounts having the permission to bind to the corresponding * intranet VPC of the consumer project. DnsBindPermission is a global resource. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. For example: * `projects/my-project/locations/global/dnsBindPermission` * @param GrantDnsBindPermissionRequest $postBody * @param array $optParams Optional parameters. * @return Operation * @throws \Google\Service\Exception */ public function grant($name, GrantDnsBindPermissionRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('grant', [$params], Operation::class); } /** * Revokes the bind permission from the customer provided principal(user / * service account) on the intranet VPC associated with the consumer project. * DnsBindPermission is a global resource and location can only be global. * (dnsBindPermission.revoke) * * @param string $name Required. The name of the resource which stores the * users/service accounts having the permission to bind to the corresponding * intranet VPC of the consumer project. DnsBindPermission is a global resource. * Resource names are schemeless URIs that follow the conventions in * https://cloud.google.com/apis/design/resource_names. For example: * `projects/my-project/locations/global/dnsBindPermission` * @param RevokeDnsBindPermissionRequest $postBody * @param array $optParams Optional parameters. * @return Operation * @throws \Google\Service\Exception */ public function revoke($name, RevokeDnsBindPermissionRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('revoke', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsDnsBindPermission::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsDnsBindPermission');