target.apidocs.com.google.api.services.dataplex.v1.CloudDataplex.Projects.Locations.GovernanceRules.html Maven / Gradle / Ivy
CloudDataplex.Projects.Locations.GovernanceRules (Cloud Dataplex API v1-rev20241206-2.0.0)
com.google.api.services.dataplex.v1
Class CloudDataplex.Projects.Locations.GovernanceRules
- java.lang.Object
-
- com.google.api.services.dataplex.v1.CloudDataplex.Projects.Locations.GovernanceRules
-
- Enclosing class:
- CloudDataplex.Projects.Locations
public class CloudDataplex.Projects.Locations.GovernanceRules
extends Object
The "governanceRules" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
CloudDataplex.Projects.Locations.GovernanceRules.GetIamPolicy
class
CloudDataplex.Projects.Locations.GovernanceRules.SetIamPolicy
class
CloudDataplex.Projects.Locations.GovernanceRules.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
GovernanceRules()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CloudDataplex.Projects.Locations.GovernanceRules.GetIamPolicy
getIamPolicy(String resource)
Gets the access control policy for a resource.
CloudDataplex.Projects.Locations.GovernanceRules.SetIamPolicy
setIamPolicy(String resource,
GoogleIamV1SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
CloudDataplex.Projects.Locations.GovernanceRules.TestIamPermissions
testIamPermissions(String resource,
GoogleIamV1TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
getIamPolicy
public CloudDataplex.Projects.Locations.GovernanceRules.GetIamPolicy getIamPolicy(String resource)
throws IOException
Gets the access control policy for a resource. Returns an empty policy if the resource exists and
does not have a policy set.
Create a request for the method "governanceRules.getIamPolicy".
This request holds the parameters needed by the dataplex server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names
(https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
field.
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public CloudDataplex.Projects.Locations.GovernanceRules.SetIamPolicy setIamPolicy(String resource,
GoogleIamV1SetIamPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.Can return
NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Create a request for the method "governanceRules.setIamPolicy".
This request holds the parameters needed by the dataplex server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy is being specified. See Resource names
(https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
field.
content
- the GoogleIamV1SetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public CloudDataplex.Projects.Locations.GovernanceRules.TestIamPermissions testIamPermissions(String resource,
GoogleIamV1TestIamPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource. If the resource does not exist,
this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is
designed to be used for building permission-aware UIs and command-line tools, not for
authorization checking. This operation may "fail open" without warning.
Create a request for the method "governanceRules.testIamPermissions".
This request holds the parameters needed by the dataplex server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names
(https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
field.
content
- the GoogleIamV1TestIamPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy