google-api-client 0.9.pre1 → 0.9.pre2

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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +4 -3
  4. data/api_names.yaml +42 -0
  5. data/api_names_out.yaml +977 -651
  6. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  7. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -24
  11. data/generated/google/apis/androidenterprise_v1/service.rb +11 -6
  12. data/generated/google/apis/androidenterprise_v1.rb +2 -1
  13. data/generated/google/apis/appstate_v1.rb +1 -1
  14. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +34 -0
  16. data/generated/google/apis/bigquery_v2/representations.rb +14 -0
  17. data/generated/google/apis/bigquery_v2/service.rb +2 -2
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/calendar_v3/classes.rb +8 -0
  20. data/generated/google/apis/calendar_v3/representations.rb +1 -0
  21. data/generated/google/apis/calendar_v3.rb +1 -1
  22. data/generated/google/apis/civicinfo_v2/classes.rb +61 -0
  23. data/generated/google/apis/civicinfo_v2/representations.rb +8 -0
  24. data/generated/google/apis/civicinfo_v2.rb +1 -1
  25. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  26. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  27. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  28. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +4 -1
  30. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +20 -19
  31. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +34 -34
  32. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -5
  33. data/generated/google/apis/compute_v1/classes.rb +2638 -1136
  34. data/generated/google/apis/compute_v1/representations.rb +580 -0
  35. data/generated/google/apis/compute_v1/service.rb +2448 -305
  36. data/generated/google/apis/compute_v1.rb +1 -1
  37. data/generated/google/apis/container_v1/classes.rb +438 -0
  38. data/generated/google/apis/container_v1/representations.rb +163 -0
  39. data/generated/google/apis/container_v1/service.rb +346 -0
  40. data/generated/google/apis/container_v1.rb +35 -0
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/content_v2/service.rb +48 -12
  43. data/generated/google/apis/content_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +13 -9
  45. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +110 -15
  46. data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
  47. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  48. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  49. data/generated/google/apis/dns_v1/service.rb +4 -1
  50. data/generated/google/apis/dns_v1.rb +1 -1
  51. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2.rb +1 -1
  53. data/generated/google/apis/fitness_v1/classes.rb +65 -2
  54. data/generated/google/apis/fitness_v1/representations.rb +27 -0
  55. data/generated/google/apis/fitness_v1.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_v1.rb +1 -1
  58. data/generated/google/apis/genomics_v1/classes.rb +2287 -0
  59. data/generated/google/apis/genomics_v1/representations.rb +796 -0
  60. data/generated/google/apis/genomics_v1/service.rb +1520 -0
  61. data/generated/google/apis/genomics_v1.rb +47 -0
  62. data/generated/google/apis/genomics_v1beta2/service.rb +36 -0
  63. data/generated/google/apis/genomics_v1beta2.rb +1 -1
  64. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  65. data/generated/google/apis/mapsengine_v1.rb +1 -1
  66. data/generated/google/apis/oauth2_v2.rb +1 -1
  67. data/generated/google/apis/plus_domains_v1.rb +1 -1
  68. data/generated/google/apis/plus_v1.rb +1 -1
  69. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  70. data/generated/google/apis/pubsub_v1beta2/classes.rb +42 -42
  71. data/generated/google/apis/pubsub_v1beta2/service.rb +26 -22
  72. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  73. data/generated/google/apis/replicapool_v1beta2/classes.rb +10 -0
  74. data/generated/google/apis/replicapool_v1beta2/representations.rb +1 -0
  75. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  76. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +4 -2
  78. data/generated/google/apis/storage_v1.rb +1 -1
  79. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  80. data/generated/google/apis/youtube_v3/classes.rb +3 -3
  81. data/generated/google/apis/youtube_v3/representations.rb +1 -1
  82. data/generated/google/apis/youtube_v3/service.rb +78 -0
  83. data/generated/google/apis/youtube_v3.rb +1 -1
  84. data/google-api-client.gemspec +0 -1
  85. data/lib/google/api_client/auth/installed_app.rb +6 -4
  86. data/lib/google/api_client/auth/key_utils.rb +93 -0
  87. data/lib/google/apis/core/api_command.rb +12 -5
  88. data/lib/google/apis/core/http_command.rb +17 -7
  89. data/lib/google/apis/core/json_representation.rb +6 -2
  90. data/lib/google/apis/errors.rb +9 -2
  91. data/lib/google/apis/version.rb +1 -1
  92. data/script/generate +4 -3
  93. data/spec/google/apis/core/http_command_spec.rb +20 -0
  94. data/spec/google/apis/core/json_representation_spec.rb +1 -1
  95. metadata +15 -16
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest
27
27
  module AdexchangebuyerV1_3
28
28
  VERSION = 'V1_3'
29
- REVISION = '20150520'
29
+ REVISION = '20150720'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/seller-rest/
27
27
  module AdexchangesellerV2_0
28
28
  VERSION = 'V2_0'
29
- REVISION = '20150624'
29
+ REVISION = '20150719'
30
30
 
31
31
  # View and manage your Ad Exchange data
32
32
  AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/management/
27
27
  module AdsenseV1_4
28
28
  VERSION = 'V1_4'
29
- REVISION = '20150624'
29
+ REVISION = '20150719'
30
30
 
31
31
  # View and manage your AdSense data
32
32
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20150624'
29
+ REVISION = '20150719'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -145,17 +145,18 @@ module Google
145
145
  end
146
146
  end
147
147
 
148
- # App version represents a single APK version.
148
+ # This represents a single version of the app.
149
149
  class AppVersion
150
150
  include Google::Apis::Core::Hashable
151
151
 
152
- # Unique increasing identifier for the apk version.
152
+ # Unique increasing identifier for the app version.
153
153
  # Corresponds to the JSON property `versionCode`
154
154
  # @return [Fixnum]
155
155
  attr_accessor :version_code
156
156
 
157
- # The string used in the Play Store by the app developer to identify a version
158
- # of an app. The string is not necessarily unique or localized (e.g. "1.4").
157
+ # The string used in the Play Store by the app developer to identify the version.
158
+ # The string is not necessarily unique or localized (for example, the string
159
+ # could be "1.4").
159
160
  # Corresponds to the JSON property `versionString`
160
161
  # @return [String]
161
162
  attr_accessor :version_string
@@ -612,17 +613,16 @@ module Google
612
613
  # admin approves a product in Google Play, if the product is added to a
613
614
  # collection, or if an entitlement for the product is created for a user via the
614
615
  # API. For paid products, a group license object is only created as part of the
615
- # first bulk purchase of that product in Google Play done by the enterprise
616
- # admin.
616
+ # first bulk purchase of that product in Google Play by the enterprise admin.
617
617
  # The API can be used to query group licenses; the available information
618
618
  # includes the total number of licenses purchased (for paid products) and the
619
- # total number of licenses that have been provisioned, i.e. the total number of
620
- # user entitlements in existence for the product.
621
- # Group license objects are never deleted; if e.g. a free app is added to a
622
- # collection and then removed, the group license will remain, allowing to keep
623
- # track of any remaining entitlements. An enterprise admin may indicate they are
624
- # no longer interested in the group license by marking it as unapproved in
625
- # Google Play.
619
+ # total number of licenses that have been provisioned, that is, the total number
620
+ # of user entitlements in existence for the product.
621
+ # Group license objects are never deleted. If, for example, a free app is added
622
+ # to a collection and then removed, the group license will remain, allowing the
623
+ # enterprise admin to keep track of any remaining entitlements. An enterprise
624
+ # admin may indicate they are no longer interested in the group license by
625
+ # marking it as unapproved in Google Play.
626
626
  class GroupLicense
627
627
  include Google::Apis::Core::Hashable
628
628
 
@@ -877,8 +877,8 @@ module Google
877
877
  class Product
878
878
  include Google::Apis::Core::Hashable
879
879
 
880
- # List of app versions available for this product. The returned list contains
881
- # only public versions. E.g. alpha, beta or canary versions will not be included.
880
+ # App versions currently available for this product. The returned list contains
881
+ # only public versions. Alpha and beta versions are not included.
882
882
  # Corresponds to the JSON property `appVersion`
883
883
  # @return [Array<Google::Apis::AndroidenterpriseV1::AppVersion>]
884
884
  attr_accessor :app_version
@@ -893,7 +893,12 @@ module Google
893
893
  # @return [String]
894
894
  attr_accessor :details_url
895
895
 
896
- # How and to whom the package is made available.
896
+ # How and to whom the package is made available. The value publicGoogleHosted
897
+ # means that the package is available through the Play Store and not restricted
898
+ # to a specific enterprise. The value privateGoogleHosted means that the package
899
+ # is a private app (restricted to an enterprise) but hosted by Google. The value
900
+ # privateSelfHosted means that the package is a private app (restricted to an
901
+ # enterprise) and is privately hosted.
897
902
  # Corresponds to the JSON property `distributionChannel`
898
903
  # @return [String]
899
904
  attr_accessor :distribution_channel
@@ -909,8 +914,8 @@ module Google
909
914
  # @return [String]
910
915
  attr_accessor :kind
911
916
 
912
- # A string of the form "app:
913
- # " - e.g. "app:com.google.android.gm" represents the GMail app.
917
+ # A string of the form app:
918
+ # . For example, app:com.google.android.gm represents the Gmail app.
914
919
  # Corresponds to the JSON property `productId`
915
920
  # @return [String]
916
921
  attr_accessor :product_id
@@ -1037,12 +1042,14 @@ module Google
1037
1042
  class GenerateProductApprovalUrlResponse
1038
1043
  include Google::Apis::Core::Hashable
1039
1044
 
1040
- # A iframe-able URL that displays a product's permissions (if any). This URL can
1041
- # be used to approve the product only once and for a limited time (1 hour),
1042
- # using the Products.approve call. If the product is not currently approved and
1043
- # has no permissions, this URL will point to an empty page. If the product is
1044
- # currently approved and all of its permissions (if any) are also approved, this
1045
- # field will not be populated.
1045
+ # A URL that can be rendered in an iframe to display the permissions (if any) of
1046
+ # a product. This URL can be used to approve the product only once and only
1047
+ # within 24 hours of being generated, using the Products.approve call. If the
1048
+ # product is currently unapproved and has no permissions, this URL will point to
1049
+ # an empty page. If the product is currently approved, a URL will only be
1050
+ # generated if that product has added permissions since it was last approved,
1051
+ # and the URL will only display those new permissions that have not yet been
1052
+ # accepted.
1046
1053
  # Corresponds to the JSON property `url`
1047
1054
  # @return [String]
1048
1055
  attr_accessor :url
@@ -31,6 +31,7 @@ module Google
31
31
  # Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
32
32
  # service = Androidenterprise::AndroidEnterpriseService.new
33
33
  #
34
+ # @see https://developers.google.com/play/enterprise
34
35
  class AndroidEnterpriseService < Google::Apis::Core::BaseService
35
36
  # @return [String]
36
37
  # API key. Your API key identifies your project and provides you with API access,
@@ -1597,17 +1598,21 @@ module Google
1597
1598
  execute_or_queue_command(command, &block)
1598
1599
  end
1599
1600
 
1600
- # Generates a URL that can be used to display an iframe to view the product's
1601
- # permissions (if any) and approve the product. This URL can be used to approve
1602
- # the product for a limited time (currently 1 hour) using the Products.approve
1603
- # call.
1601
+ # Generates a URL that can be rendered in an iframe to display the permissions (
1602
+ # if any) of a product. An enterprise admin must view these permissions and
1603
+ # accept them on behalf of their organization in order to approve that product.
1604
+ # Admins should accept the displayed permissions by interacting with a separate
1605
+ # UI element in the EMM console, which in turn should trigger the use of this
1606
+ # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
1607
+ # approve the product. This URL can only be used to display permissions for up
1608
+ # to 1 day.
1604
1609
  # @param [String] enterprise_id
1605
1610
  # The ID of the enterprise.
1606
1611
  # @param [String] product_id
1607
1612
  # The ID of the product.
1608
1613
  # @param [String] language_code
1609
- # The language code that will be used for permission names and descriptions in
1610
- # the returned iframe.
1614
+ # The BCP 47 language code used for permission names and descriptions in the
1615
+ # returned iframe, for instance "en-US".
1611
1616
  # @param [String] fields
1612
1617
  # Selector specifying which fields to include in a partial response.
1613
1618
  # @param [String] quota_user
@@ -23,9 +23,10 @@ module Google
23
23
  # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
24
24
  # for Work users.
25
25
  #
26
+ # @see https://developers.google.com/play/enterprise
26
27
  module AndroidenterpriseV1
27
28
  VERSION = 'V1'
28
- REVISION = '20150303'
29
+ REVISION = '20150715'
29
30
 
30
31
  # Manage corporate Android devices
31
32
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/web/api/states
26
26
  module AppstateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20150622'
28
+ REVISION = '20150714'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see http://developers.google.com/compute/docs/autoscaler
27
27
  module AutoscalerV1beta2
28
28
  VERSION = 'V1beta2'
29
- REVISION = '20150617'
29
+ REVISION = '20150629'
30
30
 
31
31
  # View and manage your Google Compute Engine resources
32
32
  AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
@@ -1063,6 +1063,11 @@ module Google
1063
1063
  attr_accessor :use_query_cache
1064
1064
  alias_method :use_query_cache?, :use_query_cache
1065
1065
 
1066
+ # [Experimental] Describes user-defined function resources used in the query.
1067
+ # Corresponds to the JSON property `userDefinedFunctionResources`
1068
+ # @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
1069
+ attr_accessor :user_defined_function_resources
1070
+
1066
1071
  # [Optional] Specifies the action that occurs if the destination table already
1067
1072
  # exists. The following values are supported: WRITE_TRUNCATE: If the table
1068
1073
  # already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table
@@ -1091,6 +1096,7 @@ module Google
1091
1096
  @query = args[:query] unless args[:query].nil?
1092
1097
  @table_definitions = args[:table_definitions] unless args[:table_definitions].nil?
1093
1098
  @use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil?
1099
+ @user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil?
1094
1100
  @write_disposition = args[:write_disposition] unless args[:write_disposition].nil?
1095
1101
  end
1096
1102
  end
@@ -2232,6 +2238,34 @@ module Google
2232
2238
  end
2233
2239
  end
2234
2240
 
2241
+ #
2242
+ class UserDefinedFunctionResource
2243
+ include Google::Apis::Core::Hashable
2244
+
2245
+ # [Pick one] An inline resource that contains code for a user-defined function (
2246
+ # UDF). Providing a inline code resource is equivalent to providing a URI for a
2247
+ # file containing the same code.
2248
+ # Corresponds to the JSON property `inlineCode`
2249
+ # @return [String]
2250
+ attr_accessor :inline_code
2251
+
2252
+ # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://
2253
+ # bucket/path).
2254
+ # Corresponds to the JSON property `resourceUri`
2255
+ # @return [String]
2256
+ attr_accessor :resource_uri
2257
+
2258
+ def initialize(**args)
2259
+ update!(**args)
2260
+ end
2261
+
2262
+ # Update properties of this object
2263
+ def update!(**args)
2264
+ @inline_code = args[:inline_code] unless args[:inline_code].nil?
2265
+ @resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
2266
+ end
2267
+ end
2268
+
2235
2269
  #
2236
2270
  class ViewDefinition
2237
2271
  include Google::Apis::Core::Hashable
@@ -194,6 +194,10 @@ module Google
194
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
195
  end
196
196
 
197
+ class UserDefinedFunctionResource
198
+ class Representation < Google::Apis::Core::JsonRepresentation; end
199
+ end
200
+
197
201
  class ViewDefinition
198
202
  class Representation < Google::Apis::Core::JsonRepresentation; end
199
203
  end
@@ -428,6 +432,8 @@ module Google
428
432
  hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
429
433
 
430
434
  property :use_query_cache, as: 'useQueryCache'
435
+ collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
436
+
431
437
  property :write_disposition, as: 'writeDisposition'
432
438
  end
433
439
  end
@@ -743,6 +749,14 @@ module Google
743
749
  end
744
750
  end
745
751
 
752
+ class UserDefinedFunctionResource
753
+ # @private
754
+ class Representation < Google::Apis::Core::JsonRepresentation
755
+ property :inline_code, as: 'inlineCode'
756
+ property :resource_uri, as: 'resourceUri'
757
+ end
758
+ end
759
+
746
760
  class ViewDefinition
747
761
  # @private
748
762
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -404,8 +404,8 @@ module Google
404
404
  # Zero-based index of the starting row
405
405
  # @param [Fixnum] timeout_ms
406
406
  # How long to wait for the query to complete, in milliseconds, before returning.
407
- # Default is to return immediately. If the timeout passes before the job
408
- # completes, the request will fail with a TIMEOUT error
407
+ # Default is 10 seconds. If the timeout passes before the job completes, the '
408
+ # jobComplete' field in the response will be false
409
409
  # @param [String] fields
410
410
  # Selector specifying which fields to include in a partial response.
411
411
  # @param [String] quota_user
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20150623'
28
+ REVISION = '20150710'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -1146,6 +1146,13 @@ module Google
1146
1146
  class EventAttachment
1147
1147
  include Google::Apis::Core::Hashable
1148
1148
 
1149
+ # ID of the attached file. Read-only.
1150
+ # E.g. for Google Drive files this is the ID of the corresponding Files resource
1151
+ # entry in the Drive API.
1152
+ # Corresponds to the JSON property `fileId`
1153
+ # @return [String]
1154
+ attr_accessor :file_id
1155
+
1149
1156
  # URL link to the attachment.
1150
1157
  # For adding Google Drive file attachments use the same format as in
1151
1158
  # alternateLink property of the Files resource in the Drive API.
@@ -1174,6 +1181,7 @@ module Google
1174
1181
 
1175
1182
  # Update properties of this object
1176
1183
  def update!(**args)
1184
+ @file_id = args[:file_id] unless args[:file_id].nil?
1177
1185
  @file_url = args[:file_url] unless args[:file_url].nil?
1178
1186
  @icon_link = args[:icon_link] unless args[:icon_link].nil?
1179
1187
  @mime_type = args[:mime_type] unless args[:mime_type].nil?
@@ -412,6 +412,7 @@ module Google
412
412
  class EventAttachment
413
413
  # @private
414
414
  class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :file_id, as: 'fileId'
415
416
  property :file_url, as: 'fileUrl'
416
417
  property :icon_link, as: 'iconLink'
417
418
  property :mime_type, as: 'mimeType'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20150623'
28
+ REVISION = '20150701'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -315,12 +315,58 @@ module Google
315
315
  # @return [String]
316
316
  attr_accessor :primary_party
317
317
 
318
+ # 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
+ # or a judge's name for a retention contest. This field is only populated for
321
+ # contests of type 'Referendum'.
322
+ # Corresponds to the JSON property `referendumBallotResponses`
323
+ # @return [Array<String>]
324
+ attr_accessor :referendum_ballot_responses
325
+
326
+ # Specifies a short summary of the referendum that is on the ballot below the
327
+ # title but above the text. This field is only populated for contests of type '
328
+ # Referendum'.
329
+ # Corresponds to the JSON property `referendumBrief`
330
+ # @return [String]
331
+ attr_accessor :referendum_brief
332
+
333
+ # A statement in opposition to the referendum. It does not necessarily appear on
334
+ # the ballot. This field is only populated for contests of type 'Referendum'.
335
+ # Corresponds to the JSON property `referendumConStatement`
336
+ # @return [String]
337
+ attr_accessor :referendum_con_statement
338
+
339
+ # Specifies what effect abstaining (not voting) on the proposition will have (i.
340
+ # e. whether abstaining is considered a vote against it). This field is only
341
+ # populated for contests of type 'Referendum'.
342
+ # Corresponds to the JSON property `referendumEffectOfAbstain`
343
+ # @return [String]
344
+ attr_accessor :referendum_effect_of_abstain
345
+
346
+ # The threshold of votes that the referendum needs in order to pass, e.g. "two-
347
+ # thirds". This field is only populated for contests of type 'Referendum'.
348
+ # Corresponds to the JSON property `referendumPassageThreshold`
349
+ # @return [String]
350
+ attr_accessor :referendum_passage_threshold
351
+
352
+ # A statement in favor of the referendum. It does not necessarily appear on the
353
+ # ballot. This field is only populated for contests of type 'Referendum'.
354
+ # Corresponds to the JSON property `referendumProStatement`
355
+ # @return [String]
356
+ attr_accessor :referendum_pro_statement
357
+
318
358
  # A brief description of the referendum. This field is only populated for
319
359
  # contests of type 'Referendum'.
320
360
  # Corresponds to the JSON property `referendumSubtitle`
321
361
  # @return [String]
322
362
  attr_accessor :referendum_subtitle
323
363
 
364
+ # The full text of the referendum. This field is only populated for contests of
365
+ # type 'Referendum'.
366
+ # Corresponds to the JSON property `referendumText`
367
+ # @return [String]
368
+ attr_accessor :referendum_text
369
+
324
370
  # The title of the referendum (e.g. 'Proposition 42'). This field is only
325
371
  # populated for contests of type 'Referendum'.
326
372
  # Corresponds to the JSON property `referendumTitle`
@@ -372,7 +418,14 @@ module Google
372
418
  @number_voting_for = args[:number_voting_for] unless args[:number_voting_for].nil?
373
419
  @office = args[:office] unless args[:office].nil?
374
420
  @primary_party = args[:primary_party] unless args[:primary_party].nil?
421
+ @referendum_ballot_responses = args[:referendum_ballot_responses] unless args[:referendum_ballot_responses].nil?
422
+ @referendum_brief = args[:referendum_brief] unless args[:referendum_brief].nil?
423
+ @referendum_con_statement = args[:referendum_con_statement] unless args[:referendum_con_statement].nil?
424
+ @referendum_effect_of_abstain = args[:referendum_effect_of_abstain] unless args[:referendum_effect_of_abstain].nil?
425
+ @referendum_passage_threshold = args[:referendum_passage_threshold] unless args[:referendum_passage_threshold].nil?
426
+ @referendum_pro_statement = args[:referendum_pro_statement] unless args[:referendum_pro_statement].nil?
375
427
  @referendum_subtitle = args[:referendum_subtitle] unless args[:referendum_subtitle].nil?
428
+ @referendum_text = args[:referendum_text] unless args[:referendum_text].nil?
376
429
  @referendum_title = args[:referendum_title] unless args[:referendum_title].nil?
377
430
  @referendum_url = args[:referendum_url] unless args[:referendum_url].nil?
378
431
  @roles = args[:roles] unless args[:roles].nil?
@@ -1006,6 +1059,13 @@ module Google
1006
1059
  # @return [String]
1007
1060
  attr_accessor :kind
1008
1061
 
1062
+ # Specifies whether voters in the precinct vote only by mailing their ballots (
1063
+ # with the possible option of dropping off their ballots as well).
1064
+ # Corresponds to the JSON property `mailOnly`
1065
+ # @return [Boolean]
1066
+ attr_accessor :mail_only
1067
+ alias_method :mail_only?, :mail_only
1068
+
1009
1069
  # A simple representation of an address.
1010
1070
  # Corresponds to the JSON property `normalizedInput`
1011
1071
  # @return [Google::Apis::CivicinfoV2::SimpleAddressType]
@@ -1045,6 +1105,7 @@ module Google
1045
1105
  @early_vote_sites = args[:early_vote_sites] unless args[:early_vote_sites].nil?
1046
1106
  @election = args[:election] unless args[:election].nil?
1047
1107
  @kind = args[:kind] unless args[:kind].nil?
1108
+ @mail_only = args[:mail_only] unless args[:mail_only].nil?
1048
1109
  @normalized_input = args[:normalized_input] unless args[:normalized_input].nil?
1049
1110
  @other_elections = args[:other_elections] unless args[:other_elections].nil?
1050
1111
  @polling_locations = args[:polling_locations] unless args[:polling_locations].nil?