Documentation ¶
Index ¶
- type AbortMultipartUploadRequest
- type AbortMultipartUploadResponse
- type Bucket
- type BucketPublicAccessTypeEnum
- type BucketSummary
- type CommitMultipartUploadDetails
- type CommitMultipartUploadPartDetails
- type CommitMultipartUploadRequest
- type CommitMultipartUploadResponse
- type CreateBucketDetails
- type CreateBucketDetailsPublicAccessTypeEnum
- type CreateBucketRequest
- type CreateBucketResponse
- type CreateMultipartUploadDetails
- type CreateMultipartUploadRequest
- type CreateMultipartUploadResponse
- type CreatePreauthenticatedRequestDetails
- type CreatePreauthenticatedRequestDetailsAccessTypeEnum
- type CreatePreauthenticatedRequestRequest
- type CreatePreauthenticatedRequestResponse
- type DeleteBucketRequest
- type DeleteBucketResponse
- type DeleteObjectRequest
- type DeleteObjectResponse
- type DeletePreauthenticatedRequestRequest
- type DeletePreauthenticatedRequestResponse
- type GetBucketRequest
- type GetBucketResponse
- type GetNamespaceRequest
- type GetNamespaceResponse
- type GetObjectRequest
- type GetObjectResponse
- type GetPreauthenticatedRequestRequest
- type GetPreauthenticatedRequestResponse
- type HeadBucketRequest
- type HeadBucketResponse
- type HeadObjectRequest
- type HeadObjectResponse
- type ListBucketsRequest
- type ListBucketsResponse
- type ListMultipartUploadPartsRequest
- type ListMultipartUploadPartsResponse
- type ListMultipartUploadsRequest
- type ListMultipartUploadsResponse
- type ListObjects
- type ListObjectsRequest
- type ListObjectsResponse
- type ListPreauthenticatedRequestsRequest
- type ListPreauthenticatedRequestsResponse
- type MultipartUpload
- type MultipartUploadPartSummary
- type ObjectStorageClient
- func (client ObjectStorageClient) AbortMultipartUpload(ctx context.Context, request AbortMultipartUploadRequest) (response AbortMultipartUploadResponse, err error)
- func (client ObjectStorageClient) CommitMultipartUpload(ctx context.Context, request CommitMultipartUploadRequest) (response CommitMultipartUploadResponse, err error)
- func (client *ObjectStorageClient) ConfigurationProvider() *common.ConfigurationProvider
- 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) 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) GetObject(ctx context.Context, request GetObjectRequest) (response GetObjectResponse, err error)
- func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, 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) PutObject(ctx context.Context, request PutObjectRequest) (response PutObjectResponse, err error)
- func (client *ObjectStorageClient) SetRegion(region string)
- func (client ObjectStorageClient) UpdateBucket(ctx context.Context, request UpdateBucketRequest) (response UpdateBucketResponse, 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 PutObjectRequest
- type PutObjectResponse
- type UpdateBucketDetails
- type UpdateBucketDetailsPublicAccessTypeEnum
- type UpdateBucketRequest
- type UpdateBucketResponse
- type UploadPartRequest
- type UploadPartResponse
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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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"` }
AbortMultipartUploadRequest wrapper for the AbortMultipartUpload operation
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, please provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
AbortMultipartUploadResponse wrapper for the AbortMultipartUpload operation
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. 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 at which the bucket was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The entity tag for the bucket. Etag *string `mandatory:"true" json:"etag"` // The type of public access available on this bucket. Allows authenticated caller to access the bucket or // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. PublicAccessType BucketPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` }
Bucket 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" )
Set of constants representing the allowable values for BucketPublicAccessType
func GetBucketPublicAccessTypeEnumValues ¶
func GetBucketPublicAccessTypeEnumValues() []BucketPublicAccessTypeEnum
GetBucketPublicAccessTypeEnumValues Enumerates the set of values for BucketPublicAccessType
type BucketSummary ¶
type BucketSummary struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"true" json:"namespace"` // The name of the bucket. 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 at which the bucket was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The entity tag for the bucket. Etag *string `mandatory:"true" json:"etag"` }
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 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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"` }
CommitMultipartUploadRequest wrapper for the CommitMultipartUpload operation
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, please 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) String ¶
func (response CommitMultipartUploadResponse) 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. 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 available on this bucket. Allows authenticated caller to access the bucket or // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. PublicAccessType CreateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` }
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" )
Set of constants representing the allowable values for CreateBucketDetailsPublicAccessType
func GetCreateBucketDetailsPublicAccessTypeEnumValues ¶
func GetCreateBucketDetailsPublicAccessTypeEnumValues() []CreateBucketDetailsPublicAccessTypeEnum
GetCreateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for CreateBucketDetailsPublicAccessType
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"` }
CreateBucketRequest wrapper for the CreateBucket operation
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, please 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) String ¶
func (response CreateBucketResponse) String() string
type CreateMultipartUploadDetails ¶
type CreateMultipartUploadDetails struct { // the name of the object to which this multi-part upload is targetted. 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. 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. // 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"` }
CreateMultipartUploadRequest wrapper for the CreateMultipartUpload operation
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, please 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) String ¶
func (response CreateMultipartUploadResponse) String() string
type CreatePreauthenticatedRequestDetails ¶
type CreatePreauthenticatedRequestDetails struct { // user specified name for pre-authenticated request. Helpful for management purposes. Name *string `mandatory:"true" json:"name"` // the operation that can be performed on this resource e.g PUT or GET. AccessType CreatePreauthenticatedRequestDetailsAccessTypeEnum `mandatory:"true" json:"accessType"` // The expiration date after which the pre-authenticated request will no longer be valid per spec // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting 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 CreatePreauthenticatedRequestDetailsAccessType
func GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues ¶
func GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues() []CreatePreauthenticatedRequestDetailsAccessTypeEnum
GetCreatePreauthenticatedRequestDetailsAccessTypeEnumValues Enumerates the set of values for CreatePreauthenticatedRequestDetailsAccessType
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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // details for creating the pre-authenticated request. CreatePreauthenticatedRequestDetails `contributesTo:"body"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` }
CreatePreauthenticatedRequestRequest wrapper for the CreatePreauthenticatedRequest operation
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, please provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
CreatePreauthenticatedRequestResponse wrapper for the CreatePreauthenticatedRequest operation
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. // 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"` }
DeleteBucketRequest wrapper for the DeleteBucket operation
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, please provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
DeleteBucketResponse wrapper for the DeleteBucket operation
func (DeleteBucketResponse) String ¶
func (response DeleteBucketResponse) 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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"` }
DeleteObjectRequest wrapper for the DeleteObject operation
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, please 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) 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The unique identifier for the pre-authenticated request (PAR). This can be used to manage the PAR // such as GET or DELETE the PAR 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"` }
DeletePreauthenticatedRequestRequest wrapper for the DeletePreauthenticatedRequest operation
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, please provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
DeletePreauthenticatedRequestResponse wrapper for the DeletePreauthenticatedRequest operation
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. // 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"` }
GetBucketRequest wrapper for the GetBucket operation
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, please 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) String ¶
func (response GetBucketResponse) String() string
type GetNamespaceRequest ¶
type GetNamespaceRequest struct { // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` }
GetNamespaceRequest wrapper for the GetNamespace operation
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) String ¶
func (response GetNamespaceResponse) 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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, only a single range of bytes is supported. Range *string `mandatory:"false" contributesTo:"header" name:"range"` }
GetObjectRequest wrapper for the GetObject operation
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, please 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 *int `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"` // 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) 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The unique identifier for the pre-authenticated request (PAR). This can be used to manage the PAR // such as GET or DELETE the PAR 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"` }
GetPreauthenticatedRequestRequest wrapper for the GetPreauthenticatedRequest operation
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, please provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetPreauthenticatedRequestResponse wrapper for the GetPreauthenticatedRequest operation
func (GetPreauthenticatedRequestResponse) String ¶
func (response GetPreauthenticatedRequestResponse) 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. // 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"` }
HeadBucketRequest wrapper for the HeadBucket operation
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, please 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) String ¶
func (response HeadBucketResponse) String() string
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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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"` }
HeadObjectRequest wrapper for the HeadObject operation
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, please 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 *int `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"` // 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) String ¶
func (response HeadObjectResponse) String() string
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 create the bucket. 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"` // The client request ID for tracing. OpcClientRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-client-request-id"` }
ListBucketsRequest wrapper for the ListBuckets operation
func (ListBucketsRequest) String ¶
func (request ListBucketsRequest) String() string
type ListBucketsResponse ¶
type ListBucketsResponse struct { // The underlying http response RawResponse *http.Response // The []BucketSummary instance 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, please 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) 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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"` }
ListMultipartUploadPartsRequest wrapper for the ListMultipartUploadParts operation
func (ListMultipartUploadPartsRequest) String ¶
func (request ListMultipartUploadPartsRequest) String() string
type ListMultipartUploadPartsResponse ¶
type ListMultipartUploadPartsResponse struct { // The underlying http response RawResponse *http.Response // The []MultipartUploadPartSummary instance 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, please 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) 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. // 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"` }
ListMultipartUploadsRequest wrapper for the ListMultipartUploads operation
func (ListMultipartUploadsRequest) String ¶
func (request ListMultipartUploadsRequest) String() string
type ListMultipartUploadsResponse ¶
type ListMultipartUploadsResponse struct { // The underlying http response RawResponse *http.Response // The []MultipartUpload instance 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, please 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) 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. 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. // 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. Scanned objects whose names contain the // delimiter have part of their name up to the last occurrence of the delimiter (after 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"` }
ListObjectsRequest wrapper for the ListObjects operation
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, please provide this request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
ListObjectsResponse wrapper for the ListObjects operation
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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // Pre-authenticated requests returned by the list must have object names starting with prefix 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"` }
ListPreauthenticatedRequestsRequest wrapper for the ListPreauthenticatedRequests operation
func (ListPreauthenticatedRequestsRequest) String ¶
func (request ListPreauthenticatedRequestsRequest) String() string
type ListPreauthenticatedRequestsResponse ¶
type ListPreauthenticatedRequestsResponse struct { // The underlying http response RawResponse *http.Response // The []PreauthenticatedRequestSummary instance 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, please 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) String ¶
func (response ListPreauthenticatedRequestsResponse) 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 when the upload was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` }
MultipartUpload 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 *int `mandatory:"true" json:"size"` // the part number for this part. PartNumber *int `mandatory:"true" json:"partNumber"` }
MultipartUploadPartSummary 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 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) 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) 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. 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) 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 Create 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) DeletePreauthenticatedRequest ¶
func (client ObjectStorageClient) DeletePreauthenticatedRequest(ctx context.Context, request DeletePreauthenticatedRequestRequest) (response DeletePreauthenticatedRequestResponse, err error)
DeletePreauthenticatedRequest Deletes the bucket level pre-authenticateted request
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. An account name must be unique, must start with a letter, and can have up to 15 lowercase letters and numbers. You cannot use spaces or special characters.
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) GetPreauthenticatedRequest ¶
func (client ObjectStorageClient) GetPreauthenticatedRequest(ctx context.Context, request GetPreauthenticatedRequestRequest) (response GetPreauthenticatedRequestResponse, err error)
GetPreauthenticatedRequest Get the bucket level pre-authenticateted request
func (ObjectStorageClient) HeadBucket ¶
func (client ObjectStorageClient) HeadBucket(ctx context.Context, request HeadBucketRequest) (response HeadBucketResponse, err error)
HeadBucket Efficiently checks 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 List pre-authenticated requests for the bucket
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. 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) 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) 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. Name *string `mandatory:"true" json:"name"` // Size of the object in bytes. Size *int `mandatory:"false" json:"size"` // Base64-encoded MD5 hash of the object data. Md5 *string `mandatory:"false" json:"md5"` // Date and time of object creation. 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 supplied 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 e.g PUT or GET. AccessType PreauthenticatedRequestAccessTypeEnum `mandatory:"true" json:"accessType"` // the expiration date after which the pre authenticated request will no longer be valid as per spec // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` // the date when the pre-authenticated request was created as per spec // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket ObjectName *string `mandatory:"false" json:"objectName"` }
PreauthenticatedRequest The representation of PreauthenticatedRequest
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 PreauthenticatedRequestAccessType
func GetPreauthenticatedRequestAccessTypeEnumValues ¶
func GetPreauthenticatedRequestAccessTypeEnumValues() []PreauthenticatedRequestAccessTypeEnum
GetPreauthenticatedRequestAccessTypeEnumValues Enumerates the set of values for PreauthenticatedRequestAccessType
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 supplied name of the pre-authenticated request Name *string `mandatory:"true" json:"name"` // the operation that can be performed on this resource e.g PUT or GET. AccessType PreauthenticatedRequestSummaryAccessTypeEnum `mandatory:"true" json:"accessType"` // the expiration date after which the pre authenticated request will no longer be valid as per spec // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) TimeExpires *common.SDKTime `mandatory:"true" json:"timeExpires"` // the date when the pre-authenticated request was created as per spec // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // Name of object that is being granted access to by the pre-authenticated request. This can be null and that would mean that the pre-authenticated request is granting access to the entire bucket ObjectName *string `mandatory:"false" json:"objectName"` }
PreauthenticatedRequestSummary The representation of PreauthenticatedRequestSummary
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 PreauthenticatedRequestSummaryAccessType
func GetPreauthenticatedRequestSummaryAccessTypeEnumValues ¶
func GetPreauthenticatedRequestSummaryAccessTypeEnumValues() []PreauthenticatedRequestSummaryAccessTypeEnum
GetPreauthenticatedRequestSummaryAccessTypeEnumValues Enumerates the set of values for PreauthenticatedRequestSummaryAccessType
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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // Example: `test/object1.log` ObjectName *string `mandatory:"true" contributesTo:"path" name:"objectName"` // The content length of the body. ContentLength *int `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-"` }
PutObjectRequest wrapper for the PutObject operation
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, please 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) String ¶
func (response PutObjectResponse) String() string
type UpdateBucketDetails ¶
type UpdateBucketDetails struct { // The namespace in which the bucket lives. Namespace *string `mandatory:"false" json:"namespace"` // The name of the bucket. 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 available on this bucket. Allows authenticated caller to access the bucket or // contents of this bucket. By default a bucket is set to NoPublicAccess. It is treated as NoPublicAccess // when this value is not specified. When the type is NoPublicAccess the bucket does not allow any public access. // When the type is ObjectRead the bucket allows public access to the GetObject, HeadObject, ListObjects. PublicAccessType UpdateBucketDetailsPublicAccessTypeEnum `mandatory:"false" json:"publicAccessType,omitempty"` }
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" )
Set of constants representing the allowable values for UpdateBucketDetailsPublicAccessType
func GetUpdateBucketDetailsPublicAccessTypeEnumValues ¶
func GetUpdateBucketDetailsPublicAccessTypeEnumValues() []UpdateBucketDetailsPublicAccessTypeEnum
GetUpdateBucketDetailsPublicAccessTypeEnumValues Enumerates the set of values for UpdateBucketDetailsPublicAccessType
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. // 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"` }
UpdateBucketRequest wrapper for the UpdateBucket operation
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, please 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) String ¶
func (response UpdateBucketResponse) 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. // Example: `my-new-bucket1` BucketName *string `mandatory:"true" contributesTo:"path" name:"bucketName"` // The name of the object. // 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 *int `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"` }
UploadPartRequest wrapper for the UploadPart operation
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, please 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) String ¶
func (response UploadPartResponse) String() string
Source Files ¶
- abort_multipart_upload_request_response.go
- bucket.go
- bucket_summary.go
- commit_multipart_upload_details.go
- commit_multipart_upload_part_details.go
- commit_multipart_upload_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_request_response.go
- delete_preauthenticated_request_request_response.go
- get_bucket_request_response.go
- get_namespace_request_response.go
- get_object_request_response.go
- get_preauthenticated_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
- multipart_upload.go
- multipart_upload_part_summary.go
- object_summary.go
- objectstorage_client.go
- preauthenticated_request.go
- preauthenticated_request_summary.go
- put_object_request_response.go
- update_bucket_details.go
- update_bucket_request_response.go
- upload_part_request_response.go