Class: Google::Apis::StorageV1beta1::StorageService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::StorageV1beta1::StorageService
- Defined in:
- generated/google/apis/storage_v1beta1/service.rb
Overview
Cloud Storage JSON API
Lets you store and retrieve potentially-large, immutable data objects.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
-
#user_ip ⇒ String
IP address of the site where the request originates.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#delete_bucket(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes an empty bucket.
-
#delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes the ACL entry for the specified entity on the specified bucket.
-
#delete_object(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes data blobs and associated metadata.
-
#delete_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes the ACL entry for the specified entity on the specified object.
-
#get_bucket(bucket, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Returns metadata for the specified bucket.
-
#get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Returns the ACL entry for the specified entity on the specified bucket.
-
#get_object(bucket, object, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Retrieves objects or their associated metadata.
-
#get_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Returns the ACL entry for the specified entity on the specified object.
-
#initialize ⇒ StorageService
constructor
A new instance of StorageService.
-
#insert_bucket(bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Creates a new bucket.
-
#insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Creates a new ACL entry on the specified bucket.
-
#insert_object(bucket, object_object = nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Stores new data blobs and associated metadata.
-
#insert_object_access_control(bucket, object, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Creates a new ACL entry on the specified object.
-
#list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControls
Retrieves ACL entries on the specified bucket.
-
#list_buckets(project_id, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Buckets
Retrieves a list of buckets for a given project.
-
#list_object_access_controls(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControls
Retrieves ACL entries on the specified object.
-
#list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Objects
Retrieves a list of objects matching the criteria.
-
#patch_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Updates a bucket.
-
#patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Updates an ACL entry on the specified bucket.
-
#patch_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Updates a data blob's associated metadata.
-
#patch_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Updates an ACL entry on the specified object.
-
#update_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Updates a bucket.
-
#update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Updates an ACL entry on the specified bucket.
-
#update_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Updates a data blob's associated metadata.
-
#update_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Updates an ACL entry on the specified object.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ StorageService
Returns a new instance of StorageService
51 52 53 54 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 51 def initialize super('https://www.googleapis.com/', 'storage/v1beta1/') @batch_path = 'batch/storage/v1beta1' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
44 45 46 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 44 def quota_user @quota_user end |
#user_ip ⇒ String
Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.
49 50 51 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 49 def user_ip @user_ip end |
Instance Method Details
#delete_bucket(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an empty bucket.
314 315 316 317 318 319 320 321 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 314 def delete_bucket(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'b/{bucket}', ) command.params['bucket'] = bucket unless bucket.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes the ACL entry for the specified entity on the specified bucket.
83 84 85 86 87 88 89 90 91 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 83 def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', ) command.params['bucket'] = bucket unless bucket.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_object(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes data blobs and associated metadata.
805 806 807 808 809 810 811 812 813 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 805 def delete_object(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'b/{bucket}/o/{object}', ) command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes the ACL entry for the specified entity on the specified object.
556 557 558 559 560 561 562 563 564 565 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 556 def delete_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', ) command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_bucket(bucket, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Returns metadata for the specified bucket.
349 350 351 352 353 354 355 356 357 358 359 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 349 def get_bucket(bucket, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}', ) command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.response_class = Google::Apis::StorageV1beta1::Bucket command.params['bucket'] = bucket unless bucket.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Returns the ACL entry for the specified entity on the specified bucket.
120 121 122 123 124 125 126 127 128 129 130 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 120 def get_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', ) command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_object(bucket, object, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Retrieves objects or their associated metadata.
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 845 def get_object(bucket, object, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:get, 'b/{bucket}/o/{object}', ) else command = make_download_command(:get, 'b/{bucket}/o/{object}', ) command.download_dest = download_dest end command.response_representation = Google::Apis::StorageV1beta1::Object::Representation command.response_class = Google::Apis::StorageV1beta1::Object command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Returns the ACL entry for the specified entity on the specified object.
596 597 598 599 600 601 602 603 604 605 606 607 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 596 def get_object_access_control(bucket, object, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', ) command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_bucket(bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Creates a new bucket.
387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 387 def insert_bucket(bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'b', ) command.request_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.request_object = bucket_object command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.response_class = Google::Apis::StorageV1beta1::Bucket command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Creates a new ACL entry on the specified bucket.
157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 157 def insert_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'b/{bucket}/acl', ) command.request_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.request_object = bucket_access_control_object command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl command.params['bucket'] = bucket unless bucket.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_object(bucket, object_object = nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Stores new data blobs and associated metadata.
899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 899 def insert_object(bucket, object_object = nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'b/{bucket}/o', ) else command = make_upload_command(:post, 'b/{bucket}/o', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::StorageV1beta1::Object::Representation command.request_object = object_object command.response_representation = Google::Apis::StorageV1beta1::Object::Representation command.response_class = Google::Apis::StorageV1beta1::Object command.params['bucket'] = bucket unless bucket.nil? command.query['name'] = name unless name.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_object_access_control(bucket, object, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Creates a new ACL entry on the specified object.
636 637 638 639 640 641 642 643 644 645 646 647 648 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 636 def insert_object_access_control(bucket, object, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', ) command.request_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControls
Retrieves ACL entries on the specified bucket.
194 195 196 197 198 199 200 201 202 203 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 194 def list_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}/acl', ) command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControls::Representation command.response_class = Google::Apis::StorageV1beta1::BucketAccessControls command.params['bucket'] = bucket unless bucket.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_buckets(project_id, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Buckets
Retrieves a list of buckets for a given project.
431 432 433 434 435 436 437 438 439 440 441 442 443 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 431 def list_buckets(project_id, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b', ) command.response_representation = Google::Apis::StorageV1beta1::Buckets::Representation command.response_class = Google::Apis::StorageV1beta1::Buckets command.query['max-results'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['projectId'] = project_id unless project_id.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_object_access_controls(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControls
Retrieves ACL entries on the specified object.
676 677 678 679 680 681 682 683 684 685 686 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 676 def list_object_access_controls(bucket, object, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', ) command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControls::Representation command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControls command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Objects
Retrieves a list of objects matching the criteria.
960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 960 def list_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'b/{bucket}/o', ) command.response_representation = Google::Apis::StorageV1beta1::Objects::Representation command.response_class = Google::Apis::StorageV1beta1::Objects command.params['bucket'] = bucket unless bucket.nil? command.query['delimiter'] = delimiter unless delimiter.nil? command.query['max-results'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['prefix'] = prefix unless prefix.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Updates a bucket. This method supports patch semantics.
472 473 474 475 476 477 478 479 480 481 482 483 484 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 472 def patch_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'b/{bucket}', ) command.request_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.request_object = bucket_object command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.response_class = Google::Apis::StorageV1beta1::Bucket command.params['bucket'] = bucket unless bucket.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Updates an ACL entry on the specified bucket. This method supports patch semantics.
234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 234 def patch_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', ) command.request_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.request_object = bucket_access_control_object command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Updates a data blob's associated metadata. This method supports patch semantics.
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 1006 def patch_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'b/{bucket}/o/{object}', ) command.request_representation = Google::Apis::StorageV1beta1::Object::Representation command.request_object = object_object command.response_representation = Google::Apis::StorageV1beta1::Object::Representation command.response_class = Google::Apis::StorageV1beta1::Object command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Updates an ACL entry on the specified object. This method supports patch semantics.
719 720 721 722 723 724 725 726 727 728 729 730 731 732 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 719 def patch_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', ) command.request_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Bucket
Updates a bucket.
513 514 515 516 517 518 519 520 521 522 523 524 525 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 513 def update_bucket(bucket, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'b/{bucket}', ) command.request_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.request_object = bucket_object command.response_representation = Google::Apis::StorageV1beta1::Bucket::Representation command.response_class = Google::Apis::StorageV1beta1::Bucket command.params['bucket'] = bucket unless bucket.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::BucketAccessControl
Updates an ACL entry on the specified bucket.
276 277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 276 def update_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', ) command.request_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.request_object = bucket_access_control_object command.response_representation = Google::Apis::StorageV1beta1::BucketAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::BucketAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::Object
Updates a data blob's associated metadata.
1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 1052 def update_object(bucket, object, object_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:put, 'b/{bucket}/o/{object}', ) else command = make_download_command(:put, 'b/{bucket}/o/{object}', ) command.download_dest = download_dest end command.request_representation = Google::Apis::StorageV1beta1::Object::Representation command.request_object = object_object command.response_representation = Google::Apis::StorageV1beta1::Object::Representation command.response_class = Google::Apis::StorageV1beta1::Object command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.query['projection'] = projection unless projection.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::StorageV1beta1::ObjectAccessControl
Updates an ACL entry on the specified object.
764 765 766 767 768 769 770 771 772 773 774 775 776 777 |
# File 'generated/google/apis/storage_v1beta1/service.rb', line 764 def update_object_access_control(bucket, object, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', ) command.request_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.request_object = object_access_control_object command.response_representation = Google::Apis::StorageV1beta1::ObjectAccessControl::Representation command.response_class = Google::Apis::StorageV1beta1::ObjectAccessControl command.params['bucket'] = bucket unless bucket.nil? command.params['object'] = object unless object.nil? command.params['entity'] = entity unless entity.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |