Class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Role::RolePrivilege
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Instance Attribute Summary collapse
-
#privilege_name ⇒ String
The name of the privilege.
-
#service_id ⇒ String
The obfuscated ID of the service this privilege is for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RolePrivilege
constructor
A new instance of RolePrivilege.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RolePrivilege
Returns a new instance of RolePrivilege.
3642 3643 3644 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3642 def initialize(**args) update!(**args) end |
Instance Attribute Details
#privilege_name ⇒ String
The name of the privilege.
Corresponds to the JSON property privilegeName
3634 3635 3636 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3634 def privilege_name @privilege_name end |
#service_id ⇒ String
The obfuscated ID of the service this privilege is for. This value is returned
with Privileges.list().
Corresponds to the JSON property serviceId
3640 3641 3642 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3640 def service_id @service_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3647 3648 3649 3650 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3647 def update!(**args) @privilege_name = args[:privilege_name] if args.key?(:privilege_name) @service_id = args[:service_id] if args.key?(:service_id) end |