source: vendor/google/apiclient-services/src/CloudDataplex/Resource/ProjectsLocationsLakesZonesAssets.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 9.8 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\CloudDataplex\Resource;
19
20use Google\Service\CloudDataplex\GoogleCloudDataplexV1Asset;
21use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListAssetsResponse;
22use Google\Service\CloudDataplex\GoogleIamV1Policy;
23use Google\Service\CloudDataplex\GoogleIamV1SetIamPolicyRequest;
24use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsRequest;
25use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsResponse;
26use Google\Service\CloudDataplex\GoogleLongrunningOperation;
27
28/**
29 * The "assets" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $dataplexService = new Google\Service\CloudDataplex(...);
33 * $assets = $dataplexService->projects_locations_lakes_zones_assets;
34 * </code>
35 */
36class ProjectsLocationsLakesZonesAssets extends \Google\Service\Resource
37{
38 /**
39 * Creates an asset resource. (assets.create)
40 *
41 * @param string $parent Required. The resource name of the parent zone: project
42 * s/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.
43 * @param GoogleCloudDataplexV1Asset $postBody
44 * @param array $optParams Optional parameters.
45 *
46 * @opt_param string assetId Required. Asset identifier. This ID will be used to
47 * generate names such as table names when publishing metadata to Hive Metastore
48 * and BigQuery. * Must contain only lowercase letters, numbers and hyphens. *
49 * Must start with a letter. * Must end with a number or a letter. * Must be
50 * between 1-63 characters. * Must be unique within the zone.
51 * @opt_param bool validateOnly Optional. Only validate the request, but do not
52 * perform mutations. The default is false.
53 * @return GoogleLongrunningOperation
54 * @throws \Google\Service\Exception
55 */
56 public function create($parent, GoogleCloudDataplexV1Asset $postBody, $optParams = [])
57 {
58 $params = ['parent' => $parent, 'postBody' => $postBody];
59 $params = array_merge($params, $optParams);
60 return $this->call('create', [$params], GoogleLongrunningOperation::class);
61 }
62 /**
63 * Deletes an asset resource. The referenced storage resource is detached
64 * (default) or deleted based on the associated Lifecycle policy.
65 * (assets.delete)
66 *
67 * @param string $name Required. The resource name of the asset: projects/{proje
68 * ct_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{as
69 * set_id}.
70 * @param array $optParams Optional parameters.
71 * @return GoogleLongrunningOperation
72 * @throws \Google\Service\Exception
73 */
74 public function delete($name, $optParams = [])
75 {
76 $params = ['name' => $name];
77 $params = array_merge($params, $optParams);
78 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
79 }
80 /**
81 * Retrieves an asset resource. (assets.get)
82 *
83 * @param string $name Required. The resource name of the asset: projects/{proje
84 * ct_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{as
85 * set_id}.
86 * @param array $optParams Optional parameters.
87 * @return GoogleCloudDataplexV1Asset
88 * @throws \Google\Service\Exception
89 */
90 public function get($name, $optParams = [])
91 {
92 $params = ['name' => $name];
93 $params = array_merge($params, $optParams);
94 return $this->call('get', [$params], GoogleCloudDataplexV1Asset::class);
95 }
96 /**
97 * Gets the access control policy for a resource. Returns an empty policy if the
98 * resource exists and does not have a policy set. (assets.getIamPolicy)
99 *
100 * @param string $resource REQUIRED: The resource for which the policy is being
101 * requested. See Resource names
102 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
103 * value for this field.
104 * @param array $optParams Optional parameters.
105 *
106 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
107 * version that will be used to format the policy.Valid values are 0, 1, and 3.
108 * Requests specifying an invalid value will be rejected.Requests for policies
109 * with any conditional role bindings must specify version 3. Policies with no
110 * conditional role bindings may specify any valid value or leave the field
111 * unset.The policy in the response might use the policy version that you
112 * specified, or it might use a lower policy version. For example, if you
113 * specify version 3, but the policy has no conditional role bindings, the
114 * response uses version 1.To learn which resources support conditions in their
115 * IAM policies, see the IAM documentation
116 * (https://cloud.google.com/iam/help/conditions/resource-policies).
117 * @return GoogleIamV1Policy
118 * @throws \Google\Service\Exception
119 */
120 public function getIamPolicy($resource, $optParams = [])
121 {
122 $params = ['resource' => $resource];
123 $params = array_merge($params, $optParams);
124 return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
125 }
126 /**
127 * Lists asset resources in a zone.
128 * (assets.listProjectsLocationsLakesZonesAssets)
129 *
130 * @param string $parent Required. The resource name of the parent zone: project
131 * s/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.
132 * @param array $optParams Optional parameters.
133 *
134 * @opt_param string filter Optional. Filter request.
135 * @opt_param string orderBy Optional. Order by fields for the result.
136 * @opt_param int pageSize Optional. Maximum number of asset to return. The
137 * service may return fewer than this value. If unspecified, at most 10 assets
138 * will be returned. The maximum value is 1000; values above 1000 will be
139 * coerced to 1000.
140 * @opt_param string pageToken Optional. Page token received from a previous
141 * ListAssets call. Provide this to retrieve the subsequent page. When
142 * paginating, all other parameters provided to ListAssets must match the call
143 * that provided the page token.
144 * @return GoogleCloudDataplexV1ListAssetsResponse
145 * @throws \Google\Service\Exception
146 */
147 public function listProjectsLocationsLakesZonesAssets($parent, $optParams = [])
148 {
149 $params = ['parent' => $parent];
150 $params = array_merge($params, $optParams);
151 return $this->call('list', [$params], GoogleCloudDataplexV1ListAssetsResponse::class);
152 }
153 /**
154 * Updates an asset resource. (assets.patch)
155 *
156 * @param string $name Output only. The relative resource name of the asset, of
157 * the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/z
158 * ones/{zone_id}/assets/{asset_id}.
159 * @param GoogleCloudDataplexV1Asset $postBody
160 * @param array $optParams Optional parameters.
161 *
162 * @opt_param string updateMask Required. Mask of fields to update.
163 * @opt_param bool validateOnly Optional. Only validate the request, but do not
164 * perform mutations. The default is false.
165 * @return GoogleLongrunningOperation
166 * @throws \Google\Service\Exception
167 */
168 public function patch($name, GoogleCloudDataplexV1Asset $postBody, $optParams = [])
169 {
170 $params = ['name' => $name, 'postBody' => $postBody];
171 $params = array_merge($params, $optParams);
172 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
173 }
174 /**
175 * Sets the access control policy on the specified resource. Replaces any
176 * existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
177 * errors. (assets.setIamPolicy)
178 *
179 * @param string $resource REQUIRED: The resource for which the policy is being
180 * specified. See Resource names
181 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
182 * value for this field.
183 * @param GoogleIamV1SetIamPolicyRequest $postBody
184 * @param array $optParams Optional parameters.
185 * @return GoogleIamV1Policy
186 * @throws \Google\Service\Exception
187 */
188 public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
189 {
190 $params = ['resource' => $resource, 'postBody' => $postBody];
191 $params = array_merge($params, $optParams);
192 return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
193 }
194 /**
195 * Returns permissions that a caller has on the specified resource. If the
196 * resource does not exist, this will return an empty set of permissions, not a
197 * NOT_FOUND error.Note: This operation is designed to be used for building
198 * permission-aware UIs and command-line tools, not for authorization checking.
199 * This operation may "fail open" without warning. (assets.testIamPermissions)
200 *
201 * @param string $resource REQUIRED: The resource for which the policy detail is
202 * being requested. See Resource names
203 * (https://cloud.google.com/apis/design/resource_names) for the appropriate
204 * value for this field.
205 * @param GoogleIamV1TestIamPermissionsRequest $postBody
206 * @param array $optParams Optional parameters.
207 * @return GoogleIamV1TestIamPermissionsResponse
208 * @throws \Google\Service\Exception
209 */
210 public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
211 {
212 $params = ['resource' => $resource, 'postBody' => $postBody];
213 $params = array_merge($params, $optParams);
214 return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
215 }
216}
217
218// Adding a class alias for backwards compatibility with the previous class name.
219class_alias(ProjectsLocationsLakesZonesAssets::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsLakesZonesAssets');
Note: See TracBrowser for help on using the repository browser.