Skip to content
Closed
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 @@ -18,6 +18,7 @@ import { AzureStackManagementClientContext } from "./azureStackManagementClientC
class AzureStackManagementClient extends AzureStackManagementClientContext {
// Operation groups
operations: operations.Operations;
cloudManifestFile: operations.CloudManifestFile;
products: operations.Products;
registrations: operations.Registrations;
customerSubscriptions: operations.CustomerSubscriptions;
Expand All @@ -32,6 +33,7 @@ class AzureStackManagementClient extends AzureStackManagementClientContext {
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureStackManagementClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.cloudManifestFile = new operations.CloudManifestFile(this);
this.products = new operations.Products(this);
this.registrations = new operations.Registrations(this);
this.customerSubscriptions = new operations.CustomerSubscriptions(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
BaseResource,
CloudManifestFileDeploymentData,
CloudManifestFileProperties,
CloudManifestFileResponse,
Compatibility,
CustomerSubscription,
ErrorDetails,
ErrorResponse,
IconUris,
Product,
ProductLink,
ProductProperties,
Registration,
Resource,
TrackedResource
} from "../models/mappers";
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
export {
BaseResource,
CloudError,
CloudManifestFileDeploymentData,
CloudManifestFileProperties,
CloudManifestFileResponse,
Compatibility,
CustomerSubscription,
CustomerSubscriptionList,
Expand Down
108 changes: 96 additions & 12 deletions sdk/azurestack/arm-azurestack/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,52 @@ export interface Operation {
origin?: string;
}

/**
* Cloud specific manifest data for AzureStack deployment.
*/
export interface CloudManifestFileDeploymentData {
/**
* Dsms external certificates.
*/
externalDsmsCertificates?: string;
/**
* Signing verification public key.
*/
customCloudVerificationKey?: string;
/**
* ARM endpoint.
*/
customCloudArmEndpoint?: string;
/**
* Dsms endpoint.
*/
externalDsmsEndpoint?: string;
}

/**
* Cloud specific manifest JSON properties.
*/
export interface CloudManifestFileProperties {
/**
* Cloud specific manifest data.
*/
deploymentData?: CloudManifestFileDeploymentData;
/**
* Signature of the cloud specific manifest data.
*/
signature?: string;
}

/**
* Cloud specific manifest GET response.
*/
export interface CloudManifestFileResponse extends Resource {
/**
* Cloud specific manifest data.
*/
properties?: CloudManifestFileProperties;
}

/**
* The details of the error.
*/
Expand Down Expand Up @@ -588,10 +634,6 @@ export interface RegistrationParameter {
* The token identifying registered Azure Stack
*/
registrationToken: string;
/**
* Location of the resource. Possible values include: 'global'
*/
location?: Location;
}

/**
Expand All @@ -604,6 +646,16 @@ export interface CustomerSubscription extends Resource {
tenantId?: string;
}

/**
* Optional Parameters.
*/
export interface CloudManifestFileGetOptionalParams extends msRest.RequestOptionsBase {
/**
* Signing verification key version creation date.
*/
versionCreationDate?: string;
}

/**
* An interface representing AzureStackManagementClientOptions.
*/
Expand Down Expand Up @@ -703,14 +755,6 @@ export type CompatibilityIssue = 'HigherDeviceVersionRequired' | 'LowerDeviceVer
*/
export type Category = 'AzureAD' | 'ADFS';

/**
* Defines values for Location.
* Possible values include: 'global'
* @readonly
* @enum {string}
*/
export type Location = 'global';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -751,6 +795,46 @@ export type OperationsListNextResponse = OperationList & {
};
};

/**
* Contains response data for the list operation.
*/
export type CloudManifestFileListResponse = CloudManifestFileResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: CloudManifestFileResponse;
};
};

/**
* Contains response data for the get operation.
*/
export type CloudManifestFileGetResponse = CloudManifestFileResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: CloudManifestFileResponse;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
78 changes: 78 additions & 0 deletions sdk/azurestack/arm-azurestack/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,81 @@ export const Operation: msRest.CompositeMapper = {
}
};

export const CloudManifestFileDeploymentData: msRest.CompositeMapper = {
serializedName: "CloudManifestFileDeploymentData",
type: {
name: "Composite",
className: "CloudManifestFileDeploymentData",
modelProperties: {
externalDsmsCertificates: {
serializedName: "externalDsmsCertificates",
type: {
name: "String"
}
},
customCloudVerificationKey: {
serializedName: "customCloudVerificationKey",
type: {
name: "String"
}
},
customCloudArmEndpoint: {
serializedName: "customEnvironmentEndpoints.customCloudArmEndpoint",
type: {
name: "String"
}
},
externalDsmsEndpoint: {
serializedName: "customEnvironmentEndpoints.externalDsmsEndpoint",
type: {
name: "String"
}
}
}
}
};

export const CloudManifestFileProperties: msRest.CompositeMapper = {
serializedName: "CloudManifestFileProperties",
type: {
name: "Composite",
className: "CloudManifestFileProperties",
modelProperties: {
deploymentData: {
serializedName: "deploymentData",
type: {
name: "Composite",
className: "CloudManifestFileDeploymentData"
}
},
signature: {
serializedName: "signature",
type: {
name: "String"
}
}
}
}
};

export const CloudManifestFileResponse: msRest.CompositeMapper = {
serializedName: "CloudManifestFileResponse",
type: {
name: "Composite",
className: "CloudManifestFileResponse",
modelProperties: {
...Resource.type.modelProperties,
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "CloudManifestFileProperties"
}
}
}
}
};

export const ErrorDetails: msRest.CompositeMapper = {
serializedName: "ErrorDetails",
type: {
Expand Down Expand Up @@ -909,7 +984,10 @@ export const RegistrationParameter: msRest.CompositeMapper = {
}
},
location: {
required: true,
isConstant: true,
serializedName: "location",
defaultValue: 'global',
type: {
name: "String"
}
Expand Down
22 changes: 22 additions & 0 deletions sdk/azurestack/arm-azurestack/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,25 @@ export const subscriptionId: msRest.OperationURLParameter = {
}
}
};
export const verificationVersion: msRest.OperationURLParameter = {
parameterPath: "verificationVersion",
mapper: {
required: true,
serializedName: "verificationVersion",
type: {
name: "String"
}
}
};
export const versionCreationDate: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"versionCreationDate"
],
mapper: {
serializedName: "versionCreationDate",
type: {
name: "String"
}
}
};
3 changes: 3 additions & 0 deletions sdk/azurestack/arm-azurestack/src/models/productsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
export {
BaseResource,
CloudError,
CloudManifestFileDeploymentData,
CloudManifestFileProperties,
CloudManifestFileResponse,
Compatibility,
CustomerSubscription,
DataDiskImage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export {
ActivationKeyResult,
BaseResource,
CloudError,
CloudManifestFileDeploymentData,
CloudManifestFileProperties,
CloudManifestFileResponse,
Compatibility,
CustomerSubscription,
ErrorDetails,
Expand Down
Loading