source: vendor/google/apiclient-services/src/BigQueryDataPolicyService.php

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

Upload project files

  • Property mode set to 100644
File size: 6.3 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;
19
20use Google\Client;
21
22/**
23 * Service definition for BigQueryDataPolicyService (v1).
24 *
25 * <p>
26 * Allows users to manage BigQuery data policies.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/bigquery/docs/column-data-masking" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class BigQueryDataPolicyService extends \Google\Service
36{
37 /** View and manage your data in Google BigQuery and see the email address for your Google Account. */
38 const BIGQUERY =
39 "https://www.googleapis.com/auth/bigquery";
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43
44 public $projects_locations_dataPolicies;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the BigQueryDataPolicyService
49 * service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://bigquerydatapolicy.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://bigquerydatapolicy.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'bigquerydatapolicy';
64
65 $this->projects_locations_dataPolicies = new BigQueryDataPolicyService\Resource\ProjectsLocationsDataPolicies(
66 $this,
67 $this->serviceName,
68 'dataPolicies',
69 [
70 'methods' => [
71 'create' => [
72 'path' => 'v1/{+parent}/dataPolicies',
73 'httpMethod' => 'POST',
74 'parameters' => [
75 'parent' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'delete' => [
82 'path' => 'v1/{+name}',
83 'httpMethod' => 'DELETE',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 'force' => [
91 'location' => 'query',
92 'type' => 'boolean',
93 ],
94 ],
95 ],'get' => [
96 'path' => 'v1/{+name}',
97 'httpMethod' => 'GET',
98 'parameters' => [
99 'name' => [
100 'location' => 'path',
101 'type' => 'string',
102 'required' => true,
103 ],
104 ],
105 ],'getIamPolicy' => [
106 'path' => 'v1/{+resource}:getIamPolicy',
107 'httpMethod' => 'POST',
108 'parameters' => [
109 'resource' => [
110 'location' => 'path',
111 'type' => 'string',
112 'required' => true,
113 ],
114 ],
115 ],'list' => [
116 'path' => 'v1/{+parent}/dataPolicies',
117 'httpMethod' => 'GET',
118 'parameters' => [
119 'parent' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 'filter' => [
125 'location' => 'query',
126 'type' => 'string',
127 ],
128 'pageSize' => [
129 'location' => 'query',
130 'type' => 'integer',
131 ],
132 'pageToken' => [
133 'location' => 'query',
134 'type' => 'string',
135 ],
136 ],
137 ],'patch' => [
138 'path' => 'v1/{+name}',
139 'httpMethod' => 'PATCH',
140 'parameters' => [
141 'name' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 'allowMissing' => [
147 'location' => 'query',
148 'type' => 'boolean',
149 ],
150 'updateMask' => [
151 'location' => 'query',
152 'type' => 'string',
153 ],
154 ],
155 ],'rename' => [
156 'path' => 'v1/{+name}:rename',
157 'httpMethod' => 'POST',
158 'parameters' => [
159 'name' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 ],
165 ],'setIamPolicy' => [
166 'path' => 'v1/{+resource}:setIamPolicy',
167 'httpMethod' => 'POST',
168 'parameters' => [
169 'resource' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 ],
175 ],'testIamPermissions' => [
176 'path' => 'v1/{+resource}:testIamPermissions',
177 'httpMethod' => 'POST',
178 'parameters' => [
179 'resource' => [
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ],
184 ],
185 ],
186 ]
187 ]
188 );
189 }
190}
191
192// Adding a class alias for backwards compatibility with the previous class name.
193class_alias(BigQueryDataPolicyService::class, 'Google_Service_BigQueryDataPolicyService');
Note: See TracBrowser for help on using the repository browser.