source: vendor/google/apiclient-services/src/VMwareEngine/Resource/ProjectsLocationsDnsBindPermission.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 3.6 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\VMwareEngine\Resource;
19
20use Google\Service\VMwareEngine\GrantDnsBindPermissionRequest;
21use Google\Service\VMwareEngine\Operation;
22use Google\Service\VMwareEngine\RevokeDnsBindPermissionRequest;
23
24/**
25 * The "dnsBindPermission" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $vmwareengineService = new Google\Service\VMwareEngine(...);
29 * $dnsBindPermission = $vmwareengineService->projects_locations_dnsBindPermission;
30 * </code>
31 */
32class ProjectsLocationsDnsBindPermission extends \Google\Service\Resource
33{
34 /**
35 * Grants the bind permission to the customer provided principal(user / service
36 * account) to bind their DNS zone with the intranet VPC associated with the
37 * project. DnsBindPermission is a global resource and location can only be
38 * global. (dnsBindPermission.grant)
39 *
40 * @param string $name Required. The name of the resource which stores the
41 * users/service accounts having the permission to bind to the corresponding
42 * intranet VPC of the consumer project. DnsBindPermission is a global resource.
43 * Resource names are schemeless URIs that follow the conventions in
44 * https://cloud.google.com/apis/design/resource_names. For example:
45 * `projects/my-project/locations/global/dnsBindPermission`
46 * @param GrantDnsBindPermissionRequest $postBody
47 * @param array $optParams Optional parameters.
48 * @return Operation
49 * @throws \Google\Service\Exception
50 */
51 public function grant($name, GrantDnsBindPermissionRequest $postBody, $optParams = [])
52 {
53 $params = ['name' => $name, 'postBody' => $postBody];
54 $params = array_merge($params, $optParams);
55 return $this->call('grant', [$params], Operation::class);
56 }
57 /**
58 * Revokes the bind permission from the customer provided principal(user /
59 * service account) on the intranet VPC associated with the consumer project.
60 * DnsBindPermission is a global resource and location can only be global.
61 * (dnsBindPermission.revoke)
62 *
63 * @param string $name Required. The name of the resource which stores the
64 * users/service accounts having the permission to bind to the corresponding
65 * intranet VPC of the consumer project. DnsBindPermission is a global resource.
66 * Resource names are schemeless URIs that follow the conventions in
67 * https://cloud.google.com/apis/design/resource_names. For example:
68 * `projects/my-project/locations/global/dnsBindPermission`
69 * @param RevokeDnsBindPermissionRequest $postBody
70 * @param array $optParams Optional parameters.
71 * @return Operation
72 * @throws \Google\Service\Exception
73 */
74 public function revoke($name, RevokeDnsBindPermissionRequest $postBody, $optParams = [])
75 {
76 $params = ['name' => $name, 'postBody' => $postBody];
77 $params = array_merge($params, $optParams);
78 return $this->call('revoke', [$params], Operation::class);
79 }
80}
81
82// Adding a class alias for backwards compatibility with the previous class name.
83class_alias(ProjectsLocationsDnsBindPermission::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsDnsBindPermission');
Note: See TracBrowser for help on using the repository browser.