Class: Google::Apis::MybusinessV3::Admin
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::Admin
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb
Overview
An administrator of an Account, or a Location.
Instance Attribute Summary collapse
-
#admin_name ⇒ String
The name of the admin.
-
#name ⇒ String
The resource name.
-
#pending_invitation ⇒ Boolean
(also: #pending_invitation?)
Indicates whether this admin has a pending invitation for the specified resource.
-
#role ⇒ String
Specifies the AdminRole that this admin uses with the specified Account or Location resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Admin
constructor
A new instance of Admin.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Admin
Returns a new instance of Admin
184 185 186 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 184 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_name ⇒ String
The name of the admin. When making the initial invitation, this is the
invitee's email address. On GET
calls, the user's email address is
returned if the invitation is still pending. Otherwise, it contains
the user's first and last names.
Corresponds to the JSON property adminName
167 168 169 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 167 def admin_name @admin_name end |
#name ⇒ String
The resource name. For account admins, this is in the form:
accounts/
account_id/admins/
admin_id
For location admins, this is in the form:
`accounts/`account_id`/locations/`location_id`/admins/`admin_id
Corresponds to the JSON property name
159 160 161 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 159 def name @name end |
#pending_invitation ⇒ Boolean Also known as: pending_invitation?
Indicates whether this admin has a pending invitation for the specified
resource.
Corresponds to the JSON property pendingInvitation
181 182 183 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 181 def pending_invitation @pending_invitation end |
#role ⇒ String
Specifies the AdminRole that this
admin uses with the specified Account
or Location resource.
Corresponds to the JSON property role
174 175 176 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 174 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
189 190 191 192 193 194 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 189 def update!(**args) @name = args[:name] if args.key?(:name) @admin_name = args[:admin_name] if args.key?(:admin_name) @role = args[:role] if args.key?(:role) @pending_invitation = args[:pending_invitation] if args.key?(:pending_invitation) end |