Class: Google::Apis::MybusinessaccountmanagementV1::Invitation
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessaccountmanagementV1::Invitation
- 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
Represents a pending invitation.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#role ⇒ String
Output only.
-
#target_account ⇒ Google::Apis::MybusinessaccountmanagementV1::Account
An account is a container for your location.
-
#target_location ⇒ Google::Apis::MybusinessaccountmanagementV1::TargetLocation
Represents a target location for a pending invitation.
-
#target_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Invitation
constructor
A new instance of Invitation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Invitation
Returns a new instance of Invitation.
242 243 244 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 242 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The resource name for the invitation. accounts/
account_id/
invitations/
invitation_id`.
Corresponds to the JSON property
name`
216 217 218 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 216 def name @name end |
#role ⇒ String
Output only. The invited role on the account.
Corresponds to the JSON property role
221 222 223 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 221 def role @role end |
#target_account ⇒ Google::Apis::MybusinessaccountmanagementV1::Account
An account is a container for your location. If you are the only user who
manages locations for your business, you can use your personal Google Account.
To share management of locations with multiple users, create a business
account
.
Corresponds to the JSON property targetAccount
230 231 232 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 230 def target_account @target_account end |
#target_location ⇒ Google::Apis::MybusinessaccountmanagementV1::TargetLocation
Represents a target location for a pending invitation.
Corresponds to the JSON property targetLocation
235 236 237 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 235 def target_location @target_location end |
#target_type ⇒ String
Output only. Specifies which target types should appear in the response.
Corresponds to the JSON property targetType
240 241 242 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 240 def target_type @target_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
247 248 249 250 251 252 253 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 247 def update!(**args) @name = args[:name] if args.key?(:name) @role = args[:role] if args.key?(:role) @target_account = args[:target_account] if args.key?(:target_account) @target_location = args[:target_location] if args.key?(:target_location) @target_type = args[:target_type] if args.key?(:target_type) end |