Google Cloud Gke Hub V1 Client - Class GenerateMembershipRBACRoleBindingYAMLRequest (1.3.0)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class GenerateMembershipRBACRoleBindingYAMLRequest.

Request to generate a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.

Generated from protobuf message google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLRequest

Namespace

Google \ Cloud \ GkeHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format projects/*/locations/*/memberships/*.

↳ rbacrolebinding_id string

Required. Client chosen ID for the RBACRoleBinding. rbacrolebinding_id must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or - 3. It must start and end with an alphanumeric character Which can be expressed as the regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?, with a maximum length of 63 characters.

↳ rbacrolebinding RBACRoleBinding

Required. The rbacrolebindings to generate the YAML for.

getParent

Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format projects/*/locations/*/memberships/*.

Returns
Type Description
string

setParent

Required. The parent (project and location) where the RBACRoleBinding will be created. Specified in the format projects/*/locations/*/memberships/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getRbacrolebindingId

Required. Client chosen ID for the RBACRoleBinding. rbacrolebinding_id must be a valid RFC 1123 compliant DNS label:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. It must start and end with an alphanumeric character Which can be expressed as the regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?, with a maximum length of 63 characters.
Returns
Type Description
string

setRbacrolebindingId

Required. Client chosen ID for the RBACRoleBinding. rbacrolebinding_id must be a valid RFC 1123 compliant DNS label:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. It must start and end with an alphanumeric character Which can be expressed as the regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?, with a maximum length of 63 characters.
Parameter
Name Description
var string
Returns
Type Description
$this

getRbacrolebinding

Required. The rbacrolebindings to generate the YAML for.

Returns
Type Description
RBACRoleBinding|null

hasRbacrolebinding

clearRbacrolebinding

setRbacrolebinding

Required. The rbacrolebindings to generate the YAML for.

Parameter
Name Description
var RBACRoleBinding
Returns
Type Description
$this