Skip to content

Commit

Permalink
swagger-regenerate: 196d5c1
Browse files Browse the repository at this point in the history
  • Loading branch information
ljian3377 committed Sep 23, 2020
1 parent 33c0867 commit 5b49d57
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 58 deletions.
24 changes: 4 additions & 20 deletions sdk/storage/storage-file-share/src/generated/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export interface Range {
/**
* Settings for SMB protocol.
*/
export interface SmbSettings {
export interface ShareSmbSettings {
/**
* Settings for SMB Multichannel.
*/
Expand All @@ -286,11 +286,11 @@ export interface SmbSettings {
/**
* Protocol settings
*/
export interface ProtocolSettings {
export interface ShareProtocolSettings {
/**
* Settings for SMB protocol.
*/
smbSettings?: SmbSettings;
smb?: ShareSmbSettings;
}

/**
Expand Down Expand Up @@ -354,7 +354,7 @@ export interface FileServiceProperties {
/**
* Protocol settings
*/
protocolSettings?: ProtocolSettings;
protocol?: ShareProtocolSettings;
}

/**
Expand Down Expand Up @@ -1686,10 +1686,6 @@ export interface ShareAcquireLeaseHeaders {
* modified time of the share.
*/
lastModified?: Date;
/**
* Approximate time remaining in the lease period, in seconds.
*/
leaseTime?: number;
/**
* Uniquely identifies a share's lease
*/
Expand Down Expand Up @@ -1730,10 +1726,6 @@ export interface ShareReleaseLeaseHeaders {
* modified time of the share.
*/
lastModified?: Date;
/**
* Approximate time remaining in the lease period, in seconds.
*/
leaseTime?: number;
/**
* If a client request id header is sent in the request, this header will be present in the
* response with the same value.
Expand Down Expand Up @@ -1770,10 +1762,6 @@ export interface ShareChangeLeaseHeaders {
* modified time of the share.
*/
lastModified?: Date;
/**
* Approximate time remaining in the lease period, in seconds.
*/
leaseTime?: number;
/**
* Uniquely identifies a share's lease
*/
Expand Down Expand Up @@ -1814,10 +1802,6 @@ export interface ShareRenewLeaseHeaders {
* modified time of the share.
*/
lastModified?: Date;
/**
* Approximate time remaining in the lease period, in seconds.
*/
leaseTime?: number;
/**
* Uniquely identifies a share's lease
*/
Expand Down
48 changes: 12 additions & 36 deletions sdk/storage/storage-file-share/src/generated/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,11 @@ export const Range: coreHttp.CompositeMapper = {
}
};

export const SmbSettings: coreHttp.CompositeMapper = {
serializedName: "SmbSettings",
export const ShareSmbSettings: coreHttp.CompositeMapper = {
serializedName: "ShareSmbSettings",
type: {
name: "Composite",
className: "SmbSettings",
className: "ShareSmbSettings",
modelProperties: {
multichannel: {
xmlName: "Multichannel",
Expand All @@ -760,18 +760,18 @@ export const SmbSettings: coreHttp.CompositeMapper = {
}
};

export const ProtocolSettings: coreHttp.CompositeMapper = {
serializedName: "ProtocolSettings",
export const ShareProtocolSettings: coreHttp.CompositeMapper = {
serializedName: "ShareProtocolSettings",
type: {
name: "Composite",
className: "ProtocolSettings",
className: "ShareProtocolSettings",
modelProperties: {
smbSettings: {
smb: {
xmlName: "SMB",
serializedName: "SmbSettings",
serializedName: "Smb",
type: {
name: "Composite",
className: "SmbSettings"
className: "ShareSmbSettings"
}
}
}
Expand Down Expand Up @@ -895,12 +895,12 @@ export const FileServiceProperties: coreHttp.CompositeMapper = {
}
}
},
protocolSettings: {
protocol: {
xmlName: "ProtocolSettings",
serializedName: "ProtocolSettings",
serializedName: "Protocol",
type: {
name: "Composite",
className: "ProtocolSettings"
className: "ShareProtocolSettings"
}
}
}
Expand Down Expand Up @@ -1344,12 +1344,6 @@ export const ShareAcquireLeaseHeaders: coreHttp.CompositeMapper = {
name: "DateTimeRfc1123"
}
},
leaseTime: {
serializedName: "x-ms-lease-time",
type: {
name: "Number"
}
},
leaseId: {
serializedName: "x-ms-lease-id",
type: {
Expand Down Expand Up @@ -1408,12 +1402,6 @@ export const ShareReleaseLeaseHeaders: coreHttp.CompositeMapper = {
name: "DateTimeRfc1123"
}
},
leaseTime: {
serializedName: "x-ms-lease-time",
type: {
name: "Number"
}
},
clientRequestId: {
serializedName: "x-ms-client-request-id",
type: {
Expand Down Expand Up @@ -1466,12 +1454,6 @@ export const ShareChangeLeaseHeaders: coreHttp.CompositeMapper = {
name: "DateTimeRfc1123"
}
},
leaseTime: {
serializedName: "x-ms-lease-time",
type: {
name: "Number"
}
},
leaseId: {
serializedName: "x-ms-lease-id",
type: {
Expand Down Expand Up @@ -1530,12 +1512,6 @@ export const ShareRenewLeaseHeaders: coreHttp.CompositeMapper = {
name: "DateTimeRfc1123"
}
},
leaseTime: {
serializedName: "x-ms-lease-time",
type: {
name: "Number"
}
},
leaseId: {
serializedName: "x-ms-lease-id",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export {
FileServiceProperties,
ListSharesResponse,
Metrics,
ProtocolSettings,
RetentionPolicy,
ServiceGetPropertiesHeaders,
ServiceListSharesSegmentHeaders,
ServiceSetPropertiesHeaders,
ShareItem,
ShareProperties,
ShareProtocolSettings,
ShareSmbSettings,
SmbMultichannel,
SmbSettings,
StorageError
} from "../models/mappers";

0 comments on commit 5b49d57

Please sign in to comment.