google-api-client 0.9.13 → 0.9.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/generated/google/apis/adsense_v1_4.rb +1 -1
  4. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -8
  7. data/generated/google/apis/appsactivity_v1.rb +1 -1
  8. data/generated/google/apis/appstate_v1.rb +1 -1
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +2 -6
  11. data/generated/google/apis/bigquery_v2/representations.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/service.rb +4 -5
  13. data/generated/google/apis/books_v1.rb +1 -1
  14. data/generated/google/apis/books_v1/service.rb +5 -1
  15. data/generated/google/apis/calendar_v3.rb +1 -1
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +32 -19
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +5 -3
  19. data/generated/google/apis/cloudbuild_v1/service.rb +4 -1
  20. data/generated/google/apis/compute_beta.rb +1 -1
  21. data/generated/google/apis/compute_beta/classes.rb +226 -11
  22. data/generated/google/apis/compute_beta/representations.rb +85 -0
  23. data/generated/google/apis/compute_beta/service.rb +465 -0
  24. data/generated/google/apis/compute_v1.rb +1 -1
  25. data/generated/google/apis/compute_v1/classes.rb +654 -11
  26. data/generated/google/apis/compute_v1/representations.rb +231 -0
  27. data/generated/google/apis/compute_v1/service.rb +574 -0
  28. data/generated/google/apis/content_v2.rb +1 -1
  29. data/generated/google/apis/content_v2/classes.rb +6 -0
  30. data/generated/google/apis/content_v2/representations.rb +1 -0
  31. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  32. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  33. data/generated/google/apis/drive_v2.rb +1 -1
  34. data/generated/google/apis/drive_v3.rb +1 -1
  35. data/generated/google/apis/drive_v3/classes.rb +30 -16
  36. data/generated/google/apis/fitness_v1.rb +1 -1
  37. data/generated/google/apis/fitness_v1/classes.rb +8 -1
  38. data/generated/google/apis/fitness_v1/representations.rb +1 -0
  39. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  40. data/generated/google/apis/games_management_v1management.rb +1 -1
  41. data/generated/google/apis/games_v1.rb +1 -1
  42. data/generated/google/apis/genomics_v1.rb +1 -1
  43. data/generated/google/apis/genomics_v1/classes.rb +7 -7
  44. data/generated/google/apis/genomics_v1/service.rb +1 -1
  45. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  46. data/generated/google/apis/identitytoolkit_v3/classes.rb +63 -4
  47. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -0
  48. data/generated/google/apis/language_v1beta1.rb +1 -1
  49. data/generated/google/apis/monitoring_v3.rb +2 -2
  50. data/generated/google/apis/monitoring_v3/classes.rb +14 -10
  51. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  52. data/generated/google/apis/oauth2_v2.rb +1 -1
  53. data/generated/google/apis/plus_domains_v1.rb +1 -1
  54. data/generated/google/apis/plus_v1.rb +1 -1
  55. data/generated/google/apis/sheets_v4.rb +1 -1
  56. data/generated/google/apis/speech_v1beta1.rb +1 -1
  57. data/generated/google/apis/speech_v1beta1/classes.rb +9 -0
  58. data/generated/google/apis/speech_v1beta1/representations.rb +1 -0
  59. data/generated/google/apis/speech_v1beta1/service.rb +2 -2
  60. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  61. data/generated/google/apis/storage_v1.rb +1 -1
  62. data/generated/google/apis/storage_v1/classes.rb +0 -34
  63. data/generated/google/apis/storage_v1/representations.rb +0 -16
  64. data/generated/google/apis/storage_v1/service.rb +3 -18
  65. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  66. data/lib/google/apis/core/api_command.rb +4 -0
  67. data/lib/google/apis/core/download.rb +7 -2
  68. data/lib/google/apis/core/http_command.rb +5 -1
  69. data/lib/google/apis/version.rb +1 -1
  70. metadata +2 -2
@@ -66,6 +66,12 @@ module Google
66
66
 
67
67
  class CreateAuthUriRequest
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ class CustomParameter
71
+ class Representation < Google::Apis::Core::JsonRepresentation; end
72
+
73
+ include Google::Apis::Core::JsonObjectSupport
74
+ end
69
75
 
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
@@ -316,6 +322,8 @@ module Google
316
322
  property :client_id, as: 'clientId'
317
323
  property :context, as: 'context'
318
324
  property :continue_uri, as: 'continueUri'
325
+ collection :custom_parameter, as: 'customParameter', class: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter, decorator: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter::Representation
326
+
319
327
  property :hosted_domain, as: 'hostedDomain'
320
328
  property :identifier, as: 'identifier'
321
329
  property :oauth_consumer_key, as: 'oauthConsumerKey'
@@ -325,6 +333,14 @@ module Google
325
333
  property :provider_id, as: 'providerId'
326
334
  property :session_id, as: 'sessionId'
327
335
  end
336
+
337
+ class CustomParameter
338
+ # @private
339
+ class Representation < Google::Apis::Core::JsonRepresentation
340
+ property :key, as: 'key'
341
+ property :value, as: 'value'
342
+ end
343
+ end
328
344
  end
329
345
 
330
346
  class DeleteAccountRequest
@@ -479,6 +495,7 @@ module Google
479
495
  property :memory_cost, as: 'memoryCost'
480
496
  property :rounds, as: 'rounds'
481
497
  property :salt_separator, :base64 => true, as: 'saltSeparator'
498
+ property :sanity_check, as: 'sanityCheck'
482
499
  property :signer_key, :base64 => true, as: 'signerKey'
483
500
  collection :users, as: 'users', class: Google::Apis::IdentitytoolkitV3::UserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::Representation
484
501
 
@@ -557,6 +574,8 @@ module Google
557
574
  class Representation < Google::Apis::Core::JsonRepresentation
558
575
  property :email, as: 'email'
559
576
  property :kind, as: 'kind'
577
+ property :new_email, as: 'newEmail'
578
+ property :request_type, as: 'requestType'
560
579
  end
561
580
  end
562
581
 
@@ -622,6 +641,7 @@ module Google
622
641
  # @private
623
642
  class Representation < Google::Apis::Core::JsonRepresentation
624
643
  property :created_at, as: 'createdAt'
644
+ property :custom_auth, as: 'customAuth'
625
645
  property :disabled, as: 'disabled'
626
646
  property :display_name, as: 'displayName'
627
647
  property :email, as: 'email'
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/natural-language/
28
28
  module LanguageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20160816'
30
+ REVISION = '20160912'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -18,7 +18,7 @@ require 'google/apis/monitoring_v3/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Monitoring API
21
+ # Stackdriver Monitoring API
22
22
  #
23
23
  # Manages your Stackdriver Monitoring data and configurations. Most projects
24
24
  # must be associated with a Stackdriver account, with a few exceptions as noted
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20160829'
30
+ REVISION = '20160912'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -285,10 +285,11 @@ module Google
285
285
  # @return [Array<Google::Apis::MonitoringV3::Point>]
286
286
  attr_accessor :points
287
287
 
288
- # Output only. The value type of the time series. This can be different than the
289
- # value type of the metric object if this time series is an alignment or
290
- # reduction of other time series. This field is ignored when writing data to a
291
- # time series.
288
+ # The value type of the time series. This can be different than the value type
289
+ # of the metric object if this time series is an alignment or reduction of other
290
+ # time series. When writing data to a time series, this field is optional, and,
291
+ # when specified, must match the value type of the metric descriptor. If a
292
+ # metric descriptor is auto-created, its value type will match this field.
292
293
  # Corresponds to the JSON property `valueType`
293
294
  # @return [String]
294
295
  attr_accessor :value_type
@@ -309,10 +310,11 @@ module Google
309
310
  # @return [Google::Apis::MonitoringV3::MonitoredResource]
310
311
  attr_accessor :resource
311
312
 
312
- # Output only. The metric kind of the time series. This can be different than
313
- # the metric kind of the metric object if this time series is an alignment or
314
- # reduction of other time series. This field is ignored when writing data to a
315
- # time series.
313
+ # The metric kind of the time series. This can be different than the metric kind
314
+ # of the metric object if this time series is an alignment or reduction of other
315
+ # time series. When writing data to a time series, this field is optional, and,
316
+ # when specified, must match the metric kind of the metric descriptor. If a
317
+ # metric descriptor is auto-created, its metric kind will match this field.
316
318
  # Corresponds to the JSON property `metricKind`
317
319
  # @return [String]
318
320
  attr_accessor :metric_kind
@@ -399,12 +401,14 @@ module Google
399
401
  # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
400
402
  attr_accessor :labels
401
403
 
402
- # Whether the metric records instantaneous values, changes to a value, etc.
404
+ # Whether the metric records instantaneous values, changes to a value, etc. Some
405
+ # combinations of metric_kind and value_type might not be supported.
403
406
  # Corresponds to the JSON property `metricKind`
404
407
  # @return [String]
405
408
  attr_accessor :metric_kind
406
409
 
407
- # Whether the measurement is an integer, a floating-point number, etc.
410
+ # Whether the measurement is an integer, a floating-point number, etc. Some
411
+ # combinations of metric_kind and value_type might not be supported.
408
412
  # Corresponds to the JSON property `valueType`
409
413
  # @return [String]
410
414
  attr_accessor :value_type
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module MonitoringV3
23
- # Google Monitoring API
23
+ # Stackdriver Monitoring API
24
24
  #
25
25
  # Manages your Stackdriver Monitoring data and configurations. Most projects
26
26
  # must be associated with a Stackdriver account, with a few exceptions as noted
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20160817'
28
+ REVISION = '20160912'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160830'
28
+ REVISION = '20160914'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160830'
28
+ REVISION = '20160914'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20160826'
28
+ REVISION = '20160916'
29
29
 
30
30
  # View the files in your Google Drive
31
31
  AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech/
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20160824'
28
+ REVISION = '20160912'
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'
@@ -322,6 +322,14 @@ module Google
322
322
  # @return [Fixnum]
323
323
  attr_accessor :sample_rate
324
324
 
325
+ # [Optional] The number of interleaved channels in the input audio data.
326
+ # Valid values for LINEAR16 and FLAC are `1`-`8`.
327
+ # Valid values for MULAW, AMR and AMR_WB are only `1`.
328
+ # If `0` or omitted, defaults to one channel (mono).
329
+ # Corresponds to the JSON property `audioChannels`
330
+ # @return [Fixnum]
331
+ attr_accessor :audio_channels
332
+
325
333
  def initialize(**args)
326
334
  update!(**args)
327
335
  end
@@ -334,6 +342,7 @@ module Google
334
342
  @encoding = args[:encoding] if args.key?(:encoding)
335
343
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
336
344
  @sample_rate = args[:sample_rate] if args.key?(:sample_rate)
345
+ @audio_channels = args[:audio_channels] if args.key?(:audio_channels)
337
346
  end
338
347
  end
339
348
 
@@ -153,6 +153,7 @@ module Google
153
153
  property :encoding, as: 'encoding'
154
154
  property :profanity_filter, as: 'profanityFilter'
155
155
  property :sample_rate, as: 'sampleRate'
156
+ property :audio_channels, as: 'audioChannels'
156
157
  end
157
158
  end
158
159
 
@@ -28,10 +28,10 @@ module Google
28
28
  # require 'google/apis/speech_v1beta1'
29
29
  #
30
30
  # Speech = Google::Apis::SpeechV1beta1 # Alias the module
31
- # service = Speech::CloudSpeechAPIService.new
31
+ # service = Speech::SpeechService.new
32
32
  #
33
33
  # @see https://cloud.google.com/speech/
34
- class CloudSpeechAPIService < Google::Apis::Core::BaseService
34
+ class SpeechService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
37
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/sql/docs/reference/latest
27
27
  module SqladminV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20160822'
29
+ REVISION = '20160907'
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'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160802'
28
+ REVISION = '20160908'
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'
@@ -41,12 +41,6 @@ module Google
41
41
  # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
42
42
  attr_accessor :default_object_acl
43
43
 
44
- # Encryption configuration used by default for newly inserted objects, when no
45
- # encryption config is specified.
46
- # Corresponds to the JSON property `encryption`
47
- # @return [Google::Apis::StorageV1::Bucket::Encryption]
48
- attr_accessor :encryption
49
-
50
44
  # HTTP 1.1 Entity tag for the bucket.
51
45
  # Corresponds to the JSON property `etag`
52
46
  # @return [String]
@@ -145,7 +139,6 @@ module Google
145
139
  @acl = args[:acl] if args.key?(:acl)
146
140
  @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
147
141
  @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
148
- @encryption = args[:encryption] if args.key?(:encryption)
149
142
  @etag = args[:etag] if args.key?(:etag)
150
143
  @id = args[:id] if args.key?(:id)
151
144
  @kind = args[:kind] if args.key?(:kind)
@@ -206,26 +199,6 @@ module Google
206
199
  end
207
200
  end
208
201
 
209
- # Encryption configuration used by default for newly inserted objects, when no
210
- # encryption config is specified.
211
- class Encryption
212
- include Google::Apis::Core::Hashable
213
-
214
- #
215
- # Corresponds to the JSON property `default_kms_key_name`
216
- # @return [String]
217
- attr_accessor :default_kms_key_name
218
-
219
- def initialize(**args)
220
- update!(**args)
221
- end
222
-
223
- # Update properties of this object
224
- def update!(**args)
225
- @default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
226
- end
227
- end
228
-
229
202
  # The bucket's lifecycle configuration. See lifecycle management for more
230
203
  # information.
231
204
  class Lifecycle
@@ -856,12 +829,6 @@ module Google
856
829
  # @return [String]
857
830
  attr_accessor :kind
858
831
 
859
- # Cloud KMS Key used to encrypt this object, if the object is encrypted by such
860
- # a key.
861
- # Corresponds to the JSON property `kmsKeyName`
862
- # @return [String]
863
- attr_accessor :kms_key_name
864
-
865
832
  # MD5 hash of the data; encoded using base64. For more information about using
866
833
  # the MD5 hash, see Hashes and ETags: Best Practices.
867
834
  # Corresponds to the JSON property `md5Hash`
@@ -947,7 +914,6 @@ module Google
947
914
  @generation = args[:generation] if args.key?(:generation)
948
915
  @id = args[:id] if args.key?(:id)
949
916
  @kind = args[:kind] if args.key?(:kind)
950
- @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
951
917
  @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
952
918
  @media_link = args[:media_link] if args.key?(:media_link)
953
919
  @metadata = args[:metadata] if args.key?(:metadata)
@@ -31,12 +31,6 @@ module Google
31
31
  include Google::Apis::Core::JsonObjectSupport
32
32
  end
33
33
 
34
- class Encryption
35
- class Representation < Google::Apis::Core::JsonRepresentation; end
36
-
37
- include Google::Apis::Core::JsonObjectSupport
38
- end
39
-
40
34
  class Lifecycle
41
35
  class Representation < Google::Apis::Core::JsonRepresentation; end
42
36
 
@@ -193,8 +187,6 @@ module Google
193
187
 
194
188
  collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
195
189
 
196
- property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
197
-
198
190
  property :etag, as: 'etag'
199
191
  property :id, as: 'id'
200
192
  property :kind, as: 'kind'
@@ -230,13 +222,6 @@ module Google
230
222
  end
231
223
  end
232
224
 
233
- class Encryption
234
- # @private
235
- class Representation < Google::Apis::Core::JsonRepresentation
236
- property :default_kms_key_name, as: 'default_kms_key_name'
237
- end
238
- end
239
-
240
225
  class Lifecycle
241
226
  # @private
242
227
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -413,7 +398,6 @@ module Google
413
398
  property :generation, as: 'generation'
414
399
  property :id, as: 'id'
415
400
  property :kind, as: 'kind'
416
- property :kms_key_name, as: 'kmsKeyName'
417
401
  property :md5_hash, as: 'md5Hash'
418
402
  property :media_link, as: 'mediaLink'
419
403
  hash :metadata, as: 'metadata'
@@ -1154,10 +1154,6 @@ module Google
1154
1154
  # @param [String] if_metageneration_match
1155
1155
  # Makes the operation conditional on whether the object's current metageneration
1156
1156
  # matches the given value.
1157
- # @param [String] kms_key_name
1158
- # Resource name of the Cloud KMS key, of the form projects/my-project/locations/
1159
- # global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
1160
- # object. Overrides the object metadata's kms_key_name value, if any.
1161
1157
  # @param [String] fields
1162
1158
  # Selector specifying which fields to include in a partial response.
1163
1159
  # @param [String] quota_user
@@ -1181,7 +1177,7 @@ module Google
1181
1177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1182
1178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1183
1179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1184
- def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1180
+ def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1185
1181
  if download_dest.nil?
1186
1182
  command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
1187
1183
  else
@@ -1197,7 +1193,6 @@ module Google
1197
1193
  command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
1198
1194
  command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1199
1195
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1200
- command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
1201
1196
  command.query['fields'] = fields unless fields.nil?
1202
1197
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1203
1198
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1454,10 +1449,6 @@ module Google
1454
1449
  # @param [String] if_metageneration_not_match
1455
1450
  # Makes the operation conditional on whether the object's current metageneration
1456
1451
  # does not match the given value.
1457
- # @param [String] kms_key_name
1458
- # Resource name of the Cloud KMS key, of the form projects/my-project/locations/
1459
- # global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
1460
- # object. Overrides the object metadata's kms_key_name value, if any.
1461
1452
  # @param [String] name
1462
1453
  # Name of the object. Required when the object metadata is not otherwise
1463
1454
  # provided. Overrides the object metadata's name value, if any. For information
@@ -1493,7 +1484,7 @@ module Google
1493
1484
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1494
1485
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1495
1486
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1496
- def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, kms_key_name: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1487
+ def insert_object(bucket, object_object = nil, content_encoding: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, predefined_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1497
1488
  if upload_source.nil?
1498
1489
  command = make_simple_command(:post, 'b/{bucket}/o', options)
1499
1490
  else
@@ -1511,7 +1502,6 @@ module Google
1511
1502
  command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
1512
1503
  command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1513
1504
  command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1514
- command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
1515
1505
  command.query['name'] = name unless name.nil?
1516
1506
  command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
1517
1507
  command.query['projection'] = projection unless projection.nil?
@@ -1666,10 +1656,6 @@ module Google
1666
1656
  # about how to URL encode object names to be path safe, see Encoding URI Path
1667
1657
  # Parts.
1668
1658
  # @param [Google::Apis::StorageV1::Object] object_object
1669
- # @param [String] destination_kms_key_name
1670
- # Resource name of the Cloud KMS key, of the form projects/my-project/locations/
1671
- # global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
1672
- # object. Overrides the object metadata's kms_key_name value, if any.
1673
1659
  # @param [String] destination_predefined_acl
1674
1660
  # Apply a predefined set of access controls to the destination object.
1675
1661
  # @param [String] if_generation_match
@@ -1736,7 +1722,7 @@ module Google
1736
1722
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1737
1723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1738
1724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1739
- def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_kms_key_name: nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1725
+ def rewrite_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, max_bytes_rewritten_per_call: nil, projection: nil, rewrite_token: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1740
1726
  command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
1741
1727
  command.request_representation = Google::Apis::StorageV1::Object::Representation
1742
1728
  command.request_object = object_object
@@ -1746,7 +1732,6 @@ module Google
1746
1732
  command.params['sourceObject'] = source_object unless source_object.nil?
1747
1733
  command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
1748
1734
  command.params['destinationObject'] = destination_object unless destination_object.nil?
1749
- command.query['destinationKmsKeyName'] = destination_kms_key_name unless destination_kms_key_name.nil?
1750
1735
  command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
1751
1736
  command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
1752
1737
  command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?