Interface CreateAuthorizationPolicyRequestOrBuilder (0.58.0)

publicinterface CreateAuthorizationPolicyRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAuthorizationPolicy()

publicabstractAuthorizationPolicygetAuthorizationPolicy()

Required. AuthorizationPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthorizationPolicy

The authorizationPolicy.

getAuthorizationPolicyId()

publicabstractStringgetAuthorizationPolicyId()

Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".

string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The authorizationPolicyId.

getAuthorizationPolicyIdBytes()

publicabstractByteStringgetAuthorizationPolicyIdBytes()

Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".

string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for authorizationPolicyId.

getAuthorizationPolicyOrBuilder()

publicabstractAuthorizationPolicyOrBuildergetAuthorizationPolicyOrBuilder()

Required. AuthorizationPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthorizationPolicyOrBuilder

getParent()

publicabstractStringgetParent()

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicabstractByteStringgetParentBytes()

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasAuthorizationPolicy()

publicabstractbooleanhasAuthorizationPolicy()

Required. AuthorizationPolicy resource to be created.

.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the authorizationPolicy field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.