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"
|
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
|
### Add permissions in ListBlobsInclude
|
||||||
``` yaml
|
``` yaml
|
||||||
directive:
|
directive:
|
||||||
|
|
|
@ -95,6 +95,7 @@ type BlobProperties struct {
|
||||||
|
|
||||||
// REQUIRED
|
// REQUIRED
|
||||||
LastModified *time.Time `xml:"Last-Modified"`
|
LastModified *time.Time `xml:"Last-Modified"`
|
||||||
|
ACL *string `xml:"Acl"`
|
||||||
AccessTier *AccessTier `xml:"AccessTier"`
|
AccessTier *AccessTier `xml:"AccessTier"`
|
||||||
AccessTierChangeTime *time.Time `xml:"AccessTierChangeTime"`
|
AccessTierChangeTime *time.Time `xml:"AccessTierChangeTime"`
|
||||||
AccessTierInferred *bool `xml:"AccessTierInferred"`
|
AccessTierInferred *bool `xml:"AccessTierInferred"`
|
||||||
|
@ -124,6 +125,7 @@ type BlobProperties struct {
|
||||||
// The name of the encryption scope under which the blob is encrypted.
|
// The name of the encryption scope under which the blob is encrypted.
|
||||||
EncryptionScope *string `xml:"EncryptionScope"`
|
EncryptionScope *string `xml:"EncryptionScope"`
|
||||||
ExpiresOn *time.Time `xml:"Expiry-Time"`
|
ExpiresOn *time.Time `xml:"Expiry-Time"`
|
||||||
|
Group *string `xml:"Group"`
|
||||||
ImmutabilityPolicyExpiresOn *time.Time `xml:"ImmutabilityPolicyUntilDate"`
|
ImmutabilityPolicyExpiresOn *time.Time `xml:"ImmutabilityPolicyUntilDate"`
|
||||||
ImmutabilityPolicyMode *ImmutabilityPolicyMode `xml:"ImmutabilityPolicyMode"`
|
ImmutabilityPolicyMode *ImmutabilityPolicyMode `xml:"ImmutabilityPolicyMode"`
|
||||||
IncrementalCopy *bool `xml:"IncrementalCopy"`
|
IncrementalCopy *bool `xml:"IncrementalCopy"`
|
||||||
|
@ -133,11 +135,14 @@ type BlobProperties struct {
|
||||||
LeaseState *LeaseStateType `xml:"LeaseState"`
|
LeaseState *LeaseStateType `xml:"LeaseState"`
|
||||||
LeaseStatus *LeaseStatusType `xml:"LeaseStatus"`
|
LeaseStatus *LeaseStatusType `xml:"LeaseStatus"`
|
||||||
LegalHold *bool `xml:"LegalHold"`
|
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
|
// If an object is in rehydrate pending state then this header is returned with priority of rehydrate. Valid values are High
|
||||||
// and Standard.
|
// and Standard.
|
||||||
RehydratePriority *RehydratePriority `xml:"RehydratePriority"`
|
RehydratePriority *RehydratePriority `xml:"RehydratePriority"`
|
||||||
RemainingRetentionDays *int32 `xml:"RemainingRetentionDays"`
|
RemainingRetentionDays *int32 `xml:"RemainingRetentionDays"`
|
||||||
|
ResourceType *string `xml:"ResourceType"`
|
||||||
ServerEncrypted *bool `xml:"ServerEncrypted"`
|
ServerEncrypted *bool `xml:"ServerEncrypted"`
|
||||||
TagCount *int32 `xml:"TagCount"`
|
TagCount *int32 `xml:"TagCount"`
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче