Interface Service.UpdatePolicyRequestOrBuilder (1.4.0)

publicstaticinterfaceService.UpdatePolicyRequestOrBuilderextendsMessageOrBuilder

Methods

getPolicy()

publicabstractResources.PolicygetPolicy()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.Policy

The policy.

getPolicyOrBuilder()

publicabstractResources.PolicyOrBuildergetPolicyOrBuilder()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Resources.PolicyOrBuilder

hasPolicy()

publicabstractbooleanhasPolicy()

Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.

.google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the policy field is set.