Interface CreateOSPolicyAssignmentRequestOrBuilder (2.56.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
Type Description
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
Type Description
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
Type Description
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
Type