google-api-client 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +75 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
- data/generated/google/apis/admin_directory_v1/service.rb +71 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
- data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
- data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -46
- data/generated/google/apis/appengine_v1/representations.rb +0 -17
- data/generated/google/apis/appengine_v1/service.rb +5 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
- data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
- data/generated/google/apis/appengine_v1beta/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
- data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +41 -24
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +15 -3
- data/generated/google/apis/classroom_v1.rb +4 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +7 -3
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +143 -83
- data/generated/google/apis/compute_alpha/representations.rb +50 -30
- data/generated/google/apis/compute_alpha/service.rb +171 -5
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +47 -43
- data/generated/google/apis/compute_beta/representations.rb +1 -2
- data/generated/google/apis/compute_beta/service.rb +60 -5
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1326 -168
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +751 -5
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -16
- data/generated/google/apis/content_v2/service.rb +142 -162
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/service.rb +43 -43
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
- data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
- data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +39 -60
- data/generated/google/apis/datastore_v1/representations.rb +27 -0
- data/generated/google/apis/datastore_v1/service.rb +34 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
- data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
- data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
- data/generated/google/apis/dns_v1beta2.rb +43 -0
- data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
- data/generated/google/apis/dns_v1beta2/service.rb +769 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +51 -8
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +45 -7
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1/service.rb +37 -0
- data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
- data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
- data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +5 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +78 -0
- data/generated/google/apis/language_v1/representations.rb +45 -0
- data/generated/google/apis/language_v1/service.rb +30 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +517 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +22 -6
- data/generated/google/apis/ml_v1/service.rb +8 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +358 -0
- data/generated/google/apis/monitoring_v3/representations.rb +145 -0
- data/generated/google/apis/monitoring_v3/service.rb +229 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +7 -60
- data/generated/google/apis/partners_v2/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +57 -51
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -2
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +505 -11
- data/generated/google/apis/slides_v1/representations.rb +220 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +51 -72
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
- data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +8 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/generator/model.rb +9 -3
- data/lib/google/apis/generator/templates/_class.tmpl +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -12
- data/generated/google/apis/playmoviespartner_v1.rb +0 -34
- data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
- data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
- data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
- data/generated/google/apis/qpx_express_v1.rb +0 -31
- data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
- data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
- data/generated/google/apis/qpx_express_v1/service.rb +0 -101
|
@@ -88,6 +88,24 @@ module Google
|
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
+
class DemoteMasterConfiguration
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class DemoteMasterContext
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class DemoteMasterMySqlReplicaConfiguration
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
91
109
|
class ExportContext
|
|
92
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
111
|
|
|
@@ -142,6 +160,12 @@ module Google
|
|
|
142
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
161
|
end
|
|
144
162
|
|
|
163
|
+
class InstancesDemoteMasterRequest
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
167
|
+
end
|
|
168
|
+
|
|
145
169
|
class ExportInstancesRequest
|
|
146
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
171
|
|
|
@@ -471,6 +495,37 @@ module Google
|
|
|
471
495
|
end
|
|
472
496
|
end
|
|
473
497
|
|
|
498
|
+
class DemoteMasterConfiguration
|
|
499
|
+
# @private
|
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
501
|
+
property :kind, as: 'kind'
|
|
502
|
+
property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration::Representation
|
|
503
|
+
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
class DemoteMasterContext
|
|
508
|
+
# @private
|
|
509
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
510
|
+
property :kind, as: 'kind'
|
|
511
|
+
property :master_instance_name, as: 'masterInstanceName'
|
|
512
|
+
property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation
|
|
513
|
+
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
class DemoteMasterMySqlReplicaConfiguration
|
|
518
|
+
# @private
|
|
519
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
520
|
+
property :ca_certificate, as: 'caCertificate'
|
|
521
|
+
property :client_certificate, as: 'clientCertificate'
|
|
522
|
+
property :client_key, as: 'clientKey'
|
|
523
|
+
property :kind, as: 'kind'
|
|
524
|
+
property :password, as: 'password'
|
|
525
|
+
property :username, as: 'username'
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
|
|
474
529
|
class ExportContext
|
|
475
530
|
# @private
|
|
476
531
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -560,6 +615,14 @@ module Google
|
|
|
560
615
|
end
|
|
561
616
|
end
|
|
562
617
|
|
|
618
|
+
class InstancesDemoteMasterRequest
|
|
619
|
+
# @private
|
|
620
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
621
|
+
property :demote_master_context, as: 'demoteMasterContext', class: Google::Apis::SqladminV1beta4::DemoteMasterContext, decorator: Google::Apis::SqladminV1beta4::DemoteMasterContext::Representation
|
|
622
|
+
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
|
|
563
626
|
class ExportInstancesRequest
|
|
564
627
|
# @private
|
|
565
628
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -595,6 +595,48 @@ module Google
|
|
|
595
595
|
execute_or_queue_command(command, &block)
|
|
596
596
|
end
|
|
597
597
|
|
|
598
|
+
# Demotes the standalone instance to be a read replica Cloud SQL instance of an
|
|
599
|
+
# on-premises master.
|
|
600
|
+
# @param [String] project
|
|
601
|
+
# ID of the project that contains the instance.
|
|
602
|
+
# @param [String] instance
|
|
603
|
+
# Cloud SQL instance name.
|
|
604
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
|
|
605
|
+
# @param [String] fields
|
|
606
|
+
# Selector specifying which fields to include in a partial response.
|
|
607
|
+
# @param [String] quota_user
|
|
608
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
609
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
610
|
+
# Overrides userIp if both are provided.
|
|
611
|
+
# @param [String] user_ip
|
|
612
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
613
|
+
# enforce per-user limits.
|
|
614
|
+
# @param [Google::Apis::RequestOptions] options
|
|
615
|
+
# Request-specific options
|
|
616
|
+
#
|
|
617
|
+
# @yield [result, err] Result & error if block supplied
|
|
618
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
|
619
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
620
|
+
#
|
|
621
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
|
622
|
+
#
|
|
623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
626
|
+
def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
627
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/demoteMaster', options)
|
|
628
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest::Representation
|
|
629
|
+
command.request_object = instances_demote_master_request_object
|
|
630
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
|
631
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
|
632
|
+
command.params['project'] = project unless project.nil?
|
|
633
|
+
command.params['instance'] = instance unless instance.nil?
|
|
634
|
+
command.query['fields'] = fields unless fields.nil?
|
|
635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
636
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
637
|
+
execute_or_queue_command(command, &block)
|
|
638
|
+
end
|
|
639
|
+
|
|
598
640
|
# Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
|
|
599
641
|
# MySQL dump file.
|
|
600
642
|
# @param [String] project
|
|
@@ -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 = '20171018'
|
|
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'
|
|
@@ -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 to be billed for this request
|
|
64
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
104
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
144
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
184
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
227
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
272
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
318
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
364
|
+
# The project to be billed for this request. Required 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 to be billed for this request
|
|
405
|
+
# The project to be billed for this request. Required 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
|
|
@@ -448,7 +448,7 @@ module Google
|
|
|
448
448
|
# Set of properties to return. Defaults to noAcl, unless the bucket resource
|
|
449
449
|
# specifies acl or defaultObjectAcl properties, when it defaults to full.
|
|
450
450
|
# @param [String] user_project
|
|
451
|
-
# The project to be billed for this request
|
|
451
|
+
# The project to be billed for this request.
|
|
452
452
|
# @param [String] fields
|
|
453
453
|
# Selector specifying which fields to include in a partial response.
|
|
454
454
|
# @param [String] quota_user
|
|
@@ -501,7 +501,7 @@ module Google
|
|
|
501
501
|
# @param [String] projection
|
|
502
502
|
# Set of properties to return. Defaults to noAcl.
|
|
503
503
|
# @param [String] user_project
|
|
504
|
-
# The project to be billed for this request
|
|
504
|
+
# The project to be billed for this request.
|
|
505
505
|
# @param [String] fields
|
|
506
506
|
# Selector specifying which fields to include in a partial response.
|
|
507
507
|
# @param [String] quota_user
|
|
@@ -558,7 +558,7 @@ module Google
|
|
|
558
558
|
# @param [String] projection
|
|
559
559
|
# Set of properties to return. Defaults to full.
|
|
560
560
|
# @param [String] user_project
|
|
561
|
-
# The project to be billed for this request
|
|
561
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
562
562
|
# @param [String] fields
|
|
563
563
|
# Selector specifying which fields to include in a partial response.
|
|
564
564
|
# @param [String] quota_user
|
|
@@ -604,7 +604,7 @@ module Google
|
|
|
604
604
|
# Name of a bucket.
|
|
605
605
|
# @param [Google::Apis::StorageV1::Policy] policy_object
|
|
606
606
|
# @param [String] user_project
|
|
607
|
-
# The project to be billed for this request
|
|
607
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
608
608
|
# @param [String] fields
|
|
609
609
|
# Selector specifying which fields to include in a partial response.
|
|
610
610
|
# @param [String] quota_user
|
|
@@ -647,7 +647,7 @@ module Google
|
|
|
647
647
|
# @param [Array<String>, String] permissions
|
|
648
648
|
# Permissions to test.
|
|
649
649
|
# @param [String] user_project
|
|
650
|
-
# The project to be billed for this request
|
|
650
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
651
651
|
# @param [String] fields
|
|
652
652
|
# Selector specifying which fields to include in a partial response.
|
|
653
653
|
# @param [String] quota_user
|
|
@@ -700,7 +700,7 @@ module Google
|
|
|
700
700
|
# @param [String] projection
|
|
701
701
|
# Set of properties to return. Defaults to full.
|
|
702
702
|
# @param [String] user_project
|
|
703
|
-
# The project to be billed for this request
|
|
703
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
704
704
|
# @param [String] fields
|
|
705
705
|
# Selector specifying which fields to include in a partial response.
|
|
706
706
|
# @param [String] quota_user
|
|
@@ -782,7 +782,7 @@ module Google
|
|
|
782
782
|
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
|
783
783
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
|
784
784
|
# @param [String] user_project
|
|
785
|
-
# The project to be billed for this request
|
|
785
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
786
786
|
# @param [String] fields
|
|
787
787
|
# Selector specifying which fields to include in a partial response.
|
|
788
788
|
# @param [String] quota_user
|
|
@@ -823,7 +823,7 @@ module Google
|
|
|
823
823
|
# The entity holding the permission. Can be user-userId, user-emailAddress,
|
|
824
824
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
|
825
825
|
# @param [String] user_project
|
|
826
|
-
# The project to be billed for this request
|
|
826
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
827
827
|
# @param [String] fields
|
|
828
828
|
# Selector specifying which fields to include in a partial response.
|
|
829
829
|
# @param [String] quota_user
|
|
@@ -863,7 +863,7 @@ module Google
|
|
|
863
863
|
# Name of a bucket.
|
|
864
864
|
# @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
|
|
865
865
|
# @param [String] user_project
|
|
866
|
-
# The project to be billed for this request
|
|
866
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
867
867
|
# @param [String] fields
|
|
868
868
|
# Selector specifying which fields to include in a partial response.
|
|
869
869
|
# @param [String] quota_user
|
|
@@ -909,7 +909,7 @@ module Google
|
|
|
909
909
|
# If present, only return default ACL listing if the bucket's current
|
|
910
910
|
# metageneration does not match the given value.
|
|
911
911
|
# @param [String] user_project
|
|
912
|
-
# The project to be billed for this request
|
|
912
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
913
913
|
# @param [String] fields
|
|
914
914
|
# Selector specifying which fields to include in a partial response.
|
|
915
915
|
# @param [String] quota_user
|
|
@@ -954,7 +954,7 @@ module Google
|
|
|
954
954
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
|
955
955
|
# @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
|
|
956
956
|
# @param [String] user_project
|
|
957
|
-
# The project to be billed for this request
|
|
957
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
958
958
|
# @param [String] fields
|
|
959
959
|
# Selector specifying which fields to include in a partial response.
|
|
960
960
|
# @param [String] quota_user
|
|
@@ -999,7 +999,7 @@ module Google
|
|
|
999
999
|
# group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
|
|
1000
1000
|
# @param [Google::Apis::StorageV1::ObjectAccessControl] object_access_control_object
|
|
1001
1001
|
# @param [String] user_project
|
|
1002
|
-
# The project to be billed for this request
|
|
1002
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1003
1003
|
# @param [String] fields
|
|
1004
1004
|
# Selector specifying which fields to include in a partial response.
|
|
1005
1005
|
# @param [String] quota_user
|
|
@@ -1042,7 +1042,7 @@ module Google
|
|
|
1042
1042
|
# @param [String] notification
|
|
1043
1043
|
# ID of the notification to delete.
|
|
1044
1044
|
# @param [String] user_project
|
|
1045
|
-
# The project to be billed for this request
|
|
1045
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1046
1046
|
# @param [String] fields
|
|
1047
1047
|
# Selector specifying which fields to include in a partial response.
|
|
1048
1048
|
# @param [String] quota_user
|
|
@@ -1081,7 +1081,7 @@ module Google
|
|
|
1081
1081
|
# @param [String] notification
|
|
1082
1082
|
# Notification ID
|
|
1083
1083
|
# @param [String] user_project
|
|
1084
|
-
# The project to be billed for this request
|
|
1084
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1085
1085
|
# @param [String] fields
|
|
1086
1086
|
# Selector specifying which fields to include in a partial response.
|
|
1087
1087
|
# @param [String] quota_user
|
|
@@ -1121,7 +1121,7 @@ module Google
|
|
|
1121
1121
|
# The parent bucket of the notification.
|
|
1122
1122
|
# @param [Google::Apis::StorageV1::Notification] notification_object
|
|
1123
1123
|
# @param [String] user_project
|
|
1124
|
-
# The project to be billed for this request
|
|
1124
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1125
1125
|
# @param [String] fields
|
|
1126
1126
|
# Selector specifying which fields to include in a partial response.
|
|
1127
1127
|
# @param [String] quota_user
|
|
@@ -1161,7 +1161,7 @@ module Google
|
|
|
1161
1161
|
# @param [String] bucket
|
|
1162
1162
|
# Name of a Google Cloud Storage bucket.
|
|
1163
1163
|
# @param [String] user_project
|
|
1164
|
-
# The project to be billed for this request
|
|
1164
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1165
1165
|
# @param [String] fields
|
|
1166
1166
|
# Selector specifying which fields to include in a partial response.
|
|
1167
1167
|
# @param [String] quota_user
|
|
@@ -1209,7 +1209,7 @@ module Google
|
|
|
1209
1209
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1210
1210
|
# latest version, the default).
|
|
1211
1211
|
# @param [String] user_project
|
|
1212
|
-
# The project to be billed for this request
|
|
1212
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1213
1213
|
# @param [String] fields
|
|
1214
1214
|
# Selector specifying which fields to include in a partial response.
|
|
1215
1215
|
# @param [String] quota_user
|
|
@@ -1257,7 +1257,7 @@ module Google
|
|
|
1257
1257
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1258
1258
|
# latest version, the default).
|
|
1259
1259
|
# @param [String] user_project
|
|
1260
|
-
# The project to be billed for this request
|
|
1260
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1261
1261
|
# @param [String] fields
|
|
1262
1262
|
# Selector specifying which fields to include in a partial response.
|
|
1263
1263
|
# @param [String] quota_user
|
|
@@ -1305,7 +1305,7 @@ module Google
|
|
|
1305
1305
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1306
1306
|
# latest version, the default).
|
|
1307
1307
|
# @param [String] user_project
|
|
1308
|
-
# The project to be billed for this request
|
|
1308
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1309
1309
|
# @param [String] fields
|
|
1310
1310
|
# Selector specifying which fields to include in a partial response.
|
|
1311
1311
|
# @param [String] quota_user
|
|
@@ -1353,7 +1353,7 @@ module Google
|
|
|
1353
1353
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1354
1354
|
# latest version, the default).
|
|
1355
1355
|
# @param [String] user_project
|
|
1356
|
-
# The project to be billed for this request
|
|
1356
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1357
1357
|
# @param [String] fields
|
|
1358
1358
|
# Selector specifying which fields to include in a partial response.
|
|
1359
1359
|
# @param [String] quota_user
|
|
@@ -1404,7 +1404,7 @@ module Google
|
|
|
1404
1404
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1405
1405
|
# latest version, the default).
|
|
1406
1406
|
# @param [String] user_project
|
|
1407
|
-
# The project to be billed for this request
|
|
1407
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1408
1408
|
# @param [String] fields
|
|
1409
1409
|
# Selector specifying which fields to include in a partial response.
|
|
1410
1410
|
# @param [String] quota_user
|
|
@@ -1457,7 +1457,7 @@ module Google
|
|
|
1457
1457
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1458
1458
|
# latest version, the default).
|
|
1459
1459
|
# @param [String] user_project
|
|
1460
|
-
# The project to be billed for this request
|
|
1460
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1461
1461
|
# @param [String] fields
|
|
1462
1462
|
# Selector specifying which fields to include in a partial response.
|
|
1463
1463
|
# @param [String] quota_user
|
|
@@ -1517,7 +1517,7 @@ module Google
|
|
|
1517
1517
|
# global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the
|
|
1518
1518
|
# object. Overrides the object metadata's kms_key_name value, if any.
|
|
1519
1519
|
# @param [String] user_project
|
|
1520
|
-
# The project to be billed for this request
|
|
1520
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1521
1521
|
# @param [String] fields
|
|
1522
1522
|
# Selector specifying which fields to include in a partial response.
|
|
1523
1523
|
# @param [String] quota_user
|
|
@@ -1527,8 +1527,6 @@ module Google
|
|
|
1527
1527
|
# @param [String] user_ip
|
|
1528
1528
|
# IP address of the site where the request originates. Use this if you want to
|
|
1529
1529
|
# enforce per-user limits.
|
|
1530
|
-
# @param [IO, String] download_dest
|
|
1531
|
-
# IO stream or filename to receive content download
|
|
1532
1530
|
# @param [Google::Apis::RequestOptions] options
|
|
1533
1531
|
# Request-specific options
|
|
1534
1532
|
#
|
|
@@ -1541,13 +1539,8 @@ module Google
|
|
|
1541
1539
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1542
1540
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1543
1541
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1544
|
-
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,
|
|
1545
|
-
|
|
1546
|
-
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
|
1547
|
-
else
|
|
1548
|
-
command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
|
1549
|
-
command.download_dest = download_dest
|
|
1550
|
-
end
|
|
1542
|
+
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, options: nil, &block)
|
|
1543
|
+
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
|
|
1551
1544
|
command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
|
|
1552
1545
|
command.request_object = compose_request_object
|
|
1553
1546
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
|
@@ -1615,7 +1608,7 @@ module Google
|
|
|
1615
1608
|
# If present, selects a specific revision of the source object (as opposed to
|
|
1616
1609
|
# the latest version, the default).
|
|
1617
1610
|
# @param [String] user_project
|
|
1618
|
-
# The project to be billed for this request
|
|
1611
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1619
1612
|
# @param [String] fields
|
|
1620
1613
|
# Selector specifying which fields to include in a partial response.
|
|
1621
1614
|
# @param [String] quota_user
|
|
@@ -1625,8 +1618,6 @@ module Google
|
|
|
1625
1618
|
# @param [String] user_ip
|
|
1626
1619
|
# IP address of the site where the request originates. Use this if you want to
|
|
1627
1620
|
# enforce per-user limits.
|
|
1628
|
-
# @param [IO, String] download_dest
|
|
1629
|
-
# IO stream or filename to receive content download
|
|
1630
1621
|
# @param [Google::Apis::RequestOptions] options
|
|
1631
1622
|
# Request-specific options
|
|
1632
1623
|
#
|
|
@@ -1639,13 +1630,8 @@ module Google
|
|
|
1639
1630
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1640
1631
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1641
1632
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1642
|
-
def copy_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, projection: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil,
|
|
1643
|
-
|
|
1644
|
-
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
|
|
1645
|
-
else
|
|
1646
|
-
command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
|
|
1647
|
-
command.download_dest = download_dest
|
|
1648
|
-
end
|
|
1633
|
+
def copy_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, projection: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1634
|
+
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
|
|
1649
1635
|
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
|
1650
1636
|
command.request_object = object_object
|
|
1651
1637
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
|
@@ -1698,7 +1684,7 @@ module Google
|
|
|
1698
1684
|
# Makes the operation conditional on whether the object's current metageneration
|
|
1699
1685
|
# does not match the given value.
|
|
1700
1686
|
# @param [String] user_project
|
|
1701
|
-
# The project to be billed for this request
|
|
1687
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1702
1688
|
# @param [String] fields
|
|
1703
1689
|
# Selector specifying which fields to include in a partial response.
|
|
1704
1690
|
# @param [String] quota_user
|
|
@@ -1763,7 +1749,7 @@ module Google
|
|
|
1763
1749
|
# @param [String] projection
|
|
1764
1750
|
# Set of properties to return. Defaults to noAcl.
|
|
1765
1751
|
# @param [String] user_project
|
|
1766
|
-
# The project to be billed for this request
|
|
1752
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1767
1753
|
# @param [String] fields
|
|
1768
1754
|
# Selector specifying which fields to include in a partial response.
|
|
1769
1755
|
# @param [String] quota_user
|
|
@@ -1821,7 +1807,7 @@ module Google
|
|
|
1821
1807
|
# If present, selects a specific revision of this object (as opposed to the
|
|
1822
1808
|
# latest version, the default).
|
|
1823
1809
|
# @param [String] user_project
|
|
1824
|
-
# The project to be billed for this request
|
|
1810
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1825
1811
|
# @param [String] fields
|
|
1826
1812
|
# Selector specifying which fields to include in a partial response.
|
|
1827
1813
|
# @param [String] quota_user
|
|
@@ -1897,7 +1883,7 @@ module Google
|
|
|
1897
1883
|
# Set of properties to return. Defaults to noAcl, unless the object resource
|
|
1898
1884
|
# specifies the acl property, when it defaults to full.
|
|
1899
1885
|
# @param [String] user_project
|
|
1900
|
-
# The project to be billed for this request
|
|
1886
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1901
1887
|
# @param [String] fields
|
|
1902
1888
|
# Selector specifying which fields to include in a partial response.
|
|
1903
1889
|
# @param [String] quota_user
|
|
@@ -1974,7 +1960,7 @@ module Google
|
|
|
1974
1960
|
# @param [String] projection
|
|
1975
1961
|
# Set of properties to return. Defaults to noAcl.
|
|
1976
1962
|
# @param [String] user_project
|
|
1977
|
-
# The project to be billed for this request
|
|
1963
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
1978
1964
|
# @param [Boolean] versions
|
|
1979
1965
|
# If true, lists all versions of an object as distinct results. The default is
|
|
1980
1966
|
# false. For more information, see Object Versioning.
|
|
@@ -2017,7 +2003,7 @@ module Google
|
|
|
2017
2003
|
execute_or_queue_command(command, &block)
|
|
2018
2004
|
end
|
|
2019
2005
|
|
|
2020
|
-
#
|
|
2006
|
+
# Patches an object's metadata.
|
|
2021
2007
|
# @param [String] bucket
|
|
2022
2008
|
# Name of the bucket in which the object resides.
|
|
2023
2009
|
# @param [String] object
|
|
@@ -2160,7 +2146,7 @@ module Google
|
|
|
2160
2146
|
# If present, selects a specific revision of the source object (as opposed to
|
|
2161
2147
|
# the latest version, the default).
|
|
2162
2148
|
# @param [String] user_project
|
|
2163
|
-
# The project to be billed for this request
|
|
2149
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2164
2150
|
# @param [String] fields
|
|
2165
2151
|
# Selector specifying which fields to include in a partial response.
|
|
2166
2152
|
# @param [String] quota_user
|
|
@@ -2224,7 +2210,7 @@ module Google
|
|
|
2224
2210
|
# If present, selects a specific revision of this object (as opposed to the
|
|
2225
2211
|
# latest version, the default).
|
|
2226
2212
|
# @param [String] user_project
|
|
2227
|
-
# The project to be billed for this request
|
|
2213
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2228
2214
|
# @param [String] fields
|
|
2229
2215
|
# Selector specifying which fields to include in a partial response.
|
|
2230
2216
|
# @param [String] quota_user
|
|
@@ -2275,7 +2261,7 @@ module Google
|
|
|
2275
2261
|
# If present, selects a specific revision of this object (as opposed to the
|
|
2276
2262
|
# latest version, the default).
|
|
2277
2263
|
# @param [String] user_project
|
|
2278
|
-
# The project to be billed for this request
|
|
2264
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2279
2265
|
# @param [String] fields
|
|
2280
2266
|
# Selector specifying which fields to include in a partial response.
|
|
2281
2267
|
# @param [String] quota_user
|
|
@@ -2342,7 +2328,7 @@ module Google
|
|
|
2342
2328
|
# @param [String] projection
|
|
2343
2329
|
# Set of properties to return. Defaults to full.
|
|
2344
2330
|
# @param [String] user_project
|
|
2345
|
-
# The project to be billed for this request
|
|
2331
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2346
2332
|
# @param [String] fields
|
|
2347
2333
|
# Selector specifying which fields to include in a partial response.
|
|
2348
2334
|
# @param [String] quota_user
|
|
@@ -2352,8 +2338,6 @@ module Google
|
|
|
2352
2338
|
# @param [String] user_ip
|
|
2353
2339
|
# IP address of the site where the request originates. Use this if you want to
|
|
2354
2340
|
# enforce per-user limits.
|
|
2355
|
-
# @param [IO, String] download_dest
|
|
2356
|
-
# IO stream or filename to receive content download
|
|
2357
2341
|
# @param [Google::Apis::RequestOptions] options
|
|
2358
2342
|
# Request-specific options
|
|
2359
2343
|
#
|
|
@@ -2366,13 +2350,8 @@ module Google
|
|
|
2366
2350
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2367
2351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2368
2352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2369
|
-
def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil,
|
|
2370
|
-
|
|
2371
|
-
command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
|
|
2372
|
-
else
|
|
2373
|
-
command = make_download_command(:put, 'b/{bucket}/o/{object}', options)
|
|
2374
|
-
command.download_dest = download_dest
|
|
2375
|
-
end
|
|
2353
|
+
def update_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2354
|
+
command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
|
|
2376
2355
|
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
|
2377
2356
|
command.request_object = object_object
|
|
2378
2357
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
|
@@ -2416,7 +2395,7 @@ module Google
|
|
|
2416
2395
|
# @param [String] projection
|
|
2417
2396
|
# Set of properties to return. Defaults to noAcl.
|
|
2418
2397
|
# @param [String] user_project
|
|
2419
|
-
# The project to be billed for this request
|
|
2398
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
|
2420
2399
|
# @param [Boolean] versions
|
|
2421
2400
|
# If true, lists all versions of an object as distinct results. The default is
|
|
2422
2401
|
# false. For more information, see Object Versioning.
|
|
@@ -2465,7 +2444,7 @@ module Google
|
|
|
2465
2444
|
# @param [String] project_id
|
|
2466
2445
|
# Project ID
|
|
2467
2446
|
# @param [String] user_project
|
|
2468
|
-
# The project to be billed for this request
|
|
2447
|
+
# The project to be billed for this request.
|
|
2469
2448
|
# @param [String] fields
|
|
2470
2449
|
# Selector specifying which fields to include in a partial response.
|
|
2471
2450
|
# @param [String] quota_user
|