oci 2.5.3 → 2.5.4
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/README.md +1 -1
- data/lib/oci/dns/dns_client.rb +21 -12
- data/lib/oci/dns/models/create_steering_policy_attachment_details.rb +4 -7
- data/lib/oci/dns/models/create_steering_policy_details.rb +63 -52
- data/lib/oci/dns/models/create_zone_details.rb +10 -5
- data/lib/oci/dns/models/record.rb +3 -1
- data/lib/oci/dns/models/record_operation.rb +4 -0
- data/lib/oci/dns/models/steering_policy.rb +64 -54
- data/lib/oci/dns/models/steering_policy_answer.rb +55 -8
- data/lib/oci/dns/models/steering_policy_attachment.rb +8 -7
- data/lib/oci/dns/models/steering_policy_attachment_summary.rb +2 -3
- data/lib/oci/dns/models/steering_policy_filter_answer_data.rb +3 -1
- data/lib/oci/dns/models/steering_policy_filter_rule.rb +12 -3
- data/lib/oci/dns/models/steering_policy_filter_rule_case.rb +8 -0
- data/lib/oci/dns/models/steering_policy_health_rule.rb +9 -0
- data/lib/oci/dns/models/steering_policy_health_rule_case.rb +7 -0
- data/lib/oci/dns/models/steering_policy_limit_rule.rb +11 -1
- data/lib/oci/dns/models/steering_policy_limit_rule_case.rb +12 -1
- data/lib/oci/dns/models/steering_policy_priority_answer_data.rb +6 -0
- data/lib/oci/dns/models/steering_policy_priority_rule.rb +11 -2
- data/lib/oci/dns/models/steering_policy_priority_rule_case.rb +8 -0
- data/lib/oci/dns/models/steering_policy_rule.rb +28 -24
- data/lib/oci/dns/models/steering_policy_summary.rb +62 -53
- data/lib/oci/dns/models/steering_policy_weighted_answer_data.rb +5 -0
- data/lib/oci/dns/models/steering_policy_weighted_rule.rb +11 -2
- data/lib/oci/dns/models/steering_policy_weighted_rule_case.rb +8 -0
- data/lib/oci/dns/models/update_steering_policy_attachment_details.rb +5 -1
- data/lib/oci/dns/models/update_steering_policy_details.rb +64 -52
- data/lib/oci/dns/models/update_zone_details.rb +10 -5
- data/lib/oci/dns/models/zone.rb +10 -5
- data/lib/oci/dns/models/zone_summary.rb +10 -5
- data/lib/oci/object_storage/models/bucket.rb +12 -11
- data/lib/oci/object_storage/models/bucket_summary.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +3 -3
- data/lib/oci/object_storage/models/copy_object_details.rb +22 -13
- data/lib/oci/object_storage/models/create_bucket_details.rb +5 -5
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +2 -2
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +6 -3
- data/lib/oci/object_storage/models/list_objects.rb +2 -2
- data/lib/oci/object_storage/models/multipart_upload.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +5 -4
- data/lib/oci/object_storage/models/namespace_metadata.rb +4 -4
- data/lib/oci/object_storage/models/object_lifecycle_rule.rb +3 -3
- data/lib/oci/object_storage/models/object_name_filter.rb +76 -6
- data/lib/oci/object_storage/models/object_summary.rb +2 -2
- data/lib/oci/object_storage/models/pattern_details.rb +208 -0
- data/lib/oci/object_storage/models/preauthenticated_request.rb +9 -7
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +3 -1
- data/lib/oci/object_storage/models/rename_object_details.rb +5 -5
- data/lib/oci/object_storage/models/restore_objects_details.rb +2 -2
- data/lib/oci/object_storage/models/update_bucket_details.rb +5 -5
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +4 -4
- data/lib/oci/object_storage/models/work_request.rb +11 -10
- data/lib/oci/object_storage/models/work_request_error.rb +4 -4
- data/lib/oci/object_storage/models/work_request_log_entry.rb +3 -1
- data/lib/oci/object_storage/models/work_request_resource.rb +4 -4
- data/lib/oci/object_storage/models/work_request_summary.rb +11 -10
- data/lib/oci/object_storage/object_storage.rb +1 -0
- data/lib/oci/object_storage/object_storage_client.rb +117 -93
- data/lib/oci/object_storage/object_storage_client_composite_operations.rb +2 -2
- data/lib/oci/version.rb +1 -1
- metadata +3 -2
@@ -7,10 +7,12 @@ require 'logger'
|
|
7
7
|
module OCI
|
8
8
|
# Pre-authenticated requests provide a way to let users access a bucket or an object without having their own credentials.
|
9
9
|
# When you create a pre-authenticated request, a unique URL is generated. Users in your organization, partners, or third
|
10
|
-
# parties can use this URL to access the targets identified in the pre-authenticated request.
|
10
|
+
# parties can use this URL to access the targets identified in the pre-authenticated request.
|
11
|
+
# See [Using Pre-Authenticated Requests](https://docs.cloud.oracle.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm).
|
11
12
|
#
|
12
|
-
# To use any of the API operations, you must be authorized in an IAM policy. If you
|
13
|
-
# If you
|
13
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an
|
14
|
+
# administrator. If you are an administrator who needs to write policies to give users access, see
|
15
|
+
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
14
16
|
#
|
15
17
|
class ObjectStorage::Models::PreauthenticatedRequest # rubocop:disable Metrics/LineLength
|
16
18
|
ACCESS_TYPE_ENUM = [
|
@@ -33,9 +35,8 @@ module OCI
|
|
33
35
|
# @return [String]
|
34
36
|
attr_accessor :access_uri
|
35
37
|
|
36
|
-
# The name of the object that is being granted access to by the pre-authenticated request.
|
37
|
-
# if so, the pre-authenticated request grants access to the entire bucket.
|
38
|
-
# Example: test/object1.log
|
38
|
+
# The name of the object that is being granted access to by the pre-authenticated request. Avoid entering confidential
|
39
|
+
# information. The object name can be null and if so, the pre-authenticated request grants access to the entire bucket.
|
39
40
|
#
|
40
41
|
# @return [String]
|
41
42
|
attr_accessor :object_name
|
@@ -44,7 +45,8 @@ module OCI
|
|
44
45
|
# @return [String]
|
45
46
|
attr_reader :access_type
|
46
47
|
|
47
|
-
# **[Required]** The expiration date for the pre-authenticated request as per [RFC 3339](https://tools.ietf.org/rfc/rfc3339). After
|
48
|
+
# **[Required]** The expiration date for the pre-authenticated request as per [RFC 3339](https://tools.ietf.org/rfc/rfc3339). After
|
49
|
+
# this date the pre-authenticated request will no longer be valid.
|
48
50
|
#
|
49
51
|
# @return [DateTime]
|
50
52
|
attr_accessor :time_expires
|
@@ -24,7 +24,9 @@ module OCI
|
|
24
24
|
# @return [String]
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
-
# The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is,
|
27
|
+
# The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is,
|
28
|
+
# the pre-authenticated request grants access to the entire bucket.
|
29
|
+
#
|
28
30
|
# @return [String]
|
29
31
|
attr_accessor :object_name
|
30
32
|
|
@@ -4,8 +4,8 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
# To use any of the API operations, you must be authorized in an IAM policy. If you
|
8
|
-
# talk to an administrator. If you
|
7
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized,
|
8
|
+
# talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
9
9
|
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
10
10
|
#
|
11
11
|
class ObjectStorage::Models::RenameObjectDetails # rubocop:disable Metrics/LineLength
|
@@ -17,15 +17,15 @@ module OCI
|
|
17
17
|
# @return [String]
|
18
18
|
attr_accessor :new_name
|
19
19
|
|
20
|
-
# The if-match entity tag of the source object.
|
20
|
+
# The if-match entity tag (ETag) of the source object.
|
21
21
|
# @return [String]
|
22
22
|
attr_accessor :src_obj_if_match_e_tag
|
23
23
|
|
24
|
-
# The if-match entity tag of the new object.
|
24
|
+
# The if-match entity tag (ETag) of the new object.
|
25
25
|
# @return [String]
|
26
26
|
attr_accessor :new_obj_if_match_e_tag
|
27
27
|
|
28
|
-
# The if-none-match entity tag of the new object.
|
28
|
+
# The if-none-match entity tag (ETag) of the new object.
|
29
29
|
# @return [String]
|
30
30
|
attr_accessor :new_obj_if_none_match_e_tag
|
31
31
|
|
@@ -6,12 +6,12 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# RestoreObjectsDetails model.
|
8
8
|
class ObjectStorage::Models::RestoreObjectsDetails # rubocop:disable Metrics/LineLength
|
9
|
-
# **[Required]** An object
|
9
|
+
# **[Required]** An object that is in an archive storage tier and needs to be restored.
|
10
10
|
# @return [String]
|
11
11
|
attr_accessor :object_name
|
12
12
|
|
13
13
|
# The number of hours for which this object will be restored.
|
14
|
-
# By default objects will be restored for 24 hours.
|
14
|
+
# By default objects will be restored for 24 hours. You can instead configure the duration using the hours parameter.
|
15
15
|
#
|
16
16
|
# @return [Integer]
|
17
17
|
attr_accessor :hours
|
@@ -4,8 +4,8 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
# To use any of the API operations, you must be authorized in an IAM policy. If you
|
8
|
-
# talk to an administrator. If you
|
7
|
+
# To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized,
|
8
|
+
# talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
9
9
|
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
10
10
|
#
|
11
11
|
class ObjectStorage::Models::UpdateBucketDetails # rubocop:disable Metrics/LineLength
|
@@ -15,7 +15,7 @@ module OCI
|
|
15
15
|
PUBLIC_ACCESS_TYPE_OBJECT_READ_WITHOUT_LIST = 'ObjectReadWithoutList'.freeze
|
16
16
|
].freeze
|
17
17
|
|
18
|
-
# The namespace in which the bucket lives.
|
18
|
+
# The Object Storage namespace in which the bucket lives.
|
19
19
|
# @return [String]
|
20
20
|
attr_accessor :namespace
|
21
21
|
|
@@ -56,9 +56,9 @@ module OCI
|
|
56
56
|
attr_accessor :defined_tags
|
57
57
|
|
58
58
|
# A KMS key OCID that will be associated with the given bucket. If it is empty the Update operation will
|
59
|
-
# actually remove the KMS key, if there is one, from the given bucket.
|
59
|
+
# actually remove the KMS key, if there is one, from the given bucket. Note that the old kms key should
|
60
60
|
# still be enbaled in KMS otherwise all the objects in the bucket encrypted with the old KMS key will no
|
61
|
-
# longer accessible.
|
61
|
+
# longer be accessible.
|
62
62
|
#
|
63
63
|
# @return [String]
|
64
64
|
attr_accessor :kms_key_id
|
@@ -4,15 +4,15 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
#
|
8
|
-
#
|
7
|
+
# UpdateNamespaceMetadataDetails is used to update the NamespaceMetadata. To update NamespaceMetadata, a user
|
8
|
+
# must have NAMESPACE_UPDATE permission.
|
9
9
|
#
|
10
10
|
class ObjectStorage::Models::UpdateNamespaceMetadataDetails # rubocop:disable Metrics/LineLength
|
11
|
-
# The
|
11
|
+
# The updated compartment id for use by an S3 client, if this field is set.
|
12
12
|
# @return [String]
|
13
13
|
attr_accessor :default_s3_compartment_id
|
14
14
|
|
15
|
-
# The
|
15
|
+
# The updated compartment id for use by a Swift client, if this field is set.
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :default_swift_compartment_id
|
18
18
|
|
@@ -5,7 +5,7 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
# A description of workRequest status
|
8
|
+
# A description of workRequest status.
|
9
9
|
class ObjectStorage::Models::WorkRequest # rubocop:disable Metrics/LineLength
|
10
10
|
OPERATION_TYPE_ENUM = [
|
11
11
|
OPERATION_TYPE_COPY_OBJECT = 'COPY_OBJECT'.freeze,
|
@@ -22,11 +22,11 @@ module OCI
|
|
22
22
|
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
23
23
|
].freeze
|
24
24
|
|
25
|
-
# type of
|
25
|
+
# The type of work request.
|
26
26
|
# @return [String]
|
27
27
|
attr_reader :operation_type
|
28
28
|
|
29
|
-
# status of
|
29
|
+
# The status of the specified work request.
|
30
30
|
# @return [String]
|
31
31
|
attr_reader :status
|
32
32
|
|
@@ -34,10 +34,10 @@ module OCI
|
|
34
34
|
# @return [String]
|
35
35
|
attr_accessor :id
|
36
36
|
|
37
|
-
# The
|
37
|
+
# The OCID of the compartment that contains the work request. Work requests should be scoped to
|
38
38
|
# the same compartment as the resource the work request affects. If the work request affects multiple resources,
|
39
39
|
# and those resources are not in the same compartment, it is up to the service team to pick the primary
|
40
|
-
# resource whose compartment should be used
|
40
|
+
# resource whose compartment should be used.
|
41
41
|
#
|
42
42
|
# @return [String]
|
43
43
|
attr_accessor :compartment_id
|
@@ -45,23 +45,24 @@ module OCI
|
|
45
45
|
# @return [Array<OCI::ObjectStorage::Models::WorkRequestResource>]
|
46
46
|
attr_accessor :resources
|
47
47
|
|
48
|
-
# Percentage of the request completed.
|
48
|
+
# Percentage of the work request completed.
|
49
49
|
# @return [Float]
|
50
50
|
attr_accessor :percent_complete
|
51
51
|
|
52
|
-
# The date and time the request was created, as described in
|
52
|
+
# The date and time the work request was created, as described in
|
53
53
|
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
54
54
|
#
|
55
55
|
# @return [DateTime]
|
56
56
|
attr_accessor :time_accepted
|
57
57
|
|
58
|
-
# The date and time the request was started, as described in
|
59
|
-
# section 14.29.
|
58
|
+
# The date and time the work request was started, as described in
|
59
|
+
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
60
60
|
#
|
61
61
|
# @return [DateTime]
|
62
62
|
attr_accessor :time_started
|
63
63
|
|
64
|
-
# The date and time the
|
64
|
+
# The date and time the work request was finished, as described in
|
65
|
+
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
65
66
|
#
|
66
67
|
# @return [DateTime]
|
67
68
|
attr_accessor :time_finished
|
@@ -6,17 +6,17 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# WorkRequestError model.
|
8
8
|
class ObjectStorage::Models::WorkRequestError # rubocop:disable Metrics/LineLength
|
9
|
-
# A machine-usable code for the error that
|
10
|
-
# (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm)
|
9
|
+
# A machine-usable code for the error that occurred. For the list of error codes,
|
10
|
+
# see [API Errors](https://docs.cloud.oracle.com/Content/API/References/apierrors.htm).
|
11
11
|
#
|
12
12
|
# @return [String]
|
13
13
|
attr_accessor :code
|
14
14
|
|
15
|
-
# A human
|
15
|
+
# A human-readable description of the issue that produced the error.
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :message
|
18
18
|
|
19
|
-
# The time the error
|
19
|
+
# The time the error occurred.
|
20
20
|
# @return [DateTime]
|
21
21
|
attr_accessor :timestamp
|
22
22
|
|
@@ -10,7 +10,9 @@ module OCI
|
|
10
10
|
# @return [String]
|
11
11
|
attr_accessor :message
|
12
12
|
|
13
|
-
# The time the log message was written
|
13
|
+
# The date and time the log message was written, as described in
|
14
|
+
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
15
|
+
#
|
14
16
|
# @return [DateTime]
|
15
17
|
attr_accessor :timestamp
|
16
18
|
|
@@ -18,19 +18,19 @@ module OCI
|
|
18
18
|
ACTION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
19
19
|
].freeze
|
20
20
|
|
21
|
-
# The status
|
21
|
+
# The status of the work request.
|
22
22
|
# @return [String]
|
23
23
|
attr_reader :action_type
|
24
24
|
|
25
|
-
# The resource type the work request
|
25
|
+
# The resource type the work request affects.
|
26
26
|
# @return [String]
|
27
27
|
attr_accessor :entity_type
|
28
28
|
|
29
|
-
# The
|
29
|
+
# The resource type identifier.
|
30
30
|
# @return [String]
|
31
31
|
attr_accessor :identifier
|
32
32
|
|
33
|
-
# The URI path that
|
33
|
+
# The URI path that you can use for a GET request to access the resource metadata.
|
34
34
|
# @return [String]
|
35
35
|
attr_accessor :entity_uri
|
36
36
|
|
@@ -5,7 +5,7 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
# A summary of
|
8
|
+
# A summary of the status of a work request.
|
9
9
|
class ObjectStorage::Models::WorkRequestSummary # rubocop:disable Metrics/LineLength
|
10
10
|
OPERATION_TYPE_ENUM = [
|
11
11
|
OPERATION_TYPE_COPY_OBJECT = 'COPY_OBJECT'.freeze,
|
@@ -22,11 +22,11 @@ module OCI
|
|
22
22
|
STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
23
23
|
].freeze
|
24
24
|
|
25
|
-
# type of
|
25
|
+
# The type of work request.
|
26
26
|
# @return [String]
|
27
27
|
attr_reader :operation_type
|
28
28
|
|
29
|
-
# status of
|
29
|
+
# The status of a specified work request.
|
30
30
|
# @return [String]
|
31
31
|
attr_reader :status
|
32
32
|
|
@@ -34,10 +34,10 @@ module OCI
|
|
34
34
|
# @return [String]
|
35
35
|
attr_accessor :id
|
36
36
|
|
37
|
-
# The
|
37
|
+
# The OCID of the compartment that contains the work request. Work requests should be scoped to
|
38
38
|
# the same compartment as the resource the work request affects. If the work request affects multiple resources,
|
39
39
|
# and those resources are not in the same compartment, it is up to the service team to pick the primary
|
40
|
-
# resource whose compartment should be used
|
40
|
+
# resource whose compartment should be used.
|
41
41
|
#
|
42
42
|
# @return [String]
|
43
43
|
attr_accessor :compartment_id
|
@@ -45,23 +45,24 @@ module OCI
|
|
45
45
|
# @return [Array<OCI::ObjectStorage::Models::WorkRequestResource>]
|
46
46
|
attr_accessor :resources
|
47
47
|
|
48
|
-
# Percentage of the request completed.
|
48
|
+
# Percentage of the work request completed.
|
49
49
|
# @return [Float]
|
50
50
|
attr_accessor :percent_complete
|
51
51
|
|
52
|
-
# The date and time the request was created, as described in
|
52
|
+
# The date and time the work request was created, as described in
|
53
53
|
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
54
54
|
#
|
55
55
|
# @return [DateTime]
|
56
56
|
attr_accessor :time_accepted
|
57
57
|
|
58
|
-
# The date and time the request was started, as described in
|
59
|
-
# section 14.29.
|
58
|
+
# The date and time the work request was started, as described in
|
59
|
+
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
60
60
|
#
|
61
61
|
# @return [DateTime]
|
62
62
|
attr_accessor :time_started
|
63
63
|
|
64
|
-
# The date and time the
|
64
|
+
# The date and time the work request was finished, as described in
|
65
|
+
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
|
65
66
|
#
|
66
67
|
# @return [DateTime]
|
67
68
|
attr_accessor :time_finished
|
@@ -26,6 +26,7 @@ require 'oci/object_storage/models/object_lifecycle_policy'
|
|
26
26
|
require 'oci/object_storage/models/object_lifecycle_rule'
|
27
27
|
require 'oci/object_storage/models/object_name_filter'
|
28
28
|
require 'oci/object_storage/models/object_summary'
|
29
|
+
require 'oci/object_storage/models/pattern_details'
|
29
30
|
require 'oci/object_storage/models/preauthenticated_request'
|
30
31
|
require 'oci/object_storage/models/preauthenticated_request_summary'
|
31
32
|
require 'oci/object_storage/models/put_object_lifecycle_policy_details'
|
@@ -5,7 +5,7 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
7
|
module OCI
|
8
|
-
#
|
8
|
+
# Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources.
|
9
9
|
class ObjectStorage::ObjectStorageClient
|
10
10
|
# Client used to make HTTP requests.
|
11
11
|
# @return [OCI::ApiClient]
|
@@ -110,7 +110,7 @@ module OCI
|
|
110
110
|
|
111
111
|
# Aborts an in-progress multipart upload and deletes all parts that have been uploaded.
|
112
112
|
#
|
113
|
-
# @param [String] namespace_name The
|
113
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
114
114
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
115
115
|
# Example: `my-new-bucket1`
|
116
116
|
#
|
@@ -174,7 +174,7 @@ module OCI
|
|
174
174
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
175
175
|
|
176
176
|
|
177
|
-
#
|
177
|
+
# Cancels a work request.
|
178
178
|
#
|
179
179
|
# @param [String] work_request_id The ID of the asynchronous request.
|
180
180
|
# @param [Hash] opts the optional parameters
|
@@ -227,9 +227,9 @@ module OCI
|
|
227
227
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
228
228
|
|
229
229
|
|
230
|
-
# Commits a multipart upload, which involves checking part numbers and ETags of the parts, to create an aggregate object.
|
230
|
+
# Commits a multipart upload, which involves checking part numbers and entity tags (ETags) of the parts, to create an aggregate object.
|
231
231
|
#
|
232
|
-
# @param [String] namespace_name The
|
232
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
233
233
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
234
234
|
# Example: `my-new-bucket1`
|
235
235
|
#
|
@@ -237,15 +237,16 @@ module OCI
|
|
237
237
|
# Example: `test/object1.log`
|
238
238
|
#
|
239
239
|
# @param [String] upload_id The upload ID for a multipart upload.
|
240
|
-
# @param [OCI::ObjectStorage::Models::CommitMultipartUploadDetails] commit_multipart_upload_details The part numbers and ETags for the parts you want to commit.
|
240
|
+
# @param [OCI::ObjectStorage::Models::CommitMultipartUploadDetails] commit_multipart_upload_details The part numbers and entity tags (ETags) for the parts you want to commit.
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
243
243
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
244
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
244
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
245
245
|
# For uploading a part, this is the entity tag of the target part.
|
246
246
|
#
|
247
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
248
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
247
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
248
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
249
|
+
# part, this is the entity tag of the target part.
|
249
250
|
#
|
250
251
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
251
252
|
# @return [Response] A Response object with data of type nil
|
@@ -303,12 +304,13 @@ module OCI
|
|
303
304
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
304
305
|
|
305
306
|
|
306
|
-
#
|
307
|
-
#
|
307
|
+
# Creates a request to copy an object within a region or to another region.
|
308
|
+
#
|
309
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
308
310
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
309
311
|
# Example: `my-new-bucket1`
|
310
312
|
#
|
311
|
-
# @param [OCI::ObjectStorage::Models::CopyObjectDetails] copy_object_details The source and destination
|
313
|
+
# @param [OCI::ObjectStorage::Models::CopyObjectDetails] copy_object_details The source and destination of the object to be copied.
|
312
314
|
# @param [Hash] opts the optional parameters
|
313
315
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
314
316
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -362,9 +364,10 @@ module OCI
|
|
362
364
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
363
365
|
|
364
366
|
|
365
|
-
# Creates a bucket in the given namespace with a bucket name and optional user-defined metadata.
|
367
|
+
# Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. Avoid entering
|
368
|
+
# confidential information in bucket names.
|
366
369
|
#
|
367
|
-
# @param [String] namespace_name The
|
370
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
368
371
|
# @param [OCI::ObjectStorage::Models::CreateBucketDetails] create_bucket_details Request object for creating a bucket.
|
369
372
|
# @param [Hash] opts the optional parameters
|
370
373
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -420,7 +423,7 @@ module OCI
|
|
420
423
|
|
421
424
|
# Starts a new multipart upload to a specific object in the given bucket in the given namespace.
|
422
425
|
#
|
423
|
-
# @param [String] namespace_name The
|
426
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
424
427
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
425
428
|
# Example: `my-new-bucket1`
|
426
429
|
#
|
@@ -428,11 +431,12 @@ module OCI
|
|
428
431
|
# @param [Hash] opts the optional parameters
|
429
432
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
430
433
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
431
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
434
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
432
435
|
# For uploading a part, this is the entity tag of the target part.
|
433
436
|
#
|
434
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
435
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
437
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
438
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
439
|
+
# part, this is the entity tag of the target part.
|
436
440
|
#
|
437
441
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
438
442
|
# @return [Response] A Response object with data of type {OCI::ObjectStorage::Models::MultipartUpload MultipartUpload}
|
@@ -489,7 +493,7 @@ module OCI
|
|
489
493
|
|
490
494
|
# Creates a pre-authenticated request specific to the bucket.
|
491
495
|
#
|
492
|
-
# @param [String] namespace_name The
|
496
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
493
497
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
494
498
|
# Example: `my-new-bucket1`
|
495
499
|
#
|
@@ -548,16 +552,18 @@ module OCI
|
|
548
552
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
549
553
|
|
550
554
|
|
551
|
-
# Deletes a bucket if
|
555
|
+
# Deletes a bucket if the bucket is already empty. If the bucket is not empty, use
|
556
|
+
# {#delete_object delete_object} first. You also cannot
|
557
|
+
# delete a bucket that has a pre-authenticated request associated with that bucket.
|
552
558
|
#
|
553
|
-
# @param [String] namespace_name The
|
559
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
554
560
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
555
561
|
# Example: `my-new-bucket1`
|
556
562
|
#
|
557
563
|
# @param [Hash] opts the optional parameters
|
558
564
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
559
565
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
560
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
566
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
561
567
|
# For uploading a part, this is the entity tag of the target part.
|
562
568
|
#
|
563
569
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
@@ -612,7 +618,7 @@ module OCI
|
|
612
618
|
|
613
619
|
# Deletes an object.
|
614
620
|
#
|
615
|
-
# @param [String] namespace_name The
|
621
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
616
622
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
617
623
|
# Example: `my-new-bucket1`
|
618
624
|
#
|
@@ -622,7 +628,7 @@ module OCI
|
|
622
628
|
# @param [Hash] opts the optional parameters
|
623
629
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
624
630
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
625
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
631
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
626
632
|
# For uploading a part, this is the entity tag of the target part.
|
627
633
|
#
|
628
634
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
@@ -679,7 +685,7 @@ module OCI
|
|
679
685
|
|
680
686
|
# Deletes the object lifecycle policy for the bucket.
|
681
687
|
#
|
682
|
-
# @param [String] namespace_name The
|
688
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
683
689
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
684
690
|
# Example: `my-new-bucket1`
|
685
691
|
#
|
@@ -687,7 +693,7 @@ module OCI
|
|
687
693
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
688
694
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
689
695
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
690
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
696
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
691
697
|
# For uploading a part, this is the entity tag of the target part.
|
692
698
|
#
|
693
699
|
# @return [Response] A Response object with data of type nil
|
@@ -740,7 +746,7 @@ module OCI
|
|
740
746
|
|
741
747
|
|
742
748
|
# Deletes the pre-authenticated request for the bucket.
|
743
|
-
# @param [String] namespace_name The
|
749
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
744
750
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
745
751
|
# Example: `my-new-bucket1`
|
746
752
|
#
|
@@ -801,25 +807,26 @@ module OCI
|
|
801
807
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
802
808
|
|
803
809
|
|
804
|
-
# Gets the current representation of the given bucket in the given namespace.
|
810
|
+
# Gets the current representation of the given bucket in the given Object Storage namespace.
|
805
811
|
#
|
806
|
-
# @param [String] namespace_name The
|
812
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
807
813
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
808
814
|
# Example: `my-new-bucket1`
|
809
815
|
#
|
810
816
|
# @param [Hash] opts the optional parameters
|
811
817
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
812
818
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
813
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
819
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
814
820
|
# For uploading a part, this is the entity tag of the target part.
|
815
821
|
#
|
816
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
817
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
822
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
823
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
824
|
+
# part, this is the entity tag of the target part.
|
818
825
|
#
|
819
826
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
820
827
|
# @option opts [Array<String>] :fields Bucket summary includes the 'namespace', 'name', 'compartmentId', 'createdBy', 'timeCreated',
|
821
|
-
# and 'etag' fields. This parameter can also include 'approximateCount' (
|
822
|
-
# (total approximate size in bytes of all objects). For example 'approximateCount,approximateSize'
|
828
|
+
# and 'etag' fields. This parameter can also include 'approximateCount' (approximate number of objects) and 'approximateSize'
|
829
|
+
# (total approximate size in bytes of all objects). For example 'approximateCount,approximateSize'.
|
823
830
|
#
|
824
831
|
# Allowed values are: approximateCount, approximateSize
|
825
832
|
# @return [Response] A Response object with data of type {OCI::ObjectStorage::Models::Bucket Bucket}
|
@@ -884,7 +891,11 @@ module OCI
|
|
884
891
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
885
892
|
|
886
893
|
|
887
|
-
#
|
894
|
+
# Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace. The namespace
|
895
|
+
# is a system-generated string assigned during account creation. For some older tenancies, the namespace string may be
|
896
|
+
# the tenancy name in all lower-case letters. You cannot edit a namespace.
|
897
|
+
#
|
898
|
+
# GetNamespace returns the name of the Object Storage namespace for the user making the request.
|
888
899
|
#
|
889
900
|
# @param [Hash] opts the optional parameters
|
890
901
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -935,12 +946,15 @@ module OCI
|
|
935
946
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
936
947
|
|
937
948
|
|
938
|
-
#
|
939
|
-
#
|
940
|
-
# talk to an administrator. If you're an administrator who needs to write
|
941
|
-
# policies to give users access, see [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
949
|
+
# Gets the metadata for the Object Storage namespace, which contains defaultS3CompartmentId and
|
950
|
+
# defaultSwiftCompartmentId.
|
942
951
|
#
|
943
|
-
#
|
952
|
+
# Any user with the NAMESPACE_READ permission will be able to see the current metadata. If you are
|
953
|
+
# not authorized, talk to an administrator. If you are an administrator who needs to write policies
|
954
|
+
# to give users access, see
|
955
|
+
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
956
|
+
#
|
957
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
944
958
|
# @param [Hash] opts the optional parameters
|
945
959
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
946
960
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -994,7 +1008,7 @@ module OCI
|
|
994
1008
|
|
995
1009
|
# Gets the metadata and body of an object.
|
996
1010
|
#
|
997
|
-
# @param [String] namespace_name The
|
1011
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
998
1012
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
999
1013
|
# Example: `my-new-bucket1`
|
1000
1014
|
#
|
@@ -1004,11 +1018,12 @@ module OCI
|
|
1004
1018
|
# @param [Hash] opts the optional parameters
|
1005
1019
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1006
1020
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1007
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1021
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1008
1022
|
# For uploading a part, this is the entity tag of the target part.
|
1009
1023
|
#
|
1010
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1011
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
1024
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1025
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
1026
|
+
# part, this is the entity tag of the target part.
|
1012
1027
|
#
|
1013
1028
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
1014
1029
|
# @option opts [String] :range Optional byte range to fetch, as described in [RFC 7233](https://tools.ietf.org/rfc/rfc7233), section 2.1.
|
@@ -1116,7 +1131,7 @@ module OCI
|
|
1116
1131
|
|
1117
1132
|
# Gets the object lifecycle policy for the bucket.
|
1118
1133
|
#
|
1119
|
-
# @param [String] namespace_name The
|
1134
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1120
1135
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1121
1136
|
# Example: `my-new-bucket1`
|
1122
1137
|
#
|
@@ -1174,7 +1189,7 @@ module OCI
|
|
1174
1189
|
|
1175
1190
|
|
1176
1191
|
# Gets the pre-authenticated request for the bucket.
|
1177
|
-
# @param [String] namespace_name The
|
1192
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1178
1193
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1179
1194
|
# Example: `my-new-bucket1`
|
1180
1195
|
#
|
@@ -1236,7 +1251,7 @@ module OCI
|
|
1236
1251
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1237
1252
|
|
1238
1253
|
|
1239
|
-
# Gets the status of the work request
|
1254
|
+
# Gets the status of the work request for the given ID.
|
1240
1255
|
# @param [String] work_request_id The ID of the asynchronous request.
|
1241
1256
|
# @param [Hash] opts the optional parameters
|
1242
1257
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -1289,20 +1304,21 @@ module OCI
|
|
1289
1304
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1290
1305
|
|
1291
1306
|
|
1292
|
-
# Efficiently checks to see if a bucket exists and gets the current ETag for the bucket.
|
1307
|
+
# Efficiently checks to see if a bucket exists and gets the current entity tag (ETag) for the bucket.
|
1293
1308
|
#
|
1294
|
-
# @param [String] namespace_name The
|
1309
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1295
1310
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1296
1311
|
# Example: `my-new-bucket1`
|
1297
1312
|
#
|
1298
1313
|
# @param [Hash] opts the optional parameters
|
1299
1314
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1300
1315
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1301
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1316
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1302
1317
|
# For uploading a part, this is the entity tag of the target part.
|
1303
1318
|
#
|
1304
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1305
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
1319
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1320
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
1321
|
+
# part, this is the entity tag of the target part.
|
1306
1322
|
#
|
1307
1323
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
1308
1324
|
# @return [Response] A Response object with data of type nil
|
@@ -1355,9 +1371,9 @@ module OCI
|
|
1355
1371
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1356
1372
|
|
1357
1373
|
|
1358
|
-
# Gets the user-defined metadata and entity tag for an object.
|
1374
|
+
# Gets the user-defined metadata and entity tag (ETag) for an object.
|
1359
1375
|
#
|
1360
|
-
# @param [String] namespace_name The
|
1376
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1361
1377
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1362
1378
|
# Example: `my-new-bucket1`
|
1363
1379
|
#
|
@@ -1367,11 +1383,12 @@ module OCI
|
|
1367
1383
|
# @param [Hash] opts the optional parameters
|
1368
1384
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1369
1385
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1370
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1386
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1371
1387
|
# For uploading a part, this is the entity tag of the target part.
|
1372
1388
|
#
|
1373
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1374
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
1389
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1390
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
1391
|
+
# part, this is the entity tag of the target part.
|
1375
1392
|
#
|
1376
1393
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
1377
1394
|
# @return [Response] A Response object with data of type nil
|
@@ -1426,14 +1443,14 @@ module OCI
|
|
1426
1443
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1427
1444
|
|
1428
1445
|
|
1429
|
-
# Gets a list of all
|
1446
|
+
# Gets a list of all BucketSummary items in a compartment. A BucketSummary contains only summary fields for the bucket
|
1430
1447
|
# and does not contain fields like the user-defined metadata.
|
1431
1448
|
#
|
1432
|
-
# To use this and other API operations, you must be authorized in an IAM policy. If you
|
1433
|
-
# talk to an administrator. If you
|
1449
|
+
# To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized,
|
1450
|
+
# talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
1434
1451
|
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
1435
1452
|
#
|
1436
|
-
# @param [String] namespace_name The
|
1453
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1437
1454
|
# @param [String] compartment_id The ID of the compartment in which to list buckets.
|
1438
1455
|
# @param [Hash] opts the optional parameters
|
1439
1456
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -1510,7 +1527,7 @@ module OCI
|
|
1510
1527
|
|
1511
1528
|
# Lists the parts of an in-progress multipart upload.
|
1512
1529
|
#
|
1513
|
-
# @param [String] namespace_name The
|
1530
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1514
1531
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1515
1532
|
# Example: `my-new-bucket1`
|
1516
1533
|
#
|
@@ -1579,9 +1596,9 @@ module OCI
|
|
1579
1596
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1580
1597
|
|
1581
1598
|
|
1582
|
-
# Lists all in-progress multipart uploads for the given bucket in the given namespace.
|
1599
|
+
# Lists all of the in-progress multipart uploads for the given bucket in the given Object Storage namespace.
|
1583
1600
|
#
|
1584
|
-
# @param [String] namespace_name The
|
1601
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1585
1602
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1586
1603
|
# Example: `my-new-bucket1`
|
1587
1604
|
#
|
@@ -1644,11 +1661,11 @@ module OCI
|
|
1644
1661
|
|
1645
1662
|
# Lists the objects in a bucket.
|
1646
1663
|
#
|
1647
|
-
# To use this and other API operations, you must be authorized in an IAM policy. If you
|
1648
|
-
# talk to an administrator. If you
|
1664
|
+
# To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized,
|
1665
|
+
# talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
1649
1666
|
# [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
|
1650
1667
|
#
|
1651
|
-
# @param [String] namespace_name The
|
1668
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1652
1669
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1653
1670
|
# Example: `my-new-bucket1`
|
1654
1671
|
#
|
@@ -1728,7 +1745,7 @@ module OCI
|
|
1728
1745
|
|
1729
1746
|
# Lists pre-authenticated requests for the bucket.
|
1730
1747
|
#
|
1731
|
-
# @param [String] namespace_name The
|
1748
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1732
1749
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1733
1750
|
# Example: `my-new-bucket1`
|
1734
1751
|
#
|
@@ -1963,9 +1980,10 @@ module OCI
|
|
1963
1980
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1964
1981
|
|
1965
1982
|
|
1966
|
-
# Creates a new object or overwrites an existing one.
|
1983
|
+
# Creates a new object or overwrites an existing one. See [Special Instructions for Object Storage
|
1984
|
+
# PUT](https://docs.cloud.oracle.com/Content/API/Concepts/signingrequests.htm#ObjectStoragePut) for request signature requirements.
|
1967
1985
|
#
|
1968
|
-
# @param [String] namespace_name The
|
1986
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
1969
1987
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
1970
1988
|
# Example: `my-new-bucket1`
|
1971
1989
|
#
|
@@ -1977,11 +1995,12 @@ module OCI
|
|
1977
1995
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1978
1996
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1979
1997
|
# @option opts [Integer] :content_length The content length of the body.
|
1980
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1998
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
1981
1999
|
# For uploading a part, this is the entity tag of the target part.
|
1982
2000
|
#
|
1983
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
1984
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
2001
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
2002
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
2003
|
+
# part, this is the entity tag of the target part.
|
1985
2004
|
#
|
1986
2005
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
1987
2006
|
# @option opts [String] :expect 100-continue (default to 100-continue)
|
@@ -2058,7 +2077,7 @@ module OCI
|
|
2058
2077
|
|
2059
2078
|
# Creates or replaces the object lifecycle policy for the bucket.
|
2060
2079
|
#
|
2061
|
-
# @param [String] namespace_name The
|
2080
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
2062
2081
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
2063
2082
|
# Example: `my-new-bucket1`
|
2064
2083
|
#
|
@@ -2067,11 +2086,12 @@ module OCI
|
|
2067
2086
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2068
2087
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2069
2088
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
2070
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
2089
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
2071
2090
|
# For uploading a part, this is the entity tag of the target part.
|
2072
2091
|
#
|
2073
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
2074
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
2092
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
2093
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
2094
|
+
# part, this is the entity tag of the target part.
|
2075
2095
|
#
|
2076
2096
|
# @return [Response] A Response object with data of type {OCI::ObjectStorage::Models::ObjectLifecyclePolicy ObjectLifecyclePolicy}
|
2077
2097
|
def put_object_lifecycle_policy(namespace_name, bucket_name, put_object_lifecycle_policy_details, opts = {})
|
@@ -2125,9 +2145,9 @@ module OCI
|
|
2125
2145
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2126
2146
|
|
2127
2147
|
|
2128
|
-
# Rename an object
|
2148
|
+
# Rename an object in the given Object Storage namespace.
|
2129
2149
|
#
|
2130
|
-
# @param [String] namespace_name The
|
2150
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
2131
2151
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
2132
2152
|
# Example: `my-new-bucket1`
|
2133
2153
|
#
|
@@ -2185,10 +2205,10 @@ module OCI
|
|
2185
2205
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2186
2206
|
|
2187
2207
|
|
2188
|
-
#
|
2208
|
+
# Restores one or more objects specified by the objectName parameter.
|
2189
2209
|
# By default objects will be restored for 24 hours. Duration can be configured using the hours parameter.
|
2190
2210
|
#
|
2191
|
-
# @param [String] namespace_name The
|
2211
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
2192
2212
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
2193
2213
|
# Example: `my-new-bucket1`
|
2194
2214
|
#
|
@@ -2248,7 +2268,7 @@ module OCI
|
|
2248
2268
|
|
2249
2269
|
# Performs a partial or full update of a bucket's user-defined metadata.
|
2250
2270
|
#
|
2251
|
-
# @param [String] namespace_name The
|
2271
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
2252
2272
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
2253
2273
|
# Example: `my-new-bucket1`
|
2254
2274
|
#
|
@@ -2256,7 +2276,7 @@ module OCI
|
|
2256
2276
|
# @param [Hash] opts the optional parameters
|
2257
2277
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2258
2278
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2259
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
2279
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
2260
2280
|
# For uploading a part, this is the entity tag of the target part.
|
2261
2281
|
#
|
2262
2282
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
@@ -2311,12 +2331,15 @@ module OCI
|
|
2311
2331
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2312
2332
|
|
2313
2333
|
|
2314
|
-
#
|
2315
|
-
#
|
2316
|
-
#
|
2317
|
-
#
|
2334
|
+
# By default, buckets created using the Amazon S3 Compatibility API or the Swift API are created in the root
|
2335
|
+
# compartment of the Oracle Cloud Infrastructure tenancy.
|
2336
|
+
#
|
2337
|
+
# You can change the default Swift/Amazon S3 compartmentId designation to a different compartmentId. All
|
2338
|
+
# subsequent bucket creations will use the new default compartment, but no previously created
|
2339
|
+
# buckets will be modified. A user must have NAMESPACE_UPDATE permission to make changes to the default
|
2340
|
+
# compartments for Amazon S3 and Swift.
|
2318
2341
|
#
|
2319
|
-
# @param [String] namespace_name The
|
2342
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
2320
2343
|
# @param [OCI::ObjectStorage::Models::UpdateNamespaceMetadataDetails] update_namespace_metadata_details Request object for update NamespaceMetadata.
|
2321
2344
|
# @param [Hash] opts the optional parameters
|
2322
2345
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -2372,7 +2395,7 @@ module OCI
|
|
2372
2395
|
|
2373
2396
|
# Uploads a single part of a multipart upload.
|
2374
2397
|
#
|
2375
|
-
# @param [String] namespace_name The
|
2398
|
+
# @param [String] namespace_name The Object Storage namespace used for the request.
|
2376
2399
|
# @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
|
2377
2400
|
# Example: `my-new-bucket1`
|
2378
2401
|
#
|
@@ -2381,17 +2404,18 @@ module OCI
|
|
2381
2404
|
#
|
2382
2405
|
# @param [String] upload_id The upload ID for a multipart upload.
|
2383
2406
|
# @param [Integer] upload_part_num The part number that identifies the object part currently being uploaded.
|
2384
|
-
# @param [String, IO] upload_part_body The part being uploaded to the Object Storage
|
2407
|
+
# @param [String, IO] upload_part_body The part being uploaded to the Object Storage service.
|
2385
2408
|
# @param [Hash] opts the optional parameters
|
2386
2409
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2387
2410
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2388
2411
|
# @option opts [Integer] :content_length The content length of the body.
|
2389
2412
|
# @option opts [String] :opc_client_request_id The client request ID for tracing.
|
2390
|
-
# @option opts [String] :if_match The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
2413
|
+
# @option opts [String] :if_match The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object.
|
2391
2414
|
# For uploading a part, this is the entity tag of the target part.
|
2392
2415
|
#
|
2393
|
-
# @option opts [String] :if_none_match The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
2394
|
-
# For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
2416
|
+
# @option opts [String] :if_none_match The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object
|
2417
|
+
# already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a
|
2418
|
+
# part, this is the entity tag of the target part.
|
2395
2419
|
#
|
2396
2420
|
# @option opts [String] :expect 100-continue (default to 100-continue)
|
2397
2421
|
# @option opts [String] :content_md5 The base-64 encoded MD5 hash of the body.
|