google-apis-mybusinessaccountmanagement_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-mybusinessaccountmanagement_v1.rb +15 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1.rb +34 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/classes.rb +534 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/gem_version.rb +28 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/representations.rb +230 -0
- data/lib/google/apis/mybusinessaccountmanagement_v1/service.rb +599 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f3449d6a05dd023285b168611c4b931a79dba568f79f057d7dd56be3c60b0d1a
|
4
|
+
data.tar.gz: 3fc76ca569d6519930e03b80648f5e4d1cc61cda4465ecf64d88c0588939c0b9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c854211bafd719c0553e24548e4f7c188271e51563938bd349592ee16305dc77198a994125824f2a7dca46ef4600aa9f835940d8d58d4bf5f81f3d90f844779d
|
7
|
+
data.tar.gz: abeca2838b69b1c828ae553d7d8b88d44365b97a38c1832731276c06b98539a44366531a80fcdc70cb26f8b249e6a240cd59b4546da69f6842f397bb6f82f0bc
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-mybusinessaccountmanagement_v1
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/mybusinessaccountmanagement_v1/*.rb
|
9
|
+
lib/google/apis/mybusinessaccountmanagement_v1.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1 of the My Business Account Management API
|
2
|
+
|
3
|
+
This is a simple client library for version V1 of the My Business Account Management API. It provides:
|
4
|
+
|
5
|
+
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
|
+
* Ruby objects for data structures related to the service.
|
7
|
+
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
|
8
|
+
* Control of retry, pagination, and timeouts.
|
9
|
+
|
10
|
+
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
|
11
|
+
|
12
|
+
## Getting started
|
13
|
+
|
14
|
+
### Before you begin
|
15
|
+
|
16
|
+
There are a few setup steps you need to complete before you can use this library:
|
17
|
+
|
18
|
+
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
|
19
|
+
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
|
20
|
+
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/mybusinessaccountmanagement.googleapis.com) in the console.
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'google-apis-mybusinessaccountmanagement_v1', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-mybusinessaccountmanagement_v1
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/mybusinessaccountmanagement_v1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::MybusinessaccountmanagementV1::MyBusinessAccountManagementService.new
|
52
|
+
|
53
|
+
# Authenticate calls
|
54
|
+
client.authentication = # ... use the googleauth gem to create credentials
|
55
|
+
```
|
56
|
+
|
57
|
+
See the class reference docs for information on the methods you can call from a client.
|
58
|
+
|
59
|
+
## Documentation
|
60
|
+
|
61
|
+
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
|
+
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
|
+
|
66
|
+
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Mybusinessaccountmanagement service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the My Business Account Management API, see the {Google::Apis::MybusinessaccountmanagementV1::MyBusinessAccountManagementService class reference docs}.
|
69
|
+
|
70
|
+
## Which client should I use?
|
71
|
+
|
72
|
+
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
|
73
|
+
|
74
|
+
This library, `google-apis-mybusinessaccountmanagement_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://developers.google.com/my-business/) may provide guidance regarding the preferred client library to use.
|
83
|
+
|
84
|
+
## Supported Ruby versions
|
85
|
+
|
86
|
+
This library is supported on Ruby 2.5+.
|
87
|
+
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
|
93
|
+
|
94
|
+
## Support
|
95
|
+
|
96
|
+
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "google/apis/mybusinessaccountmanagement_v1"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/mybusinessaccountmanagement_v1/service.rb'
|
16
|
+
require 'google/apis/mybusinessaccountmanagement_v1/classes.rb'
|
17
|
+
require 'google/apis/mybusinessaccountmanagement_v1/representations.rb'
|
18
|
+
require 'google/apis/mybusinessaccountmanagement_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# My Business Account Management API
|
23
|
+
#
|
24
|
+
# The My Business Account Management API provides an interface for managing
|
25
|
+
# access to a location on Google.
|
26
|
+
#
|
27
|
+
# @see https://developers.google.com/my-business/
|
28
|
+
module MybusinessaccountmanagementV1
|
29
|
+
# Version of the My Business Account Management API this client connects to.
|
30
|
+
# This is NOT the gem version.
|
31
|
+
VERSION = 'V1'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,534 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module MybusinessaccountmanagementV1
|
24
|
+
|
25
|
+
# Request message for AccessControl.AcceptInvitation.
|
26
|
+
class AcceptInvitationRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
def initialize(**args)
|
30
|
+
update!(**args)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Update properties of this object
|
34
|
+
def update!(**args)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# An account is a container for your location. If you are the only user who
|
39
|
+
# manages locations for your business, you can use your personal Google Account.
|
40
|
+
# To share management of locations with multiple users, [create a business
|
41
|
+
# account] (https://support.google.com/business/answer/6085339?ref_topic=6085325)
|
42
|
+
# .
|
43
|
+
class Account
|
44
|
+
include Google::Apis::Core::Hashable
|
45
|
+
|
46
|
+
# Required. The name of the account. For an account of type `PERSONAL`, this is
|
47
|
+
# the first and last name of the user account.
|
48
|
+
# Corresponds to the JSON property `accountName`
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :account_name
|
51
|
+
|
52
|
+
# Output only. Account reference number if provisioned.
|
53
|
+
# Corresponds to the JSON property `accountNumber`
|
54
|
+
# @return [String]
|
55
|
+
attr_accessor :account_number
|
56
|
+
|
57
|
+
# Immutable. The resource name, in the format `accounts/`account_id``.
|
58
|
+
# Corresponds to the JSON property `name`
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :name
|
61
|
+
|
62
|
+
# Additional information stored for an organization.
|
63
|
+
# Corresponds to the JSON property `organizationInfo`
|
64
|
+
# @return [Google::Apis::MybusinessaccountmanagementV1::OrganizationInfo]
|
65
|
+
attr_accessor :organization_info
|
66
|
+
|
67
|
+
# Output only. Specifies the permission level the user has for this account.
|
68
|
+
# Corresponds to the JSON property `permissionLevel`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :permission_level
|
71
|
+
|
72
|
+
# Required. Input only. The resource name of the account which will be the
|
73
|
+
# primary owner of the account being created. It should be of the form `accounts/
|
74
|
+
# `account_id`/`.
|
75
|
+
# Corresponds to the JSON property `primaryOwner`
|
76
|
+
# @return [String]
|
77
|
+
attr_accessor :primary_owner
|
78
|
+
|
79
|
+
# Output only. Specifies the AccountRole of this account.
|
80
|
+
# Corresponds to the JSON property `role`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :role
|
83
|
+
|
84
|
+
# Required. Contains the type of account. Accounts of type PERSONAL and
|
85
|
+
# ORGANIZATION cannot be created using this API.
|
86
|
+
# Corresponds to the JSON property `type`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :type
|
89
|
+
|
90
|
+
# Output only. If verified, future locations that are created are automatically
|
91
|
+
# connected to Google Maps, and have Google+ pages created, without requiring
|
92
|
+
# moderation.
|
93
|
+
# Corresponds to the JSON property `verificationState`
|
94
|
+
# @return [String]
|
95
|
+
attr_accessor :verification_state
|
96
|
+
|
97
|
+
# Output only. Indicates whether the account is vetted by Google. A vetted
|
98
|
+
# account is able to verify locations via the VETTED_PARTNER method.
|
99
|
+
# Corresponds to the JSON property `vettedState`
|
100
|
+
# @return [String]
|
101
|
+
attr_accessor :vetted_state
|
102
|
+
|
103
|
+
def initialize(**args)
|
104
|
+
update!(**args)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Update properties of this object
|
108
|
+
def update!(**args)
|
109
|
+
@account_name = args[:account_name] if args.key?(:account_name)
|
110
|
+
@account_number = args[:account_number] if args.key?(:account_number)
|
111
|
+
@name = args[:name] if args.key?(:name)
|
112
|
+
@organization_info = args[:organization_info] if args.key?(:organization_info)
|
113
|
+
@permission_level = args[:permission_level] if args.key?(:permission_level)
|
114
|
+
@primary_owner = args[:primary_owner] if args.key?(:primary_owner)
|
115
|
+
@role = args[:role] if args.key?(:role)
|
116
|
+
@type = args[:type] if args.key?(:type)
|
117
|
+
@verification_state = args[:verification_state] if args.key?(:verification_state)
|
118
|
+
@vetted_state = args[:vetted_state] if args.key?(:vetted_state)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# An administrator of an Account or a location.
|
123
|
+
class Admin
|
124
|
+
include Google::Apis::Core::Hashable
|
125
|
+
|
126
|
+
# Optional. The name of the admin. When making the initial invitation, this is
|
127
|
+
# the invitee's email address. On `GET` calls, the user's email address is
|
128
|
+
# returned if the invitation is still pending. Otherwise, it contains the user's
|
129
|
+
# first and last names. This field is only needed to be set during admin
|
130
|
+
# creation.
|
131
|
+
# Corresponds to the JSON property `admin`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :admin
|
134
|
+
|
135
|
+
# Immutable. The resource name. For account admins, this is in the form: `
|
136
|
+
# accounts/`account_id`/admins/`admin_id`` For location admins, this is in the
|
137
|
+
# form: `locations/`location_id`/admins/`admin_id`` This field will be ignored
|
138
|
+
# if set during admin creation.
|
139
|
+
# Corresponds to the JSON property `name`
|
140
|
+
# @return [String]
|
141
|
+
attr_accessor :name
|
142
|
+
|
143
|
+
# Output only. Indicates whether this admin has a pending invitation for the
|
144
|
+
# specified resource.
|
145
|
+
# Corresponds to the JSON property `pendingInvitation`
|
146
|
+
# @return [Boolean]
|
147
|
+
attr_accessor :pending_invitation
|
148
|
+
alias_method :pending_invitation?, :pending_invitation
|
149
|
+
|
150
|
+
# Required. Specifies the role that this admin uses with the specified Account
|
151
|
+
# or Location.
|
152
|
+
# Corresponds to the JSON property `role`
|
153
|
+
# @return [String]
|
154
|
+
attr_accessor :role
|
155
|
+
|
156
|
+
def initialize(**args)
|
157
|
+
update!(**args)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update properties of this object
|
161
|
+
def update!(**args)
|
162
|
+
@admin = args[:admin] if args.key?(:admin)
|
163
|
+
@name = args[:name] if args.key?(:name)
|
164
|
+
@pending_invitation = args[:pending_invitation] if args.key?(:pending_invitation)
|
165
|
+
@role = args[:role] if args.key?(:role)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# Request message for AccessControl.DeclineInvitation.
|
170
|
+
class DeclineInvitationRequest
|
171
|
+
include Google::Apis::Core::Hashable
|
172
|
+
|
173
|
+
def initialize(**args)
|
174
|
+
update!(**args)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Update properties of this object
|
178
|
+
def update!(**args)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
183
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
184
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
185
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
186
|
+
# `Empty` is empty JSON object ````.
|
187
|
+
class Empty
|
188
|
+
include Google::Apis::Core::Hashable
|
189
|
+
|
190
|
+
def initialize(**args)
|
191
|
+
update!(**args)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Update properties of this object
|
195
|
+
def update!(**args)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
# Represents a pending invitation.
|
200
|
+
class Invitation
|
201
|
+
include Google::Apis::Core::Hashable
|
202
|
+
|
203
|
+
# Required. The resource name for the invitation. `accounts/`account_id`/
|
204
|
+
# invitations/`invitation_id``.
|
205
|
+
# Corresponds to the JSON property `name`
|
206
|
+
# @return [String]
|
207
|
+
attr_accessor :name
|
208
|
+
|
209
|
+
# Output only. The invited role on the account.
|
210
|
+
# Corresponds to the JSON property `role`
|
211
|
+
# @return [String]
|
212
|
+
attr_accessor :role
|
213
|
+
|
214
|
+
# An account is a container for your location. If you are the only user who
|
215
|
+
# manages locations for your business, you can use your personal Google Account.
|
216
|
+
# To share management of locations with multiple users, [create a business
|
217
|
+
# account] (https://support.google.com/business/answer/6085339?ref_topic=6085325)
|
218
|
+
# .
|
219
|
+
# Corresponds to the JSON property `targetAccount`
|
220
|
+
# @return [Google::Apis::MybusinessaccountmanagementV1::Account]
|
221
|
+
attr_accessor :target_account
|
222
|
+
|
223
|
+
# Represents a target location for a pending invitation.
|
224
|
+
# Corresponds to the JSON property `targetLocation`
|
225
|
+
# @return [Google::Apis::MybusinessaccountmanagementV1::TargetLocation]
|
226
|
+
attr_accessor :target_location
|
227
|
+
|
228
|
+
# Output only. Specifies which target types should appear in the response.
|
229
|
+
# Corresponds to the JSON property `targetType`
|
230
|
+
# @return [String]
|
231
|
+
attr_accessor :target_type
|
232
|
+
|
233
|
+
def initialize(**args)
|
234
|
+
update!(**args)
|
235
|
+
end
|
236
|
+
|
237
|
+
# Update properties of this object
|
238
|
+
def update!(**args)
|
239
|
+
@name = args[:name] if args.key?(:name)
|
240
|
+
@role = args[:role] if args.key?(:role)
|
241
|
+
@target_account = args[:target_account] if args.key?(:target_account)
|
242
|
+
@target_location = args[:target_location] if args.key?(:target_location)
|
243
|
+
@target_type = args[:target_type] if args.key?(:target_type)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
# Response message for AccessControl.ListAccountAdmins.
|
248
|
+
class ListAccountAdminsResponse
|
249
|
+
include Google::Apis::Core::Hashable
|
250
|
+
|
251
|
+
# A collection of Admin instances.
|
252
|
+
# Corresponds to the JSON property `accountAdmins`
|
253
|
+
# @return [Array<Google::Apis::MybusinessaccountmanagementV1::Admin>]
|
254
|
+
attr_accessor :account_admins
|
255
|
+
|
256
|
+
def initialize(**args)
|
257
|
+
update!(**args)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Update properties of this object
|
261
|
+
def update!(**args)
|
262
|
+
@account_admins = args[:account_admins] if args.key?(:account_admins)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
# Response message for Accounts.ListAccounts.
|
267
|
+
class ListAccountsResponse
|
268
|
+
include Google::Apis::Core::Hashable
|
269
|
+
|
270
|
+
# A collection of accounts to which the user has access. The personal account of
|
271
|
+
# the user doing the query will always be the first item of the result, unless
|
272
|
+
# it is filtered out.
|
273
|
+
# Corresponds to the JSON property `accounts`
|
274
|
+
# @return [Array<Google::Apis::MybusinessaccountmanagementV1::Account>]
|
275
|
+
attr_accessor :accounts
|
276
|
+
|
277
|
+
# If the number of accounts exceeds the requested page size, this field is
|
278
|
+
# populated with a token to fetch the next page of accounts on a subsequent call
|
279
|
+
# to `accounts.list`. If there are no more accounts, this field is not present
|
280
|
+
# in the response.
|
281
|
+
# Corresponds to the JSON property `nextPageToken`
|
282
|
+
# @return [String]
|
283
|
+
attr_accessor :next_page_token
|
284
|
+
|
285
|
+
def initialize(**args)
|
286
|
+
update!(**args)
|
287
|
+
end
|
288
|
+
|
289
|
+
# Update properties of this object
|
290
|
+
def update!(**args)
|
291
|
+
@accounts = args[:accounts] if args.key?(:accounts)
|
292
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
# Response message for AccessControl.ListInvitations.
|
297
|
+
class ListInvitationsResponse
|
298
|
+
include Google::Apis::Core::Hashable
|
299
|
+
|
300
|
+
# A collection of invitations that are pending for the account. The number of
|
301
|
+
# invitations listed here cannot exceed 1000.
|
302
|
+
# Corresponds to the JSON property `invitations`
|
303
|
+
# @return [Array<Google::Apis::MybusinessaccountmanagementV1::Invitation>]
|
304
|
+
attr_accessor :invitations
|
305
|
+
|
306
|
+
def initialize(**args)
|
307
|
+
update!(**args)
|
308
|
+
end
|
309
|
+
|
310
|
+
# Update properties of this object
|
311
|
+
def update!(**args)
|
312
|
+
@invitations = args[:invitations] if args.key?(:invitations)
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
# Response message for AccessControl.ListLocationAdmins.
|
317
|
+
class ListLocationAdminsResponse
|
318
|
+
include Google::Apis::Core::Hashable
|
319
|
+
|
320
|
+
# A collection of Admins.
|
321
|
+
# Corresponds to the JSON property `admins`
|
322
|
+
# @return [Array<Google::Apis::MybusinessaccountmanagementV1::Admin>]
|
323
|
+
attr_accessor :admins
|
324
|
+
|
325
|
+
def initialize(**args)
|
326
|
+
update!(**args)
|
327
|
+
end
|
328
|
+
|
329
|
+
# Update properties of this object
|
330
|
+
def update!(**args)
|
331
|
+
@admins = args[:admins] if args.key?(:admins)
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
# Additional information stored for an organization.
|
336
|
+
class OrganizationInfo
|
337
|
+
include Google::Apis::Core::Hashable
|
338
|
+
|
339
|
+
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
340
|
+
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
341
|
+
# Box or similar. It is not intended to model geographical locations (roads,
|
342
|
+
# towns, mountains). In typical usage an address would be created via user input
|
343
|
+
# or from importing existing data, depending on the type of process. Advice on
|
344
|
+
# address input / editing: - Use an i18n-ready address widget such as https://
|
345
|
+
# github.com/google/libaddressinput) - Users should not be presented with UI
|
346
|
+
# elements for input or editing of fields outside countries where that field is
|
347
|
+
# used. For more guidance on how to use this schema, please see: https://support.
|
348
|
+
# google.com/business/answer/6397478
|
349
|
+
# Corresponds to the JSON property `address`
|
350
|
+
# @return [Google::Apis::MybusinessaccountmanagementV1::PostalAddress]
|
351
|
+
attr_accessor :address
|
352
|
+
|
353
|
+
# Output only. The contact number for the organization.
|
354
|
+
# Corresponds to the JSON property `phoneNumber`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :phone_number
|
357
|
+
|
358
|
+
# Output only. The registered domain for the account.
|
359
|
+
# Corresponds to the JSON property `registeredDomain`
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :registered_domain
|
362
|
+
|
363
|
+
def initialize(**args)
|
364
|
+
update!(**args)
|
365
|
+
end
|
366
|
+
|
367
|
+
# Update properties of this object
|
368
|
+
def update!(**args)
|
369
|
+
@address = args[:address] if args.key?(:address)
|
370
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
371
|
+
@registered_domain = args[:registered_domain] if args.key?(:registered_domain)
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# Represents a postal address, e.g. for postal delivery or payments addresses.
|
376
|
+
# Given a postal address, a postal service can deliver items to a premise, P.O.
|
377
|
+
# Box or similar. It is not intended to model geographical locations (roads,
|
378
|
+
# towns, mountains). In typical usage an address would be created via user input
|
379
|
+
# or from importing existing data, depending on the type of process. Advice on
|
380
|
+
# address input / editing: - Use an i18n-ready address widget such as https://
|
381
|
+
# github.com/google/libaddressinput) - Users should not be presented with UI
|
382
|
+
# elements for input or editing of fields outside countries where that field is
|
383
|
+
# used. For more guidance on how to use this schema, please see: https://support.
|
384
|
+
# google.com/business/answer/6397478
|
385
|
+
class PostalAddress
|
386
|
+
include Google::Apis::Core::Hashable
|
387
|
+
|
388
|
+
# Unstructured address lines describing the lower levels of an address. Because
|
389
|
+
# values in address_lines do not have type information and may sometimes contain
|
390
|
+
# multiple values in a single field (e.g. "Austin, TX"), it is important that
|
391
|
+
# the line order is clear. The order of address lines should be "envelope order"
|
392
|
+
# for the country/region of the address. In places where this can vary (e.g.
|
393
|
+
# Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
|
394
|
+
# small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
|
395
|
+
# specific line of an address can be selected based on the language. The minimum
|
396
|
+
# permitted structural representation of an address consists of a region_code
|
397
|
+
# with all remaining information placed in the address_lines. It would be
|
398
|
+
# possible to format such an address very approximately without geocoding, but
|
399
|
+
# no semantic reasoning could be made about any of the address components until
|
400
|
+
# it was at least partially resolved. Creating an address only containing a
|
401
|
+
# region_code and address_lines, and then geocoding is the recommended way to
|
402
|
+
# handle completely unstructured addresses (as opposed to guessing which parts
|
403
|
+
# of the address should be localities or administrative areas).
|
404
|
+
# Corresponds to the JSON property `addressLines`
|
405
|
+
# @return [Array<String>]
|
406
|
+
attr_accessor :address_lines
|
407
|
+
|
408
|
+
# Optional. Highest administrative subdivision which is used for postal
|
409
|
+
# addresses of a country or region. For example, this can be a state, a province,
|
410
|
+
# an oblast, or a prefecture. Specifically, for Spain this is the province and
|
411
|
+
# not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
|
412
|
+
# countries don't use an administrative area in postal addresses. E.g. in
|
413
|
+
# Switzerland this should be left unpopulated.
|
414
|
+
# Corresponds to the JSON property `administrativeArea`
|
415
|
+
# @return [String]
|
416
|
+
attr_accessor :administrative_area
|
417
|
+
|
418
|
+
# Optional. BCP-47 language code of the contents of this address (if known).
|
419
|
+
# This is often the UI language of the input form or is expected to match one of
|
420
|
+
# the languages used in the address' country/region, or their transliterated
|
421
|
+
# equivalents. This can affect formatting in certain countries, but is not
|
422
|
+
# critical to the correctness of the data and will never affect any validation
|
423
|
+
# or other non-formatting related operations. If this value is not known, it
|
424
|
+
# should be omitted (rather than specifying a possibly incorrect default).
|
425
|
+
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
|
426
|
+
# Corresponds to the JSON property `languageCode`
|
427
|
+
# @return [String]
|
428
|
+
attr_accessor :language_code
|
429
|
+
|
430
|
+
# Optional. Generally refers to the city/town portion of the address. Examples:
|
431
|
+
# US city, IT comune, UK post town. In regions of the world where localities are
|
432
|
+
# not well defined or do not fit into this structure well, leave locality empty
|
433
|
+
# and use address_lines.
|
434
|
+
# Corresponds to the JSON property `locality`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :locality
|
437
|
+
|
438
|
+
# Optional. The name of the organization at the address.
|
439
|
+
# Corresponds to the JSON property `organization`
|
440
|
+
# @return [String]
|
441
|
+
attr_accessor :organization
|
442
|
+
|
443
|
+
# Optional. Postal code of the address. Not all countries use or require postal
|
444
|
+
# codes to be present, but where they are used, they may trigger additional
|
445
|
+
# validation with other parts of the address (e.g. state/zip validation in the U.
|
446
|
+
# S.A.).
|
447
|
+
# Corresponds to the JSON property `postalCode`
|
448
|
+
# @return [String]
|
449
|
+
attr_accessor :postal_code
|
450
|
+
|
451
|
+
# Optional. The recipient at the address. This field may, under certain
|
452
|
+
# circumstances, contain multiline information. For example, it might contain "
|
453
|
+
# care of" information.
|
454
|
+
# Corresponds to the JSON property `recipients`
|
455
|
+
# @return [Array<String>]
|
456
|
+
attr_accessor :recipients
|
457
|
+
|
458
|
+
# Required. CLDR region code of the country/region of the address. This is never
|
459
|
+
# inferred and it is up to the user to ensure the value is correct. See http://
|
460
|
+
# cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
|
461
|
+
# territory_information.html for details. Example: "CH" for Switzerland.
|
462
|
+
# Corresponds to the JSON property `regionCode`
|
463
|
+
# @return [String]
|
464
|
+
attr_accessor :region_code
|
465
|
+
|
466
|
+
# The schema revision of the `PostalAddress`. This must be set to 0, which is
|
467
|
+
# the latest revision. All new revisions **must** be backward compatible with
|
468
|
+
# old revisions.
|
469
|
+
# Corresponds to the JSON property `revision`
|
470
|
+
# @return [Fixnum]
|
471
|
+
attr_accessor :revision
|
472
|
+
|
473
|
+
# Optional. Additional, country-specific, sorting code. This is not used in most
|
474
|
+
# regions. Where it is used, the value is either a string like "CEDEX",
|
475
|
+
# optionally followed by a number (e.g. "CEDEX 7"), or just a number alone,
|
476
|
+
# representing the "sector code" (Jamaica), "delivery area indicator" (Malawi)
|
477
|
+
# or "post office indicator" (e.g. Côte d'Ivoire).
|
478
|
+
# Corresponds to the JSON property `sortingCode`
|
479
|
+
# @return [String]
|
480
|
+
attr_accessor :sorting_code
|
481
|
+
|
482
|
+
# Optional. Sublocality of the address. For example, this can be neighborhoods,
|
483
|
+
# boroughs, districts.
|
484
|
+
# Corresponds to the JSON property `sublocality`
|
485
|
+
# @return [String]
|
486
|
+
attr_accessor :sublocality
|
487
|
+
|
488
|
+
def initialize(**args)
|
489
|
+
update!(**args)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Update properties of this object
|
493
|
+
def update!(**args)
|
494
|
+
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
495
|
+
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
|
496
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
497
|
+
@locality = args[:locality] if args.key?(:locality)
|
498
|
+
@organization = args[:organization] if args.key?(:organization)
|
499
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
500
|
+
@recipients = args[:recipients] if args.key?(:recipients)
|
501
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
502
|
+
@revision = args[:revision] if args.key?(:revision)
|
503
|
+
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
|
504
|
+
@sublocality = args[:sublocality] if args.key?(:sublocality)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
# Represents a target location for a pending invitation.
|
509
|
+
class TargetLocation
|
510
|
+
include Google::Apis::Core::Hashable
|
511
|
+
|
512
|
+
# The address of the location to which the user is invited.
|
513
|
+
# Corresponds to the JSON property `address`
|
514
|
+
# @return [String]
|
515
|
+
attr_accessor :address
|
516
|
+
|
517
|
+
# The name of the location to which the user is invited.
|
518
|
+
# Corresponds to the JSON property `locationName`
|
519
|
+
# @return [String]
|
520
|
+
attr_accessor :location_name
|
521
|
+
|
522
|
+
def initialize(**args)
|
523
|
+
update!(**args)
|
524
|
+
end
|
525
|
+
|
526
|
+
# Update properties of this object
|
527
|
+
def update!(**args)
|
528
|
+
@address = args[:address] if args.key?(:address)
|
529
|
+
@location_name = args[:location_name] if args.key?(:location_name)
|
530
|
+
end
|
531
|
+
end
|
532
|
+
end
|
533
|
+
end
|
534
|
+
end
|