Class: Google::Apis::CloudsearchV1::ResourceRoleProto
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ResourceRoleProto
- 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
-
#application_id ⇒ String
Corresponds to the JSON property
applicationId. -
#object_id_prop ⇒ String
Corresponds to the JSON property
objectId. -
#object_part ⇒ String
Corresponds to the JSON property
objectPart. -
#role_id ⇒ Fixnum
Corresponds to the JSON property
roleId.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceRoleProto
constructor
A new instance of ResourceRoleProto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceRoleProto
Returns a new instance of ResourceRoleProto.
16828 16829 16830 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16828 def initialize(**args) update!(**args) end |
Instance Attribute Details
#application_id ⇒ String
Corresponds to the JSON property applicationId
16811 16812 16813 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16811 def application_id @application_id end |
#object_id_prop ⇒ String
Corresponds to the JSON property objectId
16816 16817 16818 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16816 def object_id_prop @object_id_prop end |
#object_part ⇒ String
Corresponds to the JSON property objectPart
16821 16822 16823 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16821 def object_part @object_part end |
#role_id ⇒ Fixnum
Corresponds to the JSON property roleId
16826 16827 16828 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16826 def role_id @role_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16833 16834 16835 16836 16837 16838 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16833 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 |