google-api-client 0.9.4 → 0.9.5

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 (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +34 -0
  4. data/api_names.yaml +3 -0
  5. data/api_names_out.yaml +1058 -20
  6. data/bin/generate-api +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +203 -6
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +78 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +36 -0
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/adsense_v1_4.rb +1 -1
  13. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1.rb +2 -3
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +11 -4
  16. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  17. data/generated/google/apis/androidenterprise_v1/service.rb +5 -6
  18. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -0
  20. data/generated/google/apis/androidpublisher_v2/representations.rb +6 -0
  21. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  22. data/generated/google/apis/appengine_v1beta5/classes.rb +143 -8
  23. data/generated/google/apis/appengine_v1beta5/representations.rb +42 -0
  24. data/generated/google/apis/appengine_v1beta5/service.rb +48 -6
  25. data/generated/google/apis/appstate_v1.rb +1 -1
  26. data/generated/google/apis/bigquery_v2.rb +1 -1
  27. data/generated/google/apis/bigquery_v2/classes.rb +68 -14
  28. data/generated/google/apis/bigquery_v2/representations.rb +30 -0
  29. data/generated/google/apis/books_v1.rb +1 -1
  30. data/generated/google/apis/books_v1/classes.rb +68 -3
  31. data/generated/google/apis/books_v1/representations.rb +21 -0
  32. data/generated/google/apis/calendar_v3.rb +2 -2
  33. data/generated/google/apis/calendar_v3/service.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  38. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  39. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  40. data/generated/google/apis/clouduseraccounts_beta.rb +1 -1
  41. data/generated/google/apis/clouduseraccounts_beta/classes.rb +1 -1
  42. data/generated/google/apis/compute_beta.rb +1 -1
  43. data/generated/google/apis/compute_beta/classes.rb +138 -108
  44. data/generated/google/apis/compute_beta/representations.rb +16 -18
  45. data/generated/google/apis/compute_beta/service.rb +52 -2
  46. data/generated/google/apis/compute_v1.rb +1 -1
  47. data/generated/google/apis/compute_v1/classes.rb +55 -74
  48. data/generated/google/apis/compute_v1/representations.rb +14 -18
  49. data/generated/google/apis/compute_v1/service.rb +45 -1
  50. data/generated/google/apis/container_v1.rb +3 -3
  51. data/generated/google/apis/container_v1/classes.rb +200 -42
  52. data/generated/google/apis/container_v1/representations.rb +54 -0
  53. data/generated/google/apis/container_v1/service.rb +31 -30
  54. data/generated/google/apis/content_v2.rb +1 -1
  55. data/generated/google/apis/datastore_v1beta2.rb +2 -2
  56. data/generated/google/apis/datastore_v1beta2/service.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2.rb +2 -3
  58. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -1
  59. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  60. data/generated/google/apis/deploymentmanager_v2/service.rb +26 -27
  61. data/generated/google/apis/dfareporting_v2_3.rb +2 -2
  62. data/generated/google/apis/dfareporting_v2_3/classes.rb +1 -1
  63. data/generated/google/apis/dfareporting_v2_3/service.rb +2 -2
  64. data/generated/google/apis/dns_v1.rb +1 -1
  65. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  66. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v2/classes.rb +10 -4
  69. data/generated/google/apis/drive_v2/representations.rb +1 -0
  70. data/generated/google/apis/drive_v3.rb +1 -1
  71. data/generated/google/apis/drive_v3/classes.rb +7 -0
  72. data/generated/google/apis/drive_v3/representations.rb +1 -0
  73. data/generated/google/apis/fusiontables_v2.rb +1 -1
  74. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  75. data/generated/google/apis/games_management_v1management.rb +1 -1
  76. data/generated/google/apis/games_v1.rb +1 -1
  77. data/generated/google/apis/genomics_v1.rb +2 -2
  78. data/generated/google/apis/genomics_v1/classes.rb +770 -82
  79. data/generated/google/apis/genomics_v1/representations.rb +287 -24
  80. data/generated/google/apis/genomics_v1/service.rb +412 -13
  81. data/generated/google/apis/gmail_v1.rb +1 -1
  82. data/generated/google/apis/groupssettings_v1.rb +1 -1
  83. data/generated/google/apis/groupssettings_v1/classes.rb +13 -6
  84. data/generated/google/apis/groupssettings_v1/representations.rb +1 -0
  85. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  86. data/generated/google/apis/identitytoolkit_v3/classes.rb +50 -0
  87. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  88. data/generated/google/apis/logging_v2beta1.rb +2 -3
  89. data/generated/google/apis/logging_v2beta1/classes.rb +219 -63
  90. data/generated/google/apis/logging_v2beta1/representations.rb +24 -1
  91. data/generated/google/apis/logging_v2beta1/service.rb +25 -32
  92. data/generated/google/apis/oauth2_v2.rb +2 -2
  93. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  94. data/generated/google/apis/plus_domains_v1.rb +1 -1
  95. data/generated/google/apis/plus_v1.rb +1 -1
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1/classes.rb +20 -12
  98. data/generated/google/apis/pubsub_v1/service.rb +32 -35
  99. data/generated/google/apis/reseller_v1.rb +1 -1
  100. data/generated/google/apis/reseller_v1/classes.rb +23 -9
  101. data/generated/google/apis/reseller_v1/representations.rb +2 -0
  102. data/generated/google/apis/sheets_v1.rb +43 -0
  103. data/generated/google/apis/sheets_v1/classes.rb +4542 -0
  104. data/generated/google/apis/sheets_v1/representations.rb +1703 -0
  105. data/generated/google/apis/sheets_v1/service.rb +363 -0
  106. data/generated/google/apis/sqladmin_v1beta4.rb +3 -2
  107. data/generated/google/apis/sqladmin_v1beta4/classes.rb +4 -3
  108. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  109. data/generated/google/apis/storage_v1.rb +1 -1
  110. data/generated/google/apis/vision_v1.rb +2 -2
  111. data/generated/google/apis/vision_v1/classes.rb +11 -11
  112. data/generated/google/apis/vision_v1/service.rb +1 -1
  113. data/generated/google/apis/webmasters_v3.rb +2 -2
  114. data/generated/google/apis/webmasters_v3/classes.rb +7 -0
  115. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  116. data/generated/google/apis/webmasters_v3/service.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  118. data/generated/google/apis/youtube_partner_v1/classes.rb +3656 -0
  119. data/generated/google/apis/youtube_partner_v1/representations.rb +1452 -0
  120. data/generated/google/apis/youtube_partner_v1/service.rb +3165 -0
  121. data/generated/google/apis/youtube_v3.rb +3 -2
  122. data/generated/google/apis/youtube_v3/classes.rb +100 -3
  123. data/generated/google/apis/youtube_v3/representations.rb +50 -0
  124. data/generated/google/apis/youtube_v3/service.rb +2 -1
  125. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  126. data/generated/google/apis/youtubereporting_v1/classes.rb +17 -0
  127. data/generated/google/apis/youtubereporting_v1/representations.rb +2 -0
  128. data/generated/google/apis/youtubereporting_v1/service.rb +21 -3
  129. data/google-api-client.gemspec +2 -0
  130. data/lib/google/apis.rb +12 -2
  131. data/lib/google/apis/version.rb +1 -1
  132. data/script/generate +5 -2
  133. data/spec/google/apis/logging_spec.rb +55 -0
  134. metadata +12 -4
@@ -208,6 +208,18 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
+ class ListInstancesResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class Instance
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
211
223
  class OperationMetadata
212
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
225
 
@@ -567,6 +579,36 @@ module Google
567
579
  end
568
580
  end
569
581
 
582
+ class ListInstancesResponse
583
+ # @private
584
+ class Representation < Google::Apis::Core::JsonRepresentation
585
+ collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
586
+
587
+ property :next_page_token, as: 'nextPageToken'
588
+ end
589
+ end
590
+
591
+ class Instance
592
+ # @private
593
+ class Representation < Google::Apis::Core::JsonRepresentation
594
+ property :name, as: 'name'
595
+ property :id, as: 'id'
596
+ property :app_engine_release, as: 'appEngineRelease'
597
+ property :availability, as: 'availability'
598
+ property :vm_name, as: 'vmName'
599
+ property :vm_zone_name, as: 'vmZoneName'
600
+ property :vm_id, as: 'vmId'
601
+ property :start_timestamp, as: 'startTimestamp'
602
+ property :requests, as: 'requests'
603
+ property :errors, as: 'errors'
604
+ property :qps, as: 'qps'
605
+ property :average_latency, as: 'averageLatency'
606
+ property :memory_usage, as: 'memoryUsage'
607
+ property :vm_status, as: 'vmStatus'
608
+ property :vm_unlocked, as: 'vmUnlocked'
609
+ end
610
+ end
611
+
570
612
  class OperationMetadata
571
613
  # @private
572
614
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -22,8 +22,7 @@ module Google
22
22
  module AppengineV1beta5
23
23
  # Google App Engine Admin API
24
24
  #
25
- # The Google App Engine Admin API enables developers to provision and manage
26
- # their App Engine applications.
25
+ # Provisions and manages App Engine applications.
27
26
  #
28
27
  # @example
29
28
  # require 'google/apis/appengine_v1beta5'
@@ -486,10 +485,10 @@ module Google
486
485
  # Request-specific options
487
486
  #
488
487
  # @yield [result, err] Result & error if block supplied
489
- # @yieldparam result [Google::Apis::AppengineV1beta5::Version] parsed result object
488
+ # @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
490
489
  # @yieldparam err [StandardError] error object if request failed
491
490
  #
492
- # @return [Google::Apis::AppengineV1beta5::Version]
491
+ # @return [Google::Apis::AppengineV1beta5::Operation]
493
492
  #
494
493
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
495
494
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -498,8 +497,8 @@ module Google
498
497
  command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
499
498
  command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
500
499
  command.request_object = version_object
501
- command.response_representation = Google::Apis::AppengineV1beta5::Version::Representation
502
- command.response_class = Google::Apis::AppengineV1beta5::Version
500
+ command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
501
+ command.response_class = Google::Apis::AppengineV1beta5::Operation
503
502
  command.params['appsId'] = apps_id unless apps_id.nil?
504
503
  command.params['servicesId'] = services_id unless services_id.nil?
505
504
  command.params['versionsId'] = versions_id unless versions_id.nil?
@@ -508,6 +507,49 @@ module Google
508
507
  command.query['quotaUser'] = quota_user unless quota_user.nil?
509
508
  execute_or_queue_command(command, &block)
510
509
  end
510
+
511
+ # Lists the instances of a version.
512
+ # @param [String] apps_id
513
+ # Part of `name`. Name of the resource requested. For example: "apps/myapp/
514
+ # services/default/versions/v1".
515
+ # @param [String] services_id
516
+ # Part of `name`. See documentation of `appsId`.
517
+ # @param [String] versions_id
518
+ # Part of `name`. See documentation of `appsId`.
519
+ # @param [Fixnum] page_size
520
+ # Maximum results to return per page.
521
+ # @param [String] page_token
522
+ # Continuation token for fetching the next page of results.
523
+ # @param [String] fields
524
+ # Selector specifying which fields to include in a partial response.
525
+ # @param [String] quota_user
526
+ # Available to use for quota purposes for server-side applications. Can be any
527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
528
+ # @param [Google::Apis::RequestOptions] options
529
+ # Request-specific options
530
+ #
531
+ # @yield [result, err] Result & error if block supplied
532
+ # @yieldparam result [Google::Apis::AppengineV1beta5::ListInstancesResponse] parsed result object
533
+ # @yieldparam err [StandardError] error object if request failed
534
+ #
535
+ # @return [Google::Apis::AppengineV1beta5::ListInstancesResponse]
536
+ #
537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
540
+ def list_app_service_version_instances(apps_id, services_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
541
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
542
+ command.response_representation = Google::Apis::AppengineV1beta5::ListInstancesResponse::Representation
543
+ command.response_class = Google::Apis::AppengineV1beta5::ListInstancesResponse
544
+ command.params['appsId'] = apps_id unless apps_id.nil?
545
+ command.params['servicesId'] = services_id unless services_id.nil?
546
+ command.params['versionsId'] = versions_id unless versions_id.nil?
547
+ command.query['pageSize'] = page_size unless page_size.nil?
548
+ command.query['pageToken'] = page_token unless page_token.nil?
549
+ command.query['fields'] = fields unless fields.nil?
550
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
551
+ execute_or_queue_command(command, &block)
552
+ end
511
553
 
512
554
  protected
513
555
 
@@ -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 = '20160310'
28
+ REVISION = '20160407'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160304'
28
+ REVISION = '20160408'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -283,16 +283,16 @@ module Google
283
283
  # @return [Google::Apis::BigqueryV2::DatasetReference]
284
284
  attr_accessor :dataset_reference
285
285
 
286
- # [Experimental] The default lifetime of all tables in the dataset, in
287
- # milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this
288
- # property is set, all newly-created tables in the dataset will have an
289
- # expirationTime property set to the creation time plus the value in this
290
- # property, and changing the value will only affect new tables, not existing
291
- # ones. When the expirationTime for a given table is reached, that table will be
292
- # deleted automatically. If a table's expirationTime is modified or removed
293
- # before the table expires, or if you provide an explicit expirationTime when
294
- # creating a table, that value takes precedence over the default expiration time
295
- # indicated by this property.
286
+ # [Optional] The default lifetime of all tables in the dataset, in milliseconds.
287
+ # The minimum value is 3600000 milliseconds (one hour). Once this property is
288
+ # set, all newly-created tables in the dataset will have an expirationTime
289
+ # property set to the creation time plus the value in this property, and
290
+ # changing the value will only affect new tables, not existing ones. When the
291
+ # expirationTime for a given table is reached, that table will be deleted
292
+ # automatically. If a table's expirationTime is modified or removed before the
293
+ # table expires, or if you provide an explicit expirationTime when creating a
294
+ # table, that value takes precedence over the default expiration time indicated
295
+ # by this property.
296
296
  # Corresponds to the JSON property `defaultTableExpirationMs`
297
297
  # @return [String]
298
298
  attr_accessor :default_table_expiration_ms
@@ -879,6 +879,31 @@ module Google
879
879
  end
880
880
  end
881
881
 
882
+ #
883
+ class IntervalPartitionConfiguration
884
+ include Google::Apis::Core::Hashable
885
+
886
+ #
887
+ # Corresponds to the JSON property `expirationMs`
888
+ # @return [String]
889
+ attr_accessor :expiration_ms
890
+
891
+ #
892
+ # Corresponds to the JSON property `type`
893
+ # @return [String]
894
+ attr_accessor :type
895
+
896
+ def initialize(**args)
897
+ update!(**args)
898
+ end
899
+
900
+ # Update properties of this object
901
+ def update!(**args)
902
+ @expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms)
903
+ @type = args[:type] if args.key?(:type)
904
+ end
905
+ end
906
+
882
907
  #
883
908
  class Job
884
909
  include Google::Apis::Core::Hashable
@@ -1204,7 +1229,8 @@ module Google
1204
1229
 
1205
1230
  # [Optional] The format of the data files. For CSV files, specify "CSV". For
1206
1231
  # datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON,
1207
- # specify "NEWLINE_DELIMITED_JSON". The default value is CSV.
1232
+ # specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". The default value
1233
+ # is CSV.
1208
1234
  # Corresponds to the JSON property `sourceFormat`
1209
1235
  # @return [String]
1210
1236
  attr_accessor :source_format
@@ -2172,6 +2198,13 @@ module Google
2172
2198
  # @return [String]
2173
2199
  attr_accessor :num_rows
2174
2200
 
2201
+ # [Experimental] List of partition configurations for this table. Currently only
2202
+ # one configuration can be specified and it can only be an interval partition
2203
+ # with type daily.
2204
+ # Corresponds to the JSON property `partitionConfigurations`
2205
+ # @return [Array<Google::Apis::BigqueryV2::TablePartitionConfiguration>]
2206
+ attr_accessor :partition_configurations
2207
+
2175
2208
  # [Optional] Describes the schema of this table.
2176
2209
  # Corresponds to the JSON property `schema`
2177
2210
  # @return [Google::Apis::BigqueryV2::TableSchema]
@@ -2225,6 +2258,7 @@ module Google
2225
2258
  @location = args[:location] if args.key?(:location)
2226
2259
  @num_bytes = args[:num_bytes] if args.key?(:num_bytes)
2227
2260
  @num_rows = args[:num_rows] if args.key?(:num_rows)
2261
+ @partition_configurations = args[:partition_configurations] if args.key?(:partition_configurations)
2228
2262
  @schema = args[:schema] if args.key?(:schema)
2229
2263
  @self_link = args[:self_link] if args.key?(:self_link)
2230
2264
  @streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer)
@@ -2456,9 +2490,9 @@ module Google
2456
2490
  # @return [String]
2457
2491
  attr_accessor :name
2458
2492
 
2459
- # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT,
2460
- # BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains
2461
- # a nested schema).
2493
+ # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
2494
+ # FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field
2495
+ # contains a nested schema).
2462
2496
  # Corresponds to the JSON property `type`
2463
2497
  # @return [String]
2464
2498
  attr_accessor :type
@@ -2563,6 +2597,26 @@ module Google
2563
2597
  end
2564
2598
  end
2565
2599
 
2600
+ # [Required] A partition configuration. Only one type of partition should be
2601
+ # configured.
2602
+ class TablePartitionConfiguration
2603
+ include Google::Apis::Core::Hashable
2604
+
2605
+ # [Pick one] Configures an interval partition.
2606
+ # Corresponds to the JSON property `interval`
2607
+ # @return [Google::Apis::BigqueryV2::IntervalPartitionConfiguration]
2608
+ attr_accessor :interval
2609
+
2610
+ def initialize(**args)
2611
+ update!(**args)
2612
+ end
2613
+
2614
+ # Update properties of this object
2615
+ def update!(**args)
2616
+ @interval = args[:interval] if args.key?(:interval)
2617
+ end
2618
+ end
2619
+
2566
2620
  #
2567
2621
  class TableReference
2568
2622
  include Google::Apis::Core::Hashable
@@ -106,6 +106,12 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class IntervalPartitionConfiguration
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
109
115
  class Job
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
@@ -292,6 +298,12 @@ module Google
292
298
  include Google::Apis::Core::JsonObjectSupport
293
299
  end
294
300
 
301
+ class TablePartitionConfiguration
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
295
307
  class TableReference
296
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
309
 
@@ -507,6 +519,14 @@ module Google
507
519
  end
508
520
  end
509
521
 
522
+ class IntervalPartitionConfiguration
523
+ # @private
524
+ class Representation < Google::Apis::Core::JsonRepresentation
525
+ property :expiration_ms, as: 'expirationMs'
526
+ property :type, as: 'type'
527
+ end
528
+ end
529
+
510
530
  class Job
511
531
  # @private
512
532
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -816,6 +836,8 @@ module Google
816
836
  property :location, as: 'location'
817
837
  property :num_bytes, as: 'numBytes'
818
838
  property :num_rows, as: 'numRows'
839
+ collection :partition_configurations, as: 'partitionConfigurations', class: Google::Apis::BigqueryV2::TablePartitionConfiguration, decorator: Google::Apis::BigqueryV2::TablePartitionConfiguration::Representation
840
+
819
841
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
820
842
 
821
843
  property :self_link, as: 'selfLink'
@@ -922,6 +944,14 @@ module Google
922
944
  end
923
945
  end
924
946
 
947
+ class TablePartitionConfiguration
948
+ # @private
949
+ class Representation < Google::Apis::Core::JsonRepresentation
950
+ property :interval, as: 'interval', class: Google::Apis::BigqueryV2::IntervalPartitionConfiguration, decorator: Google::Apis::BigqueryV2::IntervalPartitionConfiguration::Representation
951
+
952
+ end
953
+ end
954
+
925
955
  class TableReference
926
956
  # @private
927
957
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/books/docs/v1/getting_started
26
26
  module BooksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160226'
28
+ REVISION = '20160411'
29
29
 
30
30
  # Manage your books
31
31
  AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
@@ -1995,6 +1995,21 @@ module Google
1995
1995
  # @return [String]
1996
1996
  attr_accessor :body
1997
1997
 
1998
+ # The list of crm experiment ids.
1999
+ # Corresponds to the JSON property `crmExperimentIds`
2000
+ # @return [Array<String>]
2001
+ attr_accessor :crm_experiment_ids
2002
+
2003
+ #
2004
+ # Corresponds to the JSON property `doc_id`
2005
+ # @return [String]
2006
+ attr_accessor :doc_id
2007
+
2008
+ #
2009
+ # Corresponds to the JSON property `doc_type`
2010
+ # @return [String]
2011
+ attr_accessor :doc_type
2012
+
1998
2013
  #
1999
2014
  # Corresponds to the JSON property `dont_show_notification`
2000
2015
  # @return [Boolean]
@@ -2049,6 +2064,9 @@ module Google
2049
2064
  # Update properties of this object
2050
2065
  def update!(**args)
2051
2066
  @body = args[:body] if args.key?(:body)
2067
+ @crm_experiment_ids = args[:crm_experiment_ids] if args.key?(:crm_experiment_ids)
2068
+ @doc_id = args[:doc_id] if args.key?(:doc_id)
2069
+ @doc_type = args[:doc_type] if args.key?(:doc_type)
2052
2070
  @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification)
2053
2071
  @icon_url = args[:icon_url] if args.key?(:icon_url)
2054
2072
  @kind = args[:kind] if args.key?(:kind)
@@ -3191,6 +3209,11 @@ module Google
3191
3209
  # @return [Fixnum]
3192
3210
  attr_accessor :entitlement_type
3193
3211
 
3212
+ # Information on the ability to share with the family.
3213
+ # Corresponds to the JSON property `familySharing`
3214
+ # @return [Google::Apis::BooksV1::Volume::UserInfo::FamilySharing]
3215
+ attr_accessor :family_sharing
3216
+
3194
3217
  # Whether or not the user shared this volume with the family.
3195
3218
  # Corresponds to the JSON property `isFamilySharedFromUser`
3196
3219
  # @return [Boolean]
@@ -3203,14 +3226,18 @@ module Google
3203
3226
  attr_accessor :is_family_shared_to_user
3204
3227
  alias_method :is_family_shared_to_user?, :is_family_shared_to_user
3205
3228
 
3206
- # Whether or not this volume can be shared with the family by the user. This
3207
- # includes sharing eligibility of both the volume and the user. If the value is
3208
- # true, the user can initiate a family sharing action.
3229
+ # Deprecated: Replaced by familySharing.
3209
3230
  # Corresponds to the JSON property `isFamilySharingAllowed`
3210
3231
  # @return [Boolean]
3211
3232
  attr_accessor :is_family_sharing_allowed
3212
3233
  alias_method :is_family_sharing_allowed?, :is_family_sharing_allowed
3213
3234
 
3235
+ # Deprecated: Replaced by familySharing.
3236
+ # Corresponds to the JSON property `isFamilySharingDisabledByFop`
3237
+ # @return [Boolean]
3238
+ attr_accessor :is_family_sharing_disabled_by_fop
3239
+ alias_method :is_family_sharing_disabled_by_fop?, :is_family_sharing_disabled_by_fop
3240
+
3214
3241
  # Whether or not this volume is currently in "my books."
3215
3242
  # Corresponds to the JSON property `isInMyBooks`
3216
3243
  # @return [Boolean]
@@ -3280,9 +3307,11 @@ module Google
3280
3307
  @acquisition_type = args[:acquisition_type] if args.key?(:acquisition_type)
3281
3308
  @copy = args[:copy] if args.key?(:copy)
3282
3309
  @entitlement_type = args[:entitlement_type] if args.key?(:entitlement_type)
3310
+ @family_sharing = args[:family_sharing] if args.key?(:family_sharing)
3283
3311
  @is_family_shared_from_user = args[:is_family_shared_from_user] if args.key?(:is_family_shared_from_user)
3284
3312
  @is_family_shared_to_user = args[:is_family_shared_to_user] if args.key?(:is_family_shared_to_user)
3285
3313
  @is_family_sharing_allowed = args[:is_family_sharing_allowed] if args.key?(:is_family_sharing_allowed)
3314
+ @is_family_sharing_disabled_by_fop = args[:is_family_sharing_disabled_by_fop] if args.key?(:is_family_sharing_disabled_by_fop)
3286
3315
  @is_in_my_books = args[:is_in_my_books] if args.key?(:is_in_my_books)
3287
3316
  @is_preordered = args[:is_preordered] if args.key?(:is_preordered)
3288
3317
  @is_purchased = args[:is_purchased] if args.key?(:is_purchased)
@@ -3332,6 +3361,42 @@ module Google
3332
3361
  end
3333
3362
  end
3334
3363
 
3364
+ # Information on the ability to share with the family.
3365
+ class FamilySharing
3366
+ include Google::Apis::Core::Hashable
3367
+
3368
+ # The role of the user in the family.
3369
+ # Corresponds to the JSON property `familyRole`
3370
+ # @return [String]
3371
+ attr_accessor :family_role
3372
+
3373
+ # Whether or not this volume can be shared with the family by the user. This
3374
+ # includes sharing eligibility of both the volume and the user. If the value is
3375
+ # true, the user can initiate a family sharing action.
3376
+ # Corresponds to the JSON property `isSharingAllowed`
3377
+ # @return [Boolean]
3378
+ attr_accessor :is_sharing_allowed
3379
+ alias_method :is_sharing_allowed?, :is_sharing_allowed
3380
+
3381
+ # Whether or not sharing this volume is temporarily disabled due to issues with
3382
+ # the Family Wallet.
3383
+ # Corresponds to the JSON property `isSharingDisabledByFop`
3384
+ # @return [Boolean]
3385
+ attr_accessor :is_sharing_disabled_by_fop
3386
+ alias_method :is_sharing_disabled_by_fop?, :is_sharing_disabled_by_fop
3387
+
3388
+ def initialize(**args)
3389
+ update!(**args)
3390
+ end
3391
+
3392
+ # Update properties of this object
3393
+ def update!(**args)
3394
+ @family_role = args[:family_role] if args.key?(:family_role)
3395
+ @is_sharing_allowed = args[:is_sharing_allowed] if args.key?(:is_sharing_allowed)
3396
+ @is_sharing_disabled_by_fop = args[:is_sharing_disabled_by_fop] if args.key?(:is_sharing_disabled_by_fop)
3397
+ end
3398
+ end
3399
+
3335
3400
  # Period during this book is/was a valid rental.
3336
3401
  class RentalPeriod
3337
3402
  include Google::Apis::Core::Hashable