Added permissions & resourcetype parameters in listblob response (#23687)
* one * Add permissions in ListBlobsIncludeItems * Add permissions in ListBlobsIncludeItems * Appending the value to swagger * Added Owner,Group,Permissions,Acl,ResourceType in ListBlob Response
This commit is contained in:
Родитель
f9b03ff28f
Коммит
cb9b6cbaaf
|
@ -22,6 +22,30 @@ export-clients: true
|
|||
use: "@autorest/go@4.0.0-preview.65"
|
||||
```
|
||||
|
||||
### Add Owner,Group,Permissions,Acl,ResourceType in ListBlob Response
|
||||
``` yaml
|
||||
directive:
|
||||
- from: swagger-document
|
||||
where: $.definitions
|
||||
transform: >
|
||||
$.BlobPropertiesInternal.properties["Owner"] = {
|
||||
"type" : "string",
|
||||
};
|
||||
$.BlobPropertiesInternal.properties["Group"] = {
|
||||
"type" : "string",
|
||||
};
|
||||
$.BlobPropertiesInternal.properties["Permissions"] = {
|
||||
"type" : "string",
|
||||
};
|
||||
$.BlobPropertiesInternal.properties["Acl"] = {
|
||||
"type" : "string",
|
||||
};
|
||||
$.BlobPropertiesInternal.properties["ResourceType"] = {
|
||||
"type" : "string",
|
||||
};
|
||||
|
||||
```
|
||||
|
||||
### Add permissions in ListBlobsInclude
|
||||
``` yaml
|
||||
directive:
|
||||
|
|
|
@ -95,6 +95,7 @@ type BlobProperties struct {
|
|||
|
||||
// REQUIRED
|
||||
LastModified *time.Time `xml:"Last-Modified"`
|
||||
ACL *string `xml:"Acl"`
|
||||
AccessTier *AccessTier `xml:"AccessTier"`
|
||||
AccessTierChangeTime *time.Time `xml:"AccessTierChangeTime"`
|
||||
AccessTierInferred *bool `xml:"AccessTierInferred"`
|
||||
|
@ -124,6 +125,7 @@ type BlobProperties struct {
|
|||
// The name of the encryption scope under which the blob is encrypted.
|
||||
EncryptionScope *string `xml:"EncryptionScope"`
|
||||
ExpiresOn *time.Time `xml:"Expiry-Time"`
|
||||
Group *string `xml:"Group"`
|
||||
ImmutabilityPolicyExpiresOn *time.Time `xml:"ImmutabilityPolicyUntilDate"`
|
||||
ImmutabilityPolicyMode *ImmutabilityPolicyMode `xml:"ImmutabilityPolicyMode"`
|
||||
IncrementalCopy *bool `xml:"IncrementalCopy"`
|
||||
|
@ -133,11 +135,14 @@ type BlobProperties struct {
|
|||
LeaseState *LeaseStateType `xml:"LeaseState"`
|
||||
LeaseStatus *LeaseStatusType `xml:"LeaseStatus"`
|
||||
LegalHold *bool `xml:"LegalHold"`
|
||||
Owner *string `xml:"Owner"`
|
||||
Permissions *string `xml:"Permissions"`
|
||||
|
||||
// If an object is in rehydrate pending state then this header is returned with priority of rehydrate. Valid values are High
|
||||
// and Standard.
|
||||
RehydratePriority *RehydratePriority `xml:"RehydratePriority"`
|
||||
RemainingRetentionDays *int32 `xml:"RemainingRetentionDays"`
|
||||
ResourceType *string `xml:"ResourceType"`
|
||||
ServerEncrypted *bool `xml:"ServerEncrypted"`
|
||||
TagCount *int32 `xml:"TagCount"`
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче