Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-vmwarevirtustream] add SKU name to PrivateCloud for AVS 2019-08-09-preview #1162

Open
wants to merge 1 commit into
base: sdkAutomation/@azure_arm-vmwarevirtustream
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export {
PrivateCloud,
PrivateCloudProperties,
Resource,
Sku,
TrackedResource
} from "../models/mappers";
14 changes: 14 additions & 0 deletions sdk/vmwarevirtustream/arm-vmwarevirtustream/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,16 @@ export interface IdentitySource {
password?: string;
}

/**
* The resource model definition representing SKU
*/
export interface Sku {
/**
* The name of the SKU.
*/
name: string;
}

/**
* The properties of a default cluster
*/
Expand Down Expand Up @@ -334,6 +344,10 @@ export interface PrivateCloudProperties {
* A private cloud resource
*/
export interface PrivateCloud extends TrackedResource {
/**
* The private cloud SKU
*/
sku?: Sku;
/**
* The properties of a private cloud resource
*/
Expand Down
24 changes: 24 additions & 0 deletions sdk/vmwarevirtustream/arm-vmwarevirtustream/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,23 @@ export const IdentitySource: msRest.CompositeMapper = {
}
};

export const Sku: msRest.CompositeMapper = {
serializedName: "Sku",
type: {
name: "Composite",
className: "Sku",
modelProperties: {
name: {
required: true,
serializedName: "name",
type: {
name: "String"
}
}
}
}
};

export const DefaultClusterProperties: msRest.CompositeMapper = {
serializedName: "DefaultClusterProperties",
type: {
Expand Down Expand Up @@ -525,6 +542,13 @@ export const PrivateCloud: msRest.CompositeMapper = {
className: "PrivateCloud",
modelProperties: {
...TrackedResource.type.modelProperties,
sku: {
serializedName: "sku",
type: {
name: "Composite",
className: "Sku"
}
},
properties: {
serializedName: "properties",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export {
PrivateCloudList,
PrivateCloudProperties,
Resource,
Sku,
TrackedResource
} from "../models/mappers";