google-api-client 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +1 -1
  4. data/README.md +1 -1
  5. data/api_names.yaml +55 -117
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -8
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +23 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +10 -4
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  11. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  12. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  13. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  15. data/generated/google/apis/admin_directory_v1.rb +1 -1
  16. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  17. data/generated/google/apis/admin_reports_v1.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  21. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  22. data/generated/google/apis/analytics_v3/service.rb +218 -0
  23. data/generated/google/apis/analytics_v3.rb +1 -1
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +18 -8
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/androidenterprise_v1/classes.rb +208 -37
  27. data/generated/google/apis/androidenterprise_v1/representations.rb +83 -0
  28. data/generated/google/apis/androidenterprise_v1/service.rb +469 -20
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  31. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  32. data/generated/google/apis/appengine_v1beta5/classes.rb +379 -297
  33. data/generated/google/apis/appengine_v1beta5/representations.rb +55 -10
  34. data/generated/google/apis/appengine_v1beta5/service.rb +281 -35
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2/classes.rb +50 -2
  39. data/generated/google/apis/bigquery_v2/representations.rb +6 -0
  40. data/generated/google/apis/bigquery_v2/service.rb +8 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/civicinfo_v2/classes.rb +6 -0
  44. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  45. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  46. data/generated/google/apis/civicinfo_v2.rb +3 -2
  47. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  48. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  49. data/generated/google/apis/classroom_v1/service.rb +392 -37
  50. data/generated/google/apis/classroom_v1.rb +1 -1
  51. data/generated/google/apis/cloudbuild_v1/classes.rb +190 -12
  52. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -2
  53. data/generated/google/apis/cloudbuild_v1/service.rb +170 -0
  54. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
  56. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  57. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +599 -77
  59. data/generated/google/apis/compute_beta/representations.rb +240 -0
  60. data/generated/google/apis/compute_beta/service.rb +1999 -710
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +140 -58
  63. data/generated/google/apis/compute_v1/representations.rb +17 -0
  64. data/generated/google/apis/compute_v1/service.rb +462 -521
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +689 -1
  67. data/generated/google/apis/content_v2/representations.rb +316 -0
  68. data/generated/google/apis/content_v2/service.rb +244 -0
  69. data/generated/google/apis/content_v2.rb +1 -1
  70. data/generated/google/apis/datastore_v1beta3/classes.rb +48 -0
  71. data/generated/google/apis/datastore_v1beta3/representations.rb +5 -0
  72. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  73. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  74. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  75. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  76. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  77. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  78. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2/classes.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v3.rb +1 -1
  83. data/generated/google/apis/fitness_v1/classes.rb +8 -0
  84. data/generated/google/apis/fitness_v1/representations.rb +1 -0
  85. data/generated/google/apis/fitness_v1/service.rb +2 -2
  86. data/generated/google/apis/fitness_v1.rb +7 -1
  87. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  88. data/generated/google/apis/games_management_v1management.rb +1 -1
  89. data/generated/google/apis/games_v1.rb +1 -1
  90. data/generated/google/apis/genomics_v1/classes.rb +13 -2
  91. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  92. data/generated/google/apis/genomics_v1/service.rb +2 -3
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/gmail_v1/classes.rb +8 -11
  95. data/generated/google/apis/gmail_v1/service.rb +5 -5
  96. data/generated/google/apis/gmail_v1.rb +1 -1
  97. data/generated/google/apis/identitytoolkit_v3/classes.rb +38 -0
  98. data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -0
  99. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  100. data/generated/google/apis/monitoring_v3/classes.rb +340 -421
  101. data/generated/google/apis/monitoring_v3/representations.rb +0 -17
  102. data/generated/google/apis/monitoring_v3/service.rb +136 -168
  103. data/generated/google/apis/monitoring_v3.rb +1 -1
  104. data/generated/google/apis/oauth2_v2.rb +1 -1
  105. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  106. data/generated/google/apis/plus_domains_v1.rb +1 -1
  107. data/generated/google/apis/plus_v1.rb +1 -1
  108. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  109. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  110. data/generated/google/apis/qpx_express_v1.rb +1 -1
  111. data/generated/google/apis/script_v1/classes.rb +6 -0
  112. data/generated/google/apis/script_v1/representations.rb +1 -0
  113. data/generated/google/apis/script_v1.rb +1 -1
  114. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  115. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  116. data/generated/google/apis/sheets_v4/service.rb +55 -0
  117. data/generated/google/apis/sheets_v4.rb +1 -1
  118. data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
  119. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  120. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  121. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  122. data/generated/google/apis/storage_v1/classes.rb +36 -1
  123. data/generated/google/apis/storage_v1/representations.rb +16 -0
  124. data/generated/google/apis/storage_v1/service.rb +18 -3
  125. data/generated/google/apis/storage_v1.rb +1 -1
  126. data/generated/google/apis/vision_v1.rb +1 -1
  127. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  128. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  129. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  130. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  131. data/generated/google/apis/youtube_v3.rb +1 -1
  132. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  133. data/lib/google/apis/generator/annotator.rb +6 -0
  134. data/lib/google/apis/version.rb +1 -1
  135. metadata +6 -3
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/appengine/docs/admin-api/
26
26
  module AppengineV1beta5
27
27
  VERSION = 'V1beta5'
28
- REVISION = '20160614'
28
+ REVISION = '20160802'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/activity/
26
26
  module AppsactivityV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160129'
28
+ REVISION = '20160805'
29
29
 
30
30
  # View the activity history of your Google Apps
31
31
  AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
@@ -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 = '20160628'
28
+ REVISION = '20160810'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -174,6 +174,14 @@ module Google
174
174
  attr_accessor :ignore_unspecified_column_families
175
175
  alias_method :ignore_unspecified_column_families?, :ignore_unspecified_column_families
176
176
 
177
+ # [Optional] If field is true, then the rowkey column families will be read and
178
+ # converted to string. Otherwise they are read with BYTES type values and users
179
+ # need to manually cast them with CAST if necessary. The default value is false.
180
+ # Corresponds to the JSON property `readRowkeyAsString`
181
+ # @return [Boolean]
182
+ attr_accessor :read_rowkey_as_string
183
+ alias_method :read_rowkey_as_string?, :read_rowkey_as_string
184
+
177
185
  def initialize(**args)
178
186
  update!(**args)
179
187
  end
@@ -182,6 +190,7 @@ module Google
182
190
  def update!(**args)
183
191
  @column_families = args[:column_families] if args.key?(:column_families)
184
192
  @ignore_unspecified_column_families = args[:ignore_unspecified_column_families] if args.key?(:ignore_unspecified_column_families)
193
+ @read_rowkey_as_string = args[:read_rowkey_as_string] if args.key?(:read_rowkey_as_string)
185
194
  end
186
195
  end
187
196
 
@@ -325,6 +334,17 @@ module Google
325
334
  # @return [String]
326
335
  attr_accessor :kind
327
336
 
337
+ # [Experimental] The labels associated with this dataset. You can use these to
338
+ # organize and group your datasets. You can set this property when inserting or
339
+ # updating a dataset. Label keys and values can be no longer than 63 characters,
340
+ # can only contain letters, numeric characters, underscores and dashes.
341
+ # International characters are allowed. Label values are optional. Label keys
342
+ # must start with a letter and must be unique within a dataset. Both keys and
343
+ # values are additionally constrained to be <= 128 bytes in size.
344
+ # Corresponds to the JSON property `labels`
345
+ # @return [Hash<String,String>]
346
+ attr_accessor :labels
347
+
328
348
  # [Output-only] The date when this dataset or any of its tables was last
329
349
  # modified, in milliseconds since the epoch.
330
350
  # Corresponds to the JSON property `lastModifiedTime`
@@ -358,6 +378,7 @@ module Google
358
378
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
359
379
  @id = args[:id] if args.key?(:id)
360
380
  @kind = args[:kind] if args.key?(:kind)
381
+ @labels = args[:labels] if args.key?(:labels)
361
382
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
362
383
  @location = args[:location] if args.key?(:location)
363
384
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -490,6 +511,12 @@ module Google
490
511
  # @return [String]
491
512
  attr_accessor :kind
492
513
 
514
+ # [Experimental] The labels associated with this dataset. You can use these to
515
+ # organize and group your datasets.
516
+ # Corresponds to the JSON property `labels`
517
+ # @return [Hash<String,String>]
518
+ attr_accessor :labels
519
+
493
520
  def initialize(**args)
494
521
  update!(**args)
495
522
  end
@@ -500,6 +527,7 @@ module Google
500
527
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
501
528
  @id = args[:id] if args.key?(:id)
502
529
  @kind = args[:kind] if args.key?(:kind)
530
+ @labels = args[:labels] if args.key?(:labels)
503
531
  end
504
532
  end
505
533
  end
@@ -834,6 +862,12 @@ module Google
834
862
  # @return [String]
835
863
  attr_accessor :kind
836
864
 
865
+ # [Output-only, Experimental] The number of rows affected by a DML statement.
866
+ # Present only for DML statements INSERT, UPDATE or DELETE.
867
+ # Corresponds to the JSON property `numDmlAffectedRows`
868
+ # @return [String]
869
+ attr_accessor :num_dml_affected_rows
870
+
837
871
  # A token used for paging results.
838
872
  # Corresponds to the JSON property `pageToken`
839
873
  # @return [String]
@@ -876,6 +910,7 @@ module Google
876
910
  @job_complete = args[:job_complete] if args.key?(:job_complete)
877
911
  @job_reference = args[:job_reference] if args.key?(:job_reference)
878
912
  @kind = args[:kind] if args.key?(:kind)
913
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
879
914
  @page_token = args[:page_token] if args.key?(:page_token)
880
915
  @rows = args[:rows] if args.key?(:rows)
881
916
  @schema = args[:schema] if args.key?(:schema)
@@ -1700,8 +1735,13 @@ module Google
1700
1735
  attr_accessor :cache_hit
1701
1736
  alias_method :cache_hit?, :cache_hit
1702
1737
 
1703
- # [Output-only, Experimental] Describes execution plan for the query as a list
1704
- # of stages.
1738
+ # [Output-only, Experimental] The number of rows affected by a DML statement.
1739
+ # Present only for DML statements INSERT, UPDATE or DELETE.
1740
+ # Corresponds to the JSON property `numDmlAffectedRows`
1741
+ # @return [String]
1742
+ attr_accessor :num_dml_affected_rows
1743
+
1744
+ # [Output-only, Experimental] Describes execution plan for the query.
1705
1745
  # Corresponds to the JSON property `queryPlan`
1706
1746
  # @return [Array<Google::Apis::BigqueryV2::ExplainQueryStage>]
1707
1747
  attr_accessor :query_plan
@@ -1736,6 +1776,7 @@ module Google
1736
1776
  def update!(**args)
1737
1777
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
1738
1778
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1779
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
1739
1780
  @query_plan = args[:query_plan] if args.key?(:query_plan)
1740
1781
  @referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
1741
1782
  @schema = args[:schema] if args.key?(:schema)
@@ -2075,6 +2116,12 @@ module Google
2075
2116
  # @return [String]
2076
2117
  attr_accessor :kind
2077
2118
 
2119
+ # [Output-only, Experimental] The number of rows affected by a DML statement.
2120
+ # Present only for DML statements INSERT, UPDATE or DELETE.
2121
+ # Corresponds to the JSON property `numDmlAffectedRows`
2122
+ # @return [String]
2123
+ attr_accessor :num_dml_affected_rows
2124
+
2078
2125
  # A token used for paging results.
2079
2126
  # Corresponds to the JSON property `pageToken`
2080
2127
  # @return [String]
@@ -2115,6 +2162,7 @@ module Google
2115
2162
  @job_complete = args[:job_complete] if args.key?(:job_complete)
2116
2163
  @job_reference = args[:job_reference] if args.key?(:job_reference)
2117
2164
  @kind = args[:kind] if args.key?(:kind)
2165
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
2118
2166
  @page_token = args[:page_token] if args.key?(:page_token)
2119
2167
  @rows = args[:rows] if args.key?(:rows)
2120
2168
  @schema = args[:schema] if args.key?(:schema)
@@ -364,6 +364,7 @@ module Google
364
364
  collection :column_families, as: 'columnFamilies', class: Google::Apis::BigqueryV2::BigtableColumnFamily, decorator: Google::Apis::BigqueryV2::BigtableColumnFamily::Representation
365
365
 
366
366
  property :ignore_unspecified_column_families, as: 'ignoreUnspecifiedColumnFamilies'
367
+ property :read_rowkey_as_string, as: 'readRowkeyAsString'
367
368
  end
368
369
  end
369
370
 
@@ -393,6 +394,7 @@ module Google
393
394
  property :friendly_name, as: 'friendlyName'
394
395
  property :id, as: 'id'
395
396
  property :kind, as: 'kind'
397
+ hash :labels, as: 'labels'
396
398
  property :last_modified_time, as: 'lastModifiedTime'
397
399
  property :location, as: 'location'
398
400
  property :self_link, as: 'selfLink'
@@ -430,6 +432,7 @@ module Google
430
432
  property :friendly_name, as: 'friendlyName'
431
433
  property :id, as: 'id'
432
434
  property :kind, as: 'kind'
435
+ hash :labels, as: 'labels'
433
436
  end
434
437
  end
435
438
  end
@@ -511,6 +514,7 @@ module Google
511
514
  property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
512
515
 
513
516
  property :kind, as: 'kind'
517
+ property :num_dml_affected_rows, as: 'numDmlAffectedRows'
514
518
  property :page_token, as: 'pageToken'
515
519
  collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
516
520
 
@@ -710,6 +714,7 @@ module Google
710
714
  class Representation < Google::Apis::Core::JsonRepresentation
711
715
  property :billing_tier, as: 'billingTier'
712
716
  property :cache_hit, as: 'cacheHit'
717
+ property :num_dml_affected_rows, as: 'numDmlAffectedRows'
713
718
  collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation
714
719
 
715
720
  collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
@@ -806,6 +811,7 @@ module Google
806
811
  property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
807
812
 
808
813
  property :kind, as: 'kind'
814
+ property :num_dml_affected_rows, as: 'numDmlAffectedRows'
809
815
  property :page_token, as: 'pageToken'
810
816
  collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
811
817
 
@@ -177,6 +177,12 @@ module Google
177
177
  # Project ID of the datasets to be listed
178
178
  # @param [Boolean] all
179
179
  # Whether to list all datasets, including hidden ones
180
+ # @param [String] filter
181
+ # An expression for filtering the results of the request by label. The syntax is
182
+ # "labels.[:]". Multiple filters can be ANDed together by connecting with a
183
+ # space. Example: "labels.department:receiving labels.active". See https://cloud.
184
+ # google.com/bigquery/docs/labeling-datasets#filtering_datasets_using_labels for
185
+ # details.
180
186
  # @param [Fixnum] max_results
181
187
  # The maximum number of results to return
182
188
  # @param [String] page_token
@@ -202,12 +208,13 @@ module Google
202
208
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
209
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
210
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def list_datasets(project_id, all: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
211
+ def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
206
212
  command = make_simple_command(:get, 'projects/{projectId}/datasets', options)
207
213
  command.response_representation = Google::Apis::BigqueryV2::DatasetList::Representation
208
214
  command.response_class = Google::Apis::BigqueryV2::DatasetList
209
215
  command.params['projectId'] = project_id unless project_id.nil?
210
216
  command.query['all'] = all unless all.nil?
217
+ command.query['filter'] = filter unless filter.nil?
211
218
  command.query['maxResults'] = max_results unless max_results.nil?
212
219
  command.query['pageToken'] = page_token unless page_token.nil?
213
220
  command.query['fields'] = fields unless fields.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160629'
28
+ REVISION = '20160804'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -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 = '20160628'
28
+ REVISION = '20160815'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -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)
@@ -160,6 +160,7 @@ module Google
160
160
  # @private
161
161
  class Representation < Google::Apis::Core::JsonRepresentation
162
162
  property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
163
+ collection :address_lines, as: 'addressLines'
163
164
  property :ballot_info_url, as: 'ballotInfoUrl'
164
165
  property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
165
166
 
@@ -22,7 +22,8 @@ module Google
22
22
  module CivicinfoV2
23
23
  # Google Civic Information API
24
24
  #
25
- # An API for accessing civic information.
25
+ # Provides polling places, early vote locations, contest data, election
26
+ # officials, and government representatives for U.S. residential addresses.
26
27
  #
27
28
  # @example
28
29
  # require 'google/apis/civicinfo_v2'
@@ -20,12 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Google Civic Information API
22
22
  #
23
- # An API for accessing civic information.
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 = '20150820'
29
+ REVISION = '20160707'
29
30
  end
30
31
  end
31
32
  end
@@ -494,32 +494,62 @@ module Google
494
494
  end
495
495
  end
496
496
 
497
- # An invitation to join a course.
498
- class Invitation
497
+ # Response when listing guardian invitations.
498
+ class ListGuardianInvitationsResponse
499
499
  include Google::Apis::Core::Hashable
500
500
 
501
- # Identifier assigned by Classroom. Read-only.
502
- # Corresponds to the JSON property `id`
501
+ # Guardian invitations that matched the list request.
502
+ # Corresponds to the JSON property `guardianInvitations`
503
+ # @return [Array<Google::Apis::ClassroomV1::GuardianInvitation>]
504
+ attr_accessor :guardian_invitations
505
+
506
+ # Token identifying the next page of results to return. If empty, no further
507
+ # results are available.
508
+ # Corresponds to the JSON property `nextPageToken`
503
509
  # @return [String]
504
- attr_accessor :id
510
+ attr_accessor :next_page_token
505
511
 
506
- # Identifier of the invited user. When specified as a parameter of a request,
507
- # this identifier can be set to one of the following: * the numeric identifier
508
- # for the user * the email address of the user * the string literal `"me"`,
509
- # indicating the requesting user
510
- # Corresponds to the JSON property `userId`
512
+ def initialize(**args)
513
+ update!(**args)
514
+ end
515
+
516
+ # Update properties of this object
517
+ def update!(**args)
518
+ @guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations)
519
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
520
+ end
521
+ end
522
+
523
+ # An invitation to become the guardian of a specified user, sent to a specified
524
+ # email address.
525
+ class GuardianInvitation
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # ID of the student (in standard format)
529
+ # Corresponds to the JSON property `studentId`
511
530
  # @return [String]
512
- attr_accessor :user_id
531
+ attr_accessor :student_id
513
532
 
514
- # Identifier of the course to invite the user to.
515
- # Corresponds to the JSON property `courseId`
533
+ # Unique identifier for this invitation. Read-only.
534
+ # Corresponds to the JSON property `invitationId`
516
535
  # @return [String]
517
- attr_accessor :course_id
536
+ attr_accessor :invitation_id
518
537
 
519
- # Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
520
- # Corresponds to the JSON property `role`
538
+ # Email address that the invitation was sent to. This field is only visible to
539
+ # domain administrators.
540
+ # Corresponds to the JSON property `invitedEmailAddress`
521
541
  # @return [String]
522
- attr_accessor :role
542
+ attr_accessor :invited_email_address
543
+
544
+ # The state that this invitation is in.
545
+ # Corresponds to the JSON property `state`
546
+ # @return [String]
547
+ attr_accessor :state
548
+
549
+ # The time that this invitation was created. Read-only.
550
+ # Corresponds to the JSON property `creationTime`
551
+ # @return [String]
552
+ attr_accessor :creation_time
523
553
 
524
554
  def initialize(**args)
525
555
  update!(**args)
@@ -527,21 +557,23 @@ module Google
527
557
 
528
558
  # Update properties of this object
529
559
  def update!(**args)
530
- @id = args[:id] if args.key?(:id)
531
- @user_id = args[:user_id] if args.key?(:user_id)
532
- @course_id = args[:course_id] if args.key?(:course_id)
533
- @role = args[:role] if args.key?(:role)
560
+ @student_id = args[:student_id] if args.key?(:student_id)
561
+ @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
562
+ @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
563
+ @state = args[:state] if args.key?(:state)
564
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
534
565
  end
535
566
  end
536
567
 
537
- # Response when listing invitations.
538
- class ListInvitationsResponse
568
+ # Response when listing guardians.
569
+ class ListGuardiansResponse
539
570
  include Google::Apis::Core::Hashable
540
571
 
541
- # Invitations that match the list request.
542
- # Corresponds to the JSON property `invitations`
543
- # @return [Array<Google::Apis::ClassroomV1::Invitation>]
544
- attr_accessor :invitations
572
+ # Guardians on this page of results that met the criteria specified in the
573
+ # request.
574
+ # Corresponds to the JSON property `guardians`
575
+ # @return [Array<Google::Apis::ClassroomV1::Guardian>]
576
+ attr_accessor :guardians
545
577
 
546
578
  # Token identifying the next page of results to return. If empty, no further
547
579
  # results are available.
@@ -555,11 +587,50 @@ module Google
555
587
 
556
588
  # Update properties of this object
557
589
  def update!(**args)
558
- @invitations = args[:invitations] if args.key?(:invitations)
590
+ @guardians = args[:guardians] if args.key?(:guardians)
559
591
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
560
592
  end
561
593
  end
562
594
 
595
+ # Association between a student and a guardian of that student. The guardian may
596
+ # receive information about the student's course work.
597
+ class Guardian
598
+ include Google::Apis::Core::Hashable
599
+
600
+ # Identifier for the student to whom the guardian relationship applies.
601
+ # Corresponds to the JSON property `studentId`
602
+ # @return [String]
603
+ attr_accessor :student_id
604
+
605
+ # Identifier for the guardian.
606
+ # Corresponds to the JSON property `guardianId`
607
+ # @return [String]
608
+ attr_accessor :guardian_id
609
+
610
+ # Global information for a user.
611
+ # Corresponds to the JSON property `guardianProfile`
612
+ # @return [Google::Apis::ClassroomV1::UserProfile]
613
+ attr_accessor :guardian_profile
614
+
615
+ # The email address to which the initial guardian invitation was sent. This
616
+ # field is only visible to domain administrators.
617
+ # Corresponds to the JSON property `invitedEmailAddress`
618
+ # @return [String]
619
+ attr_accessor :invited_email_address
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ @student_id = args[:student_id] if args.key?(:student_id)
628
+ @guardian_id = args[:guardian_id] if args.key?(:guardian_id)
629
+ @guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
630
+ @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
631
+ end
632
+ end
633
+
563
634
  # Global information for a user.
564
635
  class UserProfile
565
636
  include Google::Apis::Core::Hashable
@@ -780,6 +851,72 @@ module Google
780
851
  end
781
852
  end
782
853
 
854
+ # An invitation to join a course.
855
+ class Invitation
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # Identifier assigned by Classroom. Read-only.
859
+ # Corresponds to the JSON property `id`
860
+ # @return [String]
861
+ attr_accessor :id
862
+
863
+ # Identifier of the invited user. When specified as a parameter of a request,
864
+ # this identifier can be set to one of the following: * the numeric identifier
865
+ # for the user * the email address of the user * the string literal `"me"`,
866
+ # indicating the requesting user
867
+ # Corresponds to the JSON property `userId`
868
+ # @return [String]
869
+ attr_accessor :user_id
870
+
871
+ # Identifier of the course to invite the user to.
872
+ # Corresponds to the JSON property `courseId`
873
+ # @return [String]
874
+ attr_accessor :course_id
875
+
876
+ # Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
877
+ # Corresponds to the JSON property `role`
878
+ # @return [String]
879
+ attr_accessor :role
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ @id = args[:id] if args.key?(:id)
888
+ @user_id = args[:user_id] if args.key?(:user_id)
889
+ @course_id = args[:course_id] if args.key?(:course_id)
890
+ @role = args[:role] if args.key?(:role)
891
+ end
892
+ end
893
+
894
+ # Response when listing invitations.
895
+ class ListInvitationsResponse
896
+ include Google::Apis::Core::Hashable
897
+
898
+ # Invitations that match the list request.
899
+ # Corresponds to the JSON property `invitations`
900
+ # @return [Array<Google::Apis::ClassroomV1::Invitation>]
901
+ attr_accessor :invitations
902
+
903
+ # Token identifying the next page of results to return. If empty, no further
904
+ # results are available.
905
+ # Corresponds to the JSON property `nextPageToken`
906
+ # @return [String]
907
+ attr_accessor :next_page_token
908
+
909
+ def initialize(**args)
910
+ update!(**args)
911
+ end
912
+
913
+ # Update properties of this object
914
+ def update!(**args)
915
+ @invitations = args[:invitations] if args.key?(:invitations)
916
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
917
+ end
918
+ end
919
+
783
920
  # Course work created by a teacher for students of the course.
784
921
  class CourseWork
785
922
  include Google::Apis::Core::Hashable
@@ -807,12 +944,12 @@ module Google
807
944
  # @return [String]
808
945
  attr_accessor :description
809
946
 
810
- # Additional materials.
947
+ # Additional materials. CourseWork must have no more than 20 material items.
811
948
  # Corresponds to the JSON property `materials`
812
949
  # @return [Array<Google::Apis::ClassroomV1::Material>]
813
950
  attr_accessor :materials
814
951
 
815
- # Status of this course work.. If unspecified, the default state is `DRAFT`.
952
+ # Status of this course work. If unspecified, the default state is `DRAFT`.
816
953
  # Corresponds to the JSON property `state`
817
954
  # @return [String]
818
955
  attr_accessor :state
@@ -852,7 +989,7 @@ module Google
852
989
  attr_accessor :due_time
853
990
 
854
991
  # Maximum grade for this course work. If zero or unspecified, this assignment is
855
- # considered ungraded. This must be an integer value.
992
+ # considered ungraded. This must be a non-negative integer value.
856
993
  # Corresponds to the JSON property `maxPoints`
857
994
  # @return [Float]
858
995
  attr_accessor :max_points
@@ -1146,7 +1283,7 @@ module Google
1146
1283
  # @return [String]
1147
1284
  attr_accessor :user_id
1148
1285
 
1149
- # Creation time of this submission.. This may be unset if the student has not
1286
+ # Creation time of this submission. This may be unset if the student has not
1150
1287
  # accessed this item. Read-only.
1151
1288
  # Corresponds to the JSON property `creationTime`
1152
1289
  # @return [String]
@@ -1169,14 +1306,15 @@ module Google
1169
1306
  attr_accessor :late
1170
1307
  alias_method :late?, :late
1171
1308
 
1172
- # Optional pending grade. If unset, no grade was set. This must be an integer
1173
- # value. This is only visible to and modifiable by course teachers.
1309
+ # Optional pending grade. If unset, no grade was set. This must be a non-
1310
+ # negative integer value. This is only visible to and modifiable by course
1311
+ # teachers.
1174
1312
  # Corresponds to the JSON property `draftGrade`
1175
1313
  # @return [Float]
1176
1314
  attr_accessor :draft_grade
1177
1315
 
1178
- # Optional grade. If unset, no grade was set. This must be an integer value.
1179
- # This may be modified only by course teachers.
1316
+ # Optional grade. If unset, no grade was set. This must be a non-negative
1317
+ # integer value. This may be modified only by course teachers.
1180
1318
  # Corresponds to the JSON property `assignedGrade`
1181
1319
  # @return [Float]
1182
1320
  attr_accessor :assigned_grade
@@ -1407,7 +1545,8 @@ module Google
1407
1545
  class ModifyAttachmentsRequest
1408
1546
  include Google::Apis::Core::Hashable
1409
1547
 
1410
- # Attachments to add. This may only contain link attachments.
1548
+ # Attachments to add. A student submission may not have more than 20 attachments.
1549
+ # This may only contain link attachments.
1411
1550
  # Corresponds to the JSON property `addAttachments`
1412
1551
  # @return [Array<Google::Apis::ClassroomV1::Attachment>]
1413
1552
  attr_accessor :add_attachments