Class: Google::Apis::MybusinessaccountmanagementV1::Admin
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessaccountmanagementV1::Admin
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessaccountmanagement_v1/classes.rb,
lib/google/apis/mybusinessaccountmanagement_v1/representations.rb,
lib/google/apis/mybusinessaccountmanagement_v1/representations.rb
Overview
An administrator of an Account or a location.
Instance Attribute Summary collapse
-
#account ⇒ String
Immutable.
-
#admin ⇒ String
Optional.
-
#name ⇒ String
Immutable.
-
#pending_invitation ⇒ Boolean
(also: #pending_invitation?)
Output only.
-
#role ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Admin
constructor
A new instance of Admin.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Admin
Returns a new instance of Admin.
165 166 167 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 165 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account ⇒ String
Immutable. The name of the Account resource that this Admin refers to. Used
when calling locations.admins.create to invite a LocationGroup as an admin. If
both this field and admin
are set on CREATE
requests, this field takes
precedence and the email address in admin
will be ignored. Format: accounts/
account`.
Corresponds to the JSON property
account`
133 134 135 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 133 def account @account end |
#admin ⇒ String
Optional. 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. This field is only needed to be set during admin
creation.
Corresponds to the JSON property admin
142 143 144 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 142 def admin @admin end |
#name ⇒ String
Immutable. The resource name. For account admins, this is in the form:
accounts/
account_id/admins/
admin_idFor location admins, this is in the
form: `locations/`location_id`/admins/`admin_id
This field will be ignored
if set during admin creation.
Corresponds to the JSON property name
150 151 152 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 150 def name @name end |
#pending_invitation ⇒ Boolean Also known as: pending_invitation?
Output only. Indicates whether this admin has a pending invitation for the
specified resource.
Corresponds to the JSON property pendingInvitation
156 157 158 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 156 def pending_invitation @pending_invitation end |
#role ⇒ String
Required. Specifies the role that this admin uses with the specified Account
or Location.
Corresponds to the JSON property role
163 164 165 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 163 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
170 171 172 173 174 175 176 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 170 def update!(**args) @account = args[:account] if args.key?(:account) @admin = args[:admin] if args.key?(:admin) @name = args[:name] if args.key?(:name) @pending_invitation = args[:pending_invitation] if args.key?(:pending_invitation) @role = args[:role] if args.key?(:role) end |