Skip to content

Commit

Permalink
Generated from c4f6fc7174727ce7294d711373a212ac3a0fbf86
Browse files Browse the repository at this point in the history
added references for test file
  • Loading branch information
SDK Automation committed Jul 15, 2020
1 parent ce78568 commit e04bfda
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ export interface ShippingInformation {
* Phone number of the recipient of the returned drives.
*/
phone?: string;
/**
* Additional shipping information for customer, specific to datacenter to which customer should
* send their disks.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly additionalInformation?: string;
}

/**
Expand Down Expand Up @@ -249,6 +255,25 @@ export interface ExportModel {
blobListblobPath?: string;
}

/**
* Specifies the encryption key properties
*/
export interface EncryptionKeyDetails {
/**
* The type of kek encryption key. Possible values include: 'MicrosoftManaged',
* 'CustomerManaged'. Default value: 'MicrosoftManaged'.
*/
kekType?: KekType;
/**
* Specifies the url for kek encryption key.
*/
kekUrl?: string;
/**
* Specifies the keyvault resource id for kek encryption key.
*/
kekVaultResourceID?: string;
}

/**
* Specifies the job properties
*/
Expand Down Expand Up @@ -331,6 +356,10 @@ export interface JobDetails {
* Specifies the provisioning state of the job.
*/
provisioningState?: string;
/**
* Contains information about the encryption key.
*/
encryptionKey?: EncryptionKeyDetails;
}

/**
Expand All @@ -351,6 +380,27 @@ export interface PutJobParameters {
properties?: JobDetails;
}

/**
* Specifies the identity properties.
*/
export interface IdentityDetails {
/**
* The type of identity. Possible values include: 'None', 'SystemAssigned', 'UserAssigned'.
* Default value: 'None'.
*/
type?: Type;
/**
* Specifies the principal id for the identity for the job.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* Specifies the tenant id for the identity for the job.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
}

/**
* Update Job parameters
*/
Expand Down Expand Up @@ -428,6 +478,10 @@ export interface JobResponse extends BaseResource {
* Specifies the job properties
*/
properties?: JobDetails;
/**
* Specifies the job identity details
*/
identity?: IdentityDetails;
}

/**
Expand Down Expand Up @@ -623,6 +677,22 @@ export interface ListOperationsResponse extends Array<Operation> {
*/
export type DriveState = 'Specified' | 'Received' | 'NeverReceived' | 'Transferring' | 'Completed' | 'CompletedMoreInfo' | 'ShippedBack';

/**
* Defines values for KekType.
* Possible values include: 'MicrosoftManaged', 'CustomerManaged'
* @readonly
* @enum {string}
*/
export type KekType = 'MicrosoftManaged' | 'CustomerManaged';

/**
* Defines values for Type.
* Possible values include: 'None', 'SystemAssigned', 'UserAssigned'
* @readonly
* @enum {string}
*/
export type Type = 'None' | 'SystemAssigned' | 'UserAssigned';

/**
* Contains response data for the list operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
export {
BaseResource,
DriveStatus,
EncryptionKeyDetails,
ErrorResponse,
ErrorResponseErrorDetailsItem,
ExportModel,
IdentityDetails,
JobDetails,
JobResponse,
ListJobsResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ export const ShippingInformation: msRest.CompositeMapper = {
type: {
name: "String"
}
},
additionalInformation: {
readOnly: true,
serializedName: "additionalInformation",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -403,6 +410,35 @@ export const ExportModel: msRest.CompositeMapper = {
}
};

export const EncryptionKeyDetails: msRest.CompositeMapper = {
serializedName: "EncryptionKeyDetails",
type: {
name: "Composite",
className: "EncryptionKeyDetails",
modelProperties: {
kekType: {
serializedName: "kekType",
defaultValue: 'MicrosoftManaged',
type: {
name: "String"
}
},
kekUrl: {
serializedName: "kekUrl",
type: {
name: "String"
}
},
kekVaultResourceID: {
serializedName: "kekVaultResourceID",
type: {
name: "String"
}
}
}
}
};

export const JobDetails: msRest.CompositeMapper = {
serializedName: "JobDetails",
type: {
Expand Down Expand Up @@ -522,6 +558,13 @@ export const JobDetails: msRest.CompositeMapper = {
type: {
name: "String"
}
},
encryptionKey: {
serializedName: "encryptionKey",
type: {
name: "Composite",
className: "EncryptionKeyDetails"
}
}
}
}
Expand Down Expand Up @@ -556,6 +599,37 @@ export const PutJobParameters: msRest.CompositeMapper = {
}
};

export const IdentityDetails: msRest.CompositeMapper = {
serializedName: "IdentityDetails",
type: {
name: "Composite",
className: "IdentityDetails",
modelProperties: {
type: {
serializedName: "type",
defaultValue: 'None',
type: {
name: "String"
}
},
principalId: {
readOnly: true,
serializedName: "principalId",
type: {
name: "String"
}
},
tenantId: {
readOnly: true,
serializedName: "tenantId",
type: {
name: "String"
}
}
}
}
};

export const UpdateJobParameters: msRest.CompositeMapper = {
serializedName: "UpdateJobParameters",
type: {
Expand Down Expand Up @@ -674,6 +748,13 @@ export const JobResponse: msRest.CompositeMapper = {
name: "Composite",
className: "JobDetails"
}
},
identity: {
serializedName: "identity",
type: {
name: "Composite",
className: "IdentityDetails"
}
}
}
}
Expand Down

0 comments on commit e04bfda

Please sign in to comment.