Interface CreateOSPolicyAssignmentRequestOrBuilder (2.8.0)

public interface CreateOSPolicyAssignmentRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getOsPolicyAssignment()

public abstract OSPolicyAssignment getOsPolicyAssignment()

Required. The OS policy assignment to be created.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicyAssignment

The osPolicyAssignment.

getOsPolicyAssignmentId()

public abstract String getOsPolicyAssignmentId()

Required. The logical name of the OS policy assignment in the project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.

string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The osPolicyAssignmentId.

getOsPolicyAssignmentIdBytes()

public abstract ByteString getOsPolicyAssignmentIdBytes()

Required. The logical name of the OS policy assignment in the project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.

string os_policy_assignment_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for osPolicyAssignmentId.

getOsPolicyAssignmentOrBuilder()

public abstract OSPolicyAssignmentOrBuilder getOsPolicyAssignmentOrBuilder()

Required. The OS policy assignment to be created.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicyAssignmentOrBuilder

getParent()

public abstract String getParent()

Required. The parent resource name in the form: projects/{project}/locations/{location}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The parent resource name in the form: projects/{project}/locations/{location}

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasOsPolicyAssignment()

public abstract boolean hasOsPolicyAssignment()

Required. The OS policy assignment to be created.

.google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the osPolicyAssignment field is set.