google-apis-civicinfo_v2 0.17.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91dc259a942a6251263b9388d060f9ac4ccd171139b8f50ea23dcb679a6616d3
|
4
|
+
data.tar.gz: 5fefccf086d620fad9155f95b9c201309b6ca7ebdabc0c7ff2f35133aa25fea5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26859d69a7989a828ddeb8d336ce35d3e585e7265ae5d72eecc4c98b38240e314e6ca269a16e226d3af415de76c306290d92e7a0c196eebc4f3f5c3467d2d44e
|
7
|
+
data.tar.gz: '0854c87eaf1c7e1857c5d70dde1ed386db58aa827daca87044333f547a5a452a824f812f310756ff22135daa65ec862e4332869a5e031fdf18e20539ed335383'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-civicinfo_v2
|
2
2
|
|
3
|
+
### v0.19.0 (2023-06-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230613
|
6
|
+
|
7
|
+
### v0.18.0 (2023-06-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230606
|
10
|
+
|
3
11
|
### v0.17.0 (2023-04-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230328
|
@@ -652,128 +652,6 @@ module Google
|
|
652
652
|
end
|
653
653
|
end
|
654
654
|
|
655
|
-
# A globally unique identifier associated with each feature. We use 128-bit
|
656
|
-
# identifiers so that we have lots of bits available to distinguish between
|
657
|
-
# features. The feature id currently consists of a 64-bit "cell id" that **
|
658
|
-
# sometimes** corresponds to the approximate centroid of the feature, plus a 64-
|
659
|
-
# bit fingerprint of other identifying information. See more on each respective
|
660
|
-
# field in its comments. Feature ids are first assigned when the data is created
|
661
|
-
# in MapFacts. After initial creation of the feature, they are immutable. This
|
662
|
-
# means that the only properties that you should rely on are that they are
|
663
|
-
# unique, and that cell_ids often - but not always - preserve spatial locality.
|
664
|
-
# The degree of locality varies as the feature undergoes geometry changes, and
|
665
|
-
# should not in general be considered a firm guarantee of the location of any
|
666
|
-
# particular feature. In fact, some locationless features have randomized cell
|
667
|
-
# IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
|
668
|
-
# the id field of features will be globally unique. Using the fprint allows
|
669
|
-
# consumers who don't need the spatial benefit of cell ids to uniquely identify
|
670
|
-
# features in a 64-bit address space. This property is not guaranteed for other
|
671
|
-
# sources of FeatureProtos.
|
672
|
-
class FeatureIdProto
|
673
|
-
include Google::Apis::Core::Hashable
|
674
|
-
|
675
|
-
# The S2CellId corresponding to the approximate location of this feature as of
|
676
|
-
# when it was first created. This can be of variable accuracy, ranging from the
|
677
|
-
# exact centroid of the feature at creation, a very large S2 Cell, or even being
|
678
|
-
# completely randomized for locationless features. Cell ids have the nice
|
679
|
-
# property that they follow a space-filling curve over the surface of the earth.
|
680
|
-
# (See s2cellid.h for details.) WARNING: Clients should only use cell IDs to
|
681
|
-
# perform spatial locality optimizations. There is no strict guarantee that the
|
682
|
-
# cell ID of a feature is related to the current geometry of the feature in any
|
683
|
-
# way.
|
684
|
-
# Corresponds to the JSON property `cellId`
|
685
|
-
# @return [Fixnum]
|
686
|
-
attr_accessor :cell_id
|
687
|
-
|
688
|
-
# A 64-bit fingerprint used to identify features. Most clients should rely on
|
689
|
-
# MapFacts or OneRing to choose fingerprints. If creating new fprints, the
|
690
|
-
# strategy should be chosen so that the chance of collision is remote or non-
|
691
|
-
# existent, and the distribution should be reasonably uniform. For example, if
|
692
|
-
# the source data assigns unique ids to features, then a fingerprint of the
|
693
|
-
# provider name, version, and source id is sufficient.
|
694
|
-
# Corresponds to the JSON property `fprint`
|
695
|
-
# @return [Fixnum]
|
696
|
-
attr_accessor :fprint
|
697
|
-
|
698
|
-
# This is proto2's version of MessageSet.
|
699
|
-
# Corresponds to the JSON property `temporaryData`
|
700
|
-
# @return [Google::Apis::CivicinfoV2::MessageSet]
|
701
|
-
attr_accessor :temporary_data
|
702
|
-
|
703
|
-
def initialize(**args)
|
704
|
-
update!(**args)
|
705
|
-
end
|
706
|
-
|
707
|
-
# Update properties of this object
|
708
|
-
def update!(**args)
|
709
|
-
@cell_id = args[:cell_id] if args.key?(:cell_id)
|
710
|
-
@fprint = args[:fprint] if args.key?(:fprint)
|
711
|
-
@temporary_data = args[:temporary_data] if args.key?(:temporary_data)
|
712
|
-
end
|
713
|
-
end
|
714
|
-
|
715
|
-
# Detailed summary of the result from geocoding an address
|
716
|
-
class GeocodingSummary
|
717
|
-
include Google::Apis::Core::Hashable
|
718
|
-
|
719
|
-
# Represents the best estimate of whether or not the input address was fully
|
720
|
-
# understood and the address is correctly componentized. Mirrors the same-name
|
721
|
-
# field in geostore.staging.AddressLinkupScoringProto.
|
722
|
-
# Corresponds to the JSON property `addressUnderstood`
|
723
|
-
# @return [Boolean]
|
724
|
-
attr_accessor :address_understood
|
725
|
-
alias_method :address_understood?, :address_understood
|
726
|
-
|
727
|
-
# A globally unique identifier associated with each feature. We use 128-bit
|
728
|
-
# identifiers so that we have lots of bits available to distinguish between
|
729
|
-
# features. The feature id currently consists of a 64-bit "cell id" that **
|
730
|
-
# sometimes** corresponds to the approximate centroid of the feature, plus a 64-
|
731
|
-
# bit fingerprint of other identifying information. See more on each respective
|
732
|
-
# field in its comments. Feature ids are first assigned when the data is created
|
733
|
-
# in MapFacts. After initial creation of the feature, they are immutable. This
|
734
|
-
# means that the only properties that you should rely on are that they are
|
735
|
-
# unique, and that cell_ids often - but not always - preserve spatial locality.
|
736
|
-
# The degree of locality varies as the feature undergoes geometry changes, and
|
737
|
-
# should not in general be considered a firm guarantee of the location of any
|
738
|
-
# particular feature. In fact, some locationless features have randomized cell
|
739
|
-
# IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
|
740
|
-
# the id field of features will be globally unique. Using the fprint allows
|
741
|
-
# consumers who don't need the spatial benefit of cell ids to uniquely identify
|
742
|
-
# features in a 64-bit address space. This property is not guaranteed for other
|
743
|
-
# sources of FeatureProtos.
|
744
|
-
# Corresponds to the JSON property `featureId`
|
745
|
-
# @return [Google::Apis::CivicinfoV2::FeatureIdProto]
|
746
|
-
attr_accessor :feature_id
|
747
|
-
|
748
|
-
# The feature type for the FeatureProto returned by the geocoder
|
749
|
-
# Corresponds to the JSON property `featureType`
|
750
|
-
# @return [String]
|
751
|
-
attr_accessor :feature_type
|
752
|
-
|
753
|
-
# Precision of the center point (lat/long) of the geocoded FeatureProto
|
754
|
-
# Corresponds to the JSON property `positionPrecisionMeters`
|
755
|
-
# @return [Float]
|
756
|
-
attr_accessor :position_precision_meters
|
757
|
-
|
758
|
-
# The query sent to the geocoder
|
759
|
-
# Corresponds to the JSON property `queryString`
|
760
|
-
# @return [String]
|
761
|
-
attr_accessor :query_string
|
762
|
-
|
763
|
-
def initialize(**args)
|
764
|
-
update!(**args)
|
765
|
-
end
|
766
|
-
|
767
|
-
# Update properties of this object
|
768
|
-
def update!(**args)
|
769
|
-
@address_understood = args[:address_understood] if args.key?(:address_understood)
|
770
|
-
@feature_id = args[:feature_id] if args.key?(:feature_id)
|
771
|
-
@feature_type = args[:feature_type] if args.key?(:feature_type)
|
772
|
-
@position_precision_meters = args[:position_precision_meters] if args.key?(:position_precision_meters)
|
773
|
-
@query_string = args[:query_string] if args.key?(:query_string)
|
774
|
-
end
|
775
|
-
end
|
776
|
-
|
777
655
|
# Describes a political geography.
|
778
656
|
class GeographicDivision
|
779
657
|
include Google::Apis::Core::Hashable
|
@@ -814,19 +692,6 @@ module Google
|
|
814
692
|
end
|
815
693
|
end
|
816
694
|
|
817
|
-
# This is proto2's version of MessageSet.
|
818
|
-
class MessageSet
|
819
|
-
include Google::Apis::Core::Hashable
|
820
|
-
|
821
|
-
def initialize(**args)
|
822
|
-
update!(**args)
|
823
|
-
end
|
824
|
-
|
825
|
-
# Update properties of this object
|
826
|
-
def update!(**args)
|
827
|
-
end
|
828
|
-
end
|
829
|
-
|
830
695
|
# Information about an Office held by one or more Officials.
|
831
696
|
class Office
|
832
697
|
include Google::Apis::Core::Hashable
|
@@ -904,11 +769,6 @@ module Google
|
|
904
769
|
# @return [Array<String>]
|
905
770
|
attr_accessor :emails
|
906
771
|
|
907
|
-
# Detailed summary about the official's address's geocoding
|
908
|
-
# Corresponds to the JSON property `geocodingSummaries`
|
909
|
-
# @return [Array<Google::Apis::CivicinfoV2::GeocodingSummary>]
|
910
|
-
attr_accessor :geocoding_summaries
|
911
|
-
|
912
772
|
# The official's name.
|
913
773
|
# Corresponds to the JSON property `name`
|
914
774
|
# @return [String]
|
@@ -943,7 +803,6 @@ module Google
|
|
943
803
|
@address = args[:address] if args.key?(:address)
|
944
804
|
@channels = args[:channels] if args.key?(:channels)
|
945
805
|
@emails = args[:emails] if args.key?(:emails)
|
946
|
-
@geocoding_summaries = args[:geocoding_summaries] if args.key?(:geocoding_summaries)
|
947
806
|
@name = args[:name] if args.key?(:name)
|
948
807
|
@party = args[:party] if args.key?(:party)
|
949
808
|
@phones = args[:phones] if args.key?(:phones)
|
@@ -1367,7 +1226,7 @@ module Google
|
|
1367
1226
|
attr_accessor :precinct_id
|
1368
1227
|
|
1369
1228
|
# The precincts that match this voter's address. Will only be returned for
|
1370
|
-
# project IDs which have been
|
1229
|
+
# project IDs which have been allowlisted as "partner projects".
|
1371
1230
|
# Corresponds to the JSON property `precincts`
|
1372
1231
|
# @return [Array<Google::Apis::CivicinfoV2::Precinct>]
|
1373
1232
|
attr_accessor :precincts
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CivicinfoV2
|
18
18
|
# Version of the google-apis-civicinfo_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230613"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,30 +88,12 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class FeatureIdProto
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class GeocodingSummary
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
91
|
class GeographicDivision
|
104
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
93
|
|
106
94
|
include Google::Apis::Core::JsonObjectSupport
|
107
95
|
end
|
108
96
|
|
109
|
-
class MessageSet
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
97
|
class Office
|
116
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
99
|
|
@@ -317,28 +299,6 @@ module Google
|
|
317
299
|
end
|
318
300
|
end
|
319
301
|
|
320
|
-
class FeatureIdProto
|
321
|
-
# @private
|
322
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
323
|
-
property :cell_id, :numeric_string => true, as: 'cellId'
|
324
|
-
property :fprint, :numeric_string => true, as: 'fprint'
|
325
|
-
property :temporary_data, as: 'temporaryData', class: Google::Apis::CivicinfoV2::MessageSet, decorator: Google::Apis::CivicinfoV2::MessageSet::Representation
|
326
|
-
|
327
|
-
end
|
328
|
-
end
|
329
|
-
|
330
|
-
class GeocodingSummary
|
331
|
-
# @private
|
332
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
-
property :address_understood, as: 'addressUnderstood'
|
334
|
-
property :feature_id, as: 'featureId', class: Google::Apis::CivicinfoV2::FeatureIdProto, decorator: Google::Apis::CivicinfoV2::FeatureIdProto::Representation
|
335
|
-
|
336
|
-
property :feature_type, as: 'featureType'
|
337
|
-
property :position_precision_meters, as: 'positionPrecisionMeters'
|
338
|
-
property :query_string, as: 'queryString'
|
339
|
-
end
|
340
|
-
end
|
341
|
-
|
342
302
|
class GeographicDivision
|
343
303
|
# @private
|
344
304
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -348,12 +308,6 @@ module Google
|
|
348
308
|
end
|
349
309
|
end
|
350
310
|
|
351
|
-
class MessageSet
|
352
|
-
# @private
|
353
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
-
end
|
355
|
-
end
|
356
|
-
|
357
311
|
class Office
|
358
312
|
# @private
|
359
313
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -375,8 +329,6 @@ module Google
|
|
375
329
|
collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
|
376
330
|
|
377
331
|
collection :emails, as: 'emails'
|
378
|
-
collection :geocoding_summaries, as: 'geocodingSummaries', class: Google::Apis::CivicinfoV2::GeocodingSummary, decorator: Google::Apis::CivicinfoV2::GeocodingSummary::Representation
|
379
|
-
|
380
332
|
property :name, as: 'name'
|
381
333
|
property :party, as: 'party'
|
382
334
|
collection :phones, as: 'phones'
|
@@ -84,6 +84,8 @@ module Google
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# List of available elections to query.
|
87
|
+
# @param [Boolean] production_data_only
|
88
|
+
# Whether to include data that has not been allowlisted yet
|
87
89
|
# @param [String] fields
|
88
90
|
# Selector specifying which fields to include in a partial response.
|
89
91
|
# @param [String] quota_user
|
@@ -101,10 +103,11 @@ module Google
|
|
101
103
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
102
104
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
103
105
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
104
|
-
def query_election(fields: nil, quota_user: nil, options: nil, &block)
|
106
|
+
def query_election(production_data_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
105
107
|
command = make_simple_command(:get, 'civicinfo/v2/elections', options)
|
106
108
|
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
|
107
109
|
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
|
110
|
+
command.query['productionDataOnly'] = production_data_only unless production_data_only.nil?
|
108
111
|
command.query['fields'] = fields unless fields.nil?
|
109
112
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
110
113
|
execute_or_queue_command(command, &block)
|
@@ -122,6 +125,10 @@ module Google
|
|
122
125
|
# otherElections response field.
|
123
126
|
# @param [Boolean] official_only
|
124
127
|
# If set to true, only data from official state sources will be returned.
|
128
|
+
# @param [Boolean] production_data_only
|
129
|
+
# Whether to include data that has not been vetted yet. Should only be made
|
130
|
+
# available to internal IPs or trusted partners. This is a non-discoverable
|
131
|
+
# parameter in the One Platform API config.
|
125
132
|
# @param [Boolean] return_all_available_data
|
126
133
|
# If set to true, the query will return the success code and include any partial
|
127
134
|
# information when it is unable to determine a matching address or unable to
|
@@ -143,13 +150,14 @@ module Google
|
|
143
150
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
151
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
152
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
-
def query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
+
def query_voter_info(address, election_id: nil, official_only: nil, production_data_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
154
|
command = make_simple_command(:get, 'civicinfo/v2/voterinfo', options)
|
148
155
|
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
|
149
156
|
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
|
150
157
|
command.query['address'] = address unless address.nil?
|
151
158
|
command.query['electionId'] = election_id unless election_id.nil?
|
152
159
|
command.query['officialOnly'] = official_only unless official_only.nil?
|
160
|
+
command.query['productionDataOnly'] = production_data_only unless production_data_only.nil?
|
153
161
|
command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil?
|
154
162
|
command.query['fields'] = fields unless fields.nil?
|
155
163
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-civicinfo_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-civicinfo_v2/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-civicinfo_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|