google-apis-playablelocations_v3 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-playablelocations_v3.rb +15 -0
- data/lib/google/apis/playablelocations_v3.rb +33 -0
- data/lib/google/apis/playablelocations_v3/classes.rb +586 -0
- data/lib/google/apis/playablelocations_v3/gem_version.rb +28 -0
- data/lib/google/apis/playablelocations_v3/representations.rb +273 -0
- data/lib/google/apis/playablelocations_v3/service.rb +159 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f15da2287f97170a79746a349e5b16dc89ef0032c34b8bfbb347dbee8f505025
|
4
|
+
data.tar.gz: 7738bc5e3e87b42f89db472aab6d7404d490ab46fc4b8fb00d56c327cfae99ac
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 843f2785a445d77a05c5716605e1128e8b7738c83102dabd0e1eab779d6ea4fc56adb736f0a90dddb79b6148fd678800911a26dd4e879b85246856224315988a
|
7
|
+
data.tar.gz: 613355945ba63ea28a83f88c84909ae16d77683b0c46046ad1238c341edef8e131e0e0fcf3e0da6aa24d672bb4a3087c0099c56b1670385dd1efa9741ae3d8c4
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-playablelocations_v3
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/playablelocations_v3/*.rb
|
9
|
+
lib/google/apis/playablelocations_v3.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 V3 of the Playable Locations API
|
2
|
+
|
3
|
+
This is a simple client library for version V3 of the Playable Locations 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/playablelocations.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-playablelocations_v3', '~> 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-playablelocations_v3
|
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/playablelocations_v3"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::PlayablelocationsV3::PlayableLocationsService.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 Playablelocations service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Playable Locations API, see the {Google::Apis::PlayablelocationsV3::PlayableLocationsService 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-playablelocations_v3`, 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/maps/contact-sales/) 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/playablelocations_v3"
|
@@ -0,0 +1,33 @@
|
|
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/playablelocations_v3/service.rb'
|
16
|
+
require 'google/apis/playablelocations_v3/classes.rb'
|
17
|
+
require 'google/apis/playablelocations_v3/representations.rb'
|
18
|
+
require 'google/apis/playablelocations_v3/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Playable Locations API
|
23
|
+
#
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @see https://developers.google.com/maps/contact-sales/
|
27
|
+
module PlayablelocationsV3
|
28
|
+
# Version of the Playable Locations API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V3'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,586 @@
|
|
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 PlayablelocationsV3
|
24
|
+
|
25
|
+
# Encapsulates impression event details.
|
26
|
+
class GoogleMapsPlayablelocationsV3Impression
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# An arbitrary, developer-defined type identifier for each type of game object
|
30
|
+
# used in your game. Since players interact with differ types of game objects in
|
31
|
+
# different ways, this field allows you to segregate impression data by type for
|
32
|
+
# analysis. You should assign a unique `game_object_type` ID to represent a
|
33
|
+
# distinct type of game object in your game. For example, 1=monster location, 2=
|
34
|
+
# powerup location.
|
35
|
+
# Corresponds to the JSON property `gameObjectType`
|
36
|
+
# @return [Fixnum]
|
37
|
+
attr_accessor :game_object_type
|
38
|
+
|
39
|
+
# Required. The type of impression event.
|
40
|
+
# Corresponds to the JSON property `impressionType`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :impression_type
|
43
|
+
|
44
|
+
# Required. The name of the playable location.
|
45
|
+
# Corresponds to the JSON property `locationName`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :location_name
|
48
|
+
|
49
|
+
def initialize(**args)
|
50
|
+
update!(**args)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Update properties of this object
|
54
|
+
def update!(**args)
|
55
|
+
@game_object_type = args[:game_object_type] if args.key?(:game_object_type)
|
56
|
+
@impression_type = args[:impression_type] if args.key?(:impression_type)
|
57
|
+
@location_name = args[:location_name] if args.key?(:location_name)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# A request for logging impressions.
|
62
|
+
class GoogleMapsPlayablelocationsV3LogImpressionsRequest
|
63
|
+
include Google::Apis::Core::Hashable
|
64
|
+
|
65
|
+
# Client information.
|
66
|
+
# Corresponds to the JSON property `clientInfo`
|
67
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleMapsUnityClientInfo]
|
68
|
+
attr_accessor :client_info
|
69
|
+
|
70
|
+
# Required. Impression event details. The maximum number of impression reports
|
71
|
+
# that you can log at once is 50.
|
72
|
+
# Corresponds to the JSON property `impressions`
|
73
|
+
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3Impression>]
|
74
|
+
attr_accessor :impressions
|
75
|
+
|
76
|
+
# Required. A string that uniquely identifies the log impressions request. This
|
77
|
+
# allows you to detect duplicate requests. We recommend that you use UUIDs for
|
78
|
+
# this value. The value must not exceed 50 characters. You should reuse the `
|
79
|
+
# request_id` only when retrying a request in case of failure. In this case, the
|
80
|
+
# request must be identical to the one that failed.
|
81
|
+
# Corresponds to the JSON property `requestId`
|
82
|
+
# @return [String]
|
83
|
+
attr_accessor :request_id
|
84
|
+
|
85
|
+
def initialize(**args)
|
86
|
+
update!(**args)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Update properties of this object
|
90
|
+
def update!(**args)
|
91
|
+
@client_info = args[:client_info] if args.key?(:client_info)
|
92
|
+
@impressions = args[:impressions] if args.key?(:impressions)
|
93
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# A response for the LogImpressions method. This method returns no data upon
|
98
|
+
# success.
|
99
|
+
class GoogleMapsPlayablelocationsV3LogImpressionsResponse
|
100
|
+
include Google::Apis::Core::Hashable
|
101
|
+
|
102
|
+
def initialize(**args)
|
103
|
+
update!(**args)
|
104
|
+
end
|
105
|
+
|
106
|
+
# Update properties of this object
|
107
|
+
def update!(**args)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# A request for logging your player's bad location reports.
|
112
|
+
class GoogleMapsPlayablelocationsV3LogPlayerReportsRequest
|
113
|
+
include Google::Apis::Core::Hashable
|
114
|
+
|
115
|
+
# Client information.
|
116
|
+
# Corresponds to the JSON property `clientInfo`
|
117
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleMapsUnityClientInfo]
|
118
|
+
attr_accessor :client_info
|
119
|
+
|
120
|
+
# Required. Player reports. The maximum number of player reports that you can
|
121
|
+
# log at once is 50.
|
122
|
+
# Corresponds to the JSON property `playerReports`
|
123
|
+
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3PlayerReport>]
|
124
|
+
attr_accessor :player_reports
|
125
|
+
|
126
|
+
# Required. A string that uniquely identifies the log player reports request.
|
127
|
+
# This allows you to detect duplicate requests. We recommend that you use UUIDs
|
128
|
+
# for this value. The value must not exceed 50 characters. You should reuse the `
|
129
|
+
# request_id` only when retrying a request in the case of a failure. In that
|
130
|
+
# case, the request must be identical to the one that failed.
|
131
|
+
# Corresponds to the JSON property `requestId`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :request_id
|
134
|
+
|
135
|
+
def initialize(**args)
|
136
|
+
update!(**args)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Update properties of this object
|
140
|
+
def update!(**args)
|
141
|
+
@client_info = args[:client_info] if args.key?(:client_info)
|
142
|
+
@player_reports = args[:player_reports] if args.key?(:player_reports)
|
143
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# A response for the LogPlayerReports method. This method returns no data upon
|
148
|
+
# success.
|
149
|
+
class GoogleMapsPlayablelocationsV3LogPlayerReportsResponse
|
150
|
+
include Google::Apis::Core::Hashable
|
151
|
+
|
152
|
+
def initialize(**args)
|
153
|
+
update!(**args)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Update properties of this object
|
157
|
+
def update!(**args)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# A report submitted by a player about a playable location that is considered
|
162
|
+
# inappropriate for use in the game.
|
163
|
+
class GoogleMapsPlayablelocationsV3PlayerReport
|
164
|
+
include Google::Apis::Core::Hashable
|
165
|
+
|
166
|
+
# Language code (in BCP-47 format) indicating the language of the freeform
|
167
|
+
# description provided in `reason_details`. Examples are "en", "en-US" or "ja-
|
168
|
+
# Latn". For more information, see http://www.unicode.org/reports/tr35/#
|
169
|
+
# Unicode_locale_identifier.
|
170
|
+
# Corresponds to the JSON property `languageCode`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :language_code
|
173
|
+
|
174
|
+
# Required. The name of the playable location.
|
175
|
+
# Corresponds to the JSON property `locationName`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :location_name
|
178
|
+
|
179
|
+
# Required. A free-form description detailing why the playable location is
|
180
|
+
# considered bad.
|
181
|
+
# Corresponds to the JSON property `reasonDetails`
|
182
|
+
# @return [String]
|
183
|
+
attr_accessor :reason_details
|
184
|
+
|
185
|
+
# Required. One or more reasons why this playable location is considered bad.
|
186
|
+
# Corresponds to the JSON property `reasons`
|
187
|
+
# @return [Array<String>]
|
188
|
+
attr_accessor :reasons
|
189
|
+
|
190
|
+
def initialize(**args)
|
191
|
+
update!(**args)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Update properties of this object
|
195
|
+
def update!(**args)
|
196
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
197
|
+
@location_name = args[:location_name] if args.key?(:location_name)
|
198
|
+
@reason_details = args[:reason_details] if args.key?(:reason_details)
|
199
|
+
@reasons = args[:reasons] if args.key?(:reasons)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Specifies the area to search for playable locations.
|
204
|
+
class GoogleMapsPlayablelocationsV3SampleAreaFilter
|
205
|
+
include Google::Apis::Core::Hashable
|
206
|
+
|
207
|
+
# Required. The S2 cell ID of the area you want. This must be between cell level
|
208
|
+
# 11 and 14 (inclusive). S2 cells are 64-bit integers that identify areas on the
|
209
|
+
# Earth. They are hierarchical, and can therefore be used for spatial indexing.
|
210
|
+
# The S2 geometry library is available in a number of languages: * [C++](https://
|
211
|
+
# github.com/google/s2geometry) * [Java](https://github.com/google/s2-geometry-
|
212
|
+
# library-java) * [Go](https://github.com/golang/geo) * [Python](https://github.
|
213
|
+
# com/google/s2geometry/tree/master/src/python)
|
214
|
+
# Corresponds to the JSON property `s2CellId`
|
215
|
+
# @return [Fixnum]
|
216
|
+
attr_accessor :s2_cell_id
|
217
|
+
|
218
|
+
def initialize(**args)
|
219
|
+
update!(**args)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Update properties of this object
|
223
|
+
def update!(**args)
|
224
|
+
@s2_cell_id = args[:s2_cell_id] if args.key?(:s2_cell_id)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# Encapsulates a filter criterion for searching for a set of playable locations.
|
229
|
+
class GoogleMapsPlayablelocationsV3SampleCriterion
|
230
|
+
include Google::Apis::Core::Hashable
|
231
|
+
|
232
|
+
# Specifies which `PlayableLocation` fields are returned. `name` (which is used
|
233
|
+
# for logging impressions), `center_point` and `place_id` (or `plus_code`) are
|
234
|
+
# always returned. The following fields are omitted unless you specify them here:
|
235
|
+
# * snapped_point * types Note: The more fields you include, the more expensive
|
236
|
+
# in terms of data and associated latency your query will be.
|
237
|
+
# Corresponds to the JSON property `fieldsToReturn`
|
238
|
+
# @return [String]
|
239
|
+
attr_accessor :fields_to_return
|
240
|
+
|
241
|
+
# Specifies the filters to use when searching for playable locations.
|
242
|
+
# Corresponds to the JSON property `filter`
|
243
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleFilter]
|
244
|
+
attr_accessor :filter
|
245
|
+
|
246
|
+
# Required. An arbitrary, developer-defined identifier of the type of game
|
247
|
+
# object that the playable location is used for. This field allows you to
|
248
|
+
# specify criteria per game object type when searching for playable locations.
|
249
|
+
# You should assign a unique `game_object_type` ID across all `request_criteria`
|
250
|
+
# to represent a distinct type of game object. For example, 1=monster location,
|
251
|
+
# 2=powerup location. The response contains a map.
|
252
|
+
# Corresponds to the JSON property `gameObjectType`
|
253
|
+
# @return [Fixnum]
|
254
|
+
attr_accessor :game_object_type
|
255
|
+
|
256
|
+
def initialize(**args)
|
257
|
+
update!(**args)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Update properties of this object
|
261
|
+
def update!(**args)
|
262
|
+
@fields_to_return = args[:fields_to_return] if args.key?(:fields_to_return)
|
263
|
+
@filter = args[:filter] if args.key?(:filter)
|
264
|
+
@game_object_type = args[:game_object_type] if args.key?(:game_object_type)
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# Specifies the filters to use when searching for playable locations.
|
269
|
+
class GoogleMapsPlayablelocationsV3SampleFilter
|
270
|
+
include Google::Apis::Core::Hashable
|
271
|
+
|
272
|
+
# Restricts the set of playable locations to just the [types](/maps/
|
273
|
+
# documentation/gaming/tt/types) that you want.
|
274
|
+
# Corresponds to the JSON property `includedTypes`
|
275
|
+
# @return [Array<String>]
|
276
|
+
attr_accessor :included_types
|
277
|
+
|
278
|
+
# Specifies the maximum number of playable locations to return. This value must
|
279
|
+
# not be greater than 1000. The default value is 100. Only the top-ranking
|
280
|
+
# playable locations are returned.
|
281
|
+
# Corresponds to the JSON property `maxLocationCount`
|
282
|
+
# @return [Fixnum]
|
283
|
+
attr_accessor :max_location_count
|
284
|
+
|
285
|
+
# A set of options that specifies the separation between playable locations.
|
286
|
+
# Corresponds to the JSON property `spacing`
|
287
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleSpacingOptions]
|
288
|
+
attr_accessor :spacing
|
289
|
+
|
290
|
+
def initialize(**args)
|
291
|
+
update!(**args)
|
292
|
+
end
|
293
|
+
|
294
|
+
# Update properties of this object
|
295
|
+
def update!(**args)
|
296
|
+
@included_types = args[:included_types] if args.key?(:included_types)
|
297
|
+
@max_location_count = args[:max_location_count] if args.key?(:max_location_count)
|
298
|
+
@spacing = args[:spacing] if args.key?(:spacing)
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
# A geographical point suitable for placing game objects in location-based games.
|
303
|
+
class GoogleMapsPlayablelocationsV3SamplePlayableLocation
|
304
|
+
include Google::Apis::Core::Hashable
|
305
|
+
|
306
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
307
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
308
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
309
|
+
# within normalized ranges.
|
310
|
+
# Corresponds to the JSON property `centerPoint`
|
311
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleTypeLatLng]
|
312
|
+
attr_accessor :center_point
|
313
|
+
|
314
|
+
# Required. The name of this playable location.
|
315
|
+
# Corresponds to the JSON property `name`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :name
|
318
|
+
|
319
|
+
# A [place ID] (https://developers.google.com/places/place-id)
|
320
|
+
# Corresponds to the JSON property `placeId`
|
321
|
+
# @return [String]
|
322
|
+
attr_accessor :place_id
|
323
|
+
|
324
|
+
# A [plus code] (http://openlocationcode.com)
|
325
|
+
# Corresponds to the JSON property `plusCode`
|
326
|
+
# @return [String]
|
327
|
+
attr_accessor :plus_code
|
328
|
+
|
329
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
330
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
331
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
332
|
+
# within normalized ranges.
|
333
|
+
# Corresponds to the JSON property `snappedPoint`
|
334
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleTypeLatLng]
|
335
|
+
attr_accessor :snapped_point
|
336
|
+
|
337
|
+
# A collection of [Playable Location Types](/maps/documentation/gaming/tt/types)
|
338
|
+
# for this playable location. The first type in the collection is the primary
|
339
|
+
# type. Type information might not be available for all playable locations.
|
340
|
+
# Corresponds to the JSON property `types`
|
341
|
+
# @return [Array<String>]
|
342
|
+
attr_accessor :types
|
343
|
+
|
344
|
+
def initialize(**args)
|
345
|
+
update!(**args)
|
346
|
+
end
|
347
|
+
|
348
|
+
# Update properties of this object
|
349
|
+
def update!(**args)
|
350
|
+
@center_point = args[:center_point] if args.key?(:center_point)
|
351
|
+
@name = args[:name] if args.key?(:name)
|
352
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
353
|
+
@plus_code = args[:plus_code] if args.key?(:plus_code)
|
354
|
+
@snapped_point = args[:snapped_point] if args.key?(:snapped_point)
|
355
|
+
@types = args[:types] if args.key?(:types)
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
# A list of PlayableLocation objects that satisfies a single Criterion.
|
360
|
+
class GoogleMapsPlayablelocationsV3SamplePlayableLocationList
|
361
|
+
include Google::Apis::Core::Hashable
|
362
|
+
|
363
|
+
# A list of playable locations for this game object type.
|
364
|
+
# Corresponds to the JSON property `locations`
|
365
|
+
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocation>]
|
366
|
+
attr_accessor :locations
|
367
|
+
|
368
|
+
def initialize(**args)
|
369
|
+
update!(**args)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Update properties of this object
|
373
|
+
def update!(**args)
|
374
|
+
@locations = args[:locations] if args.key?(:locations)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
# Life of a query: - When a game starts in a new location, your game server
|
379
|
+
# issues a SamplePlayableLocations request. The request specifies the S2 cell,
|
380
|
+
# and contains one or more "criteria" for filtering: - Criterion 0: i locations
|
381
|
+
# for long-lived bases, or level 0 monsters, or... - Criterion 1: j locations
|
382
|
+
# for short-lived bases, or level 1 monsters, ... - Criterion 2: k locations for
|
383
|
+
# random objects. - etc (up to 5 criterion may be specified). `
|
384
|
+
# PlayableLocationList` will then contain mutually exclusive lists of `
|
385
|
+
# PlayableLocation` objects that satisfy each of the criteria. Think of it as a
|
386
|
+
# collection of real-world locations that you can then associate with your game
|
387
|
+
# state. Note: These points are impermanent in nature. E.g, parks can close, and
|
388
|
+
# places can be removed. The response specifies how long you can expect the
|
389
|
+
# playable locations to last. Once they expire, you should query the `
|
390
|
+
# samplePlayableLocations` API again to get a fresh view of the real world.
|
391
|
+
class GoogleMapsPlayablelocationsV3SamplePlayableLocationsRequest
|
392
|
+
include Google::Apis::Core::Hashable
|
393
|
+
|
394
|
+
# Specifies the area to search for playable locations.
|
395
|
+
# Corresponds to the JSON property `areaFilter`
|
396
|
+
# @return [Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleAreaFilter]
|
397
|
+
attr_accessor :area_filter
|
398
|
+
|
399
|
+
# Required. Specifies one or more (up to 5) criteria for filtering the returned
|
400
|
+
# playable locations.
|
401
|
+
# Corresponds to the JSON property `criteria`
|
402
|
+
# @return [Array<Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleCriterion>]
|
403
|
+
attr_accessor :criteria
|
404
|
+
|
405
|
+
def initialize(**args)
|
406
|
+
update!(**args)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Update properties of this object
|
410
|
+
def update!(**args)
|
411
|
+
@area_filter = args[:area_filter] if args.key?(:area_filter)
|
412
|
+
@criteria = args[:criteria] if args.key?(:criteria)
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
# Response for the SamplePlayableLocations method.
|
417
|
+
class GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
|
418
|
+
include Google::Apis::Core::Hashable
|
419
|
+
|
420
|
+
# Each PlayableLocation object corresponds to a game_object_type specified in
|
421
|
+
# the request.
|
422
|
+
# Corresponds to the JSON property `locationsPerGameObjectType`
|
423
|
+
# @return [Hash<String,Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationList>]
|
424
|
+
attr_accessor :locations_per_game_object_type
|
425
|
+
|
426
|
+
# Required. Specifies the "time-to-live" for the set of playable locations. You
|
427
|
+
# can use this value to determine how long to cache the set of playable
|
428
|
+
# locations. After this length of time, your back-end game server should issue a
|
429
|
+
# new SamplePlayableLocations request to get a fresh set of playable locations (
|
430
|
+
# because for example, they might have been removed, a park might have closed
|
431
|
+
# for the day, a business might have closed permanently).
|
432
|
+
# Corresponds to the JSON property `ttl`
|
433
|
+
# @return [String]
|
434
|
+
attr_accessor :ttl
|
435
|
+
|
436
|
+
def initialize(**args)
|
437
|
+
update!(**args)
|
438
|
+
end
|
439
|
+
|
440
|
+
# Update properties of this object
|
441
|
+
def update!(**args)
|
442
|
+
@locations_per_game_object_type = args[:locations_per_game_object_type] if args.key?(:locations_per_game_object_type)
|
443
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
447
|
+
# A set of options that specifies the separation between playable locations.
|
448
|
+
class GoogleMapsPlayablelocationsV3SampleSpacingOptions
|
449
|
+
include Google::Apis::Core::Hashable
|
450
|
+
|
451
|
+
# Required. The minimum spacing between any two playable locations, measured in
|
452
|
+
# meters. The minimum value is 30. The maximum value is 1000. Inputs will be
|
453
|
+
# rounded up to the next 10 meter interval. The default value is 200m. Set this
|
454
|
+
# field to remove tight clusters of playable locations. Note: The spacing is a
|
455
|
+
# greedy algorithm. It optimizes for selecting the highest ranking locations
|
456
|
+
# first, not to maximize the number of locations selected. Consider the
|
457
|
+
# following scenario: * Rank: A: 2, B: 1, C: 3. * Distance: A--200m--B--200m--C
|
458
|
+
# If spacing=250, it will pick the highest ranked location [B], not [A, C]. Note:
|
459
|
+
# Spacing works within the game object type itself, as well as the previous
|
460
|
+
# ones. Suppose three game object types, each with the following spacing: * X:
|
461
|
+
# 400m, Y: undefined, Z: 200m. 1. Add locations for X, within 400m of each other.
|
462
|
+
# 2. Add locations for Y, without any spacing. 3. Finally, add locations for Z
|
463
|
+
# within 200m of each other as well X and Y. The distance diagram between those
|
464
|
+
# locations end up as: * From->To. * X->X: 400m * Y->X, Y->Y: unspecified. * Z->
|
465
|
+
# X, Z->Y, Z->Z: 200m.
|
466
|
+
# Corresponds to the JSON property `minSpacingMeters`
|
467
|
+
# @return [Float]
|
468
|
+
attr_accessor :min_spacing_meters
|
469
|
+
|
470
|
+
# Specifies whether the minimum spacing constraint applies to the center-point
|
471
|
+
# or to the snapped point of playable locations. The default value is `
|
472
|
+
# CENTER_POINT`. If a snapped point is not available for a playable location,
|
473
|
+
# its center-point is used instead. Set this to the point type used in your game.
|
474
|
+
# Corresponds to the JSON property `pointType`
|
475
|
+
# @return [String]
|
476
|
+
attr_accessor :point_type
|
477
|
+
|
478
|
+
def initialize(**args)
|
479
|
+
update!(**args)
|
480
|
+
end
|
481
|
+
|
482
|
+
# Update properties of this object
|
483
|
+
def update!(**args)
|
484
|
+
@min_spacing_meters = args[:min_spacing_meters] if args.key?(:min_spacing_meters)
|
485
|
+
@point_type = args[:point_type] if args.key?(:point_type)
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
489
|
+
# Client information.
|
490
|
+
class GoogleMapsUnityClientInfo
|
491
|
+
include Google::Apis::Core::Hashable
|
492
|
+
|
493
|
+
# API client name and version. For example, the SDK calling the API. The exact
|
494
|
+
# format is up to the client.
|
495
|
+
# Corresponds to the JSON property `apiClient`
|
496
|
+
# @return [String]
|
497
|
+
attr_accessor :api_client
|
498
|
+
|
499
|
+
# Application ID, such as the package name on Android and the bundle identifier
|
500
|
+
# on iOS platforms.
|
501
|
+
# Corresponds to the JSON property `applicationId`
|
502
|
+
# @return [String]
|
503
|
+
attr_accessor :application_id
|
504
|
+
|
505
|
+
# Application version number, such as "1.2.3". The exact format is application-
|
506
|
+
# dependent.
|
507
|
+
# Corresponds to the JSON property `applicationVersion`
|
508
|
+
# @return [String]
|
509
|
+
attr_accessor :application_version
|
510
|
+
|
511
|
+
# Device model as reported by the device. The exact format is platform-dependent.
|
512
|
+
# Corresponds to the JSON property `deviceModel`
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :device_model
|
515
|
+
|
516
|
+
# Language code (in BCP-47 format) indicating the UI language of the client.
|
517
|
+
# Examples are "en", "en-US" or "ja-Latn". For more information, see http://www.
|
518
|
+
# unicode.org/reports/tr35/#Unicode_locale_identifier.
|
519
|
+
# Corresponds to the JSON property `languageCode`
|
520
|
+
# @return [String]
|
521
|
+
attr_accessor :language_code
|
522
|
+
|
523
|
+
# Operating system name and version as reported by the OS. For example, "Mac OS
|
524
|
+
# X 10.10.4". The exact format is platform-dependent.
|
525
|
+
# Corresponds to the JSON property `operatingSystem`
|
526
|
+
# @return [String]
|
527
|
+
attr_accessor :operating_system
|
528
|
+
|
529
|
+
# Build number/version of the operating system. e.g., the contents of android.os.
|
530
|
+
# Build.ID in Android, or the contents of sysctl "kern.osversion" in iOS.
|
531
|
+
# Corresponds to the JSON property `operatingSystemBuild`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :operating_system_build
|
534
|
+
|
535
|
+
# Platform where the application is running.
|
536
|
+
# Corresponds to the JSON property `platform`
|
537
|
+
# @return [String]
|
538
|
+
attr_accessor :platform
|
539
|
+
|
540
|
+
def initialize(**args)
|
541
|
+
update!(**args)
|
542
|
+
end
|
543
|
+
|
544
|
+
# Update properties of this object
|
545
|
+
def update!(**args)
|
546
|
+
@api_client = args[:api_client] if args.key?(:api_client)
|
547
|
+
@application_id = args[:application_id] if args.key?(:application_id)
|
548
|
+
@application_version = args[:application_version] if args.key?(:application_version)
|
549
|
+
@device_model = args[:device_model] if args.key?(:device_model)
|
550
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
551
|
+
@operating_system = args[:operating_system] if args.key?(:operating_system)
|
552
|
+
@operating_system_build = args[:operating_system_build] if args.key?(:operating_system_build)
|
553
|
+
@platform = args[:platform] if args.key?(:platform)
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
557
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
558
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
559
|
+
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
560
|
+
# within normalized ranges.
|
561
|
+
class GoogleTypeLatLng
|
562
|
+
include Google::Apis::Core::Hashable
|
563
|
+
|
564
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
565
|
+
# Corresponds to the JSON property `latitude`
|
566
|
+
# @return [Float]
|
567
|
+
attr_accessor :latitude
|
568
|
+
|
569
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
570
|
+
# Corresponds to the JSON property `longitude`
|
571
|
+
# @return [Float]
|
572
|
+
attr_accessor :longitude
|
573
|
+
|
574
|
+
def initialize(**args)
|
575
|
+
update!(**args)
|
576
|
+
end
|
577
|
+
|
578
|
+
# Update properties of this object
|
579
|
+
def update!(**args)
|
580
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
581
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
582
|
+
end
|
583
|
+
end
|
584
|
+
end
|
585
|
+
end
|
586
|
+
end
|