Skip to content

Commit

Permalink
Applied 2020-04-08 blob changes to 2020-06-12 (#11786)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcc-msft authored Nov 23, 2020
1 parent 2e6a86f commit 460ce7f
Showing 1 changed file with 239 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3846,6 +3846,9 @@
},
{
"$ref": "#/parameters/ClientRequestId"
},
{
"$ref": "#/parameters/BlobDeleteType"
}
],
"responses": {
Expand Down Expand Up @@ -4804,6 +4807,205 @@
}
]
},
"/{containerName}/{blob}?BlockBlob&fromUrl": {
"put": {
"tags": [
"blob"
],
"operationId": "BlockBlob_PutBlobFromUrl",
"description": "The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read from a given URL. This API is supported beginning with the 2020-04-08 version. Partial updates are not supported with Put Blob from URL; the content of an existing blob is overwritten with the content of the new blob. To perform partial updates to a block blob’s contents using a source URL, use the Put Block from URL API in conjunction with Put Block List.",
"consumes": [
"application/octet-stream"
],
"parameters": [
{
"$ref": "#/parameters/Timeout"
},
{
"$ref": "#/parameters/ContentMD5"
},
{
"$ref": "#/parameters/ContentLength"
},
{
"$ref": "#/parameters/BlobContentType"
},
{
"$ref": "#/parameters/BlobContentEncoding"
},
{
"$ref": "#/parameters/BlobContentLanguage"
},
{
"$ref": "#/parameters/BlobContentMD5"
},
{
"$ref": "#/parameters/BlobCacheControl"
},
{
"$ref": "#/parameters/Metadata"
},
{
"$ref": "#/parameters/LeaseIdOptional"
},
{
"$ref": "#/parameters/BlobContentDisposition"
},
{
"$ref": "#/parameters/EncryptionKey"
},
{
"$ref": "#/parameters/EncryptionKeySha256"
},
{
"$ref": "#/parameters/EncryptionAlgorithm"
},
{
"$ref": "#/parameters/EncryptionScope"
},
{
"$ref": "#/parameters/AccessTierOptional"
},
{
"$ref": "#/parameters/IfModifiedSince"
},
{
"$ref": "#/parameters/IfUnmodifiedSince"
},
{
"$ref": "#/parameters/IfMatch"
},
{
"$ref": "#/parameters/IfNoneMatch"
},
{
"$ref": "#/parameters/IfTags"
},
{
"$ref": "#/parameters/SourceIfModifiedSince"
},
{
"$ref": "#/parameters/SourceIfUnmodifiedSince"
},
{
"$ref": "#/parameters/SourceIfMatch"
},
{
"$ref": "#/parameters/SourceIfNoneMatch"
},
{
"$ref": "#/parameters/SourceIfTags"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ClientRequestId"
},
{
"$ref": "#/parameters/BlobTagsHeader"
},
{
"$ref": "#/parameters/CopySource"
},
{
"$ref": "#/parameters/CopySourceBlobProperties"
}
],
"responses": {
"201": {
"description": "The blob was updated.",
"headers": {
"ETag": {
"type": "string",
"format": "etag",
"description": "The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes."
},
"Last-Modified": {
"type": "string",
"format": "date-time-rfc1123",
"description": "Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob."
},
"Content-MD5": {
"type": "string",
"format": "byte",
"description": "If the blob has an MD5 hash and this operation is to read the full blob, this response header is returned so that the client can check for message content integrity."
},
"x-ms-client-request-id": {
"x-ms-client-name": "ClientRequestId",
"type": "string",
"description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
},
"x-ms-request-id": {
"x-ms-client-name": "RequestId",
"type": "string",
"description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
},
"x-ms-version": {
"x-ms-client-name": "Version",
"type": "string",
"description": "Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
},
"x-ms-version-id": {
"x-ms-client-name": "VersionId",
"type": "string",
"description": "A DateTime value returned by the service that uniquely identifies the blob. The value of this header indicates the blob version, and may be used in subsequent requests to access this version of the blob."
},
"Date": {
"type": "string",
"format": "date-time-rfc1123",
"description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
},
"x-ms-request-server-encrypted": {
"x-ms-client-name": "IsServerEncrypted",
"type": "boolean",
"description": "The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise."
},
"x-ms-encryption-key-sha256": {
"x-ms-client-name": "EncryptionKeySha256",
"type": "string",
"description": "The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key."
},
"x-ms-encryption-scope": {
"x-ms-client-name": "EncryptionScope",
"type": "string",
"description": "Returns the name of the encryption scope used to encrypt the blob contents and application metadata. Note that the absence of this header implies use of the default account encryption scope."
}
}
},
"default": {
"description": "Failure",
"headers": {
"x-ms-error-code": {
"x-ms-client-name": "ErrorCode",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/StorageError"
}
}
}
},
"parameters": [
{
"name": "x-ms-blob-type",
"x-ms-client-name": "blobType",
"in": "header",
"required": true,
"x-ms-parameter-location": "method",
"description": "Specifies the type of blob to create: block blob, page blob, or append blob.",
"type": "string",
"enum": [
"BlockBlob"
],
"x-ms-enum": {
"name": "BlobType",
"modelAsString": false
}
}
]
},
"/{containerName}/{blob}?comp=undelete": {
"put": {
"tags": [
Expand Down Expand Up @@ -9171,6 +9373,9 @@
},
{
"$ref": "#/parameters/IfTags"
},
{
"$ref": "#/parameters/LeaseIdOptional"
}
],
"responses": {
Expand Down Expand Up @@ -9244,6 +9449,9 @@
{
"$ref": "#/parameters/IfTags"
},
{
"$ref": "#/parameters/LeaseIdOptional"
},
{
"$ref": "#/parameters/BlobTagsBody"
}
Expand Down Expand Up @@ -10359,8 +10567,8 @@
"ContainerName": {
"type": "string"
},
"TagValue": {
"type": "string"
"Tags": {
"$ref": "#/definitions/BlobTags"
}
}
},
Expand Down Expand Up @@ -10710,6 +10918,10 @@
"description": "Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted",
"type": "integer",
"minimum": 1
},
"AllowPermanentDelete": {
"description": "Indicates whether permanent delete is allowed on this storage account.",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -11116,6 +11328,22 @@
},
"description": "Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request."
},
"BlobDeleteType": {
"name": "deletetype",
"x-ms-client-name": "blobDeleteType",
"in": "query",
"required": false,
"type": "string",
"enum": [
"Permanent"
],
"x-ms-enum": {
"name": "BlobDeleteType",
"modelAsString": false
},
"x-ms-parameter-location": "method",
"description": "Optional. Only possible value is 'permanent', which specifies to permanently delete a blob if blob soft delete is enabled."
},
"BlobExpiryOptions": {
"name": "x-ms-expiry-option",
"x-ms-client-name": "ExpiryOptions",
Expand Down Expand Up @@ -11277,6 +11505,15 @@
"x-ms-parameter-location": "method",
"description": "Specifies the name of the source page blob snapshot. This value is a URL of up to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would appear in a request URI. The source blob must either be public or must be authenticated via a shared access signature."
},
"CopySourceBlobProperties": {
"name": "x-ms-copy-source-blob-properties",
"x-ms-client-name": "copySourceBlobProperties",
"in": "header",
"required": false,
"type": "boolean",
"x-ms-parameter-location": "method",
"description": "Optional, default is true. Indicates if properties from the source blob should be copied."
},
"DeleteSnapshots": {
"name": "x-ms-delete-snapshots",
"x-ms-client-name": "deleteSnapshots",
Expand Down

0 comments on commit 460ce7f

Please sign in to comment.