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
@@ -52,24 +52,6 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class ContextParams
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class DivisionRepresentativeInfoRequest
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class DivisionSearchRequest
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
55
  class SearchDivisionResponse
74
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
57
 
@@ -94,12 +76,6 @@ module Google
94
76
  include Google::Apis::Core::JsonObjectSupport
95
77
  end
96
78
 
97
- class ElectionsQueryRequest
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
79
  class QueryElectionsResponse
104
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
81
 
@@ -112,30 +88,12 @@ module Google
112
88
  include Google::Apis::Core::JsonObjectSupport
113
89
  end
114
90
 
115
- class FieldMetadataProto
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
91
  class GeographicDivision
122
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
93
 
124
94
  include Google::Apis::Core::JsonObjectSupport
125
95
  end
126
96
 
127
- class InternalFieldMetadataProto
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
132
-
133
- class InternalSourceSummaryProto
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
135
-
136
- include Google::Apis::Core::JsonObjectSupport
137
- end
138
-
139
97
  class Office
140
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
99
 
@@ -148,42 +106,18 @@ module Google
148
106
  include Google::Apis::Core::JsonObjectSupport
149
107
  end
150
108
 
151
- class PointProto
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
153
-
154
- include Google::Apis::Core::JsonObjectSupport
155
- end
156
-
157
109
  class PollingLocation
158
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
111
 
160
112
  include Google::Apis::Core::JsonObjectSupport
161
113
  end
162
114
 
163
- class PostalAddress
164
- class Representation < Google::Apis::Core::JsonRepresentation; end
165
-
166
- include Google::Apis::Core::JsonObjectSupport
167
- end
168
-
169
- class Provenance
170
- class Representation < Google::Apis::Core::JsonRepresentation; end
171
-
172
- include Google::Apis::Core::JsonObjectSupport
173
- end
174
-
175
115
  class RepresentativeInfoData
176
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
117
 
178
118
  include Google::Apis::Core::JsonObjectSupport
179
119
  end
180
120
 
181
- class RepresentativeInfoRequest
182
- class Representation < Google::Apis::Core::JsonRepresentation; end
183
-
184
- include Google::Apis::Core::JsonObjectSupport
185
- end
186
-
187
121
  class RepresentativeInfoResponse
188
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
123
 
@@ -202,36 +136,12 @@ module Google
202
136
  include Google::Apis::Core::JsonObjectSupport
203
137
  end
204
138
 
205
- class StreetSegment
206
- class Representation < Google::Apis::Core::JsonRepresentation; end
207
-
208
- include Google::Apis::Core::JsonObjectSupport
209
- end
210
-
211
- class StreetSegmentList
212
- class Representation < Google::Apis::Core::JsonRepresentation; end
213
-
214
- include Google::Apis::Core::JsonObjectSupport
215
- end
216
-
217
- class VoterInfoRequest
218
- class Representation < Google::Apis::Core::JsonRepresentation; end
219
-
220
- include Google::Apis::Core::JsonObjectSupport
221
- end
222
-
223
139
  class VoterInfoResponse
224
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
141
 
226
142
  include Google::Apis::Core::JsonObjectSupport
227
143
  end
228
144
 
229
- class VoterInfoSegmentResult
230
- class Representation < Google::Apis::Core::JsonRepresentation; end
231
-
232
- include Google::Apis::Core::JsonObjectSupport
233
- end
234
-
235
145
  class AdministrationRegion
236
146
  # @private
237
147
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -250,7 +160,6 @@ module Google
250
160
  # @private
251
161
  class Representation < Google::Apis::Core::JsonRepresentation
252
162
  property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
253
- collection :address_lines, as: 'addressLines'
254
163
  property :ballot_info_url, as: 'ballotInfoUrl'
255
164
  property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
256
165
 
@@ -326,29 +235,6 @@ module Google
326
235
  end
327
236
  end
328
237
 
329
- class ContextParams
330
- # @private
331
- class Representation < Google::Apis::Core::JsonRepresentation
332
- property :client_profile, as: 'clientProfile'
333
- end
334
- end
335
-
336
- class DivisionRepresentativeInfoRequest
337
- # @private
338
- class Representation < Google::Apis::Core::JsonRepresentation
339
- property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
340
-
341
- end
342
- end
343
-
344
- class DivisionSearchRequest
345
- # @private
346
- class Representation < Google::Apis::Core::JsonRepresentation
347
- property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
348
-
349
- end
350
- end
351
-
352
238
  class SearchDivisionResponse
353
239
  # @private
354
240
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -388,14 +274,6 @@ module Google
388
274
  end
389
275
  end
390
276
 
391
- class ElectionsQueryRequest
392
- # @private
393
- class Representation < Google::Apis::Core::JsonRepresentation
394
- property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
395
-
396
- end
397
- end
398
-
399
277
  class QueryElectionsResponse
400
278
  # @private
401
279
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -409,20 +287,11 @@ module Google
409
287
  # @private
410
288
  class Representation < Google::Apis::Core::JsonRepresentation
411
289
  property :id, as: 'id'
412
- property :kg_foreign_key, as: 'kgForeignKey'
413
290
  property :name, as: 'name'
414
291
  property :scope, as: 'scope'
415
292
  end
416
293
  end
417
294
 
418
- class FieldMetadataProto
419
- # @private
420
- class Representation < Google::Apis::Core::JsonRepresentation
421
- property :internal, as: 'internal', class: Google::Apis::CivicinfoV2::InternalFieldMetadataProto, decorator: Google::Apis::CivicinfoV2::InternalFieldMetadataProto::Representation
422
-
423
- end
424
- end
425
-
426
295
  class GeographicDivision
427
296
  # @private
428
297
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -432,23 +301,6 @@ module Google
432
301
  end
433
302
  end
434
303
 
435
- class InternalFieldMetadataProto
436
- # @private
437
- class Representation < Google::Apis::Core::JsonRepresentation
438
- property :is_auto, as: 'isAuto'
439
- property :source_summary, as: 'sourceSummary', class: Google::Apis::CivicinfoV2::InternalSourceSummaryProto, decorator: Google::Apis::CivicinfoV2::InternalSourceSummaryProto::Representation
440
-
441
- end
442
- end
443
-
444
- class InternalSourceSummaryProto
445
- # @private
446
- class Representation < Google::Apis::Core::JsonRepresentation
447
- property :dataset, as: 'dataset'
448
- property :provider, as: 'provider'
449
- end
450
- end
451
-
452
304
  class Office
453
305
  # @private
454
306
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -478,16 +330,6 @@ module Google
478
330
  end
479
331
  end
480
332
 
481
- class PointProto
482
- # @private
483
- class Representation < Google::Apis::Core::JsonRepresentation
484
- property :lat_e7, as: 'latE7'
485
- property :lng_e7, as: 'lngE7'
486
- property :metadata, as: 'metadata', class: Google::Apis::CivicinfoV2::FieldMetadataProto, decorator: Google::Apis::CivicinfoV2::FieldMetadataProto::Representation
487
-
488
- end
489
- end
490
-
491
333
  class PollingLocation
492
334
  # @private
493
335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -507,49 +349,6 @@ module Google
507
349
  end
508
350
  end
509
351
 
510
- class PostalAddress
511
- # @private
512
- class Representation < Google::Apis::Core::JsonRepresentation
513
- collection :address_lines, as: 'addressLines'
514
- property :administrative_area_name, as: 'administrativeAreaName'
515
- property :country_name, as: 'countryName'
516
- property :country_name_code, as: 'countryNameCode'
517
- property :dependent_locality_name, as: 'dependentLocalityName'
518
- property :dependent_thoroughfare_name, as: 'dependentThoroughfareName'
519
- property :firm_name, as: 'firmName'
520
- property :is_disputed, as: 'isDisputed'
521
- property :language_code, as: 'languageCode'
522
- property :locality_name, as: 'localityName'
523
- property :post_box_number, as: 'postBoxNumber'
524
- property :postal_code_number, as: 'postalCodeNumber'
525
- property :postal_code_number_extension, as: 'postalCodeNumberExtension'
526
- property :premise_name, as: 'premiseName'
527
- property :recipient_name, as: 'recipientName'
528
- property :sorting_code, as: 'sortingCode'
529
- property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
530
- property :sub_premise_name, as: 'subPremiseName'
531
- property :thoroughfare_name, as: 'thoroughfareName'
532
- property :thoroughfare_number, as: 'thoroughfareNumber'
533
- end
534
- end
535
-
536
- class Provenance
537
- # @private
538
- class Representation < Google::Apis::Core::JsonRepresentation
539
- property :collided_segment_source, as: 'collidedSegmentSource', class: Google::Apis::CivicinfoV2::StreetSegmentList, decorator: Google::Apis::CivicinfoV2::StreetSegmentList::Representation
540
-
541
- property :ctcl_contest_uuid, as: 'ctclContestUuid'
542
- property :ctcl_office_uuid, as: 'ctclOfficeUuid'
543
- property :dataset_id, :numeric_string => true, as: 'datasetId'
544
- property :precinct_id, :numeric_string => true, as: 'precinctId'
545
- property :precinct_split_id, :numeric_string => true, as: 'precinctSplitId'
546
- property :ts_street_segment_id, as: 'tsStreetSegmentId'
547
- property :vip5_precinct_id, as: 'vip5PrecinctId'
548
- property :vip5_street_segment_id, as: 'vip5StreetSegmentId'
549
- property :vip_street_segment_id, :numeric_string => true, as: 'vipStreetSegmentId'
550
- end
551
- end
552
-
553
352
  class RepresentativeInfoData
554
353
  # @private
555
354
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -562,14 +361,6 @@ module Google
562
361
  end
563
362
  end
564
363
 
565
- class RepresentativeInfoRequest
566
- # @private
567
- class Representation < Google::Apis::Core::JsonRepresentation
568
- property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
569
-
570
- end
571
- end
572
-
573
364
  class RepresentativeInfoResponse
574
365
  # @private
575
366
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -606,77 +397,6 @@ module Google
606
397
  end
607
398
  end
608
399
 
609
- class StreetSegment
610
- # @private
611
- class Representation < Google::Apis::Core::JsonRepresentation
612
- collection :administration_region_ids, as: 'administrationRegionIds'
613
- property :before_geocode_id, as: 'beforeGeocodeId'
614
- property :catalist_unique_precinct_code, as: 'catalistUniquePrecinctCode'
615
- property :city, as: 'city'
616
- property :city_council_district, as: 'cityCouncilDistrict'
617
- property :congressional_district, as: 'congressionalDistrict'
618
- collection :contest_ids, as: 'contestIds'
619
- property :county_council_district, as: 'countyCouncilDistrict'
620
- property :county_fips, as: 'countyFips'
621
- property :dataset_id, :numeric_string => true, as: 'datasetId'
622
- collection :early_vote_site_by_ids, as: 'earlyVoteSiteByIds'
623
- property :end_house_number, :numeric_string => true, as: 'endHouseNumber'
624
- property :geocoded_point, as: 'geocodedPoint', class: Google::Apis::CivicinfoV2::PointProto, decorator: Google::Apis::CivicinfoV2::PointProto::Representation
625
-
626
- collection :geographic_division_ocd_ids, as: 'geographicDivisionOcdIds'
627
- property :id, as: 'id'
628
- property :judicial_district, as: 'judicialDistrict'
629
- property :mail_only, as: 'mailOnly'
630
- property :municipal_district, as: 'municipalDistrict'
631
- property :ncoa_address, as: 'ncoaAddress'
632
- collection :odd_or_evens, as: 'oddOrEvens'
633
- property :original_id, as: 'originalId'
634
- collection :pollinglocation_by_ids, as: 'pollinglocationByIds'
635
- property :precinct_name, as: 'precinctName'
636
- property :precinct_ocd_id, as: 'precinctOcdId'
637
- collection :provenances, as: 'provenances', class: Google::Apis::CivicinfoV2::Provenance, decorator: Google::Apis::CivicinfoV2::Provenance::Representation
638
-
639
- property :published, as: 'published'
640
- property :school_district, as: 'schoolDistrict'
641
- property :start_house_number, :numeric_string => true, as: 'startHouseNumber'
642
- property :start_lat_e7, as: 'startLatE7'
643
- property :start_lng_e7, as: 'startLngE7'
644
- property :state, as: 'state'
645
- property :state_house_district, as: 'stateHouseDistrict'
646
- property :state_senate_district, as: 'stateSenateDistrict'
647
- property :street_name, as: 'streetName'
648
- property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
649
- property :surrogate_id, :numeric_string => true, as: 'surrogateId'
650
- property :targetsmart_unique_precinct_code, as: 'targetsmartUniquePrecinctCode'
651
- property :township_district, as: 'townshipDistrict'
652
- property :unit_number, as: 'unitNumber'
653
- property :unit_type, as: 'unitType'
654
- property :van_precinct_code, as: 'vanPrecinctCode'
655
- collection :voter_geographic_division_ocd_ids, as: 'voterGeographicDivisionOcdIds'
656
- property :ward_district, as: 'wardDistrict'
657
- property :wildcard, as: 'wildcard'
658
- property :zip, as: 'zip'
659
- end
660
- end
661
-
662
- class StreetSegmentList
663
- # @private
664
- class Representation < Google::Apis::Core::JsonRepresentation
665
- collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation
666
-
667
- end
668
- end
669
-
670
- class VoterInfoRequest
671
- # @private
672
- class Representation < Google::Apis::Core::JsonRepresentation
673
- property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
674
-
675
- property :voter_info_segment_result, as: 'voterInfoSegmentResult', class: Google::Apis::CivicinfoV2::VoterInfoSegmentResult, decorator: Google::Apis::CivicinfoV2::VoterInfoSegmentResult::Representation
676
-
677
- end
678
- end
679
-
680
400
  class VoterInfoResponse
681
401
  # @private
682
402
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -697,25 +417,10 @@ module Google
697
417
  collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
698
418
 
699
419
  property :precinct_id, as: 'precinctId'
700
- collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation
701
-
702
420
  collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
703
421
 
704
422
  end
705
423
  end
706
-
707
- class VoterInfoSegmentResult
708
- # @private
709
- class Representation < Google::Apis::Core::JsonRepresentation
710
- property :generated_millis, :numeric_string => true, as: 'generatedMillis'
711
- property :postal_address, as: 'postalAddress', class: Google::Apis::CivicinfoV2::PostalAddress, decorator: Google::Apis::CivicinfoV2::PostalAddress::Representation
712
-
713
- property :request, as: 'request', class: Google::Apis::CivicinfoV2::VoterInfoRequest, decorator: Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
714
-
715
- property :response, as: 'response', class: Google::Apis::CivicinfoV2::VoterInfoResponse, decorator: Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
716
-
717
- end
718
- end
719
424
  end
720
425
  end
721
426
  end
@@ -31,7 +31,7 @@ module Google
31
31
  # Civicinfo = Google::Apis::CivicinfoV2 # Alias the module
32
32
  # service = Civicinfo::CivicInfoService.new
33
33
  #
34
- # @see https://developers.google.com/civic-information
34
+ # @see https://developers.google.com/civic-information/
35
35
  class CivicInfoService < Google::Apis::Core::BaseService
36
36
  # @return [String]
37
37
  # API key. Your API key identifies your project and provides you with API access,
@@ -39,21 +39,16 @@ module Google
39
39
  attr_accessor :key
40
40
 
41
41
  # @return [String]
42
- # An opaque string that represents a user for quota purposes. Must not exceed 40
43
- # characters.
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
44
  attr_accessor :quota_user
45
45
 
46
- # @return [String]
47
- # Deprecated. Please use quotaUser instead.
48
- attr_accessor :user_ip
49
-
50
46
  def initialize
51
- super('https://www.googleapis.com/', 'civicinfo/v2/')
52
- @batch_path = 'batch/civicinfo/v2'
47
+ super('https://civicinfo.googleapis.com/', '')
48
+ @batch_path = 'batch'
53
49
  end
54
50
 
55
51
  # Searches for political divisions by their natural name or OCD ID.
56
- # @param [Google::Apis::CivicinfoV2::DivisionSearchRequest] division_search_request_object
57
52
  # @param [String] query
58
53
  # The search query. Queries can cover any parts of a OCD ID or a human readable
59
54
  # division name. All words given in the query are treated as required patterns.
@@ -62,10 +57,8 @@ module Google
62
57
  # @param [String] fields
63
58
  # Selector specifying which fields to include in a partial response.
64
59
  # @param [String] quota_user
65
- # An opaque string that represents a user for quota purposes. Must not exceed 40
66
- # characters.
67
- # @param [String] user_ip
68
- # Deprecated. Please use quotaUser instead.
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
62
  # @param [Google::Apis::RequestOptions] options
70
63
  # Request-specific options
71
64
  #
@@ -78,28 +71,22 @@ module Google
78
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def search_divisions(division_search_request_object = nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:get, 'divisions', options)
83
- command.request_representation = Google::Apis::CivicinfoV2::DivisionSearchRequest::Representation
84
- command.request_object = division_search_request_object
74
+ def search_divisions(query: nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'civicinfo/v2/divisions', options)
85
76
  command.response_representation = Google::Apis::CivicinfoV2::SearchDivisionResponse::Representation
86
77
  command.response_class = Google::Apis::CivicinfoV2::SearchDivisionResponse
87
78
  command.query['query'] = query unless query.nil?
88
79
  command.query['fields'] = fields unless fields.nil?
89
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
90
- command.query['userIp'] = user_ip unless user_ip.nil?
91
81
  execute_or_queue_command(command, &block)
92
82
  end
93
83
 
94
84
  # List of available elections to query.
95
- # @param [Google::Apis::CivicinfoV2::ElectionsQueryRequest] elections_query_request_object
96
85
  # @param [String] fields
97
86
  # Selector specifying which fields to include in a partial response.
98
87
  # @param [String] quota_user
99
- # An opaque string that represents a user for quota purposes. Must not exceed 40
100
- # characters.
101
- # @param [String] user_ip
102
- # Deprecated. Please use quotaUser instead.
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
90
  # @param [Google::Apis::RequestOptions] options
104
91
  # Request-specific options
105
92
  #
@@ -112,15 +99,12 @@ module Google
112
99
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
100
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
101
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def query_election(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
116
- command = make_simple_command(:get, 'elections', options)
117
- command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation
118
- command.request_object = elections_query_request_object
102
+ def query_election(fields: nil, quota_user: nil, options: nil, &block)
103
+ command = make_simple_command(:get, 'civicinfo/v2/elections', options)
119
104
  command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
120
105
  command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
121
106
  command.query['fields'] = fields unless fields.nil?
122
107
  command.query['quotaUser'] = quota_user unless quota_user.nil?
123
- command.query['userIp'] = user_ip unless user_ip.nil?
124
108
  execute_or_queue_command(command, &block)
125
109
  end
126
110
 
@@ -128,10 +112,9 @@ module Google
128
112
  # address.
129
113
  # @param [String] address
130
114
  # The registered address of the voter to look up.
131
- # @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object
132
115
  # @param [Fixnum] election_id
133
116
  # The unique ID of the election to look up. A list of election IDs can be
134
- # obtained at https://www.googleapis.com/civicinfo/`version`/electionsIf no
117
+ # obtained at https://www.googleapis.com/civicinfo/`version`/elections. If no
135
118
  # election ID is specified in the query and there is more than one election with
136
119
  # data for the given voter, the additional elections are provided in the
137
120
  # otherElections response field.
@@ -144,10 +127,8 @@ module Google
144
127
  # @param [String] fields
145
128
  # Selector specifying which fields to include in a partial response.
146
129
  # @param [String] quota_user
147
- # An opaque string that represents a user for quota purposes. Must not exceed 40
148
- # characters.
149
- # @param [String] user_ip
150
- # Deprecated. Please use quotaUser instead.
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
132
  # @param [Google::Apis::RequestOptions] options
152
133
  # Request-specific options
153
134
  #
@@ -160,10 +141,8 @@ module Google
160
141
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161
142
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162
143
  # @raise [Google::Apis::AuthorizationError] Authorization is required
163
- def query_voter_info(address, voter_info_request_object = nil, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
164
- command = make_simple_command(:get, 'voterinfo', options)
165
- command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
166
- command.request_object = voter_info_request_object
144
+ def query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:get, 'civicinfo/v2/voterinfo', options)
167
146
  command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
168
147
  command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
169
148
  command.query['address'] = address unless address.nil?
@@ -172,16 +151,14 @@ module Google
172
151
  command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil?
173
152
  command.query['fields'] = fields unless fields.nil?
174
153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
175
- command.query['userIp'] = user_ip unless user_ip.nil?
176
154
  execute_or_queue_command(command, &block)
177
155
  end
178
156
 
179
157
  # Looks up political geography and representative information for a single
180
158
  # address.
181
- # @param [Google::Apis::CivicinfoV2::RepresentativeInfoRequest] representative_info_request_object
182
159
  # @param [String] address
183
160
  # The address to look up. May only be specified if the field ocdId is not given
184
- # in the URL.
161
+ # in the URL
185
162
  # @param [Boolean] include_offices
186
163
  # Whether to return information about offices and officials. If false, only the
187
164
  # top-level district information will be returned.
@@ -196,10 +173,8 @@ module Google
196
173
  # @param [String] fields
197
174
  # Selector specifying which fields to include in a partial response.
198
175
  # @param [String] quota_user
199
- # An opaque string that represents a user for quota purposes. Must not exceed 40
200
- # characters.
201
- # @param [String] user_ip
202
- # Deprecated. Please use quotaUser instead.
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
203
178
  # @param [Google::Apis::RequestOptions] options
204
179
  # Request-specific options
205
180
  #
@@ -212,10 +187,8 @@ module Google
212
187
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
213
188
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
214
189
  # @raise [Google::Apis::AuthorizationError] Authorization is required
215
- def representative_info_by_address(representative_info_request_object = nil, address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
216
- command = make_simple_command(:get, 'representatives', options)
217
- command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation
218
- command.request_object = representative_info_request_object
190
+ def representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:get, 'civicinfo/v2/representatives', options)
219
192
  command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
220
193
  command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
221
194
  command.query['address'] = address unless address.nil?
@@ -224,14 +197,12 @@ module Google
224
197
  command.query['roles'] = roles unless roles.nil?
225
198
  command.query['fields'] = fields unless fields.nil?
226
199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
227
- command.query['userIp'] = user_ip unless user_ip.nil?
228
200
  execute_or_queue_command(command, &block)
229
201
  end
230
202
 
231
203
  # Looks up representative information for a single geographic division.
232
204
  # @param [String] ocd_id
233
205
  # The Open Civic Data division identifier of the division to look up.
234
- # @param [Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest] division_representative_info_request_object
235
206
  # @param [Array<String>, String] levels
236
207
  # A list of office levels to filter by. Only offices that serve at least one of
237
208
  # these levels will be returned. Divisions that don't contain a matching office
@@ -247,10 +218,8 @@ module Google
247
218
  # @param [String] fields
248
219
  # Selector specifying which fields to include in a partial response.
249
220
  # @param [String] quota_user
250
- # An opaque string that represents a user for quota purposes. Must not exceed 40
251
- # characters.
252
- # @param [String] user_ip
253
- # Deprecated. Please use quotaUser instead.
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
223
  # @param [Google::Apis::RequestOptions] options
255
224
  # Request-specific options
256
225
  #
@@ -263,10 +232,8 @@ module Google
263
232
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
233
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
234
  # @raise [Google::Apis::AuthorizationError] Authorization is required
266
- def representative_info_by_division(ocd_id, division_representative_info_request_object = nil, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
267
- command = make_simple_command(:get, 'representatives/{ocdId}', options)
268
- command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation
269
- command.request_object = division_representative_info_request_object
235
+ def representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'civicinfo/v2/representatives/{ocdId}', options)
270
237
  command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
271
238
  command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
272
239
  command.params['ocdId'] = ocd_id unless ocd_id.nil?
@@ -275,7 +242,6 @@ module Google
275
242
  command.query['roles'] = roles unless roles.nil?
276
243
  command.query['fields'] = fields unless fields.nil?
277
244
  command.query['quotaUser'] = quota_user unless quota_user.nil?
278
- command.query['userIp'] = user_ip unless user_ip.nil?
279
245
  execute_or_queue_command(command, &block)
280
246
  end
281
247
 
@@ -284,7 +250,6 @@ module Google
284
250
  def apply_command_defaults(command)
285
251
  command.query['key'] = key unless key.nil?
286
252
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
- command.query['userIp'] = user_ip unless user_ip.nil?
288
253
  end
289
254
  end
290
255
  end