google-apis-storage_v1 0.38.0 → 0.49.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 +45 -0
- data/lib/google/apis/storage_v1/classes.rb +334 -14
- data/lib/google/apis/storage_v1/gem_version.rb +3 -3
- data/lib/google/apis/storage_v1/representations.rb +148 -0
- data/lib/google/apis/storage_v1/service.rb +299 -12
- metadata +4 -4
@@ -554,7 +554,8 @@ module Google
|
|
554
554
|
execute_or_queue_command(command, &block)
|
555
555
|
end
|
556
556
|
|
557
|
-
#
|
557
|
+
# Deletes an empty bucket. Deletions are permanent unless soft delete is enabled
|
558
|
+
# on the bucket.
|
558
559
|
# @param [String] bucket
|
559
560
|
# Name of a bucket.
|
560
561
|
# @param [Fixnum] if_metageneration_match
|
@@ -598,6 +599,9 @@ module Google
|
|
598
599
|
# Returns metadata for the specified bucket.
|
599
600
|
# @param [String] bucket
|
600
601
|
# Name of a bucket.
|
602
|
+
# @param [Fixnum] generation
|
603
|
+
# If present, specifies the generation of the bucket. This is required if
|
604
|
+
# softDeleted is true.
|
601
605
|
# @param [Fixnum] if_metageneration_match
|
602
606
|
# Makes the return of the bucket metadata conditional on whether the bucket's
|
603
607
|
# current metageneration matches the given value.
|
@@ -606,6 +610,10 @@ module Google
|
|
606
610
|
# current metageneration does not match the given value.
|
607
611
|
# @param [String] projection
|
608
612
|
# Set of properties to return. Defaults to noAcl.
|
613
|
+
# @param [Boolean] soft_deleted
|
614
|
+
# If true, return the soft-deleted version of this bucket. The default is false.
|
615
|
+
# For more information, see [Soft Delete](https://cloud.google.com/storage/docs/
|
616
|
+
# soft-delete).
|
609
617
|
# @param [String] user_project
|
610
618
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
611
619
|
# @param [String] fields
|
@@ -627,14 +635,16 @@ module Google
|
|
627
635
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
628
636
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
629
637
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
630
|
-
def get_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
638
|
+
def get_bucket(bucket, generation: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
631
639
|
command = make_simple_command(:get, 'b/{bucket}', options)
|
632
640
|
command.response_representation = Google::Apis::StorageV1::Bucket::Representation
|
633
641
|
command.response_class = Google::Apis::StorageV1::Bucket
|
634
642
|
command.params['bucket'] = bucket unless bucket.nil?
|
643
|
+
command.query['generation'] = generation unless generation.nil?
|
635
644
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
636
645
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
637
646
|
command.query['projection'] = projection unless projection.nil?
|
647
|
+
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
638
648
|
command.query['userProject'] = user_project unless user_project.nil?
|
639
649
|
command.query['fields'] = fields unless fields.nil?
|
640
650
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -683,6 +693,44 @@ module Google
|
|
683
693
|
execute_or_queue_command(command, &block)
|
684
694
|
end
|
685
695
|
|
696
|
+
# Returns the storage layout configuration for the specified bucket. Note that
|
697
|
+
# this operation requires storage.objects.list permission.
|
698
|
+
# @param [String] bucket
|
699
|
+
# Name of a bucket.
|
700
|
+
# @param [String] prefix
|
701
|
+
# An optional prefix used for permission check. It is useful when the caller
|
702
|
+
# only has storage.objects.list permission under a specific prefix.
|
703
|
+
# @param [String] fields
|
704
|
+
# Selector specifying which fields to include in a partial response.
|
705
|
+
# @param [String] quota_user
|
706
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
707
|
+
# characters.
|
708
|
+
# @param [String] user_ip
|
709
|
+
# Deprecated. Please use quotaUser instead.
|
710
|
+
# @param [Google::Apis::RequestOptions] options
|
711
|
+
# Request-specific options
|
712
|
+
#
|
713
|
+
# @yield [result, err] Result & error if block supplied
|
714
|
+
# @yieldparam result [Google::Apis::StorageV1::BucketStorageLayout] parsed result object
|
715
|
+
# @yieldparam err [StandardError] error object if request failed
|
716
|
+
#
|
717
|
+
# @return [Google::Apis::StorageV1::BucketStorageLayout]
|
718
|
+
#
|
719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
722
|
+
def get_bucket_storage_layout(bucket, prefix: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
723
|
+
command = make_simple_command(:get, 'b/{bucket}/storageLayout', options)
|
724
|
+
command.response_representation = Google::Apis::StorageV1::BucketStorageLayout::Representation
|
725
|
+
command.response_class = Google::Apis::StorageV1::BucketStorageLayout
|
726
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
727
|
+
command.query['prefix'] = prefix unless prefix.nil?
|
728
|
+
command.query['fields'] = fields unless fields.nil?
|
729
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
730
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
731
|
+
execute_or_queue_command(command, &block)
|
732
|
+
end
|
733
|
+
|
686
734
|
# Creates a new bucket.
|
687
735
|
# @param [String] project
|
688
736
|
# A valid API project identifier.
|
@@ -748,6 +796,10 @@ module Google
|
|
748
796
|
# Filter results to buckets whose names begin with this prefix.
|
749
797
|
# @param [String] projection
|
750
798
|
# Set of properties to return. Defaults to noAcl.
|
799
|
+
# @param [Boolean] soft_deleted
|
800
|
+
# If true, only soft-deleted bucket versions will be returned. The default is
|
801
|
+
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
802
|
+
# storage/docs/soft-delete).
|
751
803
|
# @param [String] user_project
|
752
804
|
# The project to be billed for this request.
|
753
805
|
# @param [String] fields
|
@@ -769,7 +821,7 @@ module Google
|
|
769
821
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
770
822
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
771
823
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
772
|
-
def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
824
|
+
def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
773
825
|
command = make_simple_command(:get, 'b', options)
|
774
826
|
command.response_representation = Google::Apis::StorageV1::Buckets::Representation
|
775
827
|
command.response_class = Google::Apis::StorageV1::Buckets
|
@@ -778,6 +830,7 @@ module Google
|
|
778
830
|
command.query['prefix'] = prefix unless prefix.nil?
|
779
831
|
command.query['project'] = project unless project.nil?
|
780
832
|
command.query['projection'] = projection unless projection.nil?
|
833
|
+
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
781
834
|
command.query['userProject'] = user_project unless user_project.nil?
|
782
835
|
command.query['fields'] = fields unless fields.nil?
|
783
836
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -882,6 +935,84 @@ module Google
|
|
882
935
|
execute_or_queue_command(command, &block)
|
883
936
|
end
|
884
937
|
|
938
|
+
# Initiates a long-running Relocate Bucket operation on the specified bucket.
|
939
|
+
# @param [String] bucket
|
940
|
+
# Name of the bucket to be moved.
|
941
|
+
# @param [Google::Apis::StorageV1::RelocateBucketRequest] relocate_bucket_request_object
|
942
|
+
# @param [String] fields
|
943
|
+
# Selector specifying which fields to include in a partial response.
|
944
|
+
# @param [String] quota_user
|
945
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
946
|
+
# characters.
|
947
|
+
# @param [String] user_ip
|
948
|
+
# Deprecated. Please use quotaUser instead.
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
950
|
+
# Request-specific options
|
951
|
+
#
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
953
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
955
|
+
#
|
956
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
957
|
+
#
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
961
|
+
def relocate_bucket(bucket, relocate_bucket_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
962
|
+
command = make_simple_command(:post, 'b/{bucket}/relocate', options)
|
963
|
+
command.request_representation = Google::Apis::StorageV1::RelocateBucketRequest::Representation
|
964
|
+
command.request_object = relocate_bucket_request_object
|
965
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
966
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
967
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
968
|
+
command.query['fields'] = fields unless fields.nil?
|
969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
971
|
+
execute_or_queue_command(command, &block)
|
972
|
+
end
|
973
|
+
|
974
|
+
# Restores a soft-deleted bucket.
|
975
|
+
# @param [String] bucket
|
976
|
+
# Name of a bucket.
|
977
|
+
# @param [Fixnum] generation
|
978
|
+
# Generation of a bucket.
|
979
|
+
# @param [String] projection
|
980
|
+
# Set of properties to return. Defaults to full.
|
981
|
+
# @param [String] user_project
|
982
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
983
|
+
# @param [String] fields
|
984
|
+
# Selector specifying which fields to include in a partial response.
|
985
|
+
# @param [String] quota_user
|
986
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
987
|
+
# characters.
|
988
|
+
# @param [String] user_ip
|
989
|
+
# Deprecated. Please use quotaUser instead.
|
990
|
+
# @param [Google::Apis::RequestOptions] options
|
991
|
+
# Request-specific options
|
992
|
+
#
|
993
|
+
# @yield [result, err] Result & error if block supplied
|
994
|
+
# @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
|
995
|
+
# @yieldparam err [StandardError] error object if request failed
|
996
|
+
#
|
997
|
+
# @return [Google::Apis::StorageV1::Bucket]
|
998
|
+
#
|
999
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1000
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1001
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1002
|
+
def restore_bucket(bucket, generation, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1003
|
+
command = make_simple_command(:post, 'b/{bucket}/restore', options)
|
1004
|
+
command.response_representation = Google::Apis::StorageV1::Bucket::Representation
|
1005
|
+
command.response_class = Google::Apis::StorageV1::Bucket
|
1006
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
1007
|
+
command.query['generation'] = generation unless generation.nil?
|
1008
|
+
command.query['projection'] = projection unless projection.nil?
|
1009
|
+
command.query['userProject'] = user_project unless user_project.nil?
|
1010
|
+
command.query['fields'] = fields unless fields.nil?
|
1011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1012
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1013
|
+
execute_or_queue_command(command, &block)
|
1014
|
+
end
|
1015
|
+
|
885
1016
|
# Updates an IAM policy for the specified bucket.
|
886
1017
|
# @param [String] bucket
|
887
1018
|
# Name of a bucket.
|
@@ -2570,9 +2701,16 @@ module Google
|
|
2570
2701
|
# does not match the given value.
|
2571
2702
|
# @param [String] projection
|
2572
2703
|
# Set of properties to return. Defaults to noAcl.
|
2704
|
+
# @param [String] restore_token
|
2705
|
+
# Restore token used to differentiate soft-deleted objects with the same name
|
2706
|
+
# and generation. Only applicable for hierarchical namespace buckets and if
|
2707
|
+
# softDeleted is set to true. This parameter is optional, and is only required
|
2708
|
+
# in the rare case when there are multiple soft-deleted objects with the same
|
2709
|
+
# name and generation.
|
2573
2710
|
# @param [Boolean] soft_deleted
|
2574
2711
|
# If true, only soft-deleted object versions will be listed. The default is
|
2575
|
-
# false. For more information, see Soft Delete.
|
2712
|
+
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
2713
|
+
# storage/docs/soft-delete).
|
2576
2714
|
# @param [String] user_project
|
2577
2715
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
2578
2716
|
# @param [String] fields
|
@@ -2596,7 +2734,7 @@ module Google
|
|
2596
2734
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2597
2735
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2598
2736
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2599
|
-
def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
2737
|
+
def get_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, restore_token: nil, soft_deleted: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
2600
2738
|
|
2601
2739
|
if download_dest.nil?
|
2602
2740
|
command = make_simple_command(:get, 'b/{bucket}/o/{object}', options)
|
@@ -2614,6 +2752,7 @@ module Google
|
|
2614
2752
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
2615
2753
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
2616
2754
|
command.query['projection'] = projection unless projection.nil?
|
2755
|
+
command.query['restoreToken'] = restore_token unless restore_token.nil?
|
2617
2756
|
command.query['softDeleted'] = soft_deleted unless soft_deleted.nil?
|
2618
2757
|
command.query['userProject'] = user_project unless user_project.nil?
|
2619
2758
|
command.query['fields'] = fields unless fields.nil?
|
@@ -2796,7 +2935,8 @@ module Google
|
|
2796
2935
|
# Set of properties to return. Defaults to noAcl.
|
2797
2936
|
# @param [Boolean] soft_deleted
|
2798
2937
|
# If true, only soft-deleted object versions will be listed. The default is
|
2799
|
-
# false. For more information, see Soft Delete.
|
2938
|
+
# false. For more information, see [Soft Delete](https://cloud.google.com/
|
2939
|
+
# storage/docs/soft-delete).
|
2800
2940
|
# @param [String] start_offset
|
2801
2941
|
# Filter results to objects whose names are lexicographically equal to or after
|
2802
2942
|
# startOffset. If endOffset is also set, the objects listed will have names
|
@@ -2805,7 +2945,8 @@ module Google
|
|
2805
2945
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
2806
2946
|
# @param [Boolean] versions
|
2807
2947
|
# If true, lists all versions of an object as distinct results. The default is
|
2808
|
-
# false. For more information, see Object Versioning.
|
2948
|
+
# false. For more information, see [Object Versioning](https://cloud.google.com/
|
2949
|
+
# storage/docs/object-versioning).
|
2809
2950
|
# @param [String] fields
|
2810
2951
|
# Selector specifying which fields to include in a partial response.
|
2811
2952
|
# @param [String] quota_user
|
@@ -2849,6 +2990,103 @@ module Google
|
|
2849
2990
|
execute_or_queue_command(command, &block)
|
2850
2991
|
end
|
2851
2992
|
|
2993
|
+
# Moves the source object to the destination object in the same bucket.
|
2994
|
+
# @param [String] bucket
|
2995
|
+
# Name of the bucket in which the object resides.
|
2996
|
+
# @param [String] source_object
|
2997
|
+
# Name of the source object. For information about how to URL encode object
|
2998
|
+
# names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/
|
2999
|
+
# storage/docs/request-endpoints#encoding).
|
3000
|
+
# @param [String] destination_object
|
3001
|
+
# Name of the destination object. For information about how to URL encode object
|
3002
|
+
# names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/
|
3003
|
+
# storage/docs/request-endpoints#encoding).
|
3004
|
+
# @param [Fixnum] if_generation_match
|
3005
|
+
# Makes the operation conditional on whether the destination object's current
|
3006
|
+
# generation matches the given value. Setting to 0 makes the operation succeed
|
3007
|
+
# only if there are no live versions of the object. `ifGenerationMatch` and `
|
3008
|
+
# ifGenerationNotMatch` conditions are mutually exclusive: it's an error for
|
3009
|
+
# both of them to be set in the request.
|
3010
|
+
# @param [Fixnum] if_generation_not_match
|
3011
|
+
# Makes the operation conditional on whether the destination object's current
|
3012
|
+
# generation does not match the given value. If no live object exists, the
|
3013
|
+
# precondition fails. Setting to 0 makes the operation succeed only if there is
|
3014
|
+
# a live version of the object.`ifGenerationMatch` and `ifGenerationNotMatch`
|
3015
|
+
# conditions are mutually exclusive: it's an error for both of them to be set in
|
3016
|
+
# the request.
|
3017
|
+
# @param [Fixnum] if_metageneration_match
|
3018
|
+
# Makes the operation conditional on whether the destination object's current
|
3019
|
+
# metageneration matches the given value. `ifMetagenerationMatch` and `
|
3020
|
+
# ifMetagenerationNotMatch` conditions are mutually exclusive: it's an error for
|
3021
|
+
# both of them to be set in the request.
|
3022
|
+
# @param [Fixnum] if_metageneration_not_match
|
3023
|
+
# Makes the operation conditional on whether the destination object's current
|
3024
|
+
# metageneration does not match the given value. `ifMetagenerationMatch` and `
|
3025
|
+
# ifMetagenerationNotMatch` conditions are mutually exclusive: it's an error for
|
3026
|
+
# both of them to be set in the request.
|
3027
|
+
# @param [Fixnum] if_source_generation_match
|
3028
|
+
# Makes the operation conditional on whether the source object's current
|
3029
|
+
# generation matches the given value. `ifSourceGenerationMatch` and `
|
3030
|
+
# ifSourceGenerationNotMatch` conditions are mutually exclusive: it's an error
|
3031
|
+
# for both of them to be set in the request.
|
3032
|
+
# @param [Fixnum] if_source_generation_not_match
|
3033
|
+
# Makes the operation conditional on whether the source object's current
|
3034
|
+
# generation does not match the given value. `ifSourceGenerationMatch` and `
|
3035
|
+
# ifSourceGenerationNotMatch` conditions are mutually exclusive: it's an error
|
3036
|
+
# for both of them to be set in the request.
|
3037
|
+
# @param [Fixnum] if_source_metageneration_match
|
3038
|
+
# Makes the operation conditional on whether the source object's current
|
3039
|
+
# metageneration matches the given value. `ifSourceMetagenerationMatch` and `
|
3040
|
+
# ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's an
|
3041
|
+
# error for both of them to be set in the request.
|
3042
|
+
# @param [Fixnum] if_source_metageneration_not_match
|
3043
|
+
# Makes the operation conditional on whether the source object's current
|
3044
|
+
# metageneration does not match the given value. `ifSourceMetagenerationMatch`
|
3045
|
+
# and `ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's
|
3046
|
+
# an error for both of them to be set in the request.
|
3047
|
+
# @param [String] user_project
|
3048
|
+
# The project to be billed for this request. Required for Requester Pays buckets.
|
3049
|
+
# @param [String] fields
|
3050
|
+
# Selector specifying which fields to include in a partial response.
|
3051
|
+
# @param [String] quota_user
|
3052
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3053
|
+
# characters.
|
3054
|
+
# @param [String] user_ip
|
3055
|
+
# Deprecated. Please use quotaUser instead.
|
3056
|
+
# @param [Google::Apis::RequestOptions] options
|
3057
|
+
# Request-specific options
|
3058
|
+
#
|
3059
|
+
# @yield [result, err] Result & error if block supplied
|
3060
|
+
# @yieldparam result [Google::Apis::StorageV1::Object] parsed result object
|
3061
|
+
# @yieldparam err [StandardError] error object if request failed
|
3062
|
+
#
|
3063
|
+
# @return [Google::Apis::StorageV1::Object]
|
3064
|
+
#
|
3065
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3066
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3067
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3068
|
+
def move_object(bucket, source_object, destination_object, 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, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3069
|
+
command = make_simple_command(:post, 'b/{bucket}/o/{sourceObject}/moveTo/o/{destinationObject}', options)
|
3070
|
+
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
3071
|
+
command.response_class = Google::Apis::StorageV1::Object
|
3072
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
3073
|
+
command.params['sourceObject'] = source_object unless source_object.nil?
|
3074
|
+
command.params['destinationObject'] = destination_object unless destination_object.nil?
|
3075
|
+
command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil?
|
3076
|
+
command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil?
|
3077
|
+
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
3078
|
+
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
3079
|
+
command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil?
|
3080
|
+
command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil?
|
3081
|
+
command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil?
|
3082
|
+
command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil?
|
3083
|
+
command.query['userProject'] = user_project unless user_project.nil?
|
3084
|
+
command.query['fields'] = fields unless fields.nil?
|
3085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3086
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3087
|
+
execute_or_queue_command(command, &block)
|
3088
|
+
end
|
3089
|
+
|
2852
3090
|
# Patches an object's metadata.
|
2853
3091
|
# @param [String] bucket
|
2854
3092
|
# Name of the bucket in which the object resides.
|
@@ -2931,7 +3169,8 @@ module Google
|
|
2931
3169
|
# Name of the bucket in which the object resides.
|
2932
3170
|
# @param [String] object
|
2933
3171
|
# Name of the object. For information about how to URL encode object names to be
|
2934
|
-
# path safe, see Encoding URI Path Parts.
|
3172
|
+
# path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/
|
3173
|
+
# request-endpoints#encoding).
|
2935
3174
|
# @param [Fixnum] generation
|
2936
3175
|
# Selects a specific revision of this object.
|
2937
3176
|
# @param [Boolean] copy_source_acl
|
@@ -2954,6 +3193,11 @@ module Google
|
|
2954
3193
|
# metagenerations match the given value.
|
2955
3194
|
# @param [String] projection
|
2956
3195
|
# Set of properties to return. Defaults to full.
|
3196
|
+
# @param [String] restore_token
|
3197
|
+
# Restore token used to differentiate sof-deleted objects with the same name and
|
3198
|
+
# generation. Only applicable for hierarchical namespace buckets. This parameter
|
3199
|
+
# is optional, and is only required in the rare case when there are multiple
|
3200
|
+
# soft-deleted objects with the same name and generation.
|
2957
3201
|
# @param [String] user_project
|
2958
3202
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
2959
3203
|
# @param [String] fields
|
@@ -2975,7 +3219,7 @@ module Google
|
|
2975
3219
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2976
3220
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2977
3221
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2978
|
-
def restore_object(bucket, object, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3222
|
+
def restore_object(bucket, object, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, restore_token: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2979
3223
|
command = make_simple_command(:post, 'b/{bucket}/o/{object}/restore', options)
|
2980
3224
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
2981
3225
|
command.response_class = Google::Apis::StorageV1::Object
|
@@ -2988,6 +3232,7 @@ module Google
|
|
2988
3232
|
command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
|
2989
3233
|
command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
|
2990
3234
|
command.query['projection'] = projection unless projection.nil?
|
3235
|
+
command.query['restoreToken'] = restore_token unless restore_token.nil?
|
2991
3236
|
command.query['userProject'] = user_project unless user_project.nil?
|
2992
3237
|
command.query['fields'] = fields unless fields.nil?
|
2993
3238
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -3327,7 +3572,8 @@ module Google
|
|
3327
3572
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
3328
3573
|
# @param [Boolean] versions
|
3329
3574
|
# If true, lists all versions of an object as distinct results. The default is
|
3330
|
-
# false. For more information, see Object Versioning.
|
3575
|
+
# false. For more information, see [Object Versioning](https://cloud.google.com/
|
3576
|
+
# storage/docs/object-versioning).
|
3331
3577
|
# @param [String] fields
|
3332
3578
|
# Selector specifying which fields to include in a partial response.
|
3333
3579
|
# @param [String] quota_user
|
@@ -3370,6 +3616,46 @@ module Google
|
|
3370
3616
|
execute_or_queue_command(command, &block)
|
3371
3617
|
end
|
3372
3618
|
|
3619
|
+
# Starts asynchronous advancement of the relocate bucket operation in the case
|
3620
|
+
# of required write downtime, to allow it to lock the bucket at the source
|
3621
|
+
# location, and proceed with the bucket location swap. The server makes a best
|
3622
|
+
# effort to advance the relocate bucket operation, but success is not guaranteed.
|
3623
|
+
# @param [String] bucket
|
3624
|
+
# Name of the bucket to advance the relocate for.
|
3625
|
+
# @param [String] operation_id
|
3626
|
+
# ID of the operation resource.
|
3627
|
+
# @param [Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest] advance_relocate_bucket_operation_request_object
|
3628
|
+
# @param [String] fields
|
3629
|
+
# Selector specifying which fields to include in a partial response.
|
3630
|
+
# @param [String] quota_user
|
3631
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3632
|
+
# characters.
|
3633
|
+
# @param [String] user_ip
|
3634
|
+
# Deprecated. Please use quotaUser instead.
|
3635
|
+
# @param [Google::Apis::RequestOptions] options
|
3636
|
+
# Request-specific options
|
3637
|
+
#
|
3638
|
+
# @yield [result, err] Result & error if block supplied
|
3639
|
+
# @yieldparam result [NilClass] No result returned for this method
|
3640
|
+
# @yieldparam err [StandardError] error object if request failed
|
3641
|
+
#
|
3642
|
+
# @return [void]
|
3643
|
+
#
|
3644
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3645
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3646
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3647
|
+
def advance_relocate_bucket_operation(bucket, operation_id, advance_relocate_bucket_operation_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3648
|
+
command = make_simple_command(:post, 'b/{bucket}/operations/{operationId}/advanceRelocateBucket', options)
|
3649
|
+
command.request_representation = Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest::Representation
|
3650
|
+
command.request_object = advance_relocate_bucket_operation_request_object
|
3651
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
3652
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
3653
|
+
command.query['fields'] = fields unless fields.nil?
|
3654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3655
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3656
|
+
execute_or_queue_command(command, &block)
|
3657
|
+
end
|
3658
|
+
|
3373
3659
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
3374
3660
|
# a best effort to cancel the operation, but success is not guaranteed.
|
3375
3661
|
# @param [String] bucket
|
@@ -3655,8 +3941,9 @@ module Google
|
|
3655
3941
|
execute_or_queue_command(command, &block)
|
3656
3942
|
end
|
3657
3943
|
|
3658
|
-
# Updates the state of an HMAC key. See the HMAC Key resource descriptor
|
3659
|
-
#
|
3944
|
+
# Updates the state of an HMAC key. See the [HMAC Key resource descriptor](https:
|
3945
|
+
# //cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-
|
3946
|
+
# body) for valid states.
|
3660
3947
|
# @param [String] project_id
|
3661
3948
|
# Project ID owning the service account of the updated key.
|
3662
3949
|
# @param [String] access_id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-storage_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.49.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Storage JSON API V1
|