Class: Google::Apis::CloudsearchV1::ResourceRoleProto

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

A type of sharing target that points to some resource's ACL. Used to refer to the set of Principals that have the given privilege ('role_id') for the given resource ('application_id', 'object_id', 'object_part'). The meaning of ' role_id' is interpreted only by implementations of AclRpcService and is usually dependent on 'application_id' All fields except object_part are required. If present, object_part must be non-empty.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceRoleProto

Returns a new instance of ResourceRoleProto.



14135
14136
14137
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14135

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

Instance Attribute Details

#application_idString

Corresponds to the JSON property applicationId

Returns:

  • (String)


14118
14119
14120
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14118

def application_id
  @application_id
end

#object_id_propString

Corresponds to the JSON property objectId

Returns:

  • (String)


14123
14124
14125
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14123

def object_id_prop
  @object_id_prop
end

#object_partString

Corresponds to the JSON property objectPart

Returns:

  • (String)


14128
14129
14130
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14128

def object_part
  @object_part
end

#role_idFixnum

Corresponds to the JSON property roleId

Returns:

  • (Fixnum)


14133
14134
14135
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14133

def role_id
  @role_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14140
14141
14142
14143
14144
14145
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14140

def update!(**args)
  @application_id = args[:application_id] if args.key?(:application_id)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @object_part = args[:object_part] if args.key?(:object_part)
  @role_id = args[:role_id] if args.key?(:role_id)
end