Debian Codegraph @

storage/2018-03-28/blob/blobs/properties_get.go

raw symbols SCIP
1 package blobsscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/
2
3 import (
4 "contextscip-go gomod github.com/golang/go/src go1.13 context/"
5 "fmtscip-go gomod github.com/golang/go/src go1.13 fmt/"
6 "net/httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/"
7 "strconvscip-go gomod github.com/golang/go/src go1.13 strconv/"
8 "stringsscip-go gomod github.com/golang/go/src go1.13 strings/"
9
10 "github.com/Azure/go-autorest/autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/"
11 "github.com/Azure/go-autorest/autorest/azurescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest/azure`/"
12 "github.com/Azure/go-autorest/autorest/validationscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/"
13 "github.com/tombuildsstuff/giovanni/storage/internal/endpointsscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/internal/endpoints`/"
14 "github.com/tombuildsstuff/giovanni/storage/internal/metadatascip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/internal/metadata`/"
15 )
16
17 type GetPropertiesInputscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesInput# struct {
18 // The ID of the Lease
19 // This must be specified if a Lease is present on the Blob, else a 403 is returned
20 LeaseIDscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesInput#LeaseID. *string
21 }
22
23 type GetPropertiesResultscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult# struct {
24 autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.Responsescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#Response.
25
26 // The tier of page blob on a premium storage account or tier of block blob on blob storage or general purpose v2 account.
27 AccessTierscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#AccessTier. AccessTierscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/AccessTier#
28
29 // This gives the last time tier was changed on the object.
30 // This header is returned only if tier on block blob was ever set.
31 // The date format follows RFC 1123
32 AccessTierChangeTimescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#AccessTierChangeTime. string
33
34 // For page blobs on a premium storage account only.
35 // If the access tier is not explicitly set on the blob, the tier is inferred based on its content length
36 // and this header will be returned with true value.
37 // For block blobs on Blob Storage or general purpose v2 account, if the blob does not have the access tier
38 // set then we infer the tier from the storage account properties. This header is set only if the block blob
39 // tier is inferred
40 AccessTierInferredscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#AccessTierInferred. bool
41
42 // For blob storage or general purpose v2 account.
43 // If the blob is being rehydrated and is not complete then this header is returned indicating
44 // that rehydrate is pending and also tells the destination tier
45 ArchiveStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ArchiveStatus. ArchiveStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/ArchiveStatus#
46
47 // The number of committed blocks present in the blob.
48 // This header is returned only for append blobs.
49 BlobCommittedBlockCountscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#BlobCommittedBlockCount. string
50
51 // The current sequence number for a page blob.
52 // This header is not returned for block blobs or append blobs.
53 // This header is not returned for block blobs.
54 BlobSequenceNumberscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#BlobSequenceNumber. string
55
56 // The blob type.
57 BlobTypescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#BlobType. BlobTypescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/BlobType#
58
59 // If the Cache-Control request header has previously been set for the blob, that value is returned in this header.
60 CacheControlscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CacheControl. string
61
62 // The Content-Disposition response header field conveys additional information about how to process
63 // the response payload, and also can be used to attach additional metadata.
64 // For example, if set to attachment, it indicates that the user-agent should not display the response,
65 // but instead show a Save As dialog.
66 ContentDispositionscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentDisposition. string
67
68 // If the Content-Encoding request header has previously been set for the blob,
69 // that value is returned in this header.
70 ContentEncodingscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentEncoding. string
71
72 // If the Content-Language request header has previously been set for the blob,
73 // that value is returned in this header.
74 ContentLanguagescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentLanguage. string
75
76 // The size of the blob in bytes.
77 // For a page blob, this header returns the value of the x-ms-blob-content-length header stored with the blob.
78 ContentLengthscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentLength. int64
79
80 // The content type specified for the blob.
81 // If no content type was specified, the default content type is `application/octet-stream`.
82 ContentTypescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentType. string
83
84 // If the Content-MD5 header has been set for the blob, this response header is returned so that
85 // the client can check for message content integrity.
86 ContentMD5scip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentMD5. string
87
88 // Conclusion time of the last attempted Copy Blob operation where this blob was the destination blob.
89 // This value can specify the time of a completed, aborted, or failed copy attempt.
90 // This header does not appear if a copy is pending, if this blob has never been the
91 // destination in a Copy Blob operation, or if this blob has been modified after a concluded Copy Blob
92 // operation using Set Blob Properties, Put Blob, or Put Block List.
93 CopyCompletionTimescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyCompletionTime. string
94
95 // Included if the blob is incremental copy blob or incremental copy snapshot, if x-ms-copy-status is success.
96 // Snapshot time of the last successful incremental copy snapshot for this blob
97 CopyDestinationSnapshotscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyDestinationSnapshot. string
98
99 // String identifier for the last attempted Copy Blob operation where this blob was the destination blob.
100 // This header does not appear if this blob has never been the destination in a Copy Blob operation,
101 // or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties,
102 // Put Blob, or Put Block List.
103 CopyIDscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyID. string
104
105 // Contains the number of bytes copied and the total bytes in the source in the last attempted
106 // Copy Blob operation where this blob was the destination blob.
107 // Can show between 0 and Content-Length bytes copied.
108 // This header does not appear if this blob has never been the destination in a Copy Blob operation,
109 // or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties,
110 // Put Blob, or Put Block List.
111 CopyProgressscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyProgress. string
112
113 // URL up to 2 KB in length that specifies the source blob used in the last attempted Copy Blob operation
114 // where this blob was the destination blob.
115 // This header does not appear if this blob has never been the destination in a Copy Blob operation,
116 // or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties,
117 // Put Blob, or Put Block List
118 CopySourcescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopySource. string
119
120 // State of the copy operation identified by x-ms-copy-id, with these values:
121 // - success: Copy completed successfully.
122 // - pending: Copy is in progress.
123 // Check x-ms-copy-status-description if intermittent, non-fatal errors
124 // impede copy progress but don’t cause failure.
125 // - aborted: Copy was ended by Abort Copy Blob.
126 // - failed: Copy failed. See x-ms- copy-status-description for failure details.
127 // This header does not appear if this blob has never been the destination in a Copy Blob operation,
128 // or if this blob has been modified after a completed Copy Blob operation using Set Blob Properties,
129 // Put Blob, or Put Block List.
130 CopyStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyStatus. CopyStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/CopyStatus#
131
132 // Describes cause of fatal or non-fatal copy operation failure.
133 // This header does not appear if this blob has never been the destination in a Copy Blob operation,
134 // or if this blob has been modified after a concluded Copy Blob operation using Set Blob Properties,
135 // Put Blob, or Put Block List.
136 CopyStatusDescriptionscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyStatusDescription. string
137
138 // The date/time at which the blob was created. The date format follows RFC 1123
139 CreationTimescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CreationTime. string
140
141 // The ETag contains a value that you can use to perform operations conditionally
142 ETagscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ETag. string
143
144 // Included if the blob is incremental copy blob.
145 IncrementalCopyscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#IncrementalCopy. bool
146
147 // The date/time that the blob was last modified. The date format follows RFC 1123.
148 LastModifiedscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LastModified. string
149
150 // When a blob is leased, specifies whether the lease is of infinite or fixed duration
151 LeaseDurationscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LeaseDuration. LeaseDurationscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/LeaseDuration#
152
153 // The lease state of the blob
154 LeaseStatescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LeaseState. LeaseStatescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/LeaseState#
155
156 LeaseStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LeaseStatus. LeaseStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/LeaseStatus#
157
158 // A set of name-value pairs that correspond to the user-defined metadata associated with this blob
159 MetaDatascip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#MetaData. map[string]string
160
161 // Is the Storage Account encrypted using server-side encryption? This should always return true
162 ServerEncryptedscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ServerEncrypted. bool
163 }
164
165 // GetProperties returns all user-defined metadata, standard HTTP properties, and system properties for the blob
166 func (client Clientscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#) GetPropertiesscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetProperties().(ctx contextscip-go gomod github.com/golang/go/src go1.13 context/.Contextscip-go gomod github.com/golang/go/src go1.13 context/Context#, accountName, containerName, blobName string, input GetPropertiesInputscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesInput#) (result GetPropertiesResultscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#, err error) {
167 if accountName == "" {
168 return result, validationscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/.NewErrorscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/NewError().("blobs.Client", "GetProperties", "`accountName` cannot be an empty string.")
169 }
170 if containerName == "" {
171 return result, validationscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/.NewErrorscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/NewError().("blobs.Client", "GetProperties", "`containerName` cannot be an empty string.")
172 }
173 if stringsscip-go gomod github.com/golang/go/src go1.13 strings/.ToLowerscip-go gomod github.com/golang/go/src go1.13 strings/ToLower().(containerName) != containerName {
174 return result, validationscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/.NewErrorscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/NewError().("blobs.Client", "GetProperties", "`containerName` must be a lower-cased string.")
175 }
176 if blobName == "" {
177 return result, validationscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/.NewErrorscip-go gomod github.com/Azure/go-autorest/autorest/validation v0.3.1 `github.com/Azure/go-autorest/autorest/validation`/NewError().("blobs.Client", "GetProperties", "`blobName` cannot be an empty string.")
178 }
179
180 req, err := client.GetPropertiesPreparerscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetPropertiesPreparer().(ctx, accountName, containerName, blobName, input)
181 if err != nil {
182 err = autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.NewErrorWithErrorscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/NewErrorWithError().(err, "blobs.Client", "GetProperties", nil, "Failure preparing request")
183 return
184 }
185
186 resp, err := client.GetPropertiesSenderscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetPropertiesSender().(req)
187 if err != nil {
188 result.Responsescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#Response. = autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.Responsescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Response#{Responsescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Response#Response.: resp}
189 err = autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.NewErrorWithErrorscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/NewErrorWithError().(err, "blobs.Client", "GetProperties", resp, "Failure sending request")
190 return
191 }
192
193 result, err = client.GetPropertiesResponderscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetPropertiesResponder().(resp)
194 if err != nil {
195 err = autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.NewErrorWithErrorscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/NewErrorWithError().(err, "blobs.Client", "GetProperties", resp, "Failure responding to request")
196 return
197 }
198
199 return
200 }
201
202 // GetPropertiesPreparer prepares the GetProperties request.
203 func (client Clientscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#) GetPropertiesPreparerscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetPropertiesPreparer().(ctx contextscip-go gomod github.com/golang/go/src go1.13 context/.Contextscip-go gomod github.com/golang/go/src go1.13 context/Context#, accountName, containerName, blobName string, input GetPropertiesInputscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesInput#) (*httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.13 `net/http`/Request#, error) {
204 pathParameters := map[string]interface{}{
205 "containerName": autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.Encodescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Encode().("path", containerName),
206 "blobName": autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.Encodescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Encode().("path", blobName),
207 }
208
209 headers := map[string]interface{}{
210 "x-ms-version": APIVersionscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/APIVersion.,
211 }
212
213 if input.LeaseIDscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesInput#LeaseID. != nil {
214 headers["x-ms-lease-id"] = *input.LeaseIDscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesInput#LeaseID.
215 }
216
217 preparer := autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.CreatePreparerscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/CreatePreparer().(
218 autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.AsHeadscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/AsHead().(),
219 autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.WithBaseURLscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/WithBaseURL().(endpointsscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/internal/endpoints`/.GetBlobEndpointscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/internal/endpoints`/GetBlobEndpoint().(client.BaseURIscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#BaseURI., accountName)),
220 autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.WithPathParametersscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/WithPathParameters().("/{containerName}/{blobName}", pathParameters),
221 autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.WithHeadersscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/WithHeaders().(headers))
222 return preparer.Preparescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Preparer#Prepare().((&httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.13 `net/http`/Request#{}).WithContextscip-go gomod github.com/golang/go/src go1.13 `net/http`/Request#WithContext().(ctx))
223 }
224
225 // GetPropertiesSender sends the GetProperties request. The method will close the
226 // http.Response Body if it receives an error.
227 func (client Clientscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#) GetPropertiesSenderscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetPropertiesSender().(req *httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.13 `net/http`/Request#) (*httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/.Responsescip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#, error) {
228 return autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.SendWithSenderscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/SendWithSender().(client, req,
229 azurescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest/azure`/.DoRetryWithRegistrationscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest/azure`/DoRetryWithRegistration().(client.Clientscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#Client.))
230 }
231
232 // GetPropertiesResponder handles the response to the GetProperties request. The method always
233 // closes the http.Response Body.
234 func (client Clientscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#) GetPropertiesResponderscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/Client#GetPropertiesResponder().(resp *httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/.Responsescip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#) (result GetPropertiesResultscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#, err error) {
235 if resp != nil && resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header. != nil {
236 result.AccessTierscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#AccessTier. = AccessTierscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/AccessTier#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-access-tier"))
237 result.AccessTierChangeTimescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#AccessTierChangeTime. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().(" x-ms-access-tier-change-time")
238 result.ArchiveStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ArchiveStatus. = ArchiveStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/ArchiveStatus#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().(" x-ms-archive-status"))
239 result.BlobCommittedBlockCountscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#BlobCommittedBlockCount. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-blob-committed-block-count")
240 result.BlobSequenceNumberscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#BlobSequenceNumber. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-blob-sequence-number")
241 result.BlobTypescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#BlobType. = BlobTypescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/BlobType#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-blob-type"))
242 result.CacheControlscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CacheControl. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Cache-Control")
243 result.ContentDispositionscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentDisposition. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Content-Disposition")
244 result.ContentEncodingscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentEncoding. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Content-Encoding")
245 result.ContentLanguagescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentLanguage. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Content-Language")
246 result.ContentMD5scip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentMD5. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Content-MD5")
247 result.ContentTypescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentType. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Content-Type")
248 result.CopyCompletionTimescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyCompletionTime. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-completion-time")
249 result.CopyDestinationSnapshotscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyDestinationSnapshot. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-destination-snapshot")
250 result.CopyIDscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyID. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-id")
251 result.CopyProgressscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyProgress. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-progress")
252 result.CopySourcescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopySource. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-source")
253 result.CopyStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyStatus. = CopyStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/CopyStatus#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-status"))
254 result.CopyStatusDescriptionscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CopyStatusDescription. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-copy-status-description")
255 result.CreationTimescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#CreationTime. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-creation-time")
256 result.ETagscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ETag. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Etag")
257 result.LastModifiedscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LastModified. = resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Last-Modified")
258 result.LeaseDurationscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LeaseDuration. = LeaseDurationscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/LeaseDuration#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-lease-duration"))
259 result.LeaseStatescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LeaseState. = LeaseStatescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/LeaseState#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-lease-state"))
260 result.LeaseStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#LeaseStatus. = LeaseStatusscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/LeaseStatus#(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-lease-status"))
261 result.MetaDatascip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#MetaData. = metadatascip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/internal/metadata`/.ParseFromHeadersscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/internal/metadata`/ParseFromHeaders().(resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header.)
262
263 if v := resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-access-tier-inferred"); v != "" {
264 b, innerErr := strconvscip-go gomod github.com/golang/go/src go1.13 strconv/.ParseBoolscip-go gomod github.com/golang/go/src go1.13 strconv/ParseBool().(v)
265 if innerErr != nil {
266 err = fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("Error parsing %q as a bool: %s", v, innerErr)
267 return
268 }
269
270 result.AccessTierInferredscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#AccessTierInferred. = b
271 }
272
273 if v := resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("Content-Length"); v != "" {
274 i, innerErr := strconvscip-go gomod github.com/golang/go/src go1.13 strconv/.Atoiscip-go gomod github.com/golang/go/src go1.13 strconv/Atoi().(v)
275 if innerErr != nil {
276 err = fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("Error parsing %q as an integer: %s", v, innerErr)
277 }
278
279 result.ContentLengthscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#ContentLength. = int64(i)
280 }
281
282 if v := resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-incremental-copy"); v != "" {
283 b, innerErr := strconvscip-go gomod github.com/golang/go/src go1.13 strconv/.ParseBoolscip-go gomod github.com/golang/go/src go1.13 strconv/ParseBool().(v)
284 if innerErr != nil {
285 err = fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("Error parsing %q as a bool: %s", v, innerErr)
286 return
287 }
288
289 result.IncrementalCopyscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#IncrementalCopy. = b
290 }
291
292 if v := resp.Headerscip-go gomod github.com/golang/go/src go1.13 `net/http`/Response#Header..Getscip-go gomod github.com/golang/go/src go1.13 `net/http`/Header#Get().("x-ms-server-encrypted"); v != "" {
293 b, innerErr := strconvscip-go gomod github.com/golang/go/src go1.13 strconv/.ParseBoolscip-go gomod github.com/golang/go/src go1.13 strconv/ParseBool().(v)
294 if innerErr != nil {
295 err = fmtscip-go gomod github.com/golang/go/src go1.13 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.13 fmt/Errorf().("Error parsing %q as a bool: %s", v, innerErr)
296 return
297 }
298
299 result.IncrementalCopyscip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#IncrementalCopy. = b
300 }
301 }
302
303 err = autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.Respondscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Respond().(
304 resp,
305 client.ByInspectingscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Client#ByInspecting().(),
306 azurescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest/azure`/.WithErrorUnlessStatusCodescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest/azure`/WithErrorUnlessStatusCode().(httpscip-go gomod github.com/golang/go/src go1.13 `net/http`/.StatusOKscip-go gomod github.com/golang/go/src go1.13 `net/http`/StatusOK.),
307 autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.ByClosingscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/ByClosing().())
308 result.Responsescip-go gomod github.com/tombuildsstuff/giovanni . `github.com/tombuildsstuff/giovanni/storage/2018-03-28/blob/blobs`/GetPropertiesResult#Response. = autorestscip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/.Responsescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Response#{Responsescip-go gomod github.com/Azure/go-autorest/autorest v0.11.19 `github.com/Azure/go-autorest/autorest`/Response#Response.: resp}
309 return
310 }