Skip to content

Commit 71264bf

Browse files
1 parent 6c7b80d commit 71264bf

5 files changed

Lines changed: 161 additions & 17 deletions

File tree

src/CloudDataplex.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class CloudDataplex extends \Google\Service
7676
public $projects_locations_metadataFeeds;
7777
public $projects_locations_metadataJobs;
7878
public $projects_locations_operations;
79+
public $projects_locations_policyIntents;
7980
public $rootUrlTemplate;
8081

8182
/**
@@ -3707,6 +3708,50 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
37073708
]
37083709
]
37093710
);
3711+
$this->projects_locations_policyIntents = new CloudDataplex\Resource\ProjectsLocationsPolicyIntents(
3712+
$this,
3713+
$this->serviceName,
3714+
'policyIntents',
3715+
[
3716+
'methods' => [
3717+
'getIamPolicy' => [
3718+
'path' => 'v1/{+resource}:getIamPolicy',
3719+
'httpMethod' => 'GET',
3720+
'parameters' => [
3721+
'resource' => [
3722+
'location' => 'path',
3723+
'type' => 'string',
3724+
'required' => true,
3725+
],
3726+
'options.requestedPolicyVersion' => [
3727+
'location' => 'query',
3728+
'type' => 'integer',
3729+
],
3730+
],
3731+
],'setIamPolicy' => [
3732+
'path' => 'v1/{+resource}:setIamPolicy',
3733+
'httpMethod' => 'POST',
3734+
'parameters' => [
3735+
'resource' => [
3736+
'location' => 'path',
3737+
'type' => 'string',
3738+
'required' => true,
3739+
],
3740+
],
3741+
],'testIamPermissions' => [
3742+
'path' => 'v1/{+resource}:testIamPermissions',
3743+
'httpMethod' => 'POST',
3744+
'parameters' => [
3745+
'resource' => [
3746+
'location' => 'path',
3747+
'type' => 'string',
3748+
'required' => true,
3749+
],
3750+
],
3751+
],
3752+
]
3753+
]
3754+
);
37103755
}
37113756
}
37123757

src/CloudDataplex/GoogleCloudDataplexV1DataQualityRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GoogleCloudDataplexV1DataQualityRule extends \Google\Model
3232
*/
3333
public $description;
3434
/**
35-
* Required. The dimension a rule belongs to. Results are also aggregated at
35+
* Optional. The dimension a rule belongs to. Results are also aggregated at
3636
* the dimension level. Custom dimension name is supported with all uppercase
3737
* letters and maximum length of 30 characters.
3838
*
@@ -122,7 +122,7 @@ public function getDescription()
122122
return $this->description;
123123
}
124124
/**
125-
* Required. The dimension a rule belongs to. Results are also aggregated at
125+
* Optional. The dimension a rule belongs to. Results are also aggregated at
126126
* the dimension level. Custom dimension name is supported with all uppercase
127127
* letters and maximum length of 30 characters.
128128
*

src/CloudDataplex/Resource/ProjectsLocations.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ public function listProjectsLocations($name, $optParams = [])
7878
return $this->call('list', [$params], GoogleCloudLocationListLocationsResponse::class);
7979
}
8080
/**
81-
* Looks up an entry by name using the permission on the source system. Caution:
82-
* The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform, and Dataproc Metastore
83-
* metadata that is stored in Dataplex Universal Catalog is changing. For more
84-
* information, see Changes to metadata stored in Dataplex Universal Catalog
85-
* (https://cloud.google.com/dataplex/docs/metadata-changes).
81+
* Looks up an entry by name using the permission on the source system.
8682
* (locations.lookupEntry)
8783
*
8884
* @param string $name Required. The project to which the request should be

src/CloudDataplex/Resource/ProjectsLocationsEntryGroupsEntries.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ public function delete($name, $optParams = [])
7676
return $this->call('delete', [$params], GoogleCloudDataplexV1Entry::class);
7777
}
7878
/**
79-
* Gets an Entry. Caution: The Vertex AI, Bigtable, Spanner, Pub/Sub, Dataform,
80-
* and Dataproc Metastore metadata that is stored in Dataplex Universal Catalog
81-
* is changing. For more information, see Changes to metadata stored in Dataplex
82-
* Universal Catalog (https://cloud.google.com/dataplex/docs/metadata-changes).
83-
* (entries.get)
79+
* Gets an Entry. (entries.get)
8480
*
8581
* @param string $name Required. The resource name of the Entry: projects/{proje
8682
* ct}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
@@ -103,11 +99,7 @@ public function get($name, $optParams = [])
10399
return $this->call('get', [$params], GoogleCloudDataplexV1Entry::class);
104100
}
105101
/**
106-
* Lists Entries within an EntryGroup. Caution: The Vertex AI, Bigtable,
107-
* Spanner, Pub/Sub, Dataform, and Dataproc Metastore metadata that is stored in
108-
* Dataplex Universal Catalog is changing. For more information, see Changes to
109-
* metadata stored in Dataplex Universal Catalog
110-
* (https://cloud.google.com/dataplex/docs/metadata-changes).
102+
* Lists Entries within an EntryGroup.
111103
* (entries.listProjectsLocationsEntryGroupsEntries)
112104
*
113105
* @param string $parent Required. The resource name of the parent Entry Group:
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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+
18+
namespace Google\Service\CloudDataplex\Resource;
19+
20+
use Google\Service\CloudDataplex\GoogleIamV1Policy;
21+
use Google\Service\CloudDataplex\GoogleIamV1SetIamPolicyRequest;
22+
use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsRequest;
23+
use Google\Service\CloudDataplex\GoogleIamV1TestIamPermissionsResponse;
24+
25+
/**
26+
* The "policyIntents" collection of methods.
27+
* Typical usage is:
28+
* <code>
29+
* $dataplexService = new Google\Service\CloudDataplex(...);
30+
* $policyIntents = $dataplexService->projects_locations_policyIntents;
31+
* </code>
32+
*/
33+
class ProjectsLocationsPolicyIntents extends \Google\Service\Resource
34+
{
35+
/**
36+
* Gets the access control policy for a resource. Returns an empty policy if the
37+
* resource exists and does not have a policy set. (policyIntents.getIamPolicy)
38+
*
39+
* @param string $resource REQUIRED: The resource for which the policy is being
40+
* requested. See Resource names
41+
* (https://cloud.google.com/apis/design/resource_names) for the appropriate
42+
* value for this field.
43+
* @param array $optParams Optional parameters.
44+
*
45+
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
46+
* version that will be used to format the policy.Valid values are 0, 1, and 3.
47+
* Requests specifying an invalid value will be rejected.Requests for policies
48+
* with any conditional role bindings must specify version 3. Policies with no
49+
* conditional role bindings may specify any valid value or leave the field
50+
* unset.The policy in the response might use the policy version that you
51+
* specified, or it might use a lower policy version. For example, if you
52+
* specify version 3, but the policy has no conditional role bindings, the
53+
* response uses version 1.To learn which resources support conditions in their
54+
* IAM policies, see the IAM documentation
55+
* (https://cloud.google.com/iam/help/conditions/resource-policies).
56+
* @return GoogleIamV1Policy
57+
* @throws \Google\Service\Exception
58+
*/
59+
public function getIamPolicy($resource, $optParams = [])
60+
{
61+
$params = ['resource' => $resource];
62+
$params = array_merge($params, $optParams);
63+
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
64+
}
65+
/**
66+
* Sets the access control policy on the specified resource. Replaces any
67+
* existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
68+
* errors. (policyIntents.setIamPolicy)
69+
*
70+
* @param string $resource REQUIRED: The resource for which the policy is being
71+
* specified. See Resource names
72+
* (https://cloud.google.com/apis/design/resource_names) for the appropriate
73+
* value for this field.
74+
* @param GoogleIamV1SetIamPolicyRequest $postBody
75+
* @param array $optParams Optional parameters.
76+
* @return GoogleIamV1Policy
77+
* @throws \Google\Service\Exception
78+
*/
79+
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
80+
{
81+
$params = ['resource' => $resource, 'postBody' => $postBody];
82+
$params = array_merge($params, $optParams);
83+
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
84+
}
85+
/**
86+
* Returns permissions that a caller has on the specified resource. If the
87+
* resource does not exist, this will return an empty set of permissions, not a
88+
* NOT_FOUND error.Note: This operation is designed to be used for building
89+
* permission-aware UIs and command-line tools, not for authorization checking.
90+
* This operation may "fail open" without warning.
91+
* (policyIntents.testIamPermissions)
92+
*
93+
* @param string $resource REQUIRED: The resource for which the policy detail is
94+
* being requested. See Resource names
95+
* (https://cloud.google.com/apis/design/resource_names) for the appropriate
96+
* value for this field.
97+
* @param GoogleIamV1TestIamPermissionsRequest $postBody
98+
* @param array $optParams Optional parameters.
99+
* @return GoogleIamV1TestIamPermissionsResponse
100+
* @throws \Google\Service\Exception
101+
*/
102+
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
103+
{
104+
$params = ['resource' => $resource, 'postBody' => $postBody];
105+
$params = array_merge($params, $optParams);
106+
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
107+
}
108+
}
109+
110+
// Adding a class alias for backwards compatibility with the previous class name.
111+
class_alias(ProjectsLocationsPolicyIntents::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsPolicyIntents');

0 commit comments

Comments
 (0)