Documentation ¶
Index ¶
- type AbortMultipartUploadRequest
- type AbortMultipartUploadResponse
- type Bucket
- type BucketPublicAccessTypeEnum
- type BucketStorageTierEnum
- type BucketSummary
- type CancelWorkRequestRequest
- type CancelWorkRequestResponse
- type CommitMultipartUploadDetails
- type CommitMultipartUploadPartDetails
- type CommitMultipartUploadRequest
- type CommitMultipartUploadResponse
- type CopyObjectDetails
- type CopyObjectRequest
- type CopyObjectResponse
- type CreateBucketDetails
- type CreateBucketDetailsPublicAccessTypeEnum
- type CreateBucketDetailsStorageTierEnum
- type CreateBucketRequest
- type CreateBucketResponse
- type CreateMultipartUploadDetails
- type CreateMultipartUploadRequest
- type CreateMultipartUploadResponse
- type CreatePreauthenticatedRequestDetails
- type CreatePreauthenticatedRequestDetailsAccessTypeEnum
- type CreatePreauthenticatedRequestRequest
- type CreatePreauthenticatedRequestResponse
- type DeleteBucketRequest
- type DeleteBucketResponse
- type DeleteObjectLifecyclePolicyRequest
- type DeleteObjectLifecyclePolicyResponse
- type DeleteObjectRequest
- type DeleteObjectResponse
- type DeletePreauthenticatedRequestRequest
- type DeletePreauthenticatedRequestResponse
- type GetBucketRequest
- type GetBucketResponse
- type GetNamespaceMetadataRequest
- type GetNamespaceMetadataResponse
- type GetNamespaceRequest
- type GetNamespaceResponse
- type GetObjectArchivalStateEnum
- type GetObjectLifecyclePolicyRequest
- type GetObjectLifecyclePolicyResponse
- type GetObjectRequest
- type GetObjectResponse
- type GetPreauthenticatedRequestRequest
- type GetPreauthenticatedRequestResponse
- type GetWorkRequestRequest
- type GetWorkRequestResponse
- type HeadBucketRequest
- type HeadBucketResponse
- type HeadObjectArchivalStateEnum
- type HeadObjectRequest
- type HeadObjectResponse
- type ListBucketsFieldsEnum
- type ListBucketsRequest
- type ListBucketsResponse
- type ListMultipartUploadPartsRequest
- type ListMultipartUploadPartsResponse
- type ListMultipartUploadsRequest
- type ListMultipartUploadsResponse
- type ListObjects
- type ListObjectsRequest
- type ListObjectsResponse
- type ListPreauthenticatedRequestsRequest
- type ListPreauthenticatedRequestsResponse
- type ListWorkRequestErrorsRequest
- type ListWorkRequestErrorsResponse
- type ListWorkRequestLogsRequest
- type ListWorkRequestLogsResponse
- type ListWorkRequestsRequest
- type ListWorkRequestsResponse
- type MultipartUpload
- type MultipartUploadPartSummary
- type NamespaceMetadata
- type ObjectLifecyclePolicy
- type ObjectLifecycleRule
- type ObjectLifecycleRuleTimeUnitEnum
- type ObjectNameFilter
- type ObjectStorageClient
- func (client ObjectStorageClient) AbortMultipartUpload(ctx context.Context, request AbortMultipartUploadRequest) (response AbortMultipartUploadResponse, err error)
- func (client ObjectStorageClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error)
- func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, request CommitMultipartUploadRequest) (response CommitMultipartUploadResponse, err error)
- func (client *ObjectStorageClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client ObjectStorageClient) CopyObject(ctx context.Context, request CopyObjectRequest) (response CopyObjectResponse, err error)
- func (client ObjectStorageClient) CreateBucket(ctx context.Context, request CreateBucketRequest) (response CreateBucketResponse, err error)
- func (client ObjectStorageClient) CreateMultipartUpload(ctx context.Context, request CreateMultipartUploadRequest) (response CreateMultipartUploadResponse, err error)
- func (client ObjectStorageClient) CreatePreauthenticatedRequest(ctx context.Context, request CreatePreauthenticatedRequestRequest) (response CreatePreauthenticatedRequestResponse, err error)
- func (client ObjectStorageClient) DeleteBucket(ctx context.Context, request DeleteBucketRequest) (response DeleteBucketResponse, err error)
- func (client ObjectStorageClient) DeleteObject(ctx context.Context, request DeleteObjectRequest) (response DeleteObjectResponse, err error)
- func (client ObjectStorageClient) DeleteObjectLifecyclePolicy(ctx context.Context, request DeleteObjectLifecyclePolicyRequest) (response DeleteObjectLifecyclePolicyResponse, err error)
- func (client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Context, request DeletePreauthenticatedRequestRequest) (response DeletePreauthenticatedRequestResponse, err error)
- func (client ObjectStorageClient) GetBucket(ctx context.Context, request GetBucketRequest) (response GetBucketResponse, err error)
- func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetNamespaceRequest) (response GetNamespaceResponse, err error)
- func (client ObjectStorageClient) GetNamespaceMetadata(ctx context.Context, request GetNamespaceMetadataRequest) (response GetNamespaceMetadataResponse, err error)
- func (client ObjectStorageClient) GetObject(ctx context.Context, request GetObjectRequest) (response GetObjectResponse, err error)
- func (client ObjectStorageClient) GetObjectLifecyclePolicy(ctx context.Context, request GetObjectLifecyclePolicyRequest) (response GetObjectLifecyclePolicyResponse, err error)
- func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, err error)
- func (client ObjectStorageClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
- func (client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBucketRequest) (response HeadBucketResponse, err error)
- func (client ObjectStorageClient) HeadObject(ctx context.Context, request HeadObjectRequest) (response HeadObjectResponse, err error)
- func (client ObjectStorageClient) ListBuckets(ctx context.Context, request ListBucketsRequest) (response ListBucketsResponse, err error)
- func (client ObjectStorageClient) ListMultipartUploadParts(ctx context.Context, request ListMultipartUploadPartsRequest) (response ListMultipartUploadPartsResponse, err error)
- func (client ObjectStorageClient) ListMultipartUploads(ctx context.Context, request ListMultipartUploadsRequest) (response ListMultipartUploadsResponse, err error)
- func (client ObjectStorageClient) ListObjects(ctx context.Context, request ListObjectsRequest) (response ListObjectsResponse, err error)
- func (client ObjectStorageClient) ListPreauthenticatedRequests(ctx context.Context, request ListPreauthenticatedRequestsRequest) (response ListPreauthenticatedRequestsResponse, err error)
- func (client ObjectStorageClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
- func (client ObjectStorageClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
- func (client ObjectStorageClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
- func (client ObjectStorageClient) PutObject(ctx context.Context, request PutObjectRequest) (response PutObjectResponse, err error)
- func (client ObjectStorageClient) PutObjectLifecyclePolicy(ctx context.Context, request PutObjectLifecyclePolicyRequest) (response PutObjectLifecyclePolicyResponse, err error)
- func (client ObjectStorageClient) RenameObject(ctx context.Context, request RenameObjectRequest) (response RenameObjectResponse, err error)
- func (client ObjectStorageClient) RestoreObjects(ctx context.Context, request RestoreObjectsRequest) (response RestoreObjectsResponse, err error)
- func (client *ObjectStorageClient) SetRegion(region string)
- func (client ObjectStorageClient) UpdateBucket(ctx context.Context, request UpdateBucketRequest) (response UpdateBucketResponse, err error)
- func (client ObjectStorageClient) UpdateNamespaceMetadata(ctx context.Context, request UpdateNamespaceMetadataRequest) (response UpdateNamespaceMetadataResponse, err error)
- func (client ObjectStorageClient) UploadPart(ctx context.Context, request UploadPartRequest) (response UploadPartResponse, err error)
- type ObjectSummary
- type PreauthenticatedRequest
- type PreauthenticatedRequestAccessTypeEnum
- type PreauthenticatedRequestSummary
- type PreauthenticatedRequestSummaryAccessTypeEnum
- type PutObjectLifecyclePolicyDetails
- type PutObjectLifecyclePolicyRequest
- type PutObjectLifecyclePolicyResponse
- type PutObjectRequest
- type PutObjectResponse
- type RenameObjectDetails
- type RenameObjectRequest
- type RenameObjectResponse
- type RestoreObjectsDetails
- type RestoreObjectsRequest
- type RestoreObjectsResponse
- type UpdateBucketDetails
- type UpdateBucketDetailsPublicAccessTypeEnum
- type UpdateBucketRequest
- type UpdateBucketResponse
- type UpdateNamespaceMetadataDetails
- type UpdateNamespaceMetadataRequest
- type UpdateNamespaceMetadataResponse
- type UploadPartRequest
- type UploadPartResponse
- type WorkRequest
- type WorkRequestError
- type WorkRequestLogEntry
- type WorkRequestOperationTypeEnum
- type WorkRequestResource
- type WorkRequestResourceActionTypeEnum
- type WorkRequestResourceMetadataKey
- type WorkRequestStatusEnum
- type WorkRequestSummary
- type WorkRequestSummaryOperationTypeEnum
- type WorkRequestSummaryStatusEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbortMultipartUploadRequest ¶
type AbortMultipartUploadRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The upload ID for a multipart upload. UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
AbortMultipartUploadRequest wrapper for the AbortMultipartUpload operation
func (AbortMultipartUploadRequest) HTTPRequest ¶ added in v1.3.0
func (request AbortMultipartUploadRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (AbortMultipartUploadRequest) RetryPolicy ¶ added in v1.3.0
func (request AbortMultipartUploadRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (AbortMultipartUploadRequest) String ¶
func (request AbortMultipartUploadRequest) String() string
type AbortMultipartUploadResponse ¶
type AbortMultipartUploadResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
AbortMultipartUploadResponse wrapper for the AbortMultipartUpload operation
func (AbortMultipartUploadResponse) HTTPResponse ¶ added in v1.3.0
func (response AbortMultipartUploadResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (AbortMultipartUploadResponse) String ¶
func (response AbortMultipartUploadResponse) String() string
type Bucket ¶
type Bucket struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"true" json:"namespace"` // The name of the bucket. Avoid entering confidential information. // Example: my-new-bucket1 Name *string `mandatory:"true" json:"name"` // The compartment ID in which the bucket is authorized. CompartmentId *string `mandatory:"true" json:"compartmentId"` // Arbitrary string keys and values for user-defined metadata. Metadata map[string]string `mandatory:"true" json:"metadata"` // The OCID of the user who created the bucket. CreatedBy *string `mandatory:"true" json:"createdBy"` // The date and time the bucket was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The entity tag for the bucket. Etag *string `mandatory:"true" json:"etag"` // The type of public access enabled on this bucket. // A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the // bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the // `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled on the // bucket, public access is allowed for the `GetObject` and `HeadObject` operations. PublicAccessType BucketPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` // The type of storage tier of this bucket. // A bucket is set to 'Standard' tier by default, which means the bucket will be put in the standard storage tier. // When 'Archive' tier type is set explicitly, the bucket is put in the archive storage tier. The 'storageTier' // property is immutable after bucket is created. StorageTier BucketStorageTierEnum `mandatory:"false" json:"storageTier,omitempty"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The OCID of a KMS key id used to call KMS to generate data key, decrypt the encrypted data key KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` // The entity tag for the live object lifecycle policy on the bucket. ObjectLifecyclePolicyEtag *string `mandatory:"false" json:"objectLifecyclePolicyEtag"` }
Bucket A bucket is a container for storing objects in a compartment within a namespace. A bucket is associated with a single compartment. The compartment has policies that indicate what actions a user can perform on a bucket and all the objects in the bucket. For more information, see Managing Buckets (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingbuckets.htm). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
type BucketPublicAccessTypeEnum ¶
type BucketPublicAccessTypeEnum string
BucketPublicAccessTypeEnum Enum with underlying type: string
const ( BucketPublicAccessTypeNopublicaccess BucketPublicAccessTypeEnum = "NoPublicAccess" BucketPublicAccessTypeObjectread BucketPublicAccessTypeEnum = "ObjectRead" BucketPublicAccessTypeObjectreadwithoutlist BucketPublicAccessTypeEnum = "ObjectReadWithoutList" )
Set of constants representing the allowable values for BucketPublicAccessTypeEnum
func GetBucketPublicAccessTypeEnumValues ¶
func GetBucketPublicAccessTypeEnumValues() []BucketPublicAccessTypeEnum
GetBucketPublicAccessTypeEnumValues Enumerates the set of values for BucketPublicAccessTypeEnum
type BucketStorageTierEnum ¶ added in v1.1.0
type BucketStorageTierEnum string
BucketStorageTierEnum Enum with underlying type: string
const ( BucketStorageTierStandard BucketStorageTierEnum = "Standard" BucketStorageTierArchive BucketStorageTierEnum = "Archive" )
Set of constants representing the allowable values for BucketStorageTierEnum
func GetBucketStorageTierEnumValues ¶ added in v1.1.0
func GetBucketStorageTierEnumValues() []BucketStorageTierEnum
GetBucketStorageTierEnumValues Enumerates the set of values for BucketStorageTierEnum
type BucketSummary ¶
type BucketSummary struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"true" json:"namespace"` // The name of the bucket. Avoid entering confidential information. // Example: my-new-bucket1 Name *string `mandatory:"true" json:"name"` // The compartment ID in which the bucket is authorized. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID of the user who created the bucket. CreatedBy *string `mandatory:"true" json:"createdBy"` // The date and time the bucket was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The entity tag for the bucket. Etag *string `mandatory:"true" json:"etag"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
BucketSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (BucketSummary) String ¶
func (m BucketSummary) String() string
type CancelWorkRequestRequest ¶
type CancelWorkRequestRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CancelWorkRequestRequest wrapper for the CancelWorkRequest operation
func (CancelWorkRequestRequest) HTTPRequest ¶
func (request CancelWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CancelWorkRequestRequest) RetryPolicy ¶
func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CancelWorkRequestRequest) String ¶
func (request CancelWorkRequestRequest) String() string
type CancelWorkRequestResponse ¶
type CancelWorkRequestResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` }
CancelWorkRequestResponse wrapper for the CancelWorkRequest operation
func (CancelWorkRequestResponse) HTTPResponse ¶
func (response CancelWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CancelWorkRequestResponse) String ¶
func (response CancelWorkRequestResponse) String() string
type CommitMultipartUploadDetails ¶
type CommitMultipartUploadDetails struct { // The part numbers and ETags for the parts to be committed. PartsToCommit []CommitMultipartUploadPartDetails `mandatory:"true" json:"partsToCommit"` // The part numbers for the parts to be excluded from the completed object. // Each part created for this upload must be in either partsToExclude or partsToCommit, but cannot be in both. PartsToExclude []int `mandatory:"false" json:"partsToExclude"` }
CommitMultipartUploadDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (CommitMultipartUploadDetails) String ¶
func (m CommitMultipartUploadDetails) String() string
type CommitMultipartUploadPartDetails ¶
type CommitMultipartUploadPartDetails struct { // The part number for this part. PartNum *int `mandatory:"true" json:"partNum"` // The ETag returned when this part was uploaded. Etag *string `mandatory:"true" json:"etag"` }
CommitMultipartUploadPartDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (CommitMultipartUploadPartDetails) String ¶
func (m CommitMultipartUploadPartDetails) String() string
type CommitMultipartUploadRequest ¶
type CommitMultipartUploadRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The upload ID for a multipart upload. UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` // The part numbers and ETags for the parts you want to commit. CommitMultipartUploadDetails `contributesTo:"body"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CommitMultipartUploadRequest wrapper for the CommitMultipartUpload operation
func (CommitMultipartUploadRequest) HTTPRequest ¶ added in v1.3.0
func (request CommitMultipartUploadRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CommitMultipartUploadRequest) RetryPolicy ¶ added in v1.3.0
func (request CommitMultipartUploadRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CommitMultipartUploadRequest) String ¶
func (request CommitMultipartUploadRequest) String() string
type CommitMultipartUploadResponse ¶
type CommitMultipartUploadResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Base-64 representation of the multipart object hash. // The multipart object hash is calculated by taking the MD5 hashes of the parts passed to this call, // concatenating the binary representation of those hashes in order of their part numbers, // and then calculating the MD5 hash of the concatenated values. OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` // The entity tag for the object. ETag *string `presentIn:"header" name:"etag"` // The time the object was last modified, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` }
CommitMultipartUploadResponse wrapper for the CommitMultipartUpload operation
func (CommitMultipartUploadResponse) HTTPResponse ¶ added in v1.3.0
func (response CommitMultipartUploadResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CommitMultipartUploadResponse) String ¶
func (response CommitMultipartUploadResponse) String() string
type CopyObjectDetails ¶
type CopyObjectDetails struct { // The name of the object to be copied SourceObjectName *string `mandatory:"true" json:"sourceObjectName"` // The destination region object will be copied to. Please specify name of the region, for example "us-ashburn-1". DestinationRegion *string `mandatory:"true" json:"destinationRegion"` // The destination namespace object will be copied to. DestinationNamespace *string `mandatory:"true" json:"destinationNamespace"` // The destination bucket object will be copied to. DestinationBucket *string `mandatory:"true" json:"destinationBucket"` // The destination name for the copy object. DestinationObjectName *string `mandatory:"true" json:"destinationObjectName"` // The entity tag to match the target object. SourceObjectIfMatchETag *string `mandatory:"false" json:"sourceObjectIfMatchETag"` // The entity tag to match the target object. DestinationObjectIfMatchETag *string `mandatory:"false" json:"destinationObjectIfMatchETag"` // The entity tag to not match the target object. DestinationObjectIfNoneMatchETag *string `mandatory:"false" json:"destinationObjectIfNoneMatchETag"` // Arbitrary string keys and values for the user-defined metadata for the object. Keys must be in // "opc-meta-*" format. Avoid entering confidential information. If user enter value in this field, the value // will become the object metadata for destination Object. If no value pass in, the destination object will have // the exact object metadata as source object. DestinationObjectMetadata map[string]string `mandatory:"false" json:"destinationObjectMetadata"` }
CopyObjectDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (CopyObjectDetails) String ¶
func (m CopyObjectDetails) String() string
type CopyObjectRequest ¶
type CopyObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The source and destination for object to be copied. CopyObjectDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CopyObjectRequest wrapper for the CopyObject operation
func (CopyObjectRequest) HTTPRequest ¶
func (request CopyObjectRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CopyObjectRequest) RetryPolicy ¶
func (request CopyObjectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CopyObjectRequest) String ¶
func (request CopyObjectRequest) String() string
type CopyObjectResponse ¶
type CopyObjectResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle about a // particular request, provide this request ID. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` }
CopyObjectResponse wrapper for the CopyObject operation
func (CopyObjectResponse) HTTPResponse ¶
func (response CopyObjectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CopyObjectResponse) String ¶
func (response CopyObjectResponse) String() string
type CreateBucketDetails ¶
type CreateBucketDetails struct { // The name of the bucket. Valid characters are uppercase or lowercase letters, // numbers, and dashes. Bucket names must be unique within the namespace. Avoid entering confidential information. // example: Example: my-new-bucket1 Name *string `mandatory:"true" json:"name"` // The ID of the compartment in which to create the bucket. CompartmentId *string `mandatory:"true" json:"compartmentId"` // Arbitrary string, up to 4KB, of keys and values for user-defined metadata. Metadata map[string]string `mandatory:"false" json:"metadata"` // The type of public access enabled on this bucket. // A bucket is set to `NoPublicAccess` by default, which only allows an authenticated caller to access the // bucket and its contents. When `ObjectRead` is enabled on the bucket, public access is allowed for the // `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled on the bucket, // public access is allowed for the `GetObject` and `HeadObject` operations. PublicAccessType CreateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` // The type of storage tier of this bucket. // A bucket is set to 'Standard' tier by default, which means the bucket will be put in the standard storage tier. // When 'Archive' tier type is set explicitly, the bucket is put in the Archive Storage tier. The 'storageTier' // property is immutable after bucket is created. StorageTier CreateBucketDetailsStorageTierEnum `mandatory:"false" json:"storageTier,omitempty"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The OCID of a KMS key id used to call KMS to generate data key, decrypt the encrypted data key KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` }
CreateBucketDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (CreateBucketDetails) String ¶
func (m CreateBucketDetails) String() string
type CreateBucketDetailsPublicAccessTypeEnum ¶
type CreateBucketDetailsPublicAccessTypeEnum string
CreateBucketDetailsPublicAccessTypeEnum Enum with underlying type: string
const ( CreateBucketDetailsPublicAccessTypeNopublicaccess CreateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" CreateBucketDetailsPublicAccessTypeObjectread CreateBucketDetailsPublicAccessTypeEnum = "ObjectRead" CreateBucketDetailsPublicAccessTypeObjectreadwithoutlist CreateBucketDetailsPublicAccessTypeEnum = "ObjectReadWithoutList" )
Set of constants representing the allowable values for CreateBucketDetailsPublicAccessTypeEnum
func GetCreateBucketDetailsPublicAccessTypeEnumValues ¶
func GetCreateBucketDetailsPublicAccessTypeEnumValues() []CreateBucketDetailsPublicAccessTypeEnum
GetCreateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for CreateBucketDetailsPublicAccessTypeEnum
type CreateBucketDetailsStorageTierEnum ¶ added in v1.1.0
type CreateBucketDetailsStorageTierEnum string
CreateBucketDetailsStorageTierEnum Enum with underlying type: string
const ( CreateBucketDetailsStorageTierStandard CreateBucketDetailsStorageTierEnum = "Standard" CreateBucketDetailsStorageTierArchive CreateBucketDetailsStorageTierEnum = "Archive" )
Set of constants representing the allowable values for CreateBucketDetailsStorageTierEnum
func GetCreateBucketDetailsStorageTierEnumValues ¶ added in v1.1.0
func GetCreateBucketDetailsStorageTierEnumValues() []CreateBucketDetailsStorageTierEnum
GetCreateBucketDetailsStorageTierEnumValues Enumerates the set of values for CreateBucketDetailsStorageTierEnum
type CreateBucketRequest ¶
type CreateBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // Request object for creating a bucket. CreateBucketDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CreateBucketRequest wrapper for the CreateBucket operation
func (CreateBucketRequest) HTTPRequest ¶ added in v1.3.0
func (request CreateBucketRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateBucketRequest) RetryPolicy ¶ added in v1.3.0
func (request CreateBucketRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateBucketRequest) String ¶
func (request CreateBucketRequest) String() string
type CreateBucketResponse ¶
type CreateBucketResponse struct { // The underlying http response RawResponse *http.Response // The Bucket instance Bucket `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the bucket that was created. ETag *string `presentIn:"header" name:"etag"` // The full path to the bucket that was created. Location *string `presentIn:"header" name:"location"` }
CreateBucketResponse wrapper for the CreateBucket operation
func (CreateBucketResponse) HTTPResponse ¶ added in v1.3.0
func (response CreateBucketResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateBucketResponse) String ¶
func (response CreateBucketResponse) String() string
type CreateMultipartUploadDetails ¶
type CreateMultipartUploadDetails struct { // The name of the object to which this multi-part upload is targeted. Avoid entering confidential information. // Example: test/object1.log Object *string `mandatory:"true" json:"object"` // The content type of the object to upload. ContentType *string `mandatory:"false" json:"contentType"` // The content language of the object to upload. ContentLanguage *string `mandatory:"false" json:"contentLanguage"` // The content encoding of the object to upload. ContentEncoding *string `mandatory:"false" json:"contentEncoding"` // Arbitrary string keys and values for the user-defined metadata for the object. // Keys must be in "opc-meta-*" format. Avoid entering confidential information. Metadata map[string]string `mandatory:"false" json:"metadata"` }
CreateMultipartUploadDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (CreateMultipartUploadDetails) String ¶
func (m CreateMultipartUploadDetails) String() string
type CreateMultipartUploadRequest ¶
type CreateMultipartUploadRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // Request object for creating a multi-part upload. CreateMultipartUploadDetails `contributesTo:"body"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CreateMultipartUploadRequest wrapper for the CreateMultipartUpload operation
func (CreateMultipartUploadRequest) HTTPRequest ¶ added in v1.3.0
func (request CreateMultipartUploadRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateMultipartUploadRequest) RetryPolicy ¶ added in v1.3.0
func (request CreateMultipartUploadRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateMultipartUploadRequest) String ¶
func (request CreateMultipartUploadRequest) String() string
type CreateMultipartUploadResponse ¶
type CreateMultipartUploadResponse struct { // The underlying http response RawResponse *http.Response // The MultipartUpload instance MultipartUpload `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The full path to the new upload. Location *string `presentIn:"header" name:"location"` }
CreateMultipartUploadResponse wrapper for the CreateMultipartUpload operation
func (CreateMultipartUploadResponse) HTTPResponse ¶ added in v1.3.0
func (response CreateMultipartUploadResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateMultipartUploadResponse) String ¶
func (response CreateMultipartUploadResponse) String() string
type CreatePreauthenticatedRequestDetails ¶
type CreatePreauthenticatedRequestDetails struct { // A user-specified name for the pre-authenticated request. Helpful for management purposes. Name *string `mandatory:"true" json:"name"` // The operation that can be performed on this resource. AccessType CreatePreauthenticatedRequestDetailsAccessTypeEnum `mandatory:"true" json:"accessType"` // The expiration date for the pre-authenticated request as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid. TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` // The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is, the pre-authenticated request grants access to the entire bucket. ObjectName *string `mandatory:"false" json:"objectName"` }
CreatePreauthenticatedRequestDetails The representation of CreatePreauthenticatedRequestDetails
func (CreatePreauthenticatedRequestDetails) String ¶
func (m CreatePreauthenticatedRequestDetails) String() string
type CreatePreauthenticatedRequestDetailsAccessTypeEnum ¶
type CreatePreauthenticatedRequestDetailsAccessTypeEnum string
CreatePreauthenticatedRequestDetailsAccessTypeEnum Enum with underlying type: string
const ( CreatePreauthenticatedRequestDetailsAccessTypeObjectread CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectRead" CreatePreauthenticatedRequestDetailsAccessTypeObjectwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectWrite" CreatePreauthenticatedRequestDetailsAccessTypeObjectreadwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "ObjectReadWrite" CreatePreauthenticatedRequestDetailsAccessTypeAnyobjectwrite CreatePreauthenticatedRequestDetailsAccessTypeEnum = "AnyObjectWrite" )
Set of constants representing the allowable values for CreatePreauthenticatedRequestDetailsAccessTypeEnum
func GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues ¶
func GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues() []CreatePreauthenticatedRequestDetailsAccessTypeEnum
GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues Enumerates the set of values for CreatePreauthenticatedRequestDetailsAccessTypeEnum
type CreatePreauthenticatedRequestRequest ¶
type CreatePreauthenticatedRequestRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // Information needed to create the pre-authenticated request. CreatePreauthenticatedRequestDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
CreatePreauthenticatedRequestRequest wrapper for the CreatePreauthenticatedRequest operation
func (CreatePreauthenticatedRequestRequest) HTTPRequest ¶ added in v1.3.0
func (request CreatePreauthenticatedRequestRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreatePreauthenticatedRequestRequest) RetryPolicy ¶ added in v1.3.0
func (request CreatePreauthenticatedRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreatePreauthenticatedRequestRequest) String ¶
func (request CreatePreauthenticatedRequestRequest) String() string
type CreatePreauthenticatedRequestResponse ¶
type CreatePreauthenticatedRequestResponse struct { // The underlying http response RawResponse *http.Response // The PreauthenticatedRequest instance PreauthenticatedRequest `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
CreatePreauthenticatedRequestResponse wrapper for the CreatePreauthenticatedRequest operation
func (CreatePreauthenticatedRequestResponse) HTTPResponse ¶ added in v1.3.0
func (response CreatePreauthenticatedRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreatePreauthenticatedRequestResponse) String ¶
func (response CreatePreauthenticatedRequestResponse) String() string
type DeleteBucketRequest ¶
type DeleteBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
DeleteBucketRequest wrapper for the DeleteBucket operation
func (DeleteBucketRequest) HTTPRequest ¶ added in v1.3.0
func (request DeleteBucketRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteBucketRequest) RetryPolicy ¶ added in v1.3.0
func (request DeleteBucketRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteBucketRequest) String ¶
func (request DeleteBucketRequest) String() string
type DeleteBucketResponse ¶
type DeleteBucketResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
DeleteBucketResponse wrapper for the DeleteBucket operation
func (DeleteBucketResponse) HTTPResponse ¶ added in v1.3.0
func (response DeleteBucketResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteBucketResponse) String ¶
func (response DeleteBucketResponse) String() string
type DeleteObjectLifecyclePolicyRequest ¶
type DeleteObjectLifecyclePolicyRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
DeleteObjectLifecyclePolicyRequest wrapper for the DeleteObjectLifecyclePolicy operation
func (DeleteObjectLifecyclePolicyRequest) HTTPRequest ¶
func (request DeleteObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteObjectLifecyclePolicyRequest) RetryPolicy ¶
func (request DeleteObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteObjectLifecyclePolicyRequest) String ¶
func (request DeleteObjectLifecyclePolicyRequest) String() string
type DeleteObjectLifecyclePolicyResponse ¶
type DeleteObjectLifecyclePolicyResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` }
DeleteObjectLifecyclePolicyResponse wrapper for the DeleteObjectLifecyclePolicy operation
func (DeleteObjectLifecyclePolicyResponse) HTTPResponse ¶
func (response DeleteObjectLifecyclePolicyResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteObjectLifecyclePolicyResponse) String ¶
func (response DeleteObjectLifecyclePolicyResponse) String() string
type DeleteObjectRequest ¶
type DeleteObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
DeleteObjectRequest wrapper for the DeleteObject operation
func (DeleteObjectRequest) HTTPRequest ¶ added in v1.3.0
func (request DeleteObjectRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteObjectRequest) RetryPolicy ¶ added in v1.3.0
func (request DeleteObjectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteObjectRequest) String ¶
func (request DeleteObjectRequest) String() string
type DeleteObjectResponse ¶
type DeleteObjectResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The time the object was deleted, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` }
DeleteObjectResponse wrapper for the DeleteObject operation
func (DeleteObjectResponse) HTTPResponse ¶ added in v1.3.0
func (response DeleteObjectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteObjectResponse) String ¶
func (response DeleteObjectResponse) String() string
type DeletePreauthenticatedRequestRequest ¶
type DeletePreauthenticatedRequestRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The unique identifier for the pre-authenticated request. This can be used to manage operations against // the pre-authenticated request, such as GET or DELETE. ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
DeletePreauthenticatedRequestRequest wrapper for the DeletePreauthenticatedRequest operation
func (DeletePreauthenticatedRequestRequest) HTTPRequest ¶ added in v1.3.0
func (request DeletePreauthenticatedRequestRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeletePreauthenticatedRequestRequest) RetryPolicy ¶ added in v1.3.0
func (request DeletePreauthenticatedRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeletePreauthenticatedRequestRequest) String ¶
func (request DeletePreauthenticatedRequestRequest) String() string
type DeletePreauthenticatedRequestResponse ¶
type DeletePreauthenticatedRequestResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
DeletePreauthenticatedRequestResponse wrapper for the DeletePreauthenticatedRequest operation
func (DeletePreauthenticatedRequestResponse) HTTPResponse ¶ added in v1.3.0
func (response DeletePreauthenticatedRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeletePreauthenticatedRequestResponse) String ¶
func (response DeletePreauthenticatedRequestResponse) String() string
type GetBucketRequest ¶
type GetBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetBucketRequest wrapper for the GetBucket operation
func (GetBucketRequest) HTTPRequest ¶ added in v1.3.0
func (request GetBucketRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetBucketRequest) RetryPolicy ¶ added in v1.3.0
func (request GetBucketRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetBucketRequest) String ¶
func (request GetBucketRequest) String() string
type GetBucketResponse ¶
type GetBucketResponse struct { // The underlying http response RawResponse *http.Response // The Bucket instance Bucket `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The current entity tag for the bucket. ETag *string `presentIn:"header" name:"etag"` // Flag to indicate whether or not the object was modified. If this is true, // the getter for the object itself will return null. Callers should check this // if they specified one of the request params that might result in a conditional // response (like 'if-match'/'if-none-match'). IsNotModified bool }
GetBucketResponse wrapper for the GetBucket operation
func (GetBucketResponse) HTTPResponse ¶ added in v1.3.0
func (response GetBucketResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetBucketResponse) String ¶
func (response GetBucketResponse) String() string
type GetNamespaceMetadataRequest ¶ added in v1.1.0
type GetNamespaceMetadataRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetNamespaceMetadataRequest wrapper for the GetNamespaceMetadata operation
func (GetNamespaceMetadataRequest) HTTPRequest ¶ added in v1.3.0
func (request GetNamespaceMetadataRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetNamespaceMetadataRequest) RetryPolicy ¶ added in v1.3.0
func (request GetNamespaceMetadataRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetNamespaceMetadataRequest) String ¶ added in v1.1.0
func (request GetNamespaceMetadataRequest) String() string
type GetNamespaceMetadataResponse ¶ added in v1.1.0
type GetNamespaceMetadataResponse struct { // The underlying http response RawResponse *http.Response // The NamespaceMetadata instance NamespaceMetadata `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetNamespaceMetadataResponse wrapper for the GetNamespaceMetadata operation
func (GetNamespaceMetadataResponse) HTTPResponse ¶ added in v1.3.0
func (response GetNamespaceMetadataResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetNamespaceMetadataResponse) String ¶ added in v1.1.0
func (response GetNamespaceMetadataResponse) String() string
type GetNamespaceRequest ¶
type GetNamespaceRequest struct { // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetNamespaceRequest wrapper for the GetNamespace operation
func (GetNamespaceRequest) HTTPRequest ¶ added in v1.3.0
func (request GetNamespaceRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetNamespaceRequest) RetryPolicy ¶ added in v1.3.0
func (request GetNamespaceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetNamespaceRequest) String ¶
func (request GetNamespaceRequest) String() string
type GetNamespaceResponse ¶
type GetNamespaceResponse struct { // The underlying http response RawResponse *http.Response // The string instance Value *string `presentIn:"body"` }
GetNamespaceResponse wrapper for the GetNamespace operation
func (GetNamespaceResponse) HTTPResponse ¶ added in v1.3.0
func (response GetNamespaceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetNamespaceResponse) String ¶
func (response GetNamespaceResponse) String() string
type GetObjectArchivalStateEnum ¶ added in v1.1.0
type GetObjectArchivalStateEnum string
GetObjectArchivalStateEnum Enum with underlying type: string
const ( GetObjectArchivalStateAvailable GetObjectArchivalStateEnum = "AVAILABLE" GetObjectArchivalStateArchived GetObjectArchivalStateEnum = "ARCHIVED" GetObjectArchivalStateRestoring GetObjectArchivalStateEnum = "RESTORING" GetObjectArchivalStateRestored GetObjectArchivalStateEnum = "RESTORED" )
Set of constants representing the allowable values for GetObjectArchivalStateEnum
func GetGetObjectArchivalStateEnumValues ¶ added in v1.1.0
func GetGetObjectArchivalStateEnumValues() []GetObjectArchivalStateEnum
GetGetObjectArchivalStateEnumValues Enumerates the set of values for GetObjectArchivalStateEnum
type GetObjectLifecyclePolicyRequest ¶
type GetObjectLifecyclePolicyRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetObjectLifecyclePolicyRequest wrapper for the GetObjectLifecyclePolicy operation
func (GetObjectLifecyclePolicyRequest) HTTPRequest ¶
func (request GetObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetObjectLifecyclePolicyRequest) RetryPolicy ¶
func (request GetObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetObjectLifecyclePolicyRequest) String ¶
func (request GetObjectLifecyclePolicyRequest) String() string
type GetObjectLifecyclePolicyResponse ¶
type GetObjectLifecyclePolicyResponse struct { // The underlying http response RawResponse *http.Response // The ObjectLifecyclePolicy instance ObjectLifecyclePolicy `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // The entity tag for the object lifecycle policy. ETag *string `presentIn:"header" name:"etag"` }
GetObjectLifecyclePolicyResponse wrapper for the GetObjectLifecyclePolicy operation
func (GetObjectLifecyclePolicyResponse) HTTPResponse ¶
func (response GetObjectLifecyclePolicyResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetObjectLifecyclePolicyResponse) String ¶
func (response GetObjectLifecyclePolicyResponse) String() string
type GetObjectRequest ¶
type GetObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Optional byte range to fetch, as described in RFC 7233 (https://tools.ietf.org/rfc/rfc7233), section 2.1. // Note that only a single range of bytes is supported. Range *string `mandatory:"false" contributesTo:"header" name:"range"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetObjectRequest wrapper for the GetObject operation
func (GetObjectRequest) HTTPRequest ¶ added in v1.3.0
func (request GetObjectRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetObjectRequest) RetryPolicy ¶ added in v1.3.0
func (request GetObjectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetObjectRequest) String ¶
func (request GetObjectRequest) String() string
type GetObjectResponse ¶
type GetObjectResponse struct { // The underlying http response RawResponse *http.Response // The io.ReadCloser instance Content io.ReadCloser `presentIn:"body" encoding:"binary"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the object. ETag *string `presentIn:"header" name:"etag"` // The user-defined metadata for the object. OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` // The object size in bytes. ContentLength *int64 `presentIn:"header" name:"content-length"` // Content-Range header for range requests, per RFC 7233 (https://tools.ietf.org/rfc/rfc7233), section 4.2. ContentRange *string `presentIn:"header" name:"content-range"` // Content-MD5 header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.15. // Unavailable for objects uploaded using multipart upload. ContentMd5 *string `presentIn:"header" name:"content-md5"` // Only applicable to objects uploaded using multipart upload. // Base-64 representation of the multipart object hash. // The multipart object hash is calculated by taking the MD5 hashes of the parts, // concatenating the binary representation of those hashes in order of their part numbers, // and then calculating the MD5 hash of the concatenated values. OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` // Content-Type header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.17. ContentType *string `presentIn:"header" name:"content-type"` // Content-Language header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.12. ContentLanguage *string `presentIn:"header" name:"content-language"` // Content-Encoding header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.11. ContentEncoding *string `presentIn:"header" name:"content-encoding"` // The object modification time, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` // The current state of the object. ArchivalState GetObjectArchivalStateEnum `presentIn:"header" name:"archival-state"` // Time that the object is returned to the archived state. This field is only present for restored objects. TimeOfArchival *common.SDKTime `presentIn:"header" name:"time-of-archival"` // Flag to indicate whether or not the object was modified. If this is true, // the getter for the object itself will return null. Callers should check this // if they specified one of the request params that might result in a conditional // response (like 'if-match'/'if-none-match'). IsNotModified bool }
GetObjectResponse wrapper for the GetObject operation
func (GetObjectResponse) HTTPResponse ¶ added in v1.3.0
func (response GetObjectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetObjectResponse) String ¶
func (response GetObjectResponse) String() string
type GetPreauthenticatedRequestRequest ¶
type GetPreauthenticatedRequestRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The unique identifier for the pre-authenticated request. This can be used to manage operations against // the pre-authenticated request, such as GET or DELETE. ParId *string `mandatory:"true" contributesTo:"path" name:"parId"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetPreauthenticatedRequestRequest wrapper for the GetPreauthenticatedRequest operation
func (GetPreauthenticatedRequestRequest) HTTPRequest ¶ added in v1.3.0
func (request GetPreauthenticatedRequestRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetPreauthenticatedRequestRequest) RetryPolicy ¶ added in v1.3.0
func (request GetPreauthenticatedRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetPreauthenticatedRequestRequest) String ¶
func (request GetPreauthenticatedRequestRequest) String() string
type GetPreauthenticatedRequestResponse ¶
type GetPreauthenticatedRequestResponse struct { // The underlying http response RawResponse *http.Response // The PreauthenticatedRequestSummary instance PreauthenticatedRequestSummary `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetPreauthenticatedRequestResponse wrapper for the GetPreauthenticatedRequest operation
func (GetPreauthenticatedRequestResponse) HTTPResponse ¶ added in v1.3.0
func (response GetPreauthenticatedRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetPreauthenticatedRequestResponse) String ¶
func (response GetPreauthenticatedRequestResponse) String() string
type GetWorkRequestRequest ¶
type GetWorkRequestRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetWorkRequestRequest wrapper for the GetWorkRequest operation
func (GetWorkRequestRequest) HTTPRequest ¶
func (request GetWorkRequestRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetWorkRequestRequest) RetryPolicy ¶
func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetWorkRequestRequest) String ¶
func (request GetWorkRequestRequest) String() string
type GetWorkRequestResponse ¶
type GetWorkRequestResponse struct { // The underlying http response RawResponse *http.Response // The WorkRequest instance WorkRequest `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // some decimal number representing the number of seconds the client should wait before polling this endpoint again RetryAfter *float32 `presentIn:"header" name:"retry-after"` }
GetWorkRequestResponse wrapper for the GetWorkRequest operation
func (GetWorkRequestResponse) HTTPResponse ¶
func (response GetWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetWorkRequestResponse) String ¶
func (response GetWorkRequestResponse) String() string
type HeadBucketRequest ¶
type HeadBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
HeadBucketRequest wrapper for the HeadBucket operation
func (HeadBucketRequest) HTTPRequest ¶ added in v1.3.0
func (request HeadBucketRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (HeadBucketRequest) RetryPolicy ¶ added in v1.3.0
func (request HeadBucketRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (HeadBucketRequest) String ¶
func (request HeadBucketRequest) String() string
type HeadBucketResponse ¶
type HeadBucketResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The current entity tag for the bucket. ETag *string `presentIn:"header" name:"etag"` // Flag to indicate whether or not the object was modified. If this is true, // the getter for the object itself will return null. Callers should check this // if they specified one of the request params that might result in a conditional // response (like 'if-match'/'if-none-match'). IsNotModified bool }
HeadBucketResponse wrapper for the HeadBucket operation
func (HeadBucketResponse) HTTPResponse ¶ added in v1.3.0
func (response HeadBucketResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (HeadBucketResponse) String ¶
func (response HeadBucketResponse) String() string
type HeadObjectArchivalStateEnum ¶ added in v1.1.0
type HeadObjectArchivalStateEnum string
HeadObjectArchivalStateEnum Enum with underlying type: string
const ( HeadObjectArchivalStateAvailable HeadObjectArchivalStateEnum = "AVAILABLE" HeadObjectArchivalStateArchived HeadObjectArchivalStateEnum = "ARCHIVED" HeadObjectArchivalStateRestoring HeadObjectArchivalStateEnum = "RESTORING" HeadObjectArchivalStateRestored HeadObjectArchivalStateEnum = "RESTORED" )
Set of constants representing the allowable values for HeadObjectArchivalStateEnum
func GetHeadObjectArchivalStateEnumValues ¶ added in v1.1.0
func GetHeadObjectArchivalStateEnumValues() []HeadObjectArchivalStateEnum
GetHeadObjectArchivalStateEnumValues Enumerates the set of values for HeadObjectArchivalStateEnum
type HeadObjectRequest ¶
type HeadObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
HeadObjectRequest wrapper for the HeadObject operation
func (HeadObjectRequest) HTTPRequest ¶ added in v1.3.0
func (request HeadObjectRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (HeadObjectRequest) RetryPolicy ¶ added in v1.3.0
func (request HeadObjectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (HeadObjectRequest) String ¶
func (request HeadObjectRequest) String() string
type HeadObjectResponse ¶
type HeadObjectResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the object. ETag *string `presentIn:"header" name:"etag"` // The user-defined metadata for the object. OpcMeta map[string]string `presentIn:"header-collection" prefix:"opc-meta-"` // The object size in bytes. ContentLength *int64 `presentIn:"header" name:"content-length"` // Content-MD5 header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.15. // Unavailable for objects uploaded using multipart upload. ContentMd5 *string `presentIn:"header" name:"content-md5"` // Only applicable to objects uploaded using multipart upload. // Base-64 representation of the multipart object hash. // The multipart object hash is calculated by taking the MD5 hashes of the parts, // concatenating the binary representation of those hashes in order of their part numbers, // and then calculating the MD5 hash of the concatenated values. OpcMultipartMd5 *string `presentIn:"header" name:"opc-multipart-md5"` // Content-Type header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.17. ContentType *string `presentIn:"header" name:"content-type"` // Content-Language header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.12. ContentLanguage *string `presentIn:"header" name:"content-language"` // Content-Encoding header, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.11. ContentEncoding *string `presentIn:"header" name:"content-encoding"` // The object modification time, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` // The current state of the object. ArchivalState HeadObjectArchivalStateEnum `presentIn:"header" name:"archival-state"` // Time that the object is returned to the archived state. This field is only present for restored objects. TimeOfArchival *common.SDKTime `presentIn:"header" name:"time-of-archival"` // Flag to indicate whether or not the object was modified. If this is true, // the getter for the object itself will return null. Callers should check this // if they specified one of the request params that might result in a conditional // response (like 'if-match'/'if-none-match'). IsNotModified bool }
HeadObjectResponse wrapper for the HeadObject operation
func (HeadObjectResponse) HTTPResponse ¶ added in v1.3.0
func (response HeadObjectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (HeadObjectResponse) String ¶
func (response HeadObjectResponse) String() string
type ListBucketsFieldsEnum ¶ added in v1.2.0
type ListBucketsFieldsEnum string
ListBucketsFieldsEnum Enum with underlying type: string
const (
ListBucketsFieldsTags ListBucketsFieldsEnum = "tags"
)
Set of constants representing the allowable values for ListBucketsFieldsEnum
func GetListBucketsFieldsEnumValues ¶ added in v1.2.0
func GetListBucketsFieldsEnumValues() []ListBucketsFieldsEnum
GetListBucketsFieldsEnumValues Enumerates the set of values for ListBucketsFieldsEnum
type ListBucketsRequest ¶
type ListBucketsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The ID of the compartment in which to list buckets. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Bucket summary in list of buckets includes the 'namespace', 'name', 'compartmentId', 'createdBy', 'timeCreated', // and 'etag' fields. This parameter can also include 'tags' (freeformTags and definedTags). The only supported value // of this parameter is 'tags' for now. Example 'tags'. Fields []ListBucketsFieldsEnum `contributesTo:"query" name:"fields" omitEmpty:"true" collectionFormat:"csv"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListBucketsRequest wrapper for the ListBuckets operation
func (ListBucketsRequest) HTTPRequest ¶ added in v1.3.0
func (request ListBucketsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListBucketsRequest) RetryPolicy ¶ added in v1.3.0
func (request ListBucketsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListBucketsRequest) String ¶
func (request ListBucketsRequest) String() string
type ListBucketsResponse ¶
type ListBucketsResponse struct { // The underlying http response RawResponse *http.Response // A list of []BucketSummary instances Items []BucketSummary `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of `Bucket`s. If this header appears in the response, then this // is a partial list of buckets. Include this value as the `page` parameter in a subsequent // GET request to get the next batch of buckets. For information about pagination, see // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListBucketsResponse wrapper for the ListBuckets operation
func (ListBucketsResponse) HTTPResponse ¶ added in v1.3.0
func (response ListBucketsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListBucketsResponse) String ¶
func (response ListBucketsResponse) String() string
type ListMultipartUploadPartsRequest ¶
type ListMultipartUploadPartsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The upload ID for a multipart upload. UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListMultipartUploadPartsRequest wrapper for the ListMultipartUploadParts operation
func (ListMultipartUploadPartsRequest) HTTPRequest ¶ added in v1.3.0
func (request ListMultipartUploadPartsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListMultipartUploadPartsRequest) RetryPolicy ¶ added in v1.3.0
func (request ListMultipartUploadPartsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListMultipartUploadPartsRequest) String ¶
func (request ListMultipartUploadPartsRequest) String() string
type ListMultipartUploadPartsResponse ¶
type ListMultipartUploadPartsResponse struct { // The underlying http response RawResponse *http.Response // A list of []MultipartUploadPartSummary instances Items []MultipartUploadPartSummary `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of `MultipartUploadPartSummary`s. If this header appears in the response, // then this is a partial list of object parts. Include this value as the `page` parameter in a subsequent // GET request to get the next batch of object parts. For information about pagination, see // List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListMultipartUploadPartsResponse wrapper for the ListMultipartUploadParts operation
func (ListMultipartUploadPartsResponse) HTTPResponse ¶ added in v1.3.0
func (response ListMultipartUploadPartsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListMultipartUploadPartsResponse) String ¶
func (response ListMultipartUploadPartsResponse) String() string
type ListMultipartUploadsRequest ¶
type ListMultipartUploadsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListMultipartUploadsRequest wrapper for the ListMultipartUploads operation
func (ListMultipartUploadsRequest) HTTPRequest ¶ added in v1.3.0
func (request ListMultipartUploadsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListMultipartUploadsRequest) RetryPolicy ¶ added in v1.3.0
func (request ListMultipartUploadsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListMultipartUploadsRequest) String ¶
func (request ListMultipartUploadsRequest) String() string
type ListMultipartUploadsResponse ¶
type ListMultipartUploadsResponse struct { // The underlying http response RawResponse *http.Response // A list of []MultipartUpload instances Items []MultipartUpload `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of `MultipartUpload`s. If this header appears in the response, then // this is a partial list of multipart uploads. Include this value as the `page` parameter in a subsequent // GET request. For information about pagination, see List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListMultipartUploadsResponse wrapper for the ListMultipartUploads operation
func (ListMultipartUploadsResponse) HTTPResponse ¶ added in v1.3.0
func (response ListMultipartUploadsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListMultipartUploadsResponse) String ¶
func (response ListMultipartUploadsResponse) String() string
type ListObjects ¶
type ListObjects struct { // An array of object summaries. Objects []ObjectSummary `mandatory:"true" json:"objects"` // Prefixes that are common to the results returned by the request if the request specified a delimiter. Prefixes []string `mandatory:"false" json:"prefixes"` // The name of the object to use in the 'startWith' parameter to obtain the next page of // a truncated ListObjects response. Avoid entering confidential information. // Example: test/object1.log NextStartWith *string `mandatory:"false" json:"nextStartWith"` }
ListObjects To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (ListObjects) String ¶
func (m ListObjects) String() string
type ListObjectsRequest ¶
type ListObjectsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The string to use for matching against the start of object names in a list query. Prefix *string `mandatory:"false" contributesTo:"query" name:"prefix"` // Object names returned by a list query must be greater or equal to this parameter. Start *string `mandatory:"false" contributesTo:"query" name:"start"` // Object names returned by a list query must be strictly less than this parameter. End *string `mandatory:"false" contributesTo:"query" name:"end"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // When this parameter is set, only objects whose names do not contain the delimiter character // (after an optionally specified prefix) are returned in the objects key of the response body. // Scanned objects whose names contain the delimiter have the part of their name up to the first // occurrence of the delimiter (including the optional prefix) returned as a set of prefixes. // Note that only '/' is a supported delimiter character at this time. Delimiter *string `mandatory:"false" contributesTo:"query" name:"delimiter"` // Object summary in list of objects includes the 'name' field. This parameter can also include 'size' // (object size in bytes), 'md5', and 'timeCreated' (object creation date and time) fields. // Value of this parameter should be a comma-separated, case-insensitive list of those field names. // For example 'name,timeCreated,md5'. Fields *string `mandatory:"false" contributesTo:"query" name:"fields" omitEmpty:"true"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListObjectsRequest wrapper for the ListObjects operation
func (ListObjectsRequest) HTTPRequest ¶ added in v1.3.0
func (request ListObjectsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListObjectsRequest) RetryPolicy ¶ added in v1.3.0
func (request ListObjectsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListObjectsRequest) String ¶
func (request ListObjectsRequest) String() string
type ListObjectsResponse ¶
type ListObjectsResponse struct { // The underlying http response RawResponse *http.Response // The ListObjects instance ListObjects `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
ListObjectsResponse wrapper for the ListObjects operation
func (ListObjectsResponse) HTTPResponse ¶ added in v1.3.0
func (response ListObjectsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListObjectsResponse) String ¶
func (response ListObjectsResponse) String() string
type ListPreauthenticatedRequestsRequest ¶
type ListPreauthenticatedRequestsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // User-specified object name prefixes can be used to query and return a list of pre-authenticated requests. ObjectNamePrefix *string `mandatory:"false" contributesTo:"query" name:"objectNamePrefix"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListPreauthenticatedRequestsRequest wrapper for the ListPreauthenticatedRequests operation
func (ListPreauthenticatedRequestsRequest) HTTPRequest ¶ added in v1.3.0
func (request ListPreauthenticatedRequestsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListPreauthenticatedRequestsRequest) RetryPolicy ¶ added in v1.3.0
func (request ListPreauthenticatedRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListPreauthenticatedRequestsRequest) String ¶
func (request ListPreauthenticatedRequestsRequest) String() string
type ListPreauthenticatedRequestsResponse ¶
type ListPreauthenticatedRequestsResponse struct { // The underlying http response RawResponse *http.Response // A list of []PreauthenticatedRequestSummary instances Items []PreauthenticatedRequestSummary `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of pre-authenticated requests, if this header appears in the response, // then this is a partial list. Include this value as the `page` parameter in a subsequent // GET request to get the next batch of pre-authenticated requests. // For information about pagination, see List Pagination (https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListPreauthenticatedRequestsResponse wrapper for the ListPreauthenticatedRequests operation
func (ListPreauthenticatedRequestsResponse) HTTPResponse ¶ added in v1.3.0
func (response ListPreauthenticatedRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListPreauthenticatedRequestsResponse) String ¶
func (response ListPreauthenticatedRequestsResponse) String() string
type ListWorkRequestErrorsRequest ¶
type ListWorkRequestErrorsRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation
func (ListWorkRequestErrorsRequest) HTTPRequest ¶
func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestErrorsRequest) RetryPolicy ¶
func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestErrorsRequest) String ¶
func (request ListWorkRequestErrorsRequest) String() string
type ListWorkRequestErrorsResponse ¶
type ListWorkRequestErrorsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WorkRequestError instances Items []WorkRequestError `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.n OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` }
ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation
func (ListWorkRequestErrorsResponse) HTTPResponse ¶
func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestErrorsResponse) String ¶
func (response ListWorkRequestErrorsResponse) String() string
type ListWorkRequestLogsRequest ¶
type ListWorkRequestLogsRequest struct { // The ID of the asynchronous request. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation
func (ListWorkRequestLogsRequest) HTTPRequest ¶
func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestLogsRequest) RetryPolicy ¶
func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestLogsRequest) String ¶
func (request ListWorkRequestLogsRequest) String() string
type ListWorkRequestLogsResponse ¶
type ListWorkRequestLogsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WorkRequestLogEntry instances Items []WorkRequestLogEntry `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.n OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation
func (ListWorkRequestLogsResponse) HTTPResponse ¶
func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestLogsResponse) String ¶
func (response ListWorkRequestLogsResponse) String() string
type ListWorkRequestsRequest ¶
type ListWorkRequestsRequest struct { // The ID of the compartment in which to list buckets. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // The page at which to start retrieving results. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListWorkRequestsRequest wrapper for the ListWorkRequests operation
func (ListWorkRequestsRequest) HTTPRequest ¶
func (request ListWorkRequestsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListWorkRequestsRequest) RetryPolicy ¶
func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListWorkRequestsRequest) String ¶
func (request ListWorkRequestsRequest) String() string
type ListWorkRequestsResponse ¶
type ListWorkRequestsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WorkRequestSummary instances Items []WorkRequestSummary `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` }
ListWorkRequestsResponse wrapper for the ListWorkRequests operation
func (ListWorkRequestsResponse) HTTPResponse ¶
func (response ListWorkRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListWorkRequestsResponse) String ¶
func (response ListWorkRequestsResponse) String() string
type MultipartUpload ¶
type MultipartUpload struct { // The namespace in which the in-progress multipart upload is stored. Namespace *string `mandatory:"true" json:"namespace"` // The bucket in which the in-progress multipart upload is stored. Bucket *string `mandatory:"true" json:"bucket"` // The object name of the in-progress multipart upload. Object *string `mandatory:"true" json:"object"` // The unique identifier for the in-progress multipart upload. UploadId *string `mandatory:"true" json:"uploadId"` // The date and time the upload was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` }
MultipartUpload Multipart uploads provide efficient and resilient uploads, especially for large objects. Multipart uploads also accommodate objects that are too large for a single upload operation. With multipart uploads, individual parts of an object can be uploaded in parallel to reduce the amount of time you spend uploading. Multipart uploads can also minimize the impact of network failures by letting you retry a failed part upload instead of requiring you to retry an entire object upload. See Managing Multipart Uploads (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingmultipartuploads.htm). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (MultipartUpload) String ¶
func (m MultipartUpload) String() string
type MultipartUploadPartSummary ¶
type MultipartUploadPartSummary struct { // The current entity tag for the part. Etag *string `mandatory:"true" json:"etag"` // The MD5 hash of the bytes of the part. Md5 *string `mandatory:"true" json:"md5"` // The size of the part in bytes. Size *int64 `mandatory:"true" json:"size"` // The part number for this part. PartNumber *int `mandatory:"true" json:"partNumber"` }
MultipartUploadPartSummary Get summary information about multipart uploads. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (MultipartUploadPartSummary) String ¶
func (m MultipartUploadPartSummary) String() string
type NamespaceMetadata ¶ added in v1.1.0
type NamespaceMetadata struct { // The namespace to which the metadata belongs. Namespace *string `mandatory:"true" json:"namespace"` // The default compartment ID for an S3 client. DefaultS3CompartmentId *string `mandatory:"true" json:"defaultS3CompartmentId"` // The default compartment ID for a Swift client. DefaultSwiftCompartmentId *string `mandatory:"true" json:"defaultSwiftCompartmentId"` }
NamespaceMetadata A NamespaceMetadata is a map for storing namespace and defaultS3CompartmentId, defaultSwiftCompartmentId.
func (NamespaceMetadata) String ¶ added in v1.1.0
func (m NamespaceMetadata) String() string
type ObjectLifecyclePolicy ¶
type ObjectLifecyclePolicy struct { // The date and time the object lifecycle policy was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The live lifecycle policy on the bucket. // For an example of this value, see the // PutObjectLifecyclePolicy API documentation (https://docs.us-phoenix-1.oraclecloud.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/PutObjectLifecyclePolicy). Items []ObjectLifecycleRule `mandatory:"false" json:"items"` }
ObjectLifecyclePolicy The collection of lifecycle policy rules that together form the object lifecycle policy of a given bucket.
func (ObjectLifecyclePolicy) String ¶
func (m ObjectLifecyclePolicy) String() string
type ObjectLifecycleRule ¶
type ObjectLifecycleRule struct { // The name of the lifecycle rule to be applied. Name *string `mandatory:"true" json:"name"` // The action of the object lifecycle policy rule. Rules using the action 'ARCHIVE' move objects into the // Archival Storage tier (https://docs.us-phoenix-1.oraclecloud.com/Content/Archive/Concepts/archivestorageoverview.htm). Rules using the action // 'DELETE' permanently delete objects from buckets. 'ARCHIVE' and 'DELETE' are the only two supported // actions at this time. Action *string `mandatory:"true" json:"action"` // Specifies the age of objects to apply the rule to. The timeAmount is interpreted in units defined by the // timeUnit parameter, and is calculated in relation to each object's Last-Modified time. TimeAmount *int64 `mandatory:"true" json:"timeAmount"` // The unit that should be used to interpret timeAmount. Days are defined as starting and ending at midnight UTC. // Years are defined as 365.2425 days long and likewise round up to the next midnight UTC. TimeUnit ObjectLifecycleRuleTimeUnitEnum `mandatory:"true" json:"timeUnit"` // A boolean that determines whether this rule is currently enabled. IsEnabled *bool `mandatory:"true" json:"isEnabled"` // A filter limiting object names that the rule will apply to. ObjectNameFilter *ObjectNameFilter `mandatory:"false" json:"objectNameFilter"` }
ObjectLifecycleRule To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (ObjectLifecycleRule) String ¶
func (m ObjectLifecycleRule) String() string
type ObjectLifecycleRuleTimeUnitEnum ¶
type ObjectLifecycleRuleTimeUnitEnum string
ObjectLifecycleRuleTimeUnitEnum Enum with underlying type: string
const ( ObjectLifecycleRuleTimeUnitDays ObjectLifecycleRuleTimeUnitEnum = "DAYS" ObjectLifecycleRuleTimeUnitYears ObjectLifecycleRuleTimeUnitEnum = "YEARS" )
Set of constants representing the allowable values for ObjectLifecycleRuleTimeUnitEnum
func GetObjectLifecycleRuleTimeUnitEnumValues ¶
func GetObjectLifecycleRuleTimeUnitEnumValues() []ObjectLifecycleRuleTimeUnitEnum
GetObjectLifecycleRuleTimeUnitEnumValues Enumerates the set of values for ObjectLifecycleRuleTimeUnitEnum
type ObjectNameFilter ¶
type ObjectNameFilter struct { // An array of object name prefixes that the rule will apply to. An empty array means to include all objects. InclusionPrefixes []string `mandatory:"false" json:"inclusionPrefixes"` }
ObjectNameFilter A filter that compares object names to a set of object name prefixes to determine if a rule applies to a given object.
func (ObjectNameFilter) String ¶
func (m ObjectNameFilter) String() string
type ObjectStorageClient ¶
type ObjectStorageClient struct { common.BaseClient // contains filtered or unexported fields }
ObjectStorageClient a client for ObjectStorage
func NewObjectStorageClientWithConfigurationProvider ¶
func NewObjectStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ObjectStorageClient, err error)
NewObjectStorageClientWithConfigurationProvider Creates a new default ObjectStorage client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func (ObjectStorageClient) AbortMultipartUpload ¶
func (client ObjectStorageClient) AbortMultipartUpload(ctx context.Context, request AbortMultipartUploadRequest) (response AbortMultipartUploadResponse, err error)
AbortMultipartUpload Aborts an in-progress multipart upload and deletes all parts that have been uploaded.
func (ObjectStorageClient) CancelWorkRequest ¶
func (client ObjectStorageClient) CancelWorkRequest(ctx context.Context, request CancelWorkRequestRequest) (response CancelWorkRequestResponse, err error)
CancelWorkRequest Cancel a work request.
func (ObjectStorageClient) CommitMultipartUpload ¶
func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, request CommitMultipartUploadRequest) (response CommitMultipartUploadResponse, err error)
CommitMultipartUpload Commits a multipart upload, which involves checking part numbers and ETags of the parts, to create an aggregate object.
func (*ObjectStorageClient) ConfigurationProvider ¶
func (client *ObjectStorageClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (ObjectStorageClient) CopyObject ¶
func (client ObjectStorageClient) CopyObject(ctx context.Context, request CopyObjectRequest) (response CopyObjectResponse, err error)
CopyObject Create a request for copy object within or cross region
func (ObjectStorageClient) CreateBucket ¶
func (client ObjectStorageClient) CreateBucket(ctx context.Context, request CreateBucketRequest) (response CreateBucketResponse, err error)
CreateBucket Creates a bucket in the given namespace with a bucket name and optional user-defined metadata.
func (ObjectStorageClient) CreateMultipartUpload ¶
func (client ObjectStorageClient) CreateMultipartUpload(ctx context.Context, request CreateMultipartUploadRequest) (response CreateMultipartUploadResponse, err error)
CreateMultipartUpload Starts a new multipart upload to a specific object in the given bucket in the given namespace.
func (ObjectStorageClient) CreatePreauthenticatedRequest ¶
func (client ObjectStorageClient) CreatePreauthenticatedRequest(ctx context.Context, request CreatePreauthenticatedRequestRequest) (response CreatePreauthenticatedRequestResponse, err error)
CreatePreauthenticatedRequest Creates a pre-authenticated request specific to the bucket.
func (ObjectStorageClient) DeleteBucket ¶
func (client ObjectStorageClient) DeleteBucket(ctx context.Context, request DeleteBucketRequest) (response DeleteBucketResponse, err error)
DeleteBucket Deletes a bucket if it is already empty. If the bucket is not empty, use DeleteObject first.
func (ObjectStorageClient) DeleteObject ¶
func (client ObjectStorageClient) DeleteObject(ctx context.Context, request DeleteObjectRequest) (response DeleteObjectResponse, err error)
DeleteObject Deletes an object.
func (ObjectStorageClient) DeleteObjectLifecyclePolicy ¶
func (client ObjectStorageClient) DeleteObjectLifecyclePolicy(ctx context.Context, request DeleteObjectLifecyclePolicyRequest) (response DeleteObjectLifecyclePolicyResponse, err error)
DeleteObjectLifecyclePolicy Deletes the object lifecycle policy for the bucket.
func (ObjectStorageClient) DeletePreauthenticatedRequest ¶
func (client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Context, request DeletePreauthenticatedRequestRequest) (response DeletePreauthenticatedRequestResponse, err error)
DeletePreauthenticatedRequest Deletes the pre-authenticated request for the bucket.
func (ObjectStorageClient) GetBucket ¶
func (client ObjectStorageClient) GetBucket(ctx context.Context, request GetBucketRequest) (response GetBucketResponse, err error)
GetBucket Gets the current representation of the given bucket in the given namespace.
func (ObjectStorageClient) GetNamespace ¶
func (client ObjectStorageClient) GetNamespace(ctx context.Context, request GetNamespaceRequest) (response GetNamespaceResponse, err error)
GetNamespace Gets the name of the namespace for the user making the request.
func (ObjectStorageClient) GetNamespaceMetadata ¶ added in v1.1.0
func (client ObjectStorageClient) GetNamespaceMetadata(ctx context.Context, request GetNamespaceMetadataRequest) (response GetNamespaceMetadataResponse, err error)
GetNamespaceMetadata Get the metadata for the namespace, which contains defaultS3CompartmentId and defaultSwiftCompartmentId. Any user with the NAMESPACE_READ permission will be able to see the current metadata. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (ObjectStorageClient) GetObject ¶
func (client ObjectStorageClient) GetObject(ctx context.Context, request GetObjectRequest) (response GetObjectResponse, err error)
GetObject Gets the metadata and body of an object.
func (ObjectStorageClient) GetObjectLifecyclePolicy ¶
func (client ObjectStorageClient) GetObjectLifecyclePolicy(ctx context.Context, request GetObjectLifecyclePolicyRequest) (response GetObjectLifecyclePolicyResponse, err error)
GetObjectLifecyclePolicy Gets the object lifecycle policy for the bucket.
func (ObjectStorageClient) GetPreauthenticatedRequest ¶
func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, err error)
GetPreauthenticatedRequest Gets the pre-authenticated request for the bucket.
func (ObjectStorageClient) GetWorkRequest ¶
func (client ObjectStorageClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error)
GetWorkRequest Gets the status of the work request with the given ID.
func (ObjectStorageClient) HeadBucket ¶
func (client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBucketRequest) (response HeadBucketResponse, err error)
HeadBucket Efficiently checks to see if a bucket exists and gets the current ETag for the bucket.
func (ObjectStorageClient) HeadObject ¶
func (client ObjectStorageClient) HeadObject(ctx context.Context, request HeadObjectRequest) (response HeadObjectResponse, err error)
HeadObject Gets the user-defined metadata and entity tag for an object.
func (ObjectStorageClient) ListBuckets ¶
func (client ObjectStorageClient) ListBuckets(ctx context.Context, request ListBucketsRequest) (response ListBucketsResponse, err error)
ListBuckets Gets a list of all `BucketSummary`s in a compartment. A `BucketSummary` contains only summary fields for the bucket and does not contain fields like the user-defined metadata. To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (ObjectStorageClient) ListMultipartUploadParts ¶
func (client ObjectStorageClient) ListMultipartUploadParts(ctx context.Context, request ListMultipartUploadPartsRequest) (response ListMultipartUploadPartsResponse, err error)
ListMultipartUploadParts Lists the parts of an in-progress multipart upload.
func (ObjectStorageClient) ListMultipartUploads ¶
func (client ObjectStorageClient) ListMultipartUploads(ctx context.Context, request ListMultipartUploadsRequest) (response ListMultipartUploadsResponse, err error)
ListMultipartUploads Lists all in-progress multipart uploads for the given bucket in the given namespace.
func (ObjectStorageClient) ListObjects ¶
func (client ObjectStorageClient) ListObjects(ctx context.Context, request ListObjectsRequest) (response ListObjectsResponse, err error)
ListObjects Lists the objects in a bucket. To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (ObjectStorageClient) ListPreauthenticatedRequests ¶
func (client ObjectStorageClient) ListPreauthenticatedRequests(ctx context.Context, request ListPreauthenticatedRequestsRequest) (response ListPreauthenticatedRequestsResponse, err error)
ListPreauthenticatedRequests Lists pre-authenticated requests for the bucket.
func (ObjectStorageClient) ListWorkRequestErrors ¶
func (client ObjectStorageClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error)
ListWorkRequestErrors Lists the errors of the work request with the given ID.
func (ObjectStorageClient) ListWorkRequestLogs ¶
func (client ObjectStorageClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error)
ListWorkRequestLogs Lists the logs of the work request with the given ID.
func (ObjectStorageClient) ListWorkRequests ¶
func (client ObjectStorageClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error)
ListWorkRequests Lists the work requests in a compartment.
func (ObjectStorageClient) PutObject ¶
func (client ObjectStorageClient) PutObject(ctx context.Context, request PutObjectRequest) (response PutObjectResponse, err error)
PutObject Creates a new object or overwrites an existing one.
func (ObjectStorageClient) PutObjectLifecyclePolicy ¶
func (client ObjectStorageClient) PutObjectLifecyclePolicy(ctx context.Context, request PutObjectLifecyclePolicyRequest) (response PutObjectLifecyclePolicyResponse, err error)
PutObjectLifecyclePolicy Creates or replaces the object lifecycle policy for the bucket.
func (ObjectStorageClient) RenameObject ¶ added in v1.1.0
func (client ObjectStorageClient) RenameObject(ctx context.Context, request RenameObjectRequest) (response RenameObjectResponse, err error)
RenameObject Rename an object from source key to target key in the given namespace.
func (ObjectStorageClient) RestoreObjects ¶ added in v1.1.0
func (client ObjectStorageClient) RestoreObjects(ctx context.Context, request RestoreObjectsRequest) (response RestoreObjectsResponse, err error)
RestoreObjects Restore one or more objects specified by the objectName parameter. By default objects will be restored for 24 hours. Duration can be configured using the hours parameter.
func (*ObjectStorageClient) SetRegion ¶
func (client *ObjectStorageClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (ObjectStorageClient) UpdateBucket ¶
func (client ObjectStorageClient) UpdateBucket(ctx context.Context, request UpdateBucketRequest) (response UpdateBucketResponse, err error)
UpdateBucket Performs a partial or full update of a bucket's user-defined metadata.
func (ObjectStorageClient) UpdateNamespaceMetadata ¶ added in v1.1.0
func (client ObjectStorageClient) UpdateNamespaceMetadata(ctx context.Context, request UpdateNamespaceMetadataRequest) (response UpdateNamespaceMetadataResponse, err error)
UpdateNamespaceMetadata Change the default Swift/S3 compartmentId of user's namespace into the user-defined compartmentId. Upon doing this, all subsequent bucket creations will use the new default compartment, but no previously created buckets will be modified. A user must have the NAMESPACE_UPDATE permission to make changes to the default compartments for S3 and Swift.
func (ObjectStorageClient) UploadPart ¶
func (client ObjectStorageClient) UploadPart(ctx context.Context, request UploadPartRequest) (response UploadPartResponse, err error)
UploadPart Uploads a single part of a multipart upload.
type ObjectSummary ¶
type ObjectSummary struct { // The name of the object. Avoid entering confidential information. // Example: test/object1.log Name *string `mandatory:"true" json:"name"` // Size of the object in bytes. Size *int64 `mandatory:"false" json:"size"` // Base64-encoded MD5 hash of the object data. Md5 *string `mandatory:"false" json:"md5"` // The date and time the object was created, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` }
ObjectSummary To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (ObjectSummary) String ¶
func (m ObjectSummary) String() string
type PreauthenticatedRequest ¶
type PreauthenticatedRequest struct { // The unique identifier to use when directly addressing the pre-authenticated request. Id *string `mandatory:"true" json:"id"` // The user-provided name of the pre-authenticated request. Name *string `mandatory:"true" json:"name"` // The URI to embed in the URL when using the pre-authenticated request. AccessUri *string `mandatory:"true" json:"accessUri"` // The operation that can be performed on this resource. AccessType PreauthenticatedRequestAccessTypeEnum `mandatory:"true" json:"accessType"` // The expiration date for the pre-authenticated request as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid. TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` // The date when the pre-authenticated request was created as per specification // RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The name of the object that is being granted access to by the pre-authenticated request. This can be null and // if so, the pre-authenticated request grants access to the entire bucket. Avoid entering confidential information. // Example: test/object1.log ObjectName *string `mandatory:"false" json:"objectName"` }
PreauthenticatedRequest Pre-authenticated requests provide a way to let users access a bucket or an object without having their own credentials. When you create a pre-authenticated request, a unique URL is generated. Users in your organization, partners, or third parties can use this URL to access the targets identified in the pre-authenticated request. See Managing Access to Buckets and Objects (https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm). To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (PreauthenticatedRequest) String ¶
func (m PreauthenticatedRequest) String() string
type PreauthenticatedRequestAccessTypeEnum ¶
type PreauthenticatedRequestAccessTypeEnum string
PreauthenticatedRequestAccessTypeEnum Enum with underlying type: string
const ( PreauthenticatedRequestAccessTypeObjectread PreauthenticatedRequestAccessTypeEnum = "ObjectRead" PreauthenticatedRequestAccessTypeObjectwrite PreauthenticatedRequestAccessTypeEnum = "ObjectWrite" PreauthenticatedRequestAccessTypeObjectreadwrite PreauthenticatedRequestAccessTypeEnum = "ObjectReadWrite" PreauthenticatedRequestAccessTypeAnyobjectwrite PreauthenticatedRequestAccessTypeEnum = "AnyObjectWrite" )
Set of constants representing the allowable values for PreauthenticatedRequestAccessTypeEnum
func GetPreauthenticatedRequestAccessTypeEnumValues ¶
func GetPreauthenticatedRequestAccessTypeEnumValues() []PreauthenticatedRequestAccessTypeEnum
GetPreauthenticatedRequestAccessTypeEnumValues Enumerates the set of values for PreauthenticatedRequestAccessTypeEnum
type PreauthenticatedRequestSummary ¶
type PreauthenticatedRequestSummary struct { // The unique identifier to use when directly addressing the pre-authenticated request. Id *string `mandatory:"true" json:"id"` // The user-provided name of the pre-authenticated request. Name *string `mandatory:"true" json:"name"` // The operation that can be performed on this resource. AccessType PreauthenticatedRequestSummaryAccessTypeEnum `mandatory:"true" json:"accessType"` // The expiration date for the pre-authenticated request as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). After this date the pre-authenticated request will no longer be valid. TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` // The date when the pre-authenticated request was created as per RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The name of object that is being granted access to by the pre-authenticated request. This can be null and if it is, the pre-authenticated request grants access to the entire bucket. ObjectName *string `mandatory:"false" json:"objectName"` }
PreauthenticatedRequestSummary Get summary information about pre-authenticated requests.
func (PreauthenticatedRequestSummary) String ¶
func (m PreauthenticatedRequestSummary) String() string
type PreauthenticatedRequestSummaryAccessTypeEnum ¶
type PreauthenticatedRequestSummaryAccessTypeEnum string
PreauthenticatedRequestSummaryAccessTypeEnum Enum with underlying type: string
const ( PreauthenticatedRequestSummaryAccessTypeObjectread PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectRead" PreauthenticatedRequestSummaryAccessTypeObjectwrite PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectWrite" PreauthenticatedRequestSummaryAccessTypeObjectreadwrite PreauthenticatedRequestSummaryAccessTypeEnum = "ObjectReadWrite" PreauthenticatedRequestSummaryAccessTypeAnyobjectwrite PreauthenticatedRequestSummaryAccessTypeEnum = "AnyObjectWrite" )
Set of constants representing the allowable values for PreauthenticatedRequestSummaryAccessTypeEnum
func GetPreauthenticatedRequestSummaryAccessTypeEnumValues ¶
func GetPreauthenticatedRequestSummaryAccessTypeEnumValues() []PreauthenticatedRequestSummaryAccessTypeEnum
GetPreauthenticatedRequestSummaryAccessTypeEnumValues Enumerates the set of values for PreauthenticatedRequestSummaryAccessTypeEnum
type PutObjectLifecyclePolicyDetails ¶
type PutObjectLifecyclePolicyDetails struct { // The bucket's set of lifecycle policy rules. Items []ObjectLifecycleRule `mandatory:"false" json:"items"` }
PutObjectLifecyclePolicyDetails Creates a new object lifecycle policy for a bucket.
func (PutObjectLifecyclePolicyDetails) String ¶
func (m PutObjectLifecyclePolicyDetails) String() string
type PutObjectLifecyclePolicyRequest ¶
type PutObjectLifecyclePolicyRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The lifecycle policy to apply to the bucket. PutObjectLifecyclePolicyDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
PutObjectLifecyclePolicyRequest wrapper for the PutObjectLifecyclePolicy operation
func (PutObjectLifecyclePolicyRequest) HTTPRequest ¶
func (request PutObjectLifecyclePolicyRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (PutObjectLifecyclePolicyRequest) RetryPolicy ¶
func (request PutObjectLifecyclePolicyRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (PutObjectLifecyclePolicyRequest) String ¶
func (request PutObjectLifecyclePolicyRequest) String() string
type PutObjectLifecyclePolicyResponse ¶
type PutObjectLifecyclePolicyResponse struct { // The underlying http response RawResponse *http.Response // The ObjectLifecyclePolicy instance ObjectLifecyclePolicy `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, // provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // The entity tag for the object lifecycle policy. ETag *string `presentIn:"header" name:"etag"` }
PutObjectLifecyclePolicyResponse wrapper for the PutObjectLifecyclePolicy operation
func (PutObjectLifecyclePolicyResponse) HTTPResponse ¶
func (response PutObjectLifecyclePolicyResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (PutObjectLifecyclePolicyResponse) String ¶
func (response PutObjectLifecyclePolicyResponse) String() string
type PutObjectRequest ¶
type PutObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The content length of the body. ContentLength *int64 `mandatory:"true" contributesTo:"header" name:"Content-Length"` // The object to upload to the object store. PutObjectBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // 100-continue Expect *string `mandatory:"false" contributesTo:"header" name:"Expect"` // The base-64 encoded MD5 hash of the body. ContentMD5 *string `mandatory:"false" contributesTo:"header" name:"Content-MD5"` // The content type of the object. Defaults to 'application/octet-stream' if not overridden during the PutObject call. ContentType *string `mandatory:"false" contributesTo:"header" name:"Content-Type"` // The content language of the object. ContentLanguage *string `mandatory:"false" contributesTo:"header" name:"Content-Language"` // The content encoding of the object. ContentEncoding *string `mandatory:"false" contributesTo:"header" name:"Content-Encoding"` // Optional user-defined metadata key and value. OpcMeta map[string]string `mandatory:"false" contributesTo:"header-collection" prefix:"opc-meta-"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
PutObjectRequest wrapper for the PutObject operation
func (PutObjectRequest) HTTPRequest ¶ added in v1.3.0
func (request PutObjectRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (PutObjectRequest) RetryPolicy ¶ added in v1.3.0
func (request PutObjectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (PutObjectRequest) String ¶
func (request PutObjectRequest) String() string
type PutObjectResponse ¶
type PutObjectResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The base-64 encoded MD5 hash of the request body as computed by the server. OpcContentMd5 *string `presentIn:"header" name:"opc-content-md5"` // The entity tag for the object. ETag *string `presentIn:"header" name:"etag"` // The time the object was modified, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` }
PutObjectResponse wrapper for the PutObject operation
func (PutObjectResponse) HTTPResponse ¶ added in v1.3.0
func (response PutObjectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (PutObjectResponse) String ¶
func (response PutObjectResponse) String() string
type RenameObjectDetails ¶ added in v1.1.0
type RenameObjectDetails struct { // The name of the source object to be renamed. SourceName *string `mandatory:"true" json:"sourceName"` // The new name of the source object. NewName *string `mandatory:"true" json:"newName"` // The if-match entity tag of the source object. SrcObjIfMatchETag *string `mandatory:"false" json:"srcObjIfMatchETag"` // The if-match entity tag of the new object. NewObjIfMatchETag *string `mandatory:"false" json:"newObjIfMatchETag"` // The if-none-match entity tag of the new object. NewObjIfNoneMatchETag *string `mandatory:"false" json:"newObjIfNoneMatchETag"` }
RenameObjectDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (RenameObjectDetails) String ¶ added in v1.1.0
func (m RenameObjectDetails) String() string
type RenameObjectRequest ¶ added in v1.1.0
type RenameObjectRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The sourceName and newName of rename operation. RenameObjectDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
RenameObjectRequest wrapper for the RenameObject operation
func (RenameObjectRequest) HTTPRequest ¶ added in v1.3.0
func (request RenameObjectRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (RenameObjectRequest) RetryPolicy ¶ added in v1.3.0
func (request RenameObjectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (RenameObjectRequest) String ¶ added in v1.1.0
func (request RenameObjectRequest) String() string
type RenameObjectResponse ¶ added in v1.1.0
type RenameObjectResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the object. ETag *string `presentIn:"header" name:"etag"` // The time the object was modified, as described in RFC 2616 (https://tools.ietf.org/rfc/rfc2616), section 14.29. LastModified *common.SDKTime `presentIn:"header" name:"last-modified"` }
RenameObjectResponse wrapper for the RenameObject operation
func (RenameObjectResponse) HTTPResponse ¶ added in v1.3.0
func (response RenameObjectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (RenameObjectResponse) String ¶ added in v1.1.0
func (response RenameObjectResponse) String() string
type RestoreObjectsDetails ¶ added in v1.1.0
type RestoreObjectsDetails struct { // An object which is in archive-tier storage and needs to be restored. ObjectName *string `mandatory:"true" json:"objectName"` // The number of hours for which this object will be restored. // By default objects will be restored for 24 hours. Duration can be configured using the hours parameter. Hours *int `mandatory:"false" json:"hours"` }
RestoreObjectsDetails The representation of RestoreObjectsDetails
func (RestoreObjectsDetails) String ¶ added in v1.1.0
func (m RestoreObjectsDetails) String() string
type RestoreObjectsRequest ¶ added in v1.1.0
type RestoreObjectsRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // Request to restore objects. RestoreObjectsDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
RestoreObjectsRequest wrapper for the RestoreObjects operation
func (RestoreObjectsRequest) HTTPRequest ¶ added in v1.3.0
func (request RestoreObjectsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (RestoreObjectsRequest) RetryPolicy ¶ added in v1.3.0
func (request RestoreObjectsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (RestoreObjectsRequest) String ¶ added in v1.1.0
func (request RestoreObjectsRequest) String() string
type RestoreObjectsResponse ¶ added in v1.1.0
type RestoreObjectsResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
RestoreObjectsResponse wrapper for the RestoreObjects operation
func (RestoreObjectsResponse) HTTPResponse ¶ added in v1.3.0
func (response RestoreObjectsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (RestoreObjectsResponse) String ¶ added in v1.1.0
func (response RestoreObjectsResponse) String() string
type UpdateBucketDetails ¶
type UpdateBucketDetails struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"false" json:"namespace"` // The compartmentId for the compartment to which the bucket is targeted to move to. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The name of the bucket. Avoid entering confidential information. // Example: my-new-bucket1 Name *string `mandatory:"false" json:"name"` // Arbitrary string, up to 4KB, of keys and values for user-defined metadata. Metadata map[string]string `mandatory:"false" json:"metadata"` // The type of public access enabled on this bucket. A bucket is set to `NoPublicAccess` by default, which only allows an // authenticated caller to access the bucket and its contents. When `ObjectRead` is enabled on the bucket, public access // is allowed for the `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled // on the bucket, public access is allowed for the `GetObject` and `HeadObject` operations. PublicAccessType UpdateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}} DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // A KMS key OCID that will be associated with the given bucket. If it is empty the Update operation will // actually remove the KMS key, if there is one, from the given bucket. Please note, the old kms key should // still be enbaled in KMS otherwise all the objects in the bucket encrypted with the old KMS key will no // longer accessible. KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` }
UpdateBucketDetails To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
func (UpdateBucketDetails) String ¶
func (m UpdateBucketDetails) String() string
type UpdateBucketDetailsPublicAccessTypeEnum ¶
type UpdateBucketDetailsPublicAccessTypeEnum string
UpdateBucketDetailsPublicAccessTypeEnum Enum with underlying type: string
const ( UpdateBucketDetailsPublicAccessTypeNopublicaccess UpdateBucketDetailsPublicAccessTypeEnum = "NoPublicAccess" UpdateBucketDetailsPublicAccessTypeObjectread UpdateBucketDetailsPublicAccessTypeEnum = "ObjectRead" UpdateBucketDetailsPublicAccessTypeObjectreadwithoutlist UpdateBucketDetailsPublicAccessTypeEnum = "ObjectReadWithoutList" )
Set of constants representing the allowable values for UpdateBucketDetailsPublicAccessTypeEnum
func GetUpdateBucketDetailsPublicAccessTypeEnumValues ¶
func GetUpdateBucketDetailsPublicAccessTypeEnumValues() []UpdateBucketDetailsPublicAccessTypeEnum
GetUpdateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for UpdateBucketDetailsPublicAccessTypeEnum
type UpdateBucketRequest ¶
type UpdateBucketRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // Request object for updating a bucket. UpdateBucketDetails `contributesTo:"body"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
UpdateBucketRequest wrapper for the UpdateBucket operation
func (UpdateBucketRequest) HTTPRequest ¶ added in v1.3.0
func (request UpdateBucketRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateBucketRequest) RetryPolicy ¶ added in v1.3.0
func (request UpdateBucketRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateBucketRequest) String ¶
func (request UpdateBucketRequest) String() string
type UpdateBucketResponse ¶
type UpdateBucketResponse struct { // The underlying http response RawResponse *http.Response // The Bucket instance Bucket `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The entity tag for the updated bucket. ETag *string `presentIn:"header" name:"etag"` }
UpdateBucketResponse wrapper for the UpdateBucket operation
func (UpdateBucketResponse) HTTPResponse ¶ added in v1.3.0
func (response UpdateBucketResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateBucketResponse) String ¶
func (response UpdateBucketResponse) String() string
type UpdateNamespaceMetadataDetails ¶ added in v1.1.0
type UpdateNamespaceMetadataDetails struct { // The update compartment id for an S3 client if this field is set. DefaultS3CompartmentId *string `mandatory:"false" json:"defaultS3CompartmentId"` // The update compartment id for a Swift client if this field is set. DefaultSwiftCompartmentId *string `mandatory:"false" json:"defaultSwiftCompartmentId"` }
UpdateNamespaceMetadataDetails An UpdateNamespaceMetadataDetails is used for update NamespaceMetadata. To be able to upate the NamespaceMetadata, a user
must have NAMESPACE_UPDATE permission.
func (UpdateNamespaceMetadataDetails) String ¶ added in v1.1.0
func (m UpdateNamespaceMetadataDetails) String() string
type UpdateNamespaceMetadataRequest ¶ added in v1.1.0
type UpdateNamespaceMetadataRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // Request object for update NamespaceMetadata. UpdateNamespaceMetadataDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
UpdateNamespaceMetadataRequest wrapper for the UpdateNamespaceMetadata operation
func (UpdateNamespaceMetadataRequest) HTTPRequest ¶ added in v1.3.0
func (request UpdateNamespaceMetadataRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateNamespaceMetadataRequest) RetryPolicy ¶ added in v1.3.0
func (request UpdateNamespaceMetadataRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateNamespaceMetadataRequest) String ¶ added in v1.1.0
func (request UpdateNamespaceMetadataRequest) String() string
type UpdateNamespaceMetadataResponse ¶ added in v1.1.0
type UpdateNamespaceMetadataResponse struct { // The underlying http response RawResponse *http.Response // The NamespaceMetadata instance NamespaceMetadata `presentIn:"body"` // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
UpdateNamespaceMetadataResponse wrapper for the UpdateNamespaceMetadata operation
func (UpdateNamespaceMetadataResponse) HTTPResponse ¶ added in v1.3.0
func (response UpdateNamespaceMetadataResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateNamespaceMetadataResponse) String ¶ added in v1.1.0
func (response UpdateNamespaceMetadataResponse) String() string
type UploadPartRequest ¶
type UploadPartRequest struct { // The top-level namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` // The name of the bucket. Avoid entering confidential information. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. Avoid entering confidential information. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The upload ID for a multipart upload. UploadId *string `mandatory:"true" contributesTo:"query" name:"uploadId"` // The part number that identifies the object part currently being uploaded. UploadPartNum *int `mandatory:"true" contributesTo:"query" name:"uploadPartNum"` // The content length of the body. ContentLength *int64 `mandatory:"true" contributesTo:"header" name:"Content-Length"` // The part being uploaded to the Object Storage Service. UploadPartBody io.ReadCloser `mandatory:"true" contributesTo:"body" encoding:"binary"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` // The entity tag to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. // For uploading a part, this is the entity tag of the target part. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The entity tag to avoid matching. The only valid value is '*', which indicates that the request should fail if the object already exists. // For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part. IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` // 100-continue Expect *string `mandatory:"false" contributesTo:"header" name:"Expect"` // The base-64 encoded MD5 hash of the body. ContentMD5 *string `mandatory:"false" contributesTo:"header" name:"Content-MD5"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
UploadPartRequest wrapper for the UploadPart operation
func (UploadPartRequest) HTTPRequest ¶ added in v1.3.0
func (request UploadPartRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UploadPartRequest) RetryPolicy ¶ added in v1.3.0
func (request UploadPartRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UploadPartRequest) String ¶
func (request UploadPartRequest) String() string
type UploadPartResponse ¶
type UploadPartResponse struct { // The underlying http response RawResponse *http.Response // Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular // request, provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The base64-encoded MD5 hash of the request body, as computed by the server. OpcContentMd5 *string `presentIn:"header" name:"opc-content-md5"` // The entity tag for the object. ETag *string `presentIn:"header" name:"etag"` }
UploadPartResponse wrapper for the UploadPart operation
func (UploadPartResponse) HTTPResponse ¶ added in v1.3.0
func (response UploadPartResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UploadPartResponse) String ¶
func (response UploadPartResponse) String() string
type WorkRequest ¶
type WorkRequest struct { // type of the work request OperationType WorkRequestOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` // status of current work request. Status WorkRequestStatusEnum `mandatory:"false" json:"status,omitempty"` // The id of the work request. Id *string `mandatory:"false" json:"id"` // The ocid of the compartment that contains the work request. Work requests should be scoped to // the same compartment as the resource the work request affects. If the work request affects multiple resources, // and those resources are not in the same compartment, it is up to the service team to pick the primary // resource whose compartment should be used CompartmentId *string `mandatory:"false" json:"compartmentId"` Resources []WorkRequestResource `mandatory:"false" json:"resources"` // Percentage of the request completed. PercentComplete *float32 `mandatory:"false" json:"percentComplete"` // The date and time the request was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), // section 14.29. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` }
WorkRequest A description of workRequest status
func (WorkRequest) String ¶
func (m WorkRequest) String() string
type WorkRequestError ¶
type WorkRequestError struct { // A machine-usable code for the error that occured. Error codes are listed on // (https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm) Code *string `mandatory:"false" json:"code"` // A human readable description of the issue encountered. Message *string `mandatory:"false" json:"message"` // The time the error happened Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` }
WorkRequestError The representation of WorkRequestError
func (WorkRequestError) String ¶
func (m WorkRequestError) String() string
type WorkRequestLogEntry ¶
type WorkRequestLogEntry struct { // Human-readable log message. Message *string `mandatory:"false" json:"message"` // The time the log message was written. An RFC3339 formatted datetime string Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` }
WorkRequestLogEntry The representation of WorkRequestLogEntry
func (WorkRequestLogEntry) String ¶
func (m WorkRequestLogEntry) String() string
type WorkRequestOperationTypeEnum ¶
type WorkRequestOperationTypeEnum string
WorkRequestOperationTypeEnum Enum with underlying type: string
const (
WorkRequestOperationTypeObject WorkRequestOperationTypeEnum = "COPY_OBJECT"
)
Set of constants representing the allowable values for WorkRequestOperationTypeEnum
func GetWorkRequestOperationTypeEnumValues ¶
func GetWorkRequestOperationTypeEnumValues() []WorkRequestOperationTypeEnum
GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum
type WorkRequestResource ¶
type WorkRequestResource struct { // The status that a work request can present ActionType WorkRequestResourceActionTypeEnum `mandatory:"false" json:"actionType,omitempty"` // The resource type the work request is affects. EntityType *string `mandatory:"false" json:"entityType"` // The identifier of the resource the work request affects. Identifier *string `mandatory:"false" json:"identifier"` // The URI path that the user can do a GET on to access the resource metadata EntityUri *string `mandatory:"false" json:"entityUri"` // The metadata of the resource. Metadata map[string]string `mandatory:"false" json:"metadata"` }
WorkRequestResource The representation of WorkRequestResource
func (WorkRequestResource) String ¶
func (m WorkRequestResource) String() string
type WorkRequestResourceActionTypeEnum ¶
type WorkRequestResourceActionTypeEnum string
WorkRequestResourceActionTypeEnum Enum with underlying type: string
const ( WorkRequestResourceActionTypeCreated WorkRequestResourceActionTypeEnum = "CREATED" WorkRequestResourceActionTypeUpdated WorkRequestResourceActionTypeEnum = "UPDATED" WorkRequestResourceActionTypeDeleted WorkRequestResourceActionTypeEnum = "DELETED" WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" WorkRequestResourceActionTypeRead WorkRequestResourceActionTypeEnum = "READ" WorkRequestResourceActionTypeWritten WorkRequestResourceActionTypeEnum = "WRITTEN" )
Set of constants representing the allowable values for WorkRequestResourceActionTypeEnum
func GetWorkRequestResourceActionTypeEnumValues ¶
func GetWorkRequestResourceActionTypeEnumValues() []WorkRequestResourceActionTypeEnum
GetWorkRequestResourceActionTypeEnumValues Enumerates the set of values for WorkRequestResourceActionTypeEnum
type WorkRequestResourceMetadataKey ¶
type WorkRequestResourceMetadataKey struct { }
WorkRequestResourceMetadataKey The keys of WorkRequestResource metadata.
func (WorkRequestResourceMetadataKey) String ¶
func (m WorkRequestResourceMetadataKey) String() string
type WorkRequestStatusEnum ¶
type WorkRequestStatusEnum string
WorkRequestStatusEnum Enum with underlying type: string
const ( WorkRequestStatusAccepted WorkRequestStatusEnum = "ACCEPTED" WorkRequestStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" WorkRequestStatusFailed WorkRequestStatusEnum = "FAILED" WorkRequestStatusCompleted WorkRequestStatusEnum = "COMPLETED" WorkRequestStatusCanceling WorkRequestStatusEnum = "CANCELING" WorkRequestStatusCanceled WorkRequestStatusEnum = "CANCELED" )
Set of constants representing the allowable values for WorkRequestStatusEnum
func GetWorkRequestStatusEnumValues ¶
func GetWorkRequestStatusEnumValues() []WorkRequestStatusEnum
GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum
type WorkRequestSummary ¶
type WorkRequestSummary struct { // type of the work request OperationType WorkRequestSummaryOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` // status of current work request. Status WorkRequestSummaryStatusEnum `mandatory:"false" json:"status,omitempty"` // The id of the work request. Id *string `mandatory:"false" json:"id"` // The ocid of the compartment that contains the work request. Work requests should be scoped to // the same compartment as the resource the work request affects. If the work request affects multiple resources, // and those resources are not in the same compartment, it is up to the service team to pick the primary // resource whose compartment should be used CompartmentId *string `mandatory:"false" json:"compartmentId"` Resources []WorkRequestResource `mandatory:"false" json:"resources"` // Percentage of the request completed. PercentComplete *float32 `mandatory:"false" json:"percentComplete"` // The date and time the request was created, as described in // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` // The date and time the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), // section 14.29. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The date and time the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` }
WorkRequestSummary A summary of workRequest status
func (WorkRequestSummary) String ¶
func (m WorkRequestSummary) String() string
type WorkRequestSummaryOperationTypeEnum ¶
type WorkRequestSummaryOperationTypeEnum string
WorkRequestSummaryOperationTypeEnum Enum with underlying type: string
const (
WorkRequestSummaryOperationTypeObject WorkRequestSummaryOperationTypeEnum = "COPY_OBJECT"
)
Set of constants representing the allowable values for WorkRequestSummaryOperationTypeEnum
func GetWorkRequestSummaryOperationTypeEnumValues ¶
func GetWorkRequestSummaryOperationTypeEnumValues() []WorkRequestSummaryOperationTypeEnum
GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestSummaryOperationTypeEnum
type WorkRequestSummaryStatusEnum ¶
type WorkRequestSummaryStatusEnum string
WorkRequestSummaryStatusEnum Enum with underlying type: string
const ( WorkRequestSummaryStatusAccepted WorkRequestSummaryStatusEnum = "ACCEPTED" WorkRequestSummaryStatusInProgress WorkRequestSummaryStatusEnum = "IN_PROGRESS" WorkRequestSummaryStatusFailed WorkRequestSummaryStatusEnum = "FAILED" WorkRequestSummaryStatusCompleted WorkRequestSummaryStatusEnum = "COMPLETED" WorkRequestSummaryStatusCanceling WorkRequestSummaryStatusEnum = "CANCELING" WorkRequestSummaryStatusCanceled WorkRequestSummaryStatusEnum = "CANCELED" )
Set of constants representing the allowable values for WorkRequestSummaryStatusEnum
func GetWorkRequestSummaryStatusEnumValues ¶
func GetWorkRequestSummaryStatusEnumValues() []WorkRequestSummaryStatusEnum
GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestSummaryStatusEnum
Source Files ¶
- abort_multipart_upload_request_response.go
- bucket.go
- bucket_summary.go
- cancel_work_request_request_response.go
- commit_multipart_upload_details.go
- commit_multipart_upload_part_details.go
- commit_multipart_upload_request_response.go
- copy_object_details.go
- copy_object_request_response.go
- create_bucket_details.go
- create_bucket_request_response.go
- create_multipart_upload_details.go
- create_multipart_upload_request_response.go
- create_preauthenticated_request_details.go
- create_preauthenticated_request_request_response.go
- delete_bucket_request_response.go
- delete_object_lifecycle_policy_request_response.go
- delete_object_request_response.go
- delete_preauthenticated_request_request_response.go
- get_bucket_request_response.go
- get_namespace_metadata_request_response.go
- get_namespace_request_response.go
- get_object_lifecycle_policy_request_response.go
- get_object_request_response.go
- get_preauthenticated_request_request_response.go
- get_work_request_request_response.go
- head_bucket_request_response.go
- head_object_request_response.go
- list_buckets_request_response.go
- list_multipart_upload_parts_request_response.go
- list_multipart_uploads_request_response.go
- list_objects.go
- list_objects_request_response.go
- list_preauthenticated_requests_request_response.go
- list_work_request_errors_request_response.go
- list_work_request_logs_request_response.go
- list_work_requests_request_response.go
- multipart_upload.go
- multipart_upload_part_summary.go
- namespace_metadata.go
- object_lifecycle_policy.go
- object_lifecycle_rule.go
- object_name_filter.go
- object_summary.go
- objectstorage_client.go
- preauthenticated_request.go
- preauthenticated_request_summary.go
- put_object_lifecycle_policy_details.go
- put_object_lifecycle_policy_request_response.go
- put_object_request_response.go
- rename_object_details.go
- rename_object_request_response.go
- restore_objects_details.go
- restore_objects_request_response.go
- update_bucket_details.go
- update_bucket_request_response.go
- update_namespace_metadata_details.go
- update_namespace_metadata_request_response.go
- upload_part_request_response.go
- work_request.go
- work_request_error.go
- work_request_log_entry.go
- work_request_resource.go
- work_request_resource_metadata_key.go
- work_request_summary.go