google-api-client 0.41.0 → 0.41.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -0
  3. data/generated/google/apis/admin_directory_v1.rb +1 -1
  4. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  5. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  6. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  7. data/generated/google/apis/apigee_v1.rb +1 -1
  8. data/generated/google/apis/apigee_v1/classes.rb +132 -42
  9. data/generated/google/apis/apigee_v1/representations.rb +16 -0
  10. data/generated/google/apis/apigee_v1/service.rb +23 -24
  11. data/generated/google/apis/bigquery_v2.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/classes.rb +36 -6
  13. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  14. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  15. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  16. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  18. data/generated/google/apis/civicinfo_v2.rb +2 -2
  19. data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
  20. data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
  21. data/generated/google/apis/civicinfo_v2/service.rb +27 -62
  22. data/generated/google/apis/cloudasset_v1.rb +1 -1
  23. data/generated/google/apis/cloudasset_v1/classes.rb +391 -3
  24. data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
  25. data/generated/google/apis/cloudasset_v1/service.rb +178 -0
  26. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  27. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  28. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  29. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  30. data/generated/google/apis/cloudbuild_v1/service.rb +0 -42
  31. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  32. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  33. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  34. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -6
  35. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  36. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  38. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -3
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -3
  41. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  42. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  43. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  44. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  45. data/generated/google/apis/composer_v1beta1.rb +1 -1
  46. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  47. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  48. data/generated/google/apis/compute_alpha.rb +1 -1
  49. data/generated/google/apis/compute_alpha/classes.rb +45 -31
  50. data/generated/google/apis/compute_alpha/service.rb +9 -4
  51. data/generated/google/apis/compute_beta.rb +1 -1
  52. data/generated/google/apis/compute_beta/classes.rb +262 -31
  53. data/generated/google/apis/compute_beta/representations.rb +70 -0
  54. data/generated/google/apis/compute_beta/service.rb +233 -4
  55. data/generated/google/apis/compute_v1.rb +1 -1
  56. data/generated/google/apis/compute_v1/classes.rb +592 -29
  57. data/generated/google/apis/compute_v1/representations.rb +182 -0
  58. data/generated/google/apis/compute_v1/service.rb +501 -4
  59. data/generated/google/apis/container_v1.rb +1 -1
  60. data/generated/google/apis/container_v1/classes.rb +29 -3
  61. data/generated/google/apis/container_v1/representations.rb +15 -0
  62. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  63. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  64. data/generated/google/apis/content_v2_1.rb +1 -1
  65. data/generated/google/apis/content_v2_1/classes.rb +172 -0
  66. data/generated/google/apis/content_v2_1/representations.rb +71 -0
  67. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  68. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  69. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  70. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  71. data/generated/google/apis/dialogflow_v2.rb +1 -1
  72. data/generated/google/apis/dialogflow_v2/classes.rb +194 -20
  73. data/generated/google/apis/dialogflow_v2/representations.rb +77 -0
  74. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  75. data/generated/google/apis/dialogflow_v2beta1/classes.rb +194 -20
  76. data/generated/google/apis/dialogflow_v2beta1/representations.rb +77 -0
  77. data/generated/google/apis/displayvideo_v1.rb +1 -1
  78. data/generated/google/apis/displayvideo_v1/classes.rb +105 -2
  79. data/generated/google/apis/displayvideo_v1/representations.rb +11 -0
  80. data/generated/google/apis/displayvideo_v1/service.rb +78 -1
  81. data/generated/google/apis/dlp_v2.rb +1 -1
  82. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  83. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  84. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  85. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  86. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  87. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  88. data/generated/google/apis/fcm_v1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1.rb +1 -1
  90. data/generated/google/apis/healthcare_v1/classes.rb +6 -6
  91. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  92. data/generated/google/apis/healthcare_v1beta1/classes.rb +6 -6
  93. data/generated/google/apis/logging_v2.rb +1 -1
  94. data/generated/google/apis/logging_v2/classes.rb +69 -21
  95. data/generated/google/apis/ml_v1.rb +1 -1
  96. data/generated/google/apis/ml_v1/classes.rb +8 -0
  97. data/generated/google/apis/ml_v1/representations.rb +1 -0
  98. data/generated/google/apis/monitoring_v3.rb +1 -1
  99. data/generated/google/apis/monitoring_v3/classes.rb +2 -2
  100. data/generated/google/apis/people_v1.rb +4 -1
  101. data/generated/google/apis/playablelocations_v3.rb +31 -0
  102. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  103. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  104. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  105. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  106. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +19 -0
  107. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
  108. data/generated/google/apis/pubsub_v1.rb +1 -1
  109. data/generated/google/apis/pubsub_v1/classes.rb +4 -2
  110. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  111. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  112. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  113. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  114. data/generated/google/apis/redis_v1.rb +1 -1
  115. data/generated/google/apis/redis_v1/classes.rb +1 -1
  116. data/generated/google/apis/redis_v1/service.rb +1 -1
  117. data/generated/google/apis/redis_v1beta1.rb +1 -1
  118. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  119. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  120. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  121. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  122. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  123. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  124. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  125. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  126. data/generated/google/apis/run_v1.rb +2 -2
  127. data/generated/google/apis/run_v1/classes.rb +4 -1
  128. data/generated/google/apis/run_v1/service.rb +1 -1
  129. data/generated/google/apis/run_v1alpha1.rb +2 -2
  130. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  131. data/generated/google/apis/run_v1beta1.rb +2 -2
  132. data/generated/google/apis/run_v1beta1/service.rb +1 -1
  133. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  134. data/generated/google/apis/sasportal_v1alpha1/classes.rb +19 -0
  135. data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
  136. data/generated/google/apis/secretmanager_v1.rb +1 -1
  137. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  138. data/generated/google/apis/securitycenter_v1.rb +1 -1
  139. data/generated/google/apis/securitycenter_v1/service.rb +4 -5
  140. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  141. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +2 -5
  142. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  143. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -0
  144. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  145. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  146. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -0
  147. data/generated/google/apis/sheets_v4.rb +1 -1
  148. data/generated/google/apis/sheets_v4/classes.rb +90 -0
  149. data/generated/google/apis/spanner_v1.rb +1 -1
  150. data/generated/google/apis/spanner_v1/classes.rb +25 -20
  151. data/generated/google/apis/spanner_v1/service.rb +2 -0
  152. data/generated/google/apis/speech_v1.rb +1 -1
  153. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  154. data/generated/google/apis/storage_v1.rb +1 -1
  155. data/generated/google/apis/storage_v1/service.rb +2 -3
  156. data/generated/google/apis/texttospeech_v1.rb +1 -1
  157. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  158. data/generated/google/apis/vectortile_v1.rb +31 -0
  159. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  160. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  161. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  162. data/generated/google/apis/webfonts_v1.rb +5 -5
  163. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  164. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  165. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  166. data/lib/google/apis/version.rb +1 -1
  167. metadata +15 -3
@@ -0,0 +1,329 @@
1
+ # Copyright 2015 Google Inc.
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 VectortileV1
24
+
25
+ class Area
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ExtrudedArea
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Feature
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class FeatureTile
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class FirstDerivativeElevationGrid
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Geometry
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Line
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ModeledVolume
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ProviderInfo
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Relation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class RoadInfo
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Row
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class SecondDerivativeElevationGrid
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class SegmentInfo
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class TerrainTile
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class TileCoordinates
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class TriangleStrip
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Vertex2DList
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Vertex3DList
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Area
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :has_external_edges, as: 'hasExternalEdges'
143
+ collection :internal_edges, as: 'internalEdges'
144
+ collection :loop_breaks, as: 'loopBreaks'
145
+ collection :triangle_indices, as: 'triangleIndices'
146
+ property :type, as: 'type'
147
+ property :vertex_offsets, as: 'vertexOffsets', class: Google::Apis::VectortileV1::Vertex2DList, decorator: Google::Apis::VectortileV1::Vertex2DList::Representation
148
+
149
+ property :z_order, as: 'zOrder'
150
+ end
151
+ end
152
+
153
+ class ExtrudedArea
154
+ # @private
155
+ class Representation < Google::Apis::Core::JsonRepresentation
156
+ property :area, as: 'area', class: Google::Apis::VectortileV1::Area, decorator: Google::Apis::VectortileV1::Area::Representation
157
+
158
+ property :max_z, as: 'maxZ'
159
+ property :min_z, as: 'minZ'
160
+ end
161
+ end
162
+
163
+ class Feature
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ property :display_name, as: 'displayName'
167
+ property :geometry, as: 'geometry', class: Google::Apis::VectortileV1::Geometry, decorator: Google::Apis::VectortileV1::Geometry::Representation
168
+
169
+ property :place_id, as: 'placeId'
170
+ collection :relations, as: 'relations', class: Google::Apis::VectortileV1::Relation, decorator: Google::Apis::VectortileV1::Relation::Representation
171
+
172
+ property :segment_info, as: 'segmentInfo', class: Google::Apis::VectortileV1::SegmentInfo, decorator: Google::Apis::VectortileV1::SegmentInfo::Representation
173
+
174
+ property :type, as: 'type'
175
+ end
176
+ end
177
+
178
+ class FeatureTile
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ property :coordinates, as: 'coordinates', class: Google::Apis::VectortileV1::TileCoordinates, decorator: Google::Apis::VectortileV1::TileCoordinates::Representation
182
+
183
+ collection :features, as: 'features', class: Google::Apis::VectortileV1::Feature, decorator: Google::Apis::VectortileV1::Feature::Representation
184
+
185
+ property :name, as: 'name'
186
+ collection :providers, as: 'providers', class: Google::Apis::VectortileV1::ProviderInfo, decorator: Google::Apis::VectortileV1::ProviderInfo::Representation
187
+
188
+ property :status, as: 'status'
189
+ property :version_id, as: 'versionId'
190
+ end
191
+ end
192
+
193
+ class FirstDerivativeElevationGrid
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :altitude_multiplier, as: 'altitudeMultiplier'
197
+ collection :rows, as: 'rows', class: Google::Apis::VectortileV1::Row, decorator: Google::Apis::VectortileV1::Row::Representation
198
+
199
+ end
200
+ end
201
+
202
+ class Geometry
203
+ # @private
204
+ class Representation < Google::Apis::Core::JsonRepresentation
205
+ collection :areas, as: 'areas', class: Google::Apis::VectortileV1::Area, decorator: Google::Apis::VectortileV1::Area::Representation
206
+
207
+ collection :extruded_areas, as: 'extrudedAreas', class: Google::Apis::VectortileV1::ExtrudedArea, decorator: Google::Apis::VectortileV1::ExtrudedArea::Representation
208
+
209
+ collection :lines, as: 'lines', class: Google::Apis::VectortileV1::Line, decorator: Google::Apis::VectortileV1::Line::Representation
210
+
211
+ collection :modeled_volumes, as: 'modeledVolumes', class: Google::Apis::VectortileV1::ModeledVolume, decorator: Google::Apis::VectortileV1::ModeledVolume::Representation
212
+
213
+ end
214
+ end
215
+
216
+ class Line
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :vertex_offsets, as: 'vertexOffsets', class: Google::Apis::VectortileV1::Vertex2DList, decorator: Google::Apis::VectortileV1::Vertex2DList::Representation
220
+
221
+ property :z_order, as: 'zOrder'
222
+ end
223
+ end
224
+
225
+ class ModeledVolume
226
+ # @private
227
+ class Representation < Google::Apis::Core::JsonRepresentation
228
+ collection :strips, as: 'strips', class: Google::Apis::VectortileV1::TriangleStrip, decorator: Google::Apis::VectortileV1::TriangleStrip::Representation
229
+
230
+ property :vertex_offsets, as: 'vertexOffsets', class: Google::Apis::VectortileV1::Vertex3DList, decorator: Google::Apis::VectortileV1::Vertex3DList::Representation
231
+
232
+ end
233
+ end
234
+
235
+ class ProviderInfo
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :description, as: 'description'
239
+ end
240
+ end
241
+
242
+ class Relation
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :related_feature_index, as: 'relatedFeatureIndex'
246
+ property :relation_type, as: 'relationType'
247
+ end
248
+ end
249
+
250
+ class RoadInfo
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :is_private, as: 'isPrivate'
254
+ end
255
+ end
256
+
257
+ class Row
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ collection :altitude_diffs, as: 'altitudeDiffs'
261
+ end
262
+ end
263
+
264
+ class SecondDerivativeElevationGrid
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :altitude_multiplier, as: 'altitudeMultiplier'
268
+ property :column_count, as: 'columnCount'
269
+ property :encoded_data, :base64 => true, as: 'encodedData'
270
+ property :row_count, as: 'rowCount'
271
+ end
272
+ end
273
+
274
+ class SegmentInfo
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :road_info, as: 'roadInfo', class: Google::Apis::VectortileV1::RoadInfo, decorator: Google::Apis::VectortileV1::RoadInfo::Representation
278
+
279
+ end
280
+ end
281
+
282
+ class TerrainTile
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :coordinates, as: 'coordinates', class: Google::Apis::VectortileV1::TileCoordinates, decorator: Google::Apis::VectortileV1::TileCoordinates::Representation
286
+
287
+ property :first_derivative, as: 'firstDerivative', class: Google::Apis::VectortileV1::FirstDerivativeElevationGrid, decorator: Google::Apis::VectortileV1::FirstDerivativeElevationGrid::Representation
288
+
289
+ property :name, as: 'name'
290
+ property :second_derivative, as: 'secondDerivative', class: Google::Apis::VectortileV1::SecondDerivativeElevationGrid, decorator: Google::Apis::VectortileV1::SecondDerivativeElevationGrid::Representation
291
+
292
+ end
293
+ end
294
+
295
+ class TileCoordinates
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :x, as: 'x'
299
+ property :y, as: 'y'
300
+ property :zoom, as: 'zoom'
301
+ end
302
+ end
303
+
304
+ class TriangleStrip
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ collection :vertex_indices, as: 'vertexIndices'
308
+ end
309
+ end
310
+
311
+ class Vertex2DList
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ collection :x_offsets, as: 'xOffsets'
315
+ collection :y_offsets, as: 'yOffsets'
316
+ end
317
+ end
318
+
319
+ class Vertex3DList
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ collection :x_offsets, as: 'xOffsets'
323
+ collection :y_offsets, as: 'yOffsets'
324
+ collection :z_offsets, as: 'zOffsets'
325
+ end
326
+ end
327
+ end
328
+ end
329
+ end
@@ -0,0 +1,268 @@
1
+ # Copyright 2015 Google Inc.
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module VectortileV1
23
+ # Semantic Tile API
24
+ #
25
+ # Serves vector tiles containing geospatial data.
26
+ #
27
+ # @example
28
+ # require 'google/apis/vectortile_v1'
29
+ #
30
+ # Vectortile = Google::Apis::VectortileV1 # Alias the module
31
+ # service = Vectortile::SemanticTileService.new
32
+ #
33
+ # @see https://developers.google.com/maps/contact-sales/
34
+ class SemanticTileService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://vectortile.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets a feature tile by its tile resource name.
51
+ # @param [String] name
52
+ # Required. Resource name of the tile. The tile resource name is prefixed by
53
+ # its collection ID `tiles/` followed by the resource ID, which encodes the
54
+ # tile's global x and y coordinates and zoom level as `@<x>,<y>,<zoom>z`.
55
+ # For example, `tiles/@1,2,3z`.
56
+ # @param [String] client_info_api_client
57
+ # API client name and version. For example, the SDK calling the API. The
58
+ # exact format is up to the client.
59
+ # @param [String] client_info_application_id
60
+ # Application ID, such as the package name on Android and the bundle
61
+ # identifier on iOS platforms.
62
+ # @param [String] client_info_application_version
63
+ # Application version number, such as "1.2.3". The exact format is
64
+ # application-dependent.
65
+ # @param [String] client_info_device_model
66
+ # Device model as reported by the device. The exact format is
67
+ # platform-dependent.
68
+ # @param [String] client_info_operating_system
69
+ # Operating system name and version as reported by the OS. For example,
70
+ # "Mac OS X 10.10.4". The exact format is platform-dependent.
71
+ # @param [String] client_info_platform
72
+ # Platform where the application is running.
73
+ # @param [String] client_info_user_id
74
+ # A client-generated user ID. The ID should be generated and persisted during
75
+ # the first user session or whenever a pre-existing ID is not found. The
76
+ # exact format is up to the client. This must be non-empty in a
77
+ # GetFeatureTileRequest (whether via the header or
78
+ # GetFeatureTileRequest.client_info).
79
+ # @param [String] client_tile_version_id
80
+ # Optional version id identifying the tile that is already in the client's
81
+ # cache. This field should be populated with the most recent version_id value
82
+ # returned by the API for the requested tile.
83
+ # If the version id is empty the server always returns a newly rendered tile.
84
+ # If it is provided the server checks if the tile contents would be identical
85
+ # to one that's already on the client, and if so, returns a stripped-down
86
+ # response tile with STATUS_OK_DATA_UNCHANGED instead.
87
+ # @param [Boolean] enable_detailed_highway_types
88
+ # Flag indicating whether detailed highway types should be returned. If this
89
+ # is set, the CONTROLLED_ACCESS_HIGHWAY type may be returned. If not, then
90
+ # these highways will have the generic HIGHWAY type.
91
+ # This exists for backwards compatibility reasons.
92
+ # @param [Boolean] enable_feature_names
93
+ # Flag indicating whether human-readable names should be returned for
94
+ # features. If this is set, the display_name field on the feature will be
95
+ # filled out.
96
+ # @param [Boolean] enable_modeled_volumes
97
+ # Flag indicating whether 3D building models should be enabled. If this is
98
+ # set structures will be returned as 3D modeled volumes rather than 2.5D
99
+ # extruded areas where possible.
100
+ # @param [Boolean] enable_political_features
101
+ # Flag indicating whether political features should be returned.
102
+ # @param [Boolean] enable_private_roads
103
+ # Flag indicating whether the returned tile will contain road features that
104
+ # are marked private. Private roads are indicated by the
105
+ # Feature.segment_info.road_info.is_private field.
106
+ # @param [Boolean] enable_unclipped_buildings
107
+ # Flag indicating whether unclipped buildings should be returned. If this is
108
+ # set, building render ops will extend beyond the tile boundary. Buildings
109
+ # will only be returned on the tile that contains their centroid.
110
+ # @param [String] language_code
111
+ # Required. The BCP-47 language code corresponding to the language in which
112
+ # the name was requested, such as "en-US" or "sr-Latn".
113
+ # For more information, see
114
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
115
+ # @param [String] region_code
116
+ # Required. The Unicode country/region code (CLDR) of the location from which
117
+ # the request is coming from, such as "US" and "419".
118
+ # For more information, see
119
+ # http://www.unicode.org/reports/tr35/#unicode_region_subtag.
120
+ # @param [String] fields
121
+ # Selector specifying which fields to include in a partial response.
122
+ # @param [String] quota_user
123
+ # Available to use for quota purposes for server-side applications. Can be any
124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
125
+ # @param [Google::Apis::RequestOptions] options
126
+ # Request-specific options
127
+ #
128
+ # @yield [result, err] Result & error if block supplied
129
+ # @yieldparam result [Google::Apis::VectortileV1::FeatureTile] parsed result object
130
+ # @yieldparam err [StandardError] error object if request failed
131
+ #
132
+ # @return [Google::Apis::VectortileV1::FeatureTile]
133
+ #
134
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
135
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
136
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
137
+ def get_featuretile(name, client_info_api_client: nil, client_info_application_id: nil, client_info_application_version: nil, client_info_device_model: nil, client_info_operating_system: nil, client_info_platform: nil, client_info_user_id: nil, client_tile_version_id: nil, enable_detailed_highway_types: nil, enable_feature_names: nil, enable_modeled_volumes: nil, enable_political_features: nil, enable_private_roads: nil, enable_unclipped_buildings: nil, language_code: nil, region_code: nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:get, 'v1/{+name}', options)
139
+ command.response_representation = Google::Apis::VectortileV1::FeatureTile::Representation
140
+ command.response_class = Google::Apis::VectortileV1::FeatureTile
141
+ command.params['name'] = name unless name.nil?
142
+ command.query['clientInfo.apiClient'] = client_info_api_client unless client_info_api_client.nil?
143
+ command.query['clientInfo.applicationId'] = client_info_application_id unless client_info_application_id.nil?
144
+ command.query['clientInfo.applicationVersion'] = client_info_application_version unless client_info_application_version.nil?
145
+ command.query['clientInfo.deviceModel'] = client_info_device_model unless client_info_device_model.nil?
146
+ command.query['clientInfo.operatingSystem'] = client_info_operating_system unless client_info_operating_system.nil?
147
+ command.query['clientInfo.platform'] = client_info_platform unless client_info_platform.nil?
148
+ command.query['clientInfo.userId'] = client_info_user_id unless client_info_user_id.nil?
149
+ command.query['clientTileVersionId'] = client_tile_version_id unless client_tile_version_id.nil?
150
+ command.query['enableDetailedHighwayTypes'] = enable_detailed_highway_types unless enable_detailed_highway_types.nil?
151
+ command.query['enableFeatureNames'] = enable_feature_names unless enable_feature_names.nil?
152
+ command.query['enableModeledVolumes'] = enable_modeled_volumes unless enable_modeled_volumes.nil?
153
+ command.query['enablePoliticalFeatures'] = enable_political_features unless enable_political_features.nil?
154
+ command.query['enablePrivateRoads'] = enable_private_roads unless enable_private_roads.nil?
155
+ command.query['enableUnclippedBuildings'] = enable_unclipped_buildings unless enable_unclipped_buildings.nil?
156
+ command.query['languageCode'] = language_code unless language_code.nil?
157
+ command.query['regionCode'] = region_code unless region_code.nil?
158
+ command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ execute_or_queue_command(command, &block)
161
+ end
162
+
163
+ # Gets a terrain tile by its tile resource name.
164
+ # @param [String] name
165
+ # Required. Resource name of the tile. The tile resource name is prefixed by
166
+ # its collection ID `terraintiles/` followed by the resource ID, which
167
+ # encodes the tile's global x and y coordinates and zoom level as
168
+ # `@<x>,<y>,<zoom>z`. For example, `terraintiles/@1,2,3z`.
169
+ # @param [Fixnum] altitude_precision_centimeters
170
+ # The precision of terrain altitudes in centimeters.
171
+ # Possible values: between 1 (cm level precision) and 1,000,000 (10-kilometer
172
+ # level precision).
173
+ # @param [String] client_info_api_client
174
+ # API client name and version. For example, the SDK calling the API. The
175
+ # exact format is up to the client.
176
+ # @param [String] client_info_application_id
177
+ # Application ID, such as the package name on Android and the bundle
178
+ # identifier on iOS platforms.
179
+ # @param [String] client_info_application_version
180
+ # Application version number, such as "1.2.3". The exact format is
181
+ # application-dependent.
182
+ # @param [String] client_info_device_model
183
+ # Device model as reported by the device. The exact format is
184
+ # platform-dependent.
185
+ # @param [String] client_info_operating_system
186
+ # Operating system name and version as reported by the OS. For example,
187
+ # "Mac OS X 10.10.4". The exact format is platform-dependent.
188
+ # @param [String] client_info_platform
189
+ # Platform where the application is running.
190
+ # @param [String] client_info_user_id
191
+ # A client-generated user ID. The ID should be generated and persisted during
192
+ # the first user session or whenever a pre-existing ID is not found. The
193
+ # exact format is up to the client. This must be non-empty in a
194
+ # GetFeatureTileRequest (whether via the header or
195
+ # GetFeatureTileRequest.client_info).
196
+ # @param [Fixnum] max_elevation_resolution_cells
197
+ # The maximum allowed resolution for the returned elevation heightmap.
198
+ # Possible values: between 1 and 1024 (and not less than
199
+ # min_elevation_resolution_cells).
200
+ # Over-sized heightmaps will be non-uniformly down-sampled such that each
201
+ # edge is no longer than this value. Non-uniformity is chosen to maximise the
202
+ # amount of preserved data.
203
+ # For example:
204
+ # Original resolution: 100px (width) * 30px (height)
205
+ # max_elevation_resolution: 30
206
+ # New resolution: 30px (width) * 30px (height)
207
+ # @param [Fixnum] min_elevation_resolution_cells
208
+ # The minimum allowed resolution for the returned elevation heightmap.
209
+ # Possible values: between 0 and 1024 (and not more than
210
+ # max_elevation_resolution_cells). Zero is supported for backward
211
+ # compatibility.
212
+ # Under-sized heightmaps will be non-uniformly up-sampled
213
+ # such that each edge is no shorter than this value. Non-uniformity is chosen
214
+ # to maximise the amount of preserved data.
215
+ # For example:
216
+ # Original resolution: 30px (width) * 10px (height)
217
+ # min_elevation_resolution: 30
218
+ # New resolution: 30px (width) * 30px (height)
219
+ # @param [Array<String>, String] terrain_formats
220
+ # Terrain formats that the client understands.
221
+ # @param [String] fields
222
+ # Selector specifying which fields to include in a partial response.
223
+ # @param [String] quota_user
224
+ # Available to use for quota purposes for server-side applications. Can be any
225
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
226
+ # @param [Google::Apis::RequestOptions] options
227
+ # Request-specific options
228
+ #
229
+ # @yield [result, err] Result & error if block supplied
230
+ # @yieldparam result [Google::Apis::VectortileV1::TerrainTile] parsed result object
231
+ # @yieldparam err [StandardError] error object if request failed
232
+ #
233
+ # @return [Google::Apis::VectortileV1::TerrainTile]
234
+ #
235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
238
+ def get_terraintile(name, altitude_precision_centimeters: nil, client_info_api_client: nil, client_info_application_id: nil, client_info_application_version: nil, client_info_device_model: nil, client_info_operating_system: nil, client_info_platform: nil, client_info_user_id: nil, max_elevation_resolution_cells: nil, min_elevation_resolution_cells: nil, terrain_formats: nil, fields: nil, quota_user: nil, options: nil, &block)
239
+ command = make_simple_command(:get, 'v1/{+name}', options)
240
+ command.response_representation = Google::Apis::VectortileV1::TerrainTile::Representation
241
+ command.response_class = Google::Apis::VectortileV1::TerrainTile
242
+ command.params['name'] = name unless name.nil?
243
+ command.query['altitudePrecisionCentimeters'] = altitude_precision_centimeters unless altitude_precision_centimeters.nil?
244
+ command.query['clientInfo.apiClient'] = client_info_api_client unless client_info_api_client.nil?
245
+ command.query['clientInfo.applicationId'] = client_info_application_id unless client_info_application_id.nil?
246
+ command.query['clientInfo.applicationVersion'] = client_info_application_version unless client_info_application_version.nil?
247
+ command.query['clientInfo.deviceModel'] = client_info_device_model unless client_info_device_model.nil?
248
+ command.query['clientInfo.operatingSystem'] = client_info_operating_system unless client_info_operating_system.nil?
249
+ command.query['clientInfo.platform'] = client_info_platform unless client_info_platform.nil?
250
+ command.query['clientInfo.userId'] = client_info_user_id unless client_info_user_id.nil?
251
+ command.query['maxElevationResolutionCells'] = max_elevation_resolution_cells unless max_elevation_resolution_cells.nil?
252
+ command.query['minElevationResolutionCells'] = min_elevation_resolution_cells unless min_elevation_resolution_cells.nil?
253
+ command.query['terrainFormats'] = terrain_formats unless terrain_formats.nil?
254
+ command.query['fields'] = fields unless fields.nil?
255
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
256
+ execute_or_queue_command(command, &block)
257
+ end
258
+
259
+ protected
260
+
261
+ def apply_command_defaults(command)
262
+ command.query['key'] = key unless key.nil?
263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
264
+ end
265
+ end
266
+ end
267
+ end
268
+ end