Class: Google::Apis::AdminDirectoryV1::UserMakeAdmin
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserMakeAdmin
- 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
Overview
JSON request template for setting/revoking admin status of a user in Directory API.
Instance Attribute Summary collapse
-
#status ⇒ Boolean
(also: #status?)
Boolean indicating new admin status of the user Corresponds to the JSON property
status
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserMakeAdmin
constructor
A new instance of UserMakeAdmin.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserMakeAdmin
Returns a new instance of UserMakeAdmin
2890 2891 2892 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#status ⇒ Boolean Also known as: status?
Boolean indicating new admin status of the user
Corresponds to the JSON property status
2887 2888 2889 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2887 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2895 2896 2897 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2895 def update!(**args) @status = args[:status] if args.key?(:status) end |