Class: Google::Apis::CloudsearchV1::RbacRoleProto

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Principal associated with a given RBAC role. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RbacRoleProto

Returns a new instance of RbacRoleProto.



16840
16841
16842
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16840

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


16820
16821
16822
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16820

def name
  @name
end

#object_id_propString

Corresponds to the JSON property objectId

Returns:

  • (String)


16825
16826
16827
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16825

def object_id_prop
  @object_id_prop
end

#rbac_namespaceString

DEPRECATED as of 01.11.2019 Corresponds to the JSON property rbacNamespace

Returns:

  • (String)


16830
16831
16832
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16830

def rbac_namespace
  @rbac_namespace
end

#rbac_role_nameString

Format: "role/z?" - "role" is the Sphinx globally unique name of the Sphinx role that provisions the RBAC role. - "/z?" suffix indicates which Zanzibar environment stores the role membership data ("/zd": dev, "/zs": staging, "/zp": prod, "/zt": local test instance). Example: "mysystem_myrole/zp" Corresponds to the JSON property rbacRoleName

Returns:

  • (String)


16838
16839
16840
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16838

def rbac_role_name
  @rbac_role_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16845
16846
16847
16848
16849
16850
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16845

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @rbac_namespace = args[:rbac_namespace] if args.key?(:rbac_namespace)
  @rbac_role_name = args[:rbac_role_name] if args.key?(:rbac_role_name)
end