@Generated(value="by GAPIC") @BetaApi public final class Policy extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
Policy.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
List<AuditConfig> |
getAuditConfigsList()
Specifies cloud audit logging configuration for this policy.
|
List<Binding> |
getBindingsList()
Associates a list of `members` to a `role`.
|
static Policy |
getDefaultInstance() |
String |
getEtag()
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates
of a policy from overwriting each other.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
Boolean |
getIamOwned() |
List<Rule> |
getRulesList()
If more than one rule is specified, the rules are applied in the following manner: - All
matching LOG rules are always applied.
|
Integer |
getVersion()
Specifies the format of the policy.
|
int |
hashCode() |
static Policy.Builder |
newBuilder() |
static Policy.Builder |
newBuilder(Policy prototype) |
Policy.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public List<AuditConfig> getAuditConfigsList()
public List<Binding> getBindingsList()
public String getEtag()
If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten.
public Boolean getIamOwned()
public List<Rule> getRulesList()
public Integer getVersion()
Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.
Policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
public static Policy.Builder newBuilder()
public static Policy.Builder newBuilder(Policy prototype)
public Policy.Builder toBuilder()
public static Policy getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.