google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -20,12 +20,13 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Google Civic Information API
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# Provides polling places, early vote locations, contest data, election
|
24
|
+
# officials, and government representatives for U.S. residential addresses.
|
24
25
|
#
|
25
26
|
# @see https://developers.google.com/civic-information
|
26
27
|
module CivicinfoV2
|
27
28
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
29
|
+
REVISION = '20161102'
|
29
30
|
end
|
30
31
|
end
|
31
32
|
end
|
@@ -79,6 +79,11 @@ module Google
|
|
79
79
|
# @return [String]
|
80
80
|
attr_accessor :absentee_voting_info_url
|
81
81
|
|
82
|
+
#
|
83
|
+
# Corresponds to the JSON property `addressLines`
|
84
|
+
# @return [Array<String>]
|
85
|
+
attr_accessor :address_lines
|
86
|
+
|
82
87
|
# A URL provided by this administrative body to give contest information to the
|
83
88
|
# voter.
|
84
89
|
# Corresponds to the JSON property `ballotInfoUrl`
|
@@ -151,6 +156,7 @@ module Google
|
|
151
156
|
# Update properties of this object
|
152
157
|
def update!(**args)
|
153
158
|
@absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url)
|
159
|
+
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
154
160
|
@ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
|
155
161
|
@correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
|
156
162
|
@election_info_url = args[:election_info_url] if args.key?(:election_info_url)
|
@@ -185,7 +191,9 @@ module Google
|
|
185
191
|
# @return [String]
|
186
192
|
attr_accessor :email
|
187
193
|
|
188
|
-
# The candidate's name.
|
194
|
+
# The candidate's name. If this is a joint ticket it will indicate the name of
|
195
|
+
# the candidate at the top of a ticket followed by a / and that name of
|
196
|
+
# candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan"
|
189
197
|
# Corresponds to the JSON property `name`
|
190
198
|
# @return [String]
|
191
199
|
attr_accessor :name
|
@@ -316,9 +324,8 @@ module Google
|
|
316
324
|
attr_accessor :primary_party
|
317
325
|
|
318
326
|
# The set of ballot responses for the referendum. A ballot response represents a
|
319
|
-
# line on the ballot. Common examples might include "yes" or "no" for referenda
|
320
|
-
#
|
321
|
-
# contests of type 'Referendum'.
|
327
|
+
# line on the ballot. Common examples might include "yes" or "no" for referenda.
|
328
|
+
# This field is only populated for contests of type 'Referendum'.
|
322
329
|
# Corresponds to the JSON property `referendumBallotResponses`
|
323
330
|
# @return [Array<String>]
|
324
331
|
attr_accessor :referendum_ballot_responses
|
@@ -397,7 +404,8 @@ module Google
|
|
397
404
|
attr_accessor :special
|
398
405
|
|
399
406
|
# The type of contest. Usually this will be 'General', 'Primary', or 'Run-off'
|
400
|
-
# for contests with candidates. For referenda this will be 'Referendum'.
|
407
|
+
# for contests with candidates. For referenda this will be 'Referendum'. For
|
408
|
+
# Retention contests this will typically be 'Retention'.
|
401
409
|
# Corresponds to the JSON property `type`
|
402
410
|
# @return [String]
|
403
411
|
attr_accessor :type
|
@@ -435,6 +443,63 @@ module Google
|
|
435
443
|
end
|
436
444
|
end
|
437
445
|
|
446
|
+
#
|
447
|
+
class ContextParams
|
448
|
+
include Google::Apis::Core::Hashable
|
449
|
+
|
450
|
+
#
|
451
|
+
# Corresponds to the JSON property `clientProfile`
|
452
|
+
# @return [String]
|
453
|
+
attr_accessor :client_profile
|
454
|
+
|
455
|
+
def initialize(**args)
|
456
|
+
update!(**args)
|
457
|
+
end
|
458
|
+
|
459
|
+
# Update properties of this object
|
460
|
+
def update!(**args)
|
461
|
+
@client_profile = args[:client_profile] if args.key?(:client_profile)
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
# A request to look up representative information for a single division.
|
466
|
+
class DivisionRepresentativeInfoRequest
|
467
|
+
include Google::Apis::Core::Hashable
|
468
|
+
|
469
|
+
#
|
470
|
+
# Corresponds to the JSON property `contextParams`
|
471
|
+
# @return [Google::Apis::CivicinfoV2::ContextParams]
|
472
|
+
attr_accessor :context_params
|
473
|
+
|
474
|
+
def initialize(**args)
|
475
|
+
update!(**args)
|
476
|
+
end
|
477
|
+
|
478
|
+
# Update properties of this object
|
479
|
+
def update!(**args)
|
480
|
+
@context_params = args[:context_params] if args.key?(:context_params)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# A search request for political geographies.
|
485
|
+
class DivisionSearchRequest
|
486
|
+
include Google::Apis::Core::Hashable
|
487
|
+
|
488
|
+
#
|
489
|
+
# Corresponds to the JSON property `contextParams`
|
490
|
+
# @return [Google::Apis::CivicinfoV2::ContextParams]
|
491
|
+
attr_accessor :context_params
|
492
|
+
|
493
|
+
def initialize(**args)
|
494
|
+
update!(**args)
|
495
|
+
end
|
496
|
+
|
497
|
+
# Update properties of this object
|
498
|
+
def update!(**args)
|
499
|
+
@context_params = args[:context_params] if args.key?(:context_params)
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
438
503
|
# The result of a division search query.
|
439
504
|
class DivisionSearchResponse
|
440
505
|
include Google::Apis::Core::Hashable
|
@@ -579,6 +644,25 @@ module Google
|
|
579
644
|
end
|
580
645
|
end
|
581
646
|
|
647
|
+
#
|
648
|
+
class ElectionsQueryRequest
|
649
|
+
include Google::Apis::Core::Hashable
|
650
|
+
|
651
|
+
#
|
652
|
+
# Corresponds to the JSON property `contextParams`
|
653
|
+
# @return [Google::Apis::CivicinfoV2::ContextParams]
|
654
|
+
attr_accessor :context_params
|
655
|
+
|
656
|
+
def initialize(**args)
|
657
|
+
update!(**args)
|
658
|
+
end
|
659
|
+
|
660
|
+
# Update properties of this object
|
661
|
+
def update!(**args)
|
662
|
+
@context_params = args[:context_params] if args.key?(:context_params)
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
582
666
|
# The list of elections available for this version of the API.
|
583
667
|
class QueryElectionsResponse
|
584
668
|
include Google::Apis::Core::Hashable
|
@@ -615,6 +699,11 @@ module Google
|
|
615
699
|
# @return [String]
|
616
700
|
attr_accessor :id
|
617
701
|
|
702
|
+
#
|
703
|
+
# Corresponds to the JSON property `kgForeignKey`
|
704
|
+
# @return [String]
|
705
|
+
attr_accessor :kg_foreign_key
|
706
|
+
|
618
707
|
# The name of the district.
|
619
708
|
# Corresponds to the JSON property `name`
|
620
709
|
# @return [String]
|
@@ -635,6 +724,7 @@ module Google
|
|
635
724
|
# Update properties of this object
|
636
725
|
def update!(**args)
|
637
726
|
@id = args[:id] if args.key?(:id)
|
727
|
+
@kg_foreign_key = args[:kg_foreign_key] if args.key?(:kg_foreign_key)
|
638
728
|
@name = args[:name] if args.key?(:name)
|
639
729
|
@scope = args[:scope] if args.key?(:scope)
|
640
730
|
end
|
@@ -875,6 +965,206 @@ module Google
|
|
875
965
|
end
|
876
966
|
end
|
877
967
|
|
968
|
+
#
|
969
|
+
class PostalAddress
|
970
|
+
include Google::Apis::Core::Hashable
|
971
|
+
|
972
|
+
#
|
973
|
+
# Corresponds to the JSON property `addressLines`
|
974
|
+
# @return [Array<String>]
|
975
|
+
attr_accessor :address_lines
|
976
|
+
|
977
|
+
#
|
978
|
+
# Corresponds to the JSON property `administrativeAreaName`
|
979
|
+
# @return [String]
|
980
|
+
attr_accessor :administrative_area_name
|
981
|
+
|
982
|
+
#
|
983
|
+
# Corresponds to the JSON property `countryName`
|
984
|
+
# @return [String]
|
985
|
+
attr_accessor :country_name
|
986
|
+
|
987
|
+
#
|
988
|
+
# Corresponds to the JSON property `countryNameCode`
|
989
|
+
# @return [String]
|
990
|
+
attr_accessor :country_name_code
|
991
|
+
|
992
|
+
#
|
993
|
+
# Corresponds to the JSON property `dependentLocalityName`
|
994
|
+
# @return [String]
|
995
|
+
attr_accessor :dependent_locality_name
|
996
|
+
|
997
|
+
#
|
998
|
+
# Corresponds to the JSON property `dependentThoroughfareLeadingType`
|
999
|
+
# @return [String]
|
1000
|
+
attr_accessor :dependent_thoroughfare_leading_type
|
1001
|
+
|
1002
|
+
#
|
1003
|
+
# Corresponds to the JSON property `dependentThoroughfareName`
|
1004
|
+
# @return [String]
|
1005
|
+
attr_accessor :dependent_thoroughfare_name
|
1006
|
+
|
1007
|
+
#
|
1008
|
+
# Corresponds to the JSON property `dependentThoroughfarePostDirection`
|
1009
|
+
# @return [String]
|
1010
|
+
attr_accessor :dependent_thoroughfare_post_direction
|
1011
|
+
|
1012
|
+
#
|
1013
|
+
# Corresponds to the JSON property `dependentThoroughfarePreDirection`
|
1014
|
+
# @return [String]
|
1015
|
+
attr_accessor :dependent_thoroughfare_pre_direction
|
1016
|
+
|
1017
|
+
#
|
1018
|
+
# Corresponds to the JSON property `dependentThoroughfareTrailingType`
|
1019
|
+
# @return [String]
|
1020
|
+
attr_accessor :dependent_thoroughfare_trailing_type
|
1021
|
+
|
1022
|
+
#
|
1023
|
+
# Corresponds to the JSON property `dependentThoroughfaresConnector`
|
1024
|
+
# @return [String]
|
1025
|
+
attr_accessor :dependent_thoroughfares_connector
|
1026
|
+
|
1027
|
+
#
|
1028
|
+
# Corresponds to the JSON property `dependentThoroughfaresIndicator`
|
1029
|
+
# @return [String]
|
1030
|
+
attr_accessor :dependent_thoroughfares_indicator
|
1031
|
+
|
1032
|
+
#
|
1033
|
+
# Corresponds to the JSON property `dependentThoroughfaresType`
|
1034
|
+
# @return [String]
|
1035
|
+
attr_accessor :dependent_thoroughfares_type
|
1036
|
+
|
1037
|
+
#
|
1038
|
+
# Corresponds to the JSON property `firmName`
|
1039
|
+
# @return [String]
|
1040
|
+
attr_accessor :firm_name
|
1041
|
+
|
1042
|
+
#
|
1043
|
+
# Corresponds to the JSON property `isDisputed`
|
1044
|
+
# @return [Boolean]
|
1045
|
+
attr_accessor :is_disputed
|
1046
|
+
alias_method :is_disputed?, :is_disputed
|
1047
|
+
|
1048
|
+
#
|
1049
|
+
# Corresponds to the JSON property `languageCode`
|
1050
|
+
# @return [String]
|
1051
|
+
attr_accessor :language_code
|
1052
|
+
|
1053
|
+
#
|
1054
|
+
# Corresponds to the JSON property `localityName`
|
1055
|
+
# @return [String]
|
1056
|
+
attr_accessor :locality_name
|
1057
|
+
|
1058
|
+
#
|
1059
|
+
# Corresponds to the JSON property `postBoxNumber`
|
1060
|
+
# @return [String]
|
1061
|
+
attr_accessor :post_box_number
|
1062
|
+
|
1063
|
+
#
|
1064
|
+
# Corresponds to the JSON property `postalCodeNumber`
|
1065
|
+
# @return [String]
|
1066
|
+
attr_accessor :postal_code_number
|
1067
|
+
|
1068
|
+
#
|
1069
|
+
# Corresponds to the JSON property `postalCodeNumberExtension`
|
1070
|
+
# @return [String]
|
1071
|
+
attr_accessor :postal_code_number_extension
|
1072
|
+
|
1073
|
+
#
|
1074
|
+
# Corresponds to the JSON property `premiseName`
|
1075
|
+
# @return [String]
|
1076
|
+
attr_accessor :premise_name
|
1077
|
+
|
1078
|
+
#
|
1079
|
+
# Corresponds to the JSON property `recipientName`
|
1080
|
+
# @return [String]
|
1081
|
+
attr_accessor :recipient_name
|
1082
|
+
|
1083
|
+
#
|
1084
|
+
# Corresponds to the JSON property `sortingCode`
|
1085
|
+
# @return [String]
|
1086
|
+
attr_accessor :sorting_code
|
1087
|
+
|
1088
|
+
#
|
1089
|
+
# Corresponds to the JSON property `subAdministrativeAreaName`
|
1090
|
+
# @return [String]
|
1091
|
+
attr_accessor :sub_administrative_area_name
|
1092
|
+
|
1093
|
+
#
|
1094
|
+
# Corresponds to the JSON property `subPremiseName`
|
1095
|
+
# @return [String]
|
1096
|
+
attr_accessor :sub_premise_name
|
1097
|
+
|
1098
|
+
#
|
1099
|
+
# Corresponds to the JSON property `thoroughfareLeadingType`
|
1100
|
+
# @return [String]
|
1101
|
+
attr_accessor :thoroughfare_leading_type
|
1102
|
+
|
1103
|
+
#
|
1104
|
+
# Corresponds to the JSON property `thoroughfareName`
|
1105
|
+
# @return [String]
|
1106
|
+
attr_accessor :thoroughfare_name
|
1107
|
+
|
1108
|
+
#
|
1109
|
+
# Corresponds to the JSON property `thoroughfareNumber`
|
1110
|
+
# @return [String]
|
1111
|
+
attr_accessor :thoroughfare_number
|
1112
|
+
|
1113
|
+
#
|
1114
|
+
# Corresponds to the JSON property `thoroughfarePostDirection`
|
1115
|
+
# @return [String]
|
1116
|
+
attr_accessor :thoroughfare_post_direction
|
1117
|
+
|
1118
|
+
#
|
1119
|
+
# Corresponds to the JSON property `thoroughfarePreDirection`
|
1120
|
+
# @return [String]
|
1121
|
+
attr_accessor :thoroughfare_pre_direction
|
1122
|
+
|
1123
|
+
#
|
1124
|
+
# Corresponds to the JSON property `thoroughfareTrailingType`
|
1125
|
+
# @return [String]
|
1126
|
+
attr_accessor :thoroughfare_trailing_type
|
1127
|
+
|
1128
|
+
def initialize(**args)
|
1129
|
+
update!(**args)
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
# Update properties of this object
|
1133
|
+
def update!(**args)
|
1134
|
+
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
1135
|
+
@administrative_area_name = args[:administrative_area_name] if args.key?(:administrative_area_name)
|
1136
|
+
@country_name = args[:country_name] if args.key?(:country_name)
|
1137
|
+
@country_name_code = args[:country_name_code] if args.key?(:country_name_code)
|
1138
|
+
@dependent_locality_name = args[:dependent_locality_name] if args.key?(:dependent_locality_name)
|
1139
|
+
@dependent_thoroughfare_leading_type = args[:dependent_thoroughfare_leading_type] if args.key?(:dependent_thoroughfare_leading_type)
|
1140
|
+
@dependent_thoroughfare_name = args[:dependent_thoroughfare_name] if args.key?(:dependent_thoroughfare_name)
|
1141
|
+
@dependent_thoroughfare_post_direction = args[:dependent_thoroughfare_post_direction] if args.key?(:dependent_thoroughfare_post_direction)
|
1142
|
+
@dependent_thoroughfare_pre_direction = args[:dependent_thoroughfare_pre_direction] if args.key?(:dependent_thoroughfare_pre_direction)
|
1143
|
+
@dependent_thoroughfare_trailing_type = args[:dependent_thoroughfare_trailing_type] if args.key?(:dependent_thoroughfare_trailing_type)
|
1144
|
+
@dependent_thoroughfares_connector = args[:dependent_thoroughfares_connector] if args.key?(:dependent_thoroughfares_connector)
|
1145
|
+
@dependent_thoroughfares_indicator = args[:dependent_thoroughfares_indicator] if args.key?(:dependent_thoroughfares_indicator)
|
1146
|
+
@dependent_thoroughfares_type = args[:dependent_thoroughfares_type] if args.key?(:dependent_thoroughfares_type)
|
1147
|
+
@firm_name = args[:firm_name] if args.key?(:firm_name)
|
1148
|
+
@is_disputed = args[:is_disputed] if args.key?(:is_disputed)
|
1149
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1150
|
+
@locality_name = args[:locality_name] if args.key?(:locality_name)
|
1151
|
+
@post_box_number = args[:post_box_number] if args.key?(:post_box_number)
|
1152
|
+
@postal_code_number = args[:postal_code_number] if args.key?(:postal_code_number)
|
1153
|
+
@postal_code_number_extension = args[:postal_code_number_extension] if args.key?(:postal_code_number_extension)
|
1154
|
+
@premise_name = args[:premise_name] if args.key?(:premise_name)
|
1155
|
+
@recipient_name = args[:recipient_name] if args.key?(:recipient_name)
|
1156
|
+
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
|
1157
|
+
@sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
|
1158
|
+
@sub_premise_name = args[:sub_premise_name] if args.key?(:sub_premise_name)
|
1159
|
+
@thoroughfare_leading_type = args[:thoroughfare_leading_type] if args.key?(:thoroughfare_leading_type)
|
1160
|
+
@thoroughfare_name = args[:thoroughfare_name] if args.key?(:thoroughfare_name)
|
1161
|
+
@thoroughfare_number = args[:thoroughfare_number] if args.key?(:thoroughfare_number)
|
1162
|
+
@thoroughfare_post_direction = args[:thoroughfare_post_direction] if args.key?(:thoroughfare_post_direction)
|
1163
|
+
@thoroughfare_pre_direction = args[:thoroughfare_pre_direction] if args.key?(:thoroughfare_pre_direction)
|
1164
|
+
@thoroughfare_trailing_type = args[:thoroughfare_trailing_type] if args.key?(:thoroughfare_trailing_type)
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
|
878
1168
|
#
|
879
1169
|
class RepresentativeInfoData
|
880
1170
|
include Google::Apis::Core::Hashable
|
@@ -908,6 +1198,26 @@ module Google
|
|
908
1198
|
end
|
909
1199
|
end
|
910
1200
|
|
1201
|
+
# A request for political geography and representative information for an
|
1202
|
+
# address.
|
1203
|
+
class RepresentativeInfoRequest
|
1204
|
+
include Google::Apis::Core::Hashable
|
1205
|
+
|
1206
|
+
#
|
1207
|
+
# Corresponds to the JSON property `contextParams`
|
1208
|
+
# @return [Google::Apis::CivicinfoV2::ContextParams]
|
1209
|
+
attr_accessor :context_params
|
1210
|
+
|
1211
|
+
def initialize(**args)
|
1212
|
+
update!(**args)
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
# Update properties of this object
|
1216
|
+
def update!(**args)
|
1217
|
+
@context_params = args[:context_params] if args.key?(:context_params)
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
|
911
1221
|
# The result of a representative info lookup query.
|
912
1222
|
class RepresentativeInfoResponse
|
913
1223
|
include Google::Apis::Core::Hashable
|
@@ -1035,6 +1345,31 @@ module Google
|
|
1035
1345
|
end
|
1036
1346
|
end
|
1037
1347
|
|
1348
|
+
# A request for information about a voter.
|
1349
|
+
class VoterInfoRequest
|
1350
|
+
include Google::Apis::Core::Hashable
|
1351
|
+
|
1352
|
+
#
|
1353
|
+
# Corresponds to the JSON property `contextParams`
|
1354
|
+
# @return [Google::Apis::CivicinfoV2::ContextParams]
|
1355
|
+
attr_accessor :context_params
|
1356
|
+
|
1357
|
+
#
|
1358
|
+
# Corresponds to the JSON property `voterInfoSegmentResult`
|
1359
|
+
# @return [Google::Apis::CivicinfoV2::VoterInfoSegmentResult]
|
1360
|
+
attr_accessor :voter_info_segment_result
|
1361
|
+
|
1362
|
+
def initialize(**args)
|
1363
|
+
update!(**args)
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
# Update properties of this object
|
1367
|
+
def update!(**args)
|
1368
|
+
@context_params = args[:context_params] if args.key?(:context_params)
|
1369
|
+
@voter_info_segment_result = args[:voter_info_segment_result] if args.key?(:voter_info_segment_result)
|
1370
|
+
end
|
1371
|
+
end
|
1372
|
+
|
1038
1373
|
# The result of a voter info lookup query.
|
1039
1374
|
class VoterInfoResponse
|
1040
1375
|
include Google::Apis::Core::Hashable
|
@@ -1122,6 +1457,43 @@ module Google
|
|
1122
1457
|
@state = args[:state] if args.key?(:state)
|
1123
1458
|
end
|
1124
1459
|
end
|
1460
|
+
|
1461
|
+
#
|
1462
|
+
class VoterInfoSegmentResult
|
1463
|
+
include Google::Apis::Core::Hashable
|
1464
|
+
|
1465
|
+
#
|
1466
|
+
# Corresponds to the JSON property `generatedMillis`
|
1467
|
+
# @return [String]
|
1468
|
+
attr_accessor :generated_millis
|
1469
|
+
|
1470
|
+
#
|
1471
|
+
# Corresponds to the JSON property `postalAddress`
|
1472
|
+
# @return [Google::Apis::CivicinfoV2::PostalAddress]
|
1473
|
+
attr_accessor :postal_address
|
1474
|
+
|
1475
|
+
# A request for information about a voter.
|
1476
|
+
# Corresponds to the JSON property `request`
|
1477
|
+
# @return [Google::Apis::CivicinfoV2::VoterInfoRequest]
|
1478
|
+
attr_accessor :request
|
1479
|
+
|
1480
|
+
# The result of a voter info lookup query.
|
1481
|
+
# Corresponds to the JSON property `response`
|
1482
|
+
# @return [Google::Apis::CivicinfoV2::VoterInfoResponse]
|
1483
|
+
attr_accessor :response
|
1484
|
+
|
1485
|
+
def initialize(**args)
|
1486
|
+
update!(**args)
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
# Update properties of this object
|
1490
|
+
def update!(**args)
|
1491
|
+
@generated_millis = args[:generated_millis] if args.key?(:generated_millis)
|
1492
|
+
@postal_address = args[:postal_address] if args.key?(:postal_address)
|
1493
|
+
@request = args[:request] if args.key?(:request)
|
1494
|
+
@response = args[:response] if args.key?(:response)
|
1495
|
+
end
|
1496
|
+
end
|
1125
1497
|
end
|
1126
1498
|
end
|
1127
1499
|
end
|