Class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Role::RolePrivilege
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RolePrivilege
Returns a new instance of RolePrivilege
2531 2532 2533 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#privilege_name ⇒ String
The name of the privilege.
Corresponds to the JSON property privilegeName
2524 2525 2526 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2524 def privilege_name @privilege_name end |
#service_id ⇒ String
The obfuscated ID of the service this privilege is for.
Corresponds to the JSON property serviceId
2529 2530 2531 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2529 def service_id @service_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2536 2537 2538 2539 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2536 def update!(**args) @privilege_name = args[:privilege_name] if args.key?(:privilege_name) @service_id = args[:service_id] if args.key?(:service_id) end |