Class: Google::Apis::MybusinessaccountmanagementV1::Account
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessaccountmanagementV1::Account
- 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 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 .
Instance Attribute Summary collapse
-
#account_name ⇒ String
Required.
-
#account_number ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#organization_info ⇒ Google::Apis::MybusinessaccountmanagementV1::OrganizationInfo
Additional information stored for an organization.
-
#permission_level ⇒ String
Output only.
-
#primary_owner ⇒ String
Required.
-
#role ⇒ String
Output only.
-
#type ⇒ String
Required.
-
#verification_state ⇒ String
Output only.
-
#vetted_state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account.
103 104 105 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 103 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_name ⇒ String
Required. The name of the account. For an account of type PERSONAL
, this is
the first and last name of the user account.
Corresponds to the JSON property accountName
50 51 52 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 50 def account_name @account_name end |
#account_number ⇒ String
Output only. Account reference number if provisioned.
Corresponds to the JSON property accountNumber
55 56 57 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 55 def account_number @account_number end |
#name ⇒ String
Immutable. The resource name, in the format accounts/
account_id`.
Corresponds to the JSON property
name`
60 61 62 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 60 def name @name end |
#organization_info ⇒ Google::Apis::MybusinessaccountmanagementV1::OrganizationInfo
Additional information stored for an organization.
Corresponds to the JSON property organizationInfo
65 66 67 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 65 def organization_info @organization_info end |
#permission_level ⇒ String
Output only. Specifies the permission level the user has for this account.
Corresponds to the JSON property permissionLevel
70 71 72 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 70 def @permission_level end |
#primary_owner ⇒ String
Required. Input only. The resource name of the account which will be the
primary owner of the account being created. It should be of the form accounts/
account_id`.
Corresponds to the JSON property
primaryOwner`
77 78 79 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 77 def primary_owner @primary_owner end |
#role ⇒ String
Output only. Specifies the AccountRole of this account.
Corresponds to the JSON property role
82 83 84 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 82 def role @role end |
#type ⇒ String
Required. Contains the type of account. Accounts of type PERSONAL and
ORGANIZATION cannot be created using this API.
Corresponds to the JSON property type
88 89 90 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 88 def type @type end |
#verification_state ⇒ String
Output only. If verified, future locations that are created are automatically
connected to Google Maps, and have Google+ pages created, without requiring
moderation.
Corresponds to the JSON property verificationState
95 96 97 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 95 def verification_state @verification_state end |
#vetted_state ⇒ String
Output only. Indicates whether the account is vetted by Google. A vetted
account is able to verify locations via the VETTED_PARTNER method.
Corresponds to the JSON property vettedState
101 102 103 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 101 def vetted_state @vetted_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 108 def update!(**args) @account_name = args[:account_name] if args.key?(:account_name) @account_number = args[:account_number] if args.key?(:account_number) @name = args[:name] if args.key?(:name) @organization_info = args[:organization_info] if args.key?(:organization_info) @permission_level = args[:permission_level] if args.key?(:permission_level) @primary_owner = args[:primary_owner] if args.key?(:primary_owner) @role = args[:role] if args.key?(:role) @type = args[:type] if args.key?(:type) @verification_state = args[:verification_state] if args.key?(:verification_state) @vetted_state = args[:vetted_state] if args.key?(:vetted_state) end |