google-apis-civicinfo_v2 0.6.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/civicinfo_v2/classes.rb +250 -0
- data/lib/google/apis/civicinfo_v2/gem_version.rb +3 -3
- data/lib/google/apis/civicinfo_v2/representations.rb +76 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00f26fe49e154ad8c6d3dc076813fcc4ec8f74787a6b49ea9a1bd85bc78ea1ce
|
4
|
+
data.tar.gz: 51e268bad0bb28bd88a8501ce2406790f8aed10b859e2c6e99f2891fe6f881bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505d71401ea8abb8c380543dc8a1c50d2aad41ff70ba5bf59dae7fa8fbb8c3a7264c1b3fbc6f6c52439d1232636cc32a946ac4415f8d9dc06f5aa2e629383b6d
|
7
|
+
data.tar.gz: 7b03b4e83e3f9ff04bd772dcd6194f60fb84371978f5d7f74ea17b9a91a5b0d2c8cc32cbf2eb2f3b86c3dbf75864ee29e5b0aaadab021591c11ef0eaf632a365
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-civicinfo_v2
|
2
2
|
|
3
|
+
### v0.9.0 (2022-04-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220412
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.8.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.7.0 (2021-12-10)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211209
|
15
|
+
|
3
16
|
### v0.6.0 (2021-10-20)
|
4
17
|
|
5
18
|
* Regenerated from discovery document revision 20210629
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/civicinfo_v2"
|
|
51
51
|
client = Google::Apis::CivicinfoV2::CivicInfoService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -654,6 +654,128 @@ module Google
|
|
654
654
|
end
|
655
655
|
end
|
656
656
|
|
657
|
+
# A globally unique identifier associated with each feature. We use 128-bit
|
658
|
+
# identifiers so that we have lots of bits available to distinguish between
|
659
|
+
# features. The feature id currently consists of a 64-bit "cell id" that **
|
660
|
+
# sometimes** corresponds to the approximate centroid of the feature, plus a 64-
|
661
|
+
# bit fingerprint of other identifying information. See more on each respective
|
662
|
+
# field in its comments. Feature ids are first assigned when the data is created
|
663
|
+
# in MapFacts. After initial creation of the feature, they are immutable. This
|
664
|
+
# means that the only properties that you should rely on are that they are
|
665
|
+
# unique, and that cell_ids often - but not always - preserve spatial locality.
|
666
|
+
# The degree of locality varies as the feature undergoes geometry changes, and
|
667
|
+
# should not in general be considered a firm guarantee of the location of any
|
668
|
+
# particular feature. In fact, some locationless features have randomized cell
|
669
|
+
# IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
|
670
|
+
# the id field of features will be globally unique. Using the fprint allows
|
671
|
+
# consumers who don't need the spatial benefit of cell ids to uniquely identify
|
672
|
+
# features in a 64-bit address space. This property is not guaranteed for other
|
673
|
+
# sources of FeatureProtos.
|
674
|
+
class FeatureIdProto
|
675
|
+
include Google::Apis::Core::Hashable
|
676
|
+
|
677
|
+
# The S2CellId corresponding to the approximate location of this feature as of
|
678
|
+
# when it was first created. This can be of variable accuracy, ranging from the
|
679
|
+
# exact centroid of the feature at creation, a very large S2 Cell, or even being
|
680
|
+
# completely randomized for locationless features. Cell ids have the nice
|
681
|
+
# property that they follow a space-filling curve over the surface of the earth.
|
682
|
+
# (See s2cellid.h for details.) WARNING: Clients should only use cell IDs to
|
683
|
+
# perform spatial locality optimizations. There is no strict guarantee that the
|
684
|
+
# cell ID of a feature is related to the current geometry of the feature in any
|
685
|
+
# way.
|
686
|
+
# Corresponds to the JSON property `cellId`
|
687
|
+
# @return [Fixnum]
|
688
|
+
attr_accessor :cell_id
|
689
|
+
|
690
|
+
# A 64-bit fingerprint used to identify features. Most clients should rely on
|
691
|
+
# MapFacts or OneRing to choose fingerprints. If creating new fprints, the
|
692
|
+
# strategy should be chosen so that the chance of collision is remote or non-
|
693
|
+
# existent, and the distribution should be reasonably uniform. For example, if
|
694
|
+
# the source data assigns unique ids to features, then a fingerprint of the
|
695
|
+
# provider name, version, and source id is sufficient.
|
696
|
+
# Corresponds to the JSON property `fprint`
|
697
|
+
# @return [Fixnum]
|
698
|
+
attr_accessor :fprint
|
699
|
+
|
700
|
+
# This is proto2's version of MessageSet.
|
701
|
+
# Corresponds to the JSON property `temporaryData`
|
702
|
+
# @return [Google::Apis::CivicinfoV2::MessageSet]
|
703
|
+
attr_accessor :temporary_data
|
704
|
+
|
705
|
+
def initialize(**args)
|
706
|
+
update!(**args)
|
707
|
+
end
|
708
|
+
|
709
|
+
# Update properties of this object
|
710
|
+
def update!(**args)
|
711
|
+
@cell_id = args[:cell_id] if args.key?(:cell_id)
|
712
|
+
@fprint = args[:fprint] if args.key?(:fprint)
|
713
|
+
@temporary_data = args[:temporary_data] if args.key?(:temporary_data)
|
714
|
+
end
|
715
|
+
end
|
716
|
+
|
717
|
+
# Detailed summary of the result from geocoding an address
|
718
|
+
class GeocodingSummary
|
719
|
+
include Google::Apis::Core::Hashable
|
720
|
+
|
721
|
+
# Represents the best estimate of whether or not the input address was fully
|
722
|
+
# understood and the address is correctly componentized. Mirrors the same-name
|
723
|
+
# field in geostore.staging.AddressLinkupScoringProto.
|
724
|
+
# Corresponds to the JSON property `addressUnderstood`
|
725
|
+
# @return [Boolean]
|
726
|
+
attr_accessor :address_understood
|
727
|
+
alias_method :address_understood?, :address_understood
|
728
|
+
|
729
|
+
# A globally unique identifier associated with each feature. We use 128-bit
|
730
|
+
# identifiers so that we have lots of bits available to distinguish between
|
731
|
+
# features. The feature id currently consists of a 64-bit "cell id" that **
|
732
|
+
# sometimes** corresponds to the approximate centroid of the feature, plus a 64-
|
733
|
+
# bit fingerprint of other identifying information. See more on each respective
|
734
|
+
# field in its comments. Feature ids are first assigned when the data is created
|
735
|
+
# in MapFacts. After initial creation of the feature, they are immutable. This
|
736
|
+
# means that the only properties that you should rely on are that they are
|
737
|
+
# unique, and that cell_ids often - but not always - preserve spatial locality.
|
738
|
+
# The degree of locality varies as the feature undergoes geometry changes, and
|
739
|
+
# should not in general be considered a firm guarantee of the location of any
|
740
|
+
# particular feature. In fact, some locationless features have randomized cell
|
741
|
+
# IDs! Consumers of FeatureProtos from Mapfacts are guaranteed that fprints in
|
742
|
+
# the id field of features will be globally unique. Using the fprint allows
|
743
|
+
# consumers who don't need the spatial benefit of cell ids to uniquely identify
|
744
|
+
# features in a 64-bit address space. This property is not guaranteed for other
|
745
|
+
# sources of FeatureProtos.
|
746
|
+
# Corresponds to the JSON property `featureId`
|
747
|
+
# @return [Google::Apis::CivicinfoV2::FeatureIdProto]
|
748
|
+
attr_accessor :feature_id
|
749
|
+
|
750
|
+
# The feature type for the FeatureProto returned by the geocoder
|
751
|
+
# Corresponds to the JSON property `featureType`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :feature_type
|
754
|
+
|
755
|
+
# Precision of the center point (lat/long) of the geocoded FeatureProto
|
756
|
+
# Corresponds to the JSON property `positionPrecisionMeters`
|
757
|
+
# @return [Float]
|
758
|
+
attr_accessor :position_precision_meters
|
759
|
+
|
760
|
+
# The query sent to the geocoder
|
761
|
+
# Corresponds to the JSON property `queryString`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :query_string
|
764
|
+
|
765
|
+
def initialize(**args)
|
766
|
+
update!(**args)
|
767
|
+
end
|
768
|
+
|
769
|
+
# Update properties of this object
|
770
|
+
def update!(**args)
|
771
|
+
@address_understood = args[:address_understood] if args.key?(:address_understood)
|
772
|
+
@feature_id = args[:feature_id] if args.key?(:feature_id)
|
773
|
+
@feature_type = args[:feature_type] if args.key?(:feature_type)
|
774
|
+
@position_precision_meters = args[:position_precision_meters] if args.key?(:position_precision_meters)
|
775
|
+
@query_string = args[:query_string] if args.key?(:query_string)
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
657
779
|
# Describes a political geography.
|
658
780
|
class GeographicDivision
|
659
781
|
include Google::Apis::Core::Hashable
|
@@ -694,6 +816,19 @@ module Google
|
|
694
816
|
end
|
695
817
|
end
|
696
818
|
|
819
|
+
# This is proto2's version of MessageSet.
|
820
|
+
class MessageSet
|
821
|
+
include Google::Apis::Core::Hashable
|
822
|
+
|
823
|
+
def initialize(**args)
|
824
|
+
update!(**args)
|
825
|
+
end
|
826
|
+
|
827
|
+
# Update properties of this object
|
828
|
+
def update!(**args)
|
829
|
+
end
|
830
|
+
end
|
831
|
+
|
697
832
|
# Information about an Office held by one or more Officials.
|
698
833
|
class Office
|
699
834
|
include Google::Apis::Core::Hashable
|
@@ -771,6 +906,11 @@ module Google
|
|
771
906
|
# @return [Array<String>]
|
772
907
|
attr_accessor :emails
|
773
908
|
|
909
|
+
# Detailed summary about the official's address's geocoding
|
910
|
+
# Corresponds to the JSON property `geocodingSummaries`
|
911
|
+
# @return [Array<Google::Apis::CivicinfoV2::GeocodingSummary>]
|
912
|
+
attr_accessor :geocoding_summaries
|
913
|
+
|
774
914
|
# The official's name.
|
775
915
|
# Corresponds to the JSON property `name`
|
776
916
|
# @return [String]
|
@@ -805,6 +945,7 @@ module Google
|
|
805
945
|
@address = args[:address] if args.key?(:address)
|
806
946
|
@channels = args[:channels] if args.key?(:channels)
|
807
947
|
@emails = args[:emails] if args.key?(:emails)
|
948
|
+
@geocoding_summaries = args[:geocoding_summaries] if args.key?(:geocoding_summaries)
|
808
949
|
@name = args[:name] if args.key?(:name)
|
809
950
|
@party = args[:party] if args.key?(:party)
|
810
951
|
@phones = args[:phones] if args.key?(:phones)
|
@@ -894,6 +1035,108 @@ module Google
|
|
894
1035
|
end
|
895
1036
|
end
|
896
1037
|
|
1038
|
+
#
|
1039
|
+
class Precinct
|
1040
|
+
include Google::Apis::Core::Hashable
|
1041
|
+
|
1042
|
+
# ID of the AdministrationRegion message for this precinct. Corresponds to
|
1043
|
+
# LocalityId xml tag.
|
1044
|
+
# Corresponds to the JSON property `administrationRegionId`
|
1045
|
+
# @return [String]
|
1046
|
+
attr_accessor :administration_region_id
|
1047
|
+
|
1048
|
+
# ID(s) of the Contest message(s) for this precinct.
|
1049
|
+
# Corresponds to the JSON property `contestId`
|
1050
|
+
# @return [Array<String>]
|
1051
|
+
attr_accessor :contest_id
|
1052
|
+
|
1053
|
+
# Required. Dataset ID. What datasets our Precincts come from.
|
1054
|
+
# Corresponds to the JSON property `datasetId`
|
1055
|
+
# @return [Fixnum]
|
1056
|
+
attr_accessor :dataset_id
|
1057
|
+
|
1058
|
+
# ID(s) of the PollingLocation message(s) for this precinct.
|
1059
|
+
# Corresponds to the JSON property `earlyVoteSiteId`
|
1060
|
+
# @return [Array<String>]
|
1061
|
+
attr_accessor :early_vote_site_id
|
1062
|
+
|
1063
|
+
# ID(s) of the ElectoralDistrict message(s) for this precinct.
|
1064
|
+
# Corresponds to the JSON property `electoralDistrictId`
|
1065
|
+
# @return [Array<String>]
|
1066
|
+
attr_accessor :electoral_district_id
|
1067
|
+
|
1068
|
+
# Required. A unique identifier for this precinct.
|
1069
|
+
# Corresponds to the JSON property `id`
|
1070
|
+
# @return [String]
|
1071
|
+
attr_accessor :id
|
1072
|
+
|
1073
|
+
# Specifies if the precinct runs mail-only elections.
|
1074
|
+
# Corresponds to the JSON property `mailOnly`
|
1075
|
+
# @return [Boolean]
|
1076
|
+
attr_accessor :mail_only
|
1077
|
+
alias_method :mail_only?, :mail_only
|
1078
|
+
|
1079
|
+
# Required. The name of the precinct.
|
1080
|
+
# Corresponds to the JSON property `name`
|
1081
|
+
# @return [String]
|
1082
|
+
attr_accessor :name
|
1083
|
+
|
1084
|
+
# The number of the precinct.
|
1085
|
+
# Corresponds to the JSON property `number`
|
1086
|
+
# @return [String]
|
1087
|
+
attr_accessor :number
|
1088
|
+
|
1089
|
+
# Encouraged. The OCD ID of the precinct
|
1090
|
+
# Corresponds to the JSON property `ocdId`
|
1091
|
+
# @return [Array<String>]
|
1092
|
+
attr_accessor :ocd_id
|
1093
|
+
|
1094
|
+
# ID(s) of the PollingLocation message(s) for this precinct.
|
1095
|
+
# Corresponds to the JSON property `pollingLocationId`
|
1096
|
+
# @return [Array<String>]
|
1097
|
+
attr_accessor :polling_location_id
|
1098
|
+
|
1099
|
+
# ID(s) of the SpatialBoundary message(s) for this precinct. Used to specify a
|
1100
|
+
# geometrical boundary of the precinct.
|
1101
|
+
# Corresponds to the JSON property `spatialBoundaryId`
|
1102
|
+
# @return [Array<String>]
|
1103
|
+
attr_accessor :spatial_boundary_id
|
1104
|
+
|
1105
|
+
# If present, this proto corresponds to one portion of split precinct. Other
|
1106
|
+
# portions of this precinct are guaranteed to have the same `name`. If not
|
1107
|
+
# present, this proto represents a full precicnt.
|
1108
|
+
# Corresponds to the JSON property `splitName`
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :split_name
|
1111
|
+
|
1112
|
+
# Specifies the ward the precinct is contained within.
|
1113
|
+
# Corresponds to the JSON property `ward`
|
1114
|
+
# @return [String]
|
1115
|
+
attr_accessor :ward
|
1116
|
+
|
1117
|
+
def initialize(**args)
|
1118
|
+
update!(**args)
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
# Update properties of this object
|
1122
|
+
def update!(**args)
|
1123
|
+
@administration_region_id = args[:administration_region_id] if args.key?(:administration_region_id)
|
1124
|
+
@contest_id = args[:contest_id] if args.key?(:contest_id)
|
1125
|
+
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
|
1126
|
+
@early_vote_site_id = args[:early_vote_site_id] if args.key?(:early_vote_site_id)
|
1127
|
+
@electoral_district_id = args[:electoral_district_id] if args.key?(:electoral_district_id)
|
1128
|
+
@id = args[:id] if args.key?(:id)
|
1129
|
+
@mail_only = args[:mail_only] if args.key?(:mail_only)
|
1130
|
+
@name = args[:name] if args.key?(:name)
|
1131
|
+
@number = args[:number] if args.key?(:number)
|
1132
|
+
@ocd_id = args[:ocd_id] if args.key?(:ocd_id)
|
1133
|
+
@polling_location_id = args[:polling_location_id] if args.key?(:polling_location_id)
|
1134
|
+
@spatial_boundary_id = args[:spatial_boundary_id] if args.key?(:spatial_boundary_id)
|
1135
|
+
@split_name = args[:split_name] if args.key?(:split_name)
|
1136
|
+
@ward = args[:ward] if args.key?(:ward)
|
1137
|
+
end
|
1138
|
+
end
|
1139
|
+
|
897
1140
|
#
|
898
1141
|
class RepresentativeInfoData
|
899
1142
|
include Google::Apis::Core::Hashable
|
@@ -1125,6 +1368,12 @@ module Google
|
|
1125
1368
|
# @return [String]
|
1126
1369
|
attr_accessor :precinct_id
|
1127
1370
|
|
1371
|
+
# The precincts that match this voter's address. Will only be returned for
|
1372
|
+
# project IDs which have been whitelisted as "partner projects".
|
1373
|
+
# Corresponds to the JSON property `precincts`
|
1374
|
+
# @return [Array<Google::Apis::CivicinfoV2::Precinct>]
|
1375
|
+
attr_accessor :precincts
|
1376
|
+
|
1128
1377
|
# Local Election Information for the state that the voter votes in. For the US,
|
1129
1378
|
# there will only be one element in this array.
|
1130
1379
|
# Corresponds to the JSON property `state`
|
@@ -1147,6 +1396,7 @@ module Google
|
|
1147
1396
|
@other_elections = args[:other_elections] if args.key?(:other_elections)
|
1148
1397
|
@polling_locations = args[:polling_locations] if args.key?(:polling_locations)
|
1149
1398
|
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
|
1399
|
+
@precincts = args[:precincts] if args.key?(:precincts)
|
1150
1400
|
@state = args[:state] if args.key?(:state)
|
1151
1401
|
end
|
1152
1402
|
end
|
@@ -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.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220412"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,12 +88,30 @@ 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
|
+
|
91
103
|
class GeographicDivision
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class MessageSet
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class Office
|
98
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
117
|
|
@@ -112,6 +130,12 @@ module Google
|
|
112
130
|
include Google::Apis::Core::JsonObjectSupport
|
113
131
|
end
|
114
132
|
|
133
|
+
class Precinct
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
115
139
|
class RepresentativeInfoData
|
116
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
141
|
|
@@ -293,6 +317,28 @@ module Google
|
|
293
317
|
end
|
294
318
|
end
|
295
319
|
|
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
|
+
|
296
342
|
class GeographicDivision
|
297
343
|
# @private
|
298
344
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -302,6 +348,12 @@ module Google
|
|
302
348
|
end
|
303
349
|
end
|
304
350
|
|
351
|
+
class MessageSet
|
352
|
+
# @private
|
353
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
305
357
|
class Office
|
306
358
|
# @private
|
307
359
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -323,6 +375,8 @@ module Google
|
|
323
375
|
collection :channels, as: 'channels', class: Google::Apis::CivicinfoV2::Channel, decorator: Google::Apis::CivicinfoV2::Channel::Representation
|
324
376
|
|
325
377
|
collection :emails, as: 'emails'
|
378
|
+
collection :geocoding_summaries, as: 'geocodingSummaries', class: Google::Apis::CivicinfoV2::GeocodingSummary, decorator: Google::Apis::CivicinfoV2::GeocodingSummary::Representation
|
379
|
+
|
326
380
|
property :name, as: 'name'
|
327
381
|
property :party, as: 'party'
|
328
382
|
collection :phones, as: 'phones'
|
@@ -349,6 +403,26 @@ module Google
|
|
349
403
|
end
|
350
404
|
end
|
351
405
|
|
406
|
+
class Precinct
|
407
|
+
# @private
|
408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
409
|
+
property :administration_region_id, as: 'administrationRegionId'
|
410
|
+
collection :contest_id, as: 'contestId'
|
411
|
+
property :dataset_id, :numeric_string => true, as: 'datasetId'
|
412
|
+
collection :early_vote_site_id, as: 'earlyVoteSiteId'
|
413
|
+
collection :electoral_district_id, as: 'electoralDistrictId'
|
414
|
+
property :id, as: 'id'
|
415
|
+
property :mail_only, as: 'mailOnly'
|
416
|
+
property :name, as: 'name'
|
417
|
+
property :number, as: 'number'
|
418
|
+
collection :ocd_id, as: 'ocdId'
|
419
|
+
collection :polling_location_id, as: 'pollingLocationId'
|
420
|
+
collection :spatial_boundary_id, as: 'spatialBoundaryId'
|
421
|
+
property :split_name, as: 'splitName'
|
422
|
+
property :ward, as: 'ward'
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
352
426
|
class RepresentativeInfoData
|
353
427
|
# @private
|
354
428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -417,6 +491,8 @@ module Google
|
|
417
491
|
collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
|
418
492
|
|
419
493
|
property :precinct_id, as: 'precinctId'
|
494
|
+
collection :precincts, as: 'precincts', class: Google::Apis::CivicinfoV2::Precinct, decorator: Google::Apis::CivicinfoV2::Precinct::Representation
|
495
|
+
|
420
496
|
collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
|
421
497
|
|
422
498
|
end
|
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.9.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:
|
11
|
+
date: 2022-04-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.9.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Civic Information API V2
|