google-api-client 0.14.3 → 0.14.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/analytics_v3/service.rb +1 -1
  5. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -1
  6. data/generated/google/apis/compute_alpha.rb +1 -1
  7. data/generated/google/apis/compute_alpha/classes.rb +77 -9
  8. data/generated/google/apis/compute_alpha/representations.rb +33 -0
  9. data/generated/google/apis/compute_alpha/service.rb +122 -0
  10. data/generated/google/apis/compute_beta.rb +1 -1
  11. data/generated/google/apis/compute_beta/classes.rb +57 -9
  12. data/generated/google/apis/compute_beta/representations.rb +5 -0
  13. data/generated/google/apis/compute_beta/service.rb +180 -0
  14. data/generated/google/apis/compute_v1.rb +1 -1
  15. data/generated/google/apis/compute_v1/classes.rb +30 -9
  16. data/generated/google/apis/compute_v1/representations.rb +4 -0
  17. data/generated/google/apis/compute_v1/service.rb +1 -1
  18. data/generated/google/apis/content_v2.rb +1 -1
  19. data/generated/google/apis/content_v2/classes.rb +137 -8
  20. data/generated/google/apis/content_v2/representations.rb +38 -0
  21. data/generated/google/apis/content_v2/service.rb +13 -1
  22. data/generated/google/apis/content_v2sandbox.rb +1 -1
  23. data/generated/google/apis/content_v2sandbox/classes.rb +9 -1
  24. data/generated/google/apis/resourceviews_v1beta1/service.rb +1 -1
  25. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  26. data/generated/google/apis/servicecontrol_v1/classes.rb +47 -17
  27. data/generated/google/apis/servicecontrol_v1/representations.rb +16 -1
  28. data/generated/google/apis/servicecontrol_v1/service.rb +10 -18
  29. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
  30. data/lib/google/apis/version.rb +1 -1
  31. metadata +2 -2
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class AccountYouTubeChannelLink
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class AccountsAuthInfoResponse
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -232,6 +238,12 @@ module Google
232
238
  include Google::Apis::Core::JsonObjectSupport
233
239
  end
234
240
 
241
+ class DatafeedTarget
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
235
247
  class BatchDatafeedsRequest
236
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
249
 
@@ -966,6 +978,8 @@ module Google
966
978
  collection :users, as: 'users', class: Google::Apis::ContentV2::AccountUser, decorator: Google::Apis::ContentV2::AccountUser::Representation
967
979
 
968
980
  property :website_url, as: 'websiteUrl'
981
+ collection :youtube_channel_links, as: 'youtubeChannelLinks', class: Google::Apis::ContentV2::AccountYouTubeChannelLink, decorator: Google::Apis::ContentV2::AccountYouTubeChannelLink::Representation
982
+
969
983
  end
970
984
  end
971
985
 
@@ -1066,6 +1080,14 @@ module Google
1066
1080
  end
1067
1081
  end
1068
1082
 
1083
+ class AccountYouTubeChannelLink
1084
+ # @private
1085
+ class Representation < Google::Apis::Core::JsonRepresentation
1086
+ property :channel_id, as: 'channelId'
1087
+ property :status, as: 'status'
1088
+ end
1089
+ end
1090
+
1069
1091
  class AccountsAuthInfoResponse
1070
1092
  # @private
1071
1093
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1272,6 +1294,8 @@ module Google
1272
1294
  property :kind, as: 'kind'
1273
1295
  property :name, as: 'name'
1274
1296
  property :target_country, as: 'targetCountry'
1297
+ collection :targets, as: 'targets', class: Google::Apis::ContentV2::DatafeedTarget, decorator: Google::Apis::ContentV2::DatafeedTarget::Representation
1298
+
1275
1299
  end
1276
1300
  end
1277
1301
 
@@ -1302,12 +1326,14 @@ module Google
1302
1326
  class DatafeedStatus
1303
1327
  # @private
1304
1328
  class Representation < Google::Apis::Core::JsonRepresentation
1329
+ property :country, as: 'country'
1305
1330
  property :datafeed_id, :numeric_string => true, as: 'datafeedId'
1306
1331
  collection :errors, as: 'errors', class: Google::Apis::ContentV2::DatafeedStatusError, decorator: Google::Apis::ContentV2::DatafeedStatusError::Representation
1307
1332
 
1308
1333
  property :items_total, :numeric_string => true, as: 'itemsTotal'
1309
1334
  property :items_valid, :numeric_string => true, as: 'itemsValid'
1310
1335
  property :kind, as: 'kind'
1336
+ property :language, as: 'language'
1311
1337
  property :last_upload_date, as: 'lastUploadDate'
1312
1338
  property :processing_status, as: 'processingStatus'
1313
1339
  collection :warnings, as: 'warnings', class: Google::Apis::ContentV2::DatafeedStatusError, decorator: Google::Apis::ContentV2::DatafeedStatusError::Representation
@@ -1335,6 +1361,16 @@ module Google
1335
1361
  end
1336
1362
  end
1337
1363
 
1364
+ class DatafeedTarget
1365
+ # @private
1366
+ class Representation < Google::Apis::Core::JsonRepresentation
1367
+ property :country, as: 'country'
1368
+ collection :excluded_destinations, as: 'excludedDestinations'
1369
+ collection :included_destinations, as: 'includedDestinations'
1370
+ property :language, as: 'language'
1371
+ end
1372
+ end
1373
+
1338
1374
  class BatchDatafeedsRequest
1339
1375
  # @private
1340
1376
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1397,7 +1433,9 @@ module Google
1397
1433
  # @private
1398
1434
  class Representation < Google::Apis::Core::JsonRepresentation
1399
1435
  property :batch_id, as: 'batchId'
1436
+ property :country, as: 'country'
1400
1437
  property :datafeed_id, :numeric_string => true, as: 'datafeedId'
1438
+ property :language, as: 'language'
1401
1439
  property :merchant_id, :numeric_string => true, as: 'merchantId'
1402
1440
  property :request_method, as: 'method'
1403
1441
  end
@@ -1090,6 +1090,16 @@ module Google
1090
1090
  # method can only be called for non-multi-client accounts.
1091
1091
  # @param [Fixnum] merchant_id
1092
1092
  # @param [Fixnum] datafeed_id
1093
+ # @param [String] country
1094
+ # The country for which to get the datafeed status. If this parameter is
1095
+ # provided then language must also be provided. Note that this parameter is
1096
+ # required for feeds targeting multiple countries and languages, since a feed
1097
+ # may have a different status for each target.
1098
+ # @param [String] language
1099
+ # The language for which to get the datafeed status. If this parameter is
1100
+ # provided then country must also be provided. Note that this parameter is
1101
+ # required for feeds targeting multiple countries and languages, since a feed
1102
+ # may have a different status for each target.
1093
1103
  # @param [String] fields
1094
1104
  # Selector specifying which fields to include in a partial response.
1095
1105
  # @param [String] quota_user
@@ -1111,12 +1121,14 @@ module Google
1111
1121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
1122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
1123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
- def get_datafeed_status(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1124
+ def get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1115
1125
  command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
1116
1126
  command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation
1117
1127
  command.response_class = Google::Apis::ContentV2::DatafeedStatus
1118
1128
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1119
1129
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1130
+ command.query['country'] = country unless country.nil?
1131
+ command.query['language'] = language unless language.nil?
1120
1132
  command.query['fields'] = fields unless fields.nil?
1121
1133
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1122
1134
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2sandbox
28
28
  VERSION = 'V2sandbox'
29
- REVISION = '20170912'
29
+ REVISION = '20170921'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -753,7 +753,15 @@ module Google
753
753
  # @return [String]
754
754
  attr_accessor :phone_number
755
755
 
756
- # The type of instrument (VISA, Mastercard, etc).
756
+ # The type of instrument.
757
+ # Acceptable values are:
758
+ # - "AMEX"
759
+ # - "DISCOVER"
760
+ # - "JCB"
761
+ # - "MASTERCARD"
762
+ # - "UNIONPAY"
763
+ # - "VISA"
764
+ # - ""
757
765
  # Corresponds to the JSON property `type`
758
766
  # @return [String]
759
767
  attr_accessor :type
@@ -51,7 +51,7 @@ module Google
51
51
 
52
52
  def initialize
53
53
  super('https://www.googleapis.com/', 'resourceviews/v1beta1/projects/')
54
- @batch_path = 'batch'
54
+ @batch_path = 'batch/resourceviews/v1beta1'
55
55
  end
56
56
 
57
57
  # Add resources to the view.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/service-control/
27
27
  module ServicecontrolV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170909'
29
+ REVISION = '20170918'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,28 @@ module Google
22
22
  module Apis
23
23
  module ServicecontrolV1
24
24
 
25
+ #
26
+ class AllocateInfo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A list of label keys that were unused by the server in processing the
30
+ # request. Thus, for similar requests repeated in a certain future time
31
+ # window, the caller can choose to ignore these labels in the requests
32
+ # to achieve better client-side cache hits and quota aggregation.
33
+ # Corresponds to the JSON property `unusedArguments`
34
+ # @return [Array<String>]
35
+ attr_accessor :unused_arguments
36
+
37
+ def initialize(**args)
38
+ update!(**args)
39
+ end
40
+
41
+ # Update properties of this object
42
+ def update!(**args)
43
+ @unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments)
44
+ end
45
+ end
46
+
25
47
  # Request message for the AllocateQuota method.
26
48
  class AllocateQuotaRequest
27
49
  include Google::Apis::Core::Hashable
@@ -31,12 +53,6 @@ module Google
31
53
  # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
32
54
  attr_accessor :allocate_operation
33
55
 
34
- # Allocation mode for this operation.
35
- # Deprecated: use QuotaMode inside the QuotaOperation.
36
- # Corresponds to the JSON property `allocationMode`
37
- # @return [String]
38
- attr_accessor :allocation_mode
39
-
40
56
  # Specifies which version of service configuration should be used to process
41
57
  # the request. If unspecified or no matching version can be found, the latest
42
58
  # one will be used.
@@ -51,7 +67,6 @@ module Google
51
67
  # Update properties of this object
52
68
  def update!(**args)
53
69
  @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation)
54
- @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
55
70
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
56
71
  end
57
72
  end
@@ -65,6 +80,11 @@ module Google
65
80
  # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
66
81
  attr_accessor :allocate_errors
67
82
 
83
+ # WARNING: DO NOT use this field until this warning message is removed.
84
+ # Corresponds to the JSON property `allocateInfo`
85
+ # @return [Google::Apis::ServicecontrolV1::AllocateInfo]
86
+ attr_accessor :allocate_info
87
+
68
88
  # The same operation_id value used in the AllocateQuotaRequest. Used for
69
89
  # logging and diagnostics purposes.
70
90
  # Corresponds to the JSON property `operationId`
@@ -101,6 +121,7 @@ module Google
101
121
  # Update properties of this object
102
122
  def update!(**args)
103
123
  @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
124
+ @allocate_info = args[:allocate_info] if args.key?(:allocate_info)
104
125
  @operation_id = args[:operation_id] if args.key?(:operation_id)
105
126
  @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
106
127
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
@@ -123,6 +144,12 @@ module Google
123
144
  # @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
124
145
  attr_accessor :authorization_info
125
146
 
147
+ # Other service-specific data about the request, response, and other
148
+ # information associated with the current audited event.
149
+ # Corresponds to the JSON property `metadata`
150
+ # @return [Array<Hash<String,Object>>]
151
+ attr_accessor :metadata
152
+
126
153
  # The name of the service method or operation.
127
154
  # For API calls, this should be the name of the API method.
128
155
  # For example,
@@ -172,6 +199,7 @@ module Google
172
199
  # @return [Hash<String,Object>]
173
200
  attr_accessor :response
174
201
 
202
+ # Deprecated, use `metadata` field instead.
175
203
  # Other service-specific data about the request, response, and other
176
204
  # activities.
177
205
  # Corresponds to the JSON property `serviceData`
@@ -235,6 +263,7 @@ module Google
235
263
  def update!(**args)
236
264
  @authentication_info = args[:authentication_info] if args.key?(:authentication_info)
237
265
  @authorization_info = args[:authorization_info] if args.key?(:authorization_info)
266
+ @metadata = args[:metadata] if args.key?(:metadata)
238
267
  @method_name = args[:method_name] if args.key?(:method_name)
239
268
  @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
240
269
  @request = args[:request] if args.key?(:request)
@@ -345,7 +374,7 @@ module Google
345
374
  end
346
375
  end
347
376
 
348
- #
377
+ # Contains additional information about the check operation.
349
378
  class CheckInfo
350
379
  include Google::Apis::Core::Hashable
351
380
 
@@ -427,7 +456,7 @@ module Google
427
456
  # @return [Array<Google::Apis::ServicecontrolV1::CheckError>]
428
457
  attr_accessor :check_errors
429
458
 
430
- # Feedback data returned from the server during processing a Check request.
459
+ # Contains additional information about the check operation.
431
460
  # Corresponds to the JSON property `checkInfo`
432
461
  # @return [Google::Apis::ServicecontrolV1::CheckInfo]
433
462
  attr_accessor :check_info
@@ -567,7 +596,7 @@ module Google
567
596
  end
568
597
  end
569
598
 
570
- #
599
+ # Request message for QuotaController.EndReconciliation.
571
600
  class EndReconciliationRequest
572
601
  include Google::Apis::Core::Hashable
573
602
 
@@ -594,7 +623,7 @@ module Google
594
623
  end
595
624
  end
596
625
 
597
- #
626
+ # Response message for QuotaController.EndReconciliation.
598
627
  class EndReconciliationResponse
599
628
  include Google::Apis::Core::Hashable
600
629
 
@@ -1064,7 +1093,7 @@ module Google
1064
1093
  # @return [String]
1065
1094
  attr_accessor :resource_container
1066
1095
 
1067
- #
1096
+ # The resources that are involved in the operation.
1068
1097
  # Corresponds to the JSON property `resources`
1069
1098
  # @return [Array<Google::Apis::ServicecontrolV1::ResourceInfo>]
1070
1099
  attr_accessor :resources
@@ -1075,7 +1104,8 @@ module Google
1075
1104
  attr_accessor :start_time
1076
1105
 
1077
1106
  # User defined labels for the resource that this operation is associated
1078
- # with.
1107
+ # with. Only a combination of 1000 user labels per consumer project are
1108
+ # allowed.
1079
1109
  # Corresponds to the JSON property `userLabels`
1080
1110
  # @return [Hash<String,String>]
1081
1111
  attr_accessor :user_labels
@@ -1102,7 +1132,7 @@ module Google
1102
1132
  end
1103
1133
  end
1104
1134
 
1105
- #
1135
+ # Represents error information for QuotaOperation.
1106
1136
  class QuotaError
1107
1137
  include Google::Apis::Core::Hashable
1108
1138
 
@@ -1431,7 +1461,7 @@ module Google
1431
1461
  end
1432
1462
  end
1433
1463
 
1434
- #
1464
+ # Contains additional info about the report operation.
1435
1465
  class ReportInfo
1436
1466
  include Google::Apis::Core::Hashable
1437
1467
 
@@ -1611,7 +1641,7 @@ module Google
1611
1641
  end
1612
1642
  end
1613
1643
 
1614
- #
1644
+ # Request message for QuotaController.StartReconciliation.
1615
1645
  class StartReconciliationRequest
1616
1646
  include Google::Apis::Core::Hashable
1617
1647
 
@@ -1638,7 +1668,7 @@ module Google
1638
1668
  end
1639
1669
  end
1640
1670
 
1641
- #
1671
+ # Response message for QuotaController.StartReconciliation.
1642
1672
  class StartReconciliationResponse
1643
1673
  include Google::Apis::Core::Hashable
1644
1674
 
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module ServicecontrolV1
24
24
 
25
+ class AllocateInfo
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AllocateQuotaRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -238,12 +244,18 @@ module Google
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
247
+ class AllocateInfo
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ collection :unused_arguments, as: 'unusedArguments'
251
+ end
252
+ end
253
+
241
254
  class AllocateQuotaRequest
242
255
  # @private
243
256
  class Representation < Google::Apis::Core::JsonRepresentation
244
257
  property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation
245
258
 
246
- property :allocation_mode, as: 'allocationMode'
247
259
  property :service_config_id, as: 'serviceConfigId'
248
260
  end
249
261
  end
@@ -253,6 +265,8 @@ module Google
253
265
  class Representation < Google::Apis::Core::JsonRepresentation
254
266
  collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation
255
267
 
268
+ property :allocate_info, as: 'allocateInfo', class: Google::Apis::ServicecontrolV1::AllocateInfo, decorator: Google::Apis::ServicecontrolV1::AllocateInfo::Representation
269
+
256
270
  property :operation_id, as: 'operationId'
257
271
  collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation
258
272
 
@@ -267,6 +281,7 @@ module Google
267
281
 
268
282
  collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation
269
283
 
284
+ collection :metadata, as: 'metadata'
270
285
  property :method_name, as: 'methodName'
271
286
  property :num_response_items, :numeric_string => true, as: 'numResponseItems'
272
287
  hash :request, as: 'request'
@@ -52,15 +52,11 @@ module Google
52
52
  # before the operation is executed.
53
53
  # This method requires the `servicemanagement.services.quota`
54
54
  # permission on the specified service. For more information, see
55
- # [Google Cloud IAM](https://cloud.google.com/iam).
56
- # **NOTE:** the client code **must** fail-open if the server returns one
57
- # of the following quota errors:
58
- # - `PROJECT_STATUS_UNAVAILABLE`
59
- # - `SERVICE_STATUS_UNAVAILABLE`
60
- # - `BILLING_STATUS_UNAVAILABLE`
61
- # - `QUOTA_SYSTEM_UNAVAILABLE`
62
- # The server may inject above errors to prohibit any hard dependency
63
- # on the quota system.
55
+ # [Cloud IAM](https://cloud.google.com/iam).
56
+ # **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
57
+ # `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
58
+ # reliability, the server may inject these errors to prohibit any hard
59
+ # dependency on the quota functionality.
64
60
  # @param [String] service_name
65
61
  # Name of the service as specified in the service configuration. For example,
66
62
  # `"pubsub.googleapis.com"`.
@@ -184,15 +180,11 @@ module Google
184
180
  # Releases previously allocated quota done through AllocateQuota method.
185
181
  # This method requires the `servicemanagement.services.quota`
186
182
  # permission on the specified service. For more information, see
187
- # [Google Cloud IAM](https://cloud.google.com/iam).
188
- # **NOTE:** the client code **must** fail-open if the server returns one
189
- # of the following quota errors:
190
- # - `PROJECT_STATUS_UNAVAILABLE`
191
- # - `SERVICE_STATUS_UNAVAILABLE`
192
- # - `BILLING_STATUS_UNAVAILABLE`
193
- # - `QUOTA_SYSTEM_UNAVAILABLE`
194
- # The server may inject above errors to prohibit any hard dependency
195
- # on the quota system.
183
+ # [Cloud IAM](https://cloud.google.com/iam).
184
+ # **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
185
+ # `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
186
+ # reliability, the server may inject these errors to prohibit any hard
187
+ # dependency on the quota functionality.
196
188
  # @param [String] service_name
197
189
  # Name of the service as specified in the service configuration. For example,
198
190
  # `"pubsub.googleapis.com"`.