google-api-client 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -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 = '
|
28
|
+
REVISION = '20170531'
|
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'
|
@@ -38,14 +38,20 @@ module Google
|
|
38
38
|
|
39
39
|
# The bucket's Cross-Origin Resource Sharing (CORS) configuration.
|
40
40
|
# Corresponds to the JSON property `cors`
|
41
|
-
# @return [Array<Google::Apis::StorageV1::Bucket::
|
42
|
-
attr_accessor :
|
41
|
+
# @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]
|
42
|
+
attr_accessor :cors_configurations
|
43
43
|
|
44
44
|
# Default access controls to apply to new objects when no ACL is provided.
|
45
45
|
# Corresponds to the JSON property `defaultObjectAcl`
|
46
46
|
# @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
|
47
47
|
attr_accessor :default_object_acl
|
48
48
|
|
49
|
+
# Encryption configuration used by default for newly inserted objects, when no
|
50
|
+
# encryption config is specified.
|
51
|
+
# Corresponds to the JSON property `encryption`
|
52
|
+
# @return [Google::Apis::StorageV1::Bucket::Encryption]
|
53
|
+
attr_accessor :encryption
|
54
|
+
|
49
55
|
# HTTP 1.1 Entity tag for the bucket.
|
50
56
|
# Corresponds to the JSON property `etag`
|
51
57
|
# @return [String]
|
@@ -150,8 +156,9 @@ module Google
|
|
150
156
|
def update!(**args)
|
151
157
|
@acl = args[:acl] if args.key?(:acl)
|
152
158
|
@billing = args[:billing] if args.key?(:billing)
|
153
|
-
@
|
159
|
+
@cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
|
154
160
|
@default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
|
161
|
+
@encryption = args[:encryption] if args.key?(:encryption)
|
155
162
|
@etag = args[:etag] if args.key?(:etag)
|
156
163
|
@id = args[:id] if args.key?(:id)
|
157
164
|
@kind = args[:kind] if args.key?(:kind)
|
@@ -192,7 +199,7 @@ module Google
|
|
192
199
|
end
|
193
200
|
|
194
201
|
#
|
195
|
-
class
|
202
|
+
class CorsConfiguration
|
196
203
|
include Google::Apis::Core::Hashable
|
197
204
|
|
198
205
|
# The value, in seconds, to return in the Access-Control-Max-Age header used in
|
@@ -206,7 +213,7 @@ module Google
|
|
206
213
|
# any method".
|
207
214
|
# Corresponds to the JSON property `method`
|
208
215
|
# @return [Array<String>]
|
209
|
-
attr_accessor :
|
216
|
+
attr_accessor :http_method
|
210
217
|
|
211
218
|
# The list of Origins eligible to receive CORS response headers. Note: "*" is
|
212
219
|
# permitted in the list of origins, and means "any Origin".
|
@@ -227,12 +234,32 @@ module Google
|
|
227
234
|
# Update properties of this object
|
228
235
|
def update!(**args)
|
229
236
|
@max_age_seconds = args[:max_age_seconds] if args.key?(:max_age_seconds)
|
230
|
-
@
|
237
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
231
238
|
@origin = args[:origin] if args.key?(:origin)
|
232
239
|
@response_header = args[:response_header] if args.key?(:response_header)
|
233
240
|
end
|
234
241
|
end
|
235
242
|
|
243
|
+
# Encryption configuration used by default for newly inserted objects, when no
|
244
|
+
# encryption config is specified.
|
245
|
+
class Encryption
|
246
|
+
include Google::Apis::Core::Hashable
|
247
|
+
|
248
|
+
#
|
249
|
+
# Corresponds to the JSON property `defaultKmsKeyName`
|
250
|
+
# @return [String]
|
251
|
+
attr_accessor :default_kms_key_name
|
252
|
+
|
253
|
+
def initialize(**args)
|
254
|
+
update!(**args)
|
255
|
+
end
|
256
|
+
|
257
|
+
# Update properties of this object
|
258
|
+
def update!(**args)
|
259
|
+
@default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
236
263
|
# The bucket's lifecycle configuration. See lifecycle management for more
|
237
264
|
# information.
|
238
265
|
class Lifecycle
|
@@ -976,6 +1003,12 @@ module Google
|
|
976
1003
|
# @return [String]
|
977
1004
|
attr_accessor :kind
|
978
1005
|
|
1006
|
+
# Cloud KMS Key used to encrypt this object, if the object is encrypted by such
|
1007
|
+
# a key.
|
1008
|
+
# Corresponds to the JSON property `kmsKeyName`
|
1009
|
+
# @return [String]
|
1010
|
+
attr_accessor :kms_key_name
|
1011
|
+
|
979
1012
|
# MD5 hash of the data; encoded using base64. For more information about using
|
980
1013
|
# the MD5 hash, see Hashes and ETags: Best Practices.
|
981
1014
|
# Corresponds to the JSON property `md5Hash`
|
@@ -1067,6 +1100,7 @@ module Google
|
|
1067
1100
|
@generation = args[:generation] if args.key?(:generation)
|
1068
1101
|
@id = args[:id] if args.key?(:id)
|
1069
1102
|
@kind = args[:kind] if args.key?(:kind)
|
1103
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
1070
1104
|
@md5_hash = args[:md5_hash] if args.key?(:md5_hash)
|
1071
1105
|
@media_link = args[:media_link] if args.key?(:media_link)
|
1072
1106
|
@metadata = args[:metadata] if args.key?(:metadata)
|
@@ -31,7 +31,13 @@ module Google
|
|
31
31
|
include Google::Apis::Core::JsonObjectSupport
|
32
32
|
end
|
33
33
|
|
34
|
-
class
|
34
|
+
class CorsConfiguration
|
35
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
36
|
+
|
37
|
+
include Google::Apis::Core::JsonObjectSupport
|
38
|
+
end
|
39
|
+
|
40
|
+
class Encryption
|
35
41
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
36
42
|
|
37
43
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -227,10 +233,12 @@ module Google
|
|
227
233
|
|
228
234
|
property :billing, as: 'billing', class: Google::Apis::StorageV1::Bucket::Billing, decorator: Google::Apis::StorageV1::Bucket::Billing::Representation
|
229
235
|
|
230
|
-
collection :
|
236
|
+
collection :cors_configurations, as: 'cors', class: Google::Apis::StorageV1::Bucket::CorsConfiguration, decorator: Google::Apis::StorageV1::Bucket::CorsConfiguration::Representation
|
231
237
|
|
232
238
|
collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1::ObjectAccessControl, decorator: Google::Apis::StorageV1::ObjectAccessControl::Representation
|
233
239
|
|
240
|
+
property :encryption, as: 'encryption', class: Google::Apis::StorageV1::Bucket::Encryption, decorator: Google::Apis::StorageV1::Bucket::Encryption::Representation
|
241
|
+
|
234
242
|
property :etag, as: 'etag'
|
235
243
|
property :id, as: 'id'
|
236
244
|
property :kind, as: 'kind'
|
@@ -264,16 +272,23 @@ module Google
|
|
264
272
|
end
|
265
273
|
end
|
266
274
|
|
267
|
-
class
|
275
|
+
class CorsConfiguration
|
268
276
|
# @private
|
269
277
|
class Representation < Google::Apis::Core::JsonRepresentation
|
270
278
|
property :max_age_seconds, as: 'maxAgeSeconds'
|
271
|
-
collection :
|
279
|
+
collection :http_method, as: 'method'
|
272
280
|
collection :origin, as: 'origin'
|
273
281
|
collection :response_header, as: 'responseHeader'
|
274
282
|
end
|
275
283
|
end
|
276
284
|
|
285
|
+
class Encryption
|
286
|
+
# @private
|
287
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
+
property :default_kms_key_name, as: 'defaultKmsKeyName'
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
277
292
|
class Lifecycle
|
278
293
|
# @private
|
279
294
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -476,6 +491,7 @@ module Google
|
|
476
491
|
property :generation, :numeric_string => true, as: 'generation'
|
477
492
|
property :id, as: 'id'
|
478
493
|
property :kind, as: 'kind'
|
494
|
+
property :kms_key_name, as: 'kmsKeyName'
|
479
495
|
property :md5_hash, as: 'md5Hash'
|
480
496
|
property :media_link, as: 'mediaLink'
|
481
497
|
hash :metadata, as: 'metadata'
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
62
62
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
63
63
|
# @param [String] user_project
|
64
|
-
# The project
|
64
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
65
65
|
# @param [String] fields
|
66
66
|
# Selector specifying which fields to include in a partial response.
|
67
67
|
# @param [String] quota_user
|
@@ -101,7 +101,7 @@ module Google
|
|
101
101
|
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
102
102
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
103
103
|
# @param [String] user_project
|
104
|
-
# The project
|
104
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
105
105
|
# @param [String] fields
|
106
106
|
# Selector specifying which fields to include in a partial response.
|
107
107
|
# @param [String] quota_user
|
@@ -141,7 +141,7 @@ module Google
|
|
141
141
|
# Name of a bucket.
|
142
142
|
# @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
|
143
143
|
# @param [String] user_project
|
144
|
-
# The project
|
144
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
145
145
|
# @param [String] fields
|
146
146
|
# Selector specifying which fields to include in a partial response.
|
147
147
|
# @param [String] quota_user
|
@@ -181,7 +181,7 @@ module Google
|
|
181
181
|
# @param [String] bucket
|
182
182
|
# Name of a bucket.
|
183
183
|
# @param [String] user_project
|
184
|
-
# The project
|
184
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
185
185
|
# @param [String] fields
|
186
186
|
# Selector specifying which fields to include in a partial response.
|
187
187
|
# @param [String] quota_user
|
@@ -224,7 +224,7 @@ module Google
|
|
224
224
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
225
225
|
# @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
|
226
226
|
# @param [String] user_project
|
227
|
-
# The project
|
227
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
228
228
|
# @param [String] fields
|
229
229
|
# Selector specifying which fields to include in a partial response.
|
230
230
|
# @param [String] quota_user
|
@@ -269,7 +269,7 @@ module Google
|
|
269
269
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
270
270
|
# @param [Google::Apis::StorageV1::BucketAccessControl] bucket_access_control_object
|
271
271
|
# @param [String] user_project
|
272
|
-
# The project
|
272
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
273
273
|
# @param [String] fields
|
274
274
|
# Selector specifying which fields to include in a partial response.
|
275
275
|
# @param [String] quota_user
|
@@ -315,7 +315,7 @@ module Google
|
|
315
315
|
# If set, only deletes the bucket if its metageneration does not match this
|
316
316
|
# value.
|
317
317
|
# @param [String] user_project
|
318
|
-
# The project
|
318
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
319
319
|
# @param [String] fields
|
320
320
|
# Selector specifying which fields to include in a partial response.
|
321
321
|
# @param [String] quota_user
|
@@ -361,7 +361,7 @@ module Google
|
|
361
361
|
# @param [String] projection
|
362
362
|
# Set of properties to return. Defaults to noAcl.
|
363
363
|
# @param [String] user_project
|
364
|
-
# The project
|
364
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
365
365
|
# @param [String] fields
|
366
366
|
# Selector specifying which fields to include in a partial response.
|
367
367
|
# @param [String] quota_user
|
@@ -402,7 +402,7 @@ module Google
|
|
402
402
|
# @param [String] bucket
|
403
403
|
# Name of a bucket.
|
404
404
|
# @param [String] user_project
|
405
|
-
# The project
|
405
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
406
406
|
# @param [String] fields
|
407
407
|
# Selector specifying which fields to include in a partial response.
|
408
408
|
# @param [String] quota_user
|
@@ -552,7 +552,7 @@ module Google
|
|
552
552
|
# @param [String] projection
|
553
553
|
# Set of properties to return. Defaults to full.
|
554
554
|
# @param [String] user_project
|
555
|
-
# The project
|
555
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
556
556
|
# @param [String] fields
|
557
557
|
# Selector specifying which fields to include in a partial response.
|
558
558
|
# @param [String] quota_user
|
@@ -598,7 +598,7 @@ module Google
|
|
598
598
|
# Name of a bucket.
|
599
599
|
# @param [Google::Apis::StorageV1::Policy] policy_object
|
600
600
|
# @param [String] user_project
|
601
|
-
# The project
|
601
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
602
602
|
# @param [String] fields
|
603
603
|
# Selector specifying which fields to include in a partial response.
|
604
604
|
# @param [String] quota_user
|
@@ -641,7 +641,7 @@ module Google
|
|
641
641
|
# @param [Array<String>, String] permissions
|
642
642
|
# Permissions to test.
|
643
643
|
# @param [String] user_project
|
644
|
-
# The project
|
644
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
645
645
|
# @param [String] fields
|
646
646
|
# Selector specifying which fields to include in a partial response.
|
647
647
|
# @param [String] quota_user
|
@@ -694,7 +694,7 @@ module Google
|
|
694
694
|
# @param [String] projection
|
695
695
|
# Set of properties to return. Defaults to full.
|
696
696
|
# @param [String] user_project
|
697
|
-
# The project
|
697
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
698
698
|
# @param [String] fields
|
699
699
|
# Selector specifying which fields to include in a partial response.
|
700
700
|
# @param [String] quota_user
|
@@ -776,7 +776,7 @@ module Google
|
|
776
776
|
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
777
777
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
778
778
|
# @param [String] user_project
|
779
|
-
# The project
|
779
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
780
780
|
# @param [String] fields
|
781
781
|
# Selector specifying which fields to include in a partial response.
|
782
782
|
# @param [String] quota_user
|
@@ -817,7 +817,7 @@ module Google
|
|
817
817
|
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
818
818
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
819
819
|
# @param [String] user_project
|
820
|
-
# The project
|
820
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
821
821
|
# @param [String] fields
|
822
822
|
# Selector specifying which fields to include in a partial response.
|
823
823
|
# @param [String] quota_user
|
@@ -857,7 +857,7 @@ module Google
|
|
857
857
|
# Name of a bucket.
|
858
858
|
# @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
|
859
859
|
# @param [String] user_project
|
860
|
-
# The project
|
860
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
861
861
|
# @param [String] fields
|
862
862
|
# Selector specifying which fields to include in a partial response.
|
863
863
|
# @param [String] quota_user
|
@@ -903,7 +903,7 @@ module Google
|
|
903
903
|
# If present, only return default ACL listing if the bucket's current
|
904
904
|
# metageneration does not match the given value.
|
905
905
|
# @param [String] user_project
|
906
|
-
# The project
|
906
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
907
907
|
# @param [String] fields
|
908
908
|
# Selector specifying which fields to include in a partial response.
|
909
909
|
# @param [String] quota_user
|
@@ -948,7 +948,7 @@ module Google
|
|
948
948
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
949
949
|
# @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
|
950
950
|
# @param [String] user_project
|
951
|
-
# The project
|
951
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
952
952
|
# @param [String] fields
|
953
953
|
# Selector specifying which fields to include in a partial response.
|
954
954
|
# @param [String] quota_user
|
@@ -993,7 +993,7 @@ module Google
|
|
993
993
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
994
994
|
# @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
|
995
995
|
# @param [String] user_project
|
996
|
-
# The project
|
996
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
997
997
|
# @param [String] fields
|
998
998
|
# Selector specifying which fields to include in a partial response.
|
999
999
|
# @param [String] quota_user
|
@@ -1036,7 +1036,7 @@ module Google
|
|
1036
1036
|
# @param [String] notification
|
1037
1037
|
# ID of the notification to delete.
|
1038
1038
|
# @param [String] user_project
|
1039
|
-
# The project
|
1039
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1040
1040
|
# @param [String] fields
|
1041
1041
|
# Selector specifying which fields to include in a partial response.
|
1042
1042
|
# @param [String] quota_user
|
@@ -1075,7 +1075,7 @@ module Google
|
|
1075
1075
|
# @param [String] notification
|
1076
1076
|
# Notification ID
|
1077
1077
|
# @param [String] user_project
|
1078
|
-
# The project
|
1078
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1079
1079
|
# @param [String] fields
|
1080
1080
|
# Selector specifying which fields to include in a partial response.
|
1081
1081
|
# @param [String] quota_user
|
@@ -1115,7 +1115,7 @@ module Google
|
|
1115
1115
|
# The parent bucket of the notification.
|
1116
1116
|
# @param [Google::Apis::StorageV1::Notification] notification_object
|
1117
1117
|
# @param [String] user_project
|
1118
|
-
# The project
|
1118
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1119
1119
|
# @param [String] fields
|
1120
1120
|
# Selector specifying which fields to include in a partial response.
|
1121
1121
|
# @param [String] quota_user
|
@@ -1155,7 +1155,7 @@ module Google
|
|
1155
1155
|
# @param [String] bucket
|
1156
1156
|
# Name of a GCS bucket.
|
1157
1157
|
# @param [String] user_project
|
1158
|
-
# The project
|
1158
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1159
1159
|
# @param [String] fields
|
1160
1160
|
# Selector specifying which fields to include in a partial response.
|
1161
1161
|
# @param [String] quota_user
|
@@ -1203,7 +1203,7 @@ module Google
|
|
1203
1203
|
# If present, selects a specific revision of this object (as opposed to the
|
1204
1204
|
# latest version, the default).
|
1205
1205
|
# @param [String] user_project
|
1206
|
-
# The project
|
1206
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1207
1207
|
# @param [String] fields
|
1208
1208
|
# Selector specifying which fields to include in a partial response.
|
1209
1209
|
# @param [String] quota_user
|
@@ -1251,7 +1251,7 @@ module Google
|
|
1251
1251
|
# If present, selects a specific revision of this object (as opposed to the
|
1252
1252
|
# latest version, the default).
|
1253
1253
|
# @param [String] user_project
|
1254
|
-
# The project
|
1254
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1255
1255
|
# @param [String] fields
|
1256
1256
|
# Selector specifying which fields to include in a partial response.
|
1257
1257
|
# @param [String] quota_user
|
@@ -1299,7 +1299,7 @@ module Google
|
|
1299
1299
|
# If present, selects a specific revision of this object (as opposed to the
|
1300
1300
|
# latest version, the default).
|
1301
1301
|
# @param [String] user_project
|
1302
|
-
# The project
|
1302
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1303
1303
|
# @param [String] fields
|
1304
1304
|
# Selector specifying which fields to include in a partial response.
|
1305
1305
|
# @param [String] quota_user
|
@@ -1347,7 +1347,7 @@ module Google
|
|
1347
1347
|
# If present, selects a specific revision of this object (as opposed to the
|
1348
1348
|
# latest version, the default).
|
1349
1349
|
# @param [String] user_project
|
1350
|
-
# The project
|
1350
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1351
1351
|
# @param [String] fields
|
1352
1352
|
# Selector specifying which fields to include in a partial response.
|
1353
1353
|
# @param [String] quota_user
|
@@ -1398,7 +1398,7 @@ module Google
|
|
1398
1398
|
# If present, selects a specific revision of this object (as opposed to the
|
1399
1399
|
# latest version, the default).
|
1400
1400
|
# @param [String] user_project
|
1401
|
-
# The project
|
1401
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1402
1402
|
# @param [String] fields
|
1403
1403
|
# Selector specifying which fields to include in a partial response.
|
1404
1404
|
# @param [String] quota_user
|
@@ -1451,7 +1451,7 @@ module Google
|
|
1451
1451
|
# If present, selects a specific revision of this object (as opposed to the
|
1452
1452
|
# latest version, the default).
|
1453
1453
|
# @param [String] user_project
|
1454
|
-
# The project
|
1454
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1455
1455
|
# @param [String] fields
|
1456
1456
|
# Selector specifying which fields to include in a partial response.
|
1457
1457
|
# @param [String] quota_user
|
@@ -1505,8 +1505,12 @@ module Google
|
|
1505
1505
|
# @param [Fixnum] if_metageneration_match
|
1506
1506
|
# Makes the operation conditional on whether the object's current metageneration
|
1507
1507
|
# matches the given value.
|
1508
|
+
# @param [String] kms_key_name
|
1509
|
+
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
|
1510
|
+
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
1511
|
+
# object. Overrides the object metadata's kms_key_name value, if any.
|
1508
1512
|
# @param [String] user_project
|
1509
|
-
# The project
|
1513
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1510
1514
|
# @param [String] fields
|
1511
1515
|
# Selector specifying which fields to include in a partial response.
|
1512
1516
|
# @param [String] quota_user
|
@@ -1530,7 +1534,7 @@ module Google
|
|
1530
1534
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1531
1535
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1532
1536
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1533
|
-
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1537
|
+
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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
1534
1538
|
if download_dest.nil?
|
1535
1539
|
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
1536
1540
|
else
|
@@ -1546,6 +1550,7 @@ module Google
|
|
1546
1550
|
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
|
1547
1551
|
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
1548
1552
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1553
|
+
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
|
1549
1554
|
command.query['userProject'] = user_project unless user_project.nil?
|
1550
1555
|
command.query['fields'] = fields unless fields.nil?
|
1551
1556
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1600,7 +1605,7 @@ module Google
|
|
1600
1605
|
# If present, selects a specific revision of the source object (as opposed to
|
1601
1606
|
# the latest version, the default).
|
1602
1607
|
# @param [String] user_project
|
1603
|
-
# The project
|
1608
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1604
1609
|
# @param [String] fields
|
1605
1610
|
# Selector specifying which fields to include in a partial response.
|
1606
1611
|
# @param [String] quota_user
|
@@ -1680,7 +1685,7 @@ module Google
|
|
1680
1685
|
# Makes the operation conditional on whether the object's current metageneration
|
1681
1686
|
# does not match the given value.
|
1682
1687
|
# @param [String] user_project
|
1683
|
-
# The project
|
1688
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1684
1689
|
# @param [String] fields
|
1685
1690
|
# Selector specifying which fields to include in a partial response.
|
1686
1691
|
# @param [String] quota_user
|
@@ -1742,7 +1747,7 @@ module Google
|
|
1742
1747
|
# @param [String] projection
|
1743
1748
|
# Set of properties to return. Defaults to noAcl.
|
1744
1749
|
# @param [String] user_project
|
1745
|
-
# The project
|
1750
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1746
1751
|
# @param [String] fields
|
1747
1752
|
# Selector specifying which fields to include in a partial response.
|
1748
1753
|
# @param [String] quota_user
|
@@ -1800,7 +1805,7 @@ module Google
|
|
1800
1805
|
# If present, selects a specific revision of this object (as opposed to the
|
1801
1806
|
# latest version, the default).
|
1802
1807
|
# @param [String] user_project
|
1803
|
-
# The project
|
1808
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1804
1809
|
# @param [String] fields
|
1805
1810
|
# Selector specifying which fields to include in a partial response.
|
1806
1811
|
# @param [String] quota_user
|
@@ -1858,6 +1863,10 @@ module Google
|
|
1858
1863
|
# @param [Fixnum] if_metageneration_not_match
|
1859
1864
|
# Makes the operation conditional on whether the object's current metageneration
|
1860
1865
|
# does not match the given value.
|
1866
|
+
# @param [String] kms_key_name
|
1867
|
+
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
|
1868
|
+
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
1869
|
+
# object. Overrides the object metadata's kms_key_name value, if any.
|
1861
1870
|
# @param [String] name
|
1862
1871
|
# Name of the object. Required when the object metadata is not otherwise
|
1863
1872
|
# provided. Overrides the object metadata's name value, if any. For information
|
@@ -1869,7 +1878,7 @@ module Google
|
|
1869
1878
|
# Set of properties to return. Defaults to noAcl, unless the object resource
|
1870
1879
|
# specifies the acl property, when it defaults to full.
|
1871
1880
|
# @param [String] user_project
|
1872
|
-
# The project
|
1881
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1873
1882
|
# @param [String] fields
|
1874
1883
|
# Selector specifying which fields to include in a partial response.
|
1875
1884
|
# @param [String] quota_user
|
@@ -1895,7 +1904,7 @@ module Google
|
|
1895
1904
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1896
1905
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1897
1906
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1898
|
-
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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
1907
|
+
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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
1899
1908
|
if upload_source.nil?
|
1900
1909
|
command = make_simple_command(:post, 'b/{bucket}/o', options)
|
1901
1910
|
else
|
@@ -1913,6 +1922,7 @@ module Google
|
|
1913
1922
|
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
1914
1923
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
1915
1924
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
1925
|
+
command.query['kmsKeyName'] = kms_key_name unless kms_key_name.nil?
|
1916
1926
|
command.query['name'] = name unless name.nil?
|
1917
1927
|
command.query['predefinedAcl'] = predefined_acl unless predefined_acl.nil?
|
1918
1928
|
command.query['projection'] = projection unless projection.nil?
|
@@ -1945,7 +1955,7 @@ module Google
|
|
1945
1955
|
# @param [String] projection
|
1946
1956
|
# Set of properties to return. Defaults to noAcl.
|
1947
1957
|
# @param [String] user_project
|
1948
|
-
# The project
|
1958
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
1949
1959
|
# @param [Boolean] versions
|
1950
1960
|
# If true, lists all versions of an object as distinct results. The default is
|
1951
1961
|
# false. For more information, see Object Versioning.
|
@@ -2015,7 +2025,7 @@ module Google
|
|
2015
2025
|
# @param [String] projection
|
2016
2026
|
# Set of properties to return. Defaults to full.
|
2017
2027
|
# @param [String] user_project
|
2018
|
-
# The project
|
2028
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
2019
2029
|
# @param [String] fields
|
2020
2030
|
# Selector specifying which fields to include in a partial response.
|
2021
2031
|
# @param [String] quota_user
|
@@ -2075,6 +2085,10 @@ module Google
|
|
2075
2085
|
# about how to URL encode object names to be path safe, see Encoding URI Path
|
2076
2086
|
# Parts.
|
2077
2087
|
# @param [Google::Apis::StorageV1::Object] object_object
|
2088
|
+
# @param [String] destination_kms_key_name
|
2089
|
+
# Resource name of the Cloud KMS key, of the form projects/my-project/locations/
|
2090
|
+
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
2091
|
+
# object. Overrides the object metadata's kms_key_name value, if any.
|
2078
2092
|
# @param [String] destination_predefined_acl
|
2079
2093
|
# Apply a predefined set of access controls to the destination object.
|
2080
2094
|
# @param [Fixnum] if_generation_match
|
@@ -2121,7 +2135,7 @@ module Google
|
|
2121
2135
|
# If present, selects a specific revision of the source object (as opposed to
|
2122
2136
|
# the latest version, the default).
|
2123
2137
|
# @param [String] user_project
|
2124
|
-
# The project
|
2138
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
2125
2139
|
# @param [String] fields
|
2126
2140
|
# Selector specifying which fields to include in a partial response.
|
2127
2141
|
# @param [String] quota_user
|
@@ -2143,7 +2157,7 @@ module Google
|
|
2143
2157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2144
2158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2145
2159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2146
|
-
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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2160
|
+
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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2147
2161
|
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', options)
|
2148
2162
|
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
2149
2163
|
command.request_object = object_object
|
@@ -2153,6 +2167,7 @@ module Google
|
|
2153
2167
|
command.params['sourceObject'] = source_object unless source_object.nil?
|
2154
2168
|
command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil?
|
2155
2169
|
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
2170
|
+
command.query['destinationKmsKeyName'] = destination_kms_key_name unless destination_kms_key_name.nil?
|
2156
2171
|
command.query['destinationPredefinedAcl'] = destination_predefined_acl unless destination_predefined_acl.nil?
|
2157
2172
|
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
2158
2173
|
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
@@ -2184,7 +2199,7 @@ module Google
|
|
2184
2199
|
# If present, selects a specific revision of this object (as opposed to the
|
2185
2200
|
# latest version, the default).
|
2186
2201
|
# @param [String] user_project
|
2187
|
-
# The project
|
2202
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
2188
2203
|
# @param [String] fields
|
2189
2204
|
# Selector specifying which fields to include in a partial response.
|
2190
2205
|
# @param [String] quota_user
|
@@ -2235,7 +2250,7 @@ module Google
|
|
2235
2250
|
# If present, selects a specific revision of this object (as opposed to the
|
2236
2251
|
# latest version, the default).
|
2237
2252
|
# @param [String] user_project
|
2238
|
-
# The project
|
2253
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
2239
2254
|
# @param [String] fields
|
2240
2255
|
# Selector specifying which fields to include in a partial response.
|
2241
2256
|
# @param [String] quota_user
|
@@ -2299,7 +2314,7 @@ module Google
|
|
2299
2314
|
# @param [String] projection
|
2300
2315
|
# Set of properties to return. Defaults to full.
|
2301
2316
|
# @param [String] user_project
|
2302
|
-
# The project
|
2317
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
2303
2318
|
# @param [String] fields
|
2304
2319
|
# Selector specifying which fields to include in a partial response.
|
2305
2320
|
# @param [String] quota_user
|
@@ -2373,7 +2388,7 @@ module Google
|
|
2373
2388
|
# @param [String] projection
|
2374
2389
|
# Set of properties to return. Defaults to noAcl.
|
2375
2390
|
# @param [String] user_project
|
2376
|
-
# The project
|
2391
|
+
# The project to be billed for this request, for Requester Pays buckets.
|
2377
2392
|
# @param [Boolean] versions
|
2378
2393
|
# If true, lists all versions of an object as distinct results. The default is
|
2379
2394
|
# false. For more information, see Object Versioning.
|
@@ -2398,7 +2413,7 @@ module Google
|
|
2398
2413
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2399
2414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2400
2415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2401
|
-
def
|
2416
|
+
def watch_all_objects(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2402
2417
|
command = make_simple_command(:post, 'b/{bucket}/o/watch', options)
|
2403
2418
|
command.request_representation = Google::Apis::StorageV1::Channel::Representation
|
2404
2419
|
command.request_object = channel_object
|