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

[ReleasePR @azure/arm-azurestack] [Hub Generated] Review request for Microsoft.AzureStack to add version preview/2020-06-01-preview #13314

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
2 changes: 1 addition & 1 deletion sdk/azurestack/arm-azurestack/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft
Copyright (c) 2021 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 4 additions & 5 deletions sdk/azurestack/arm-azurestack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-azurestack

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
#### nodejs - client creation and list operations as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { AzureStackManagementClient, AzureStackManagementModels, AzureStackManagementMappers } from "@azure/arm-azurestack";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { AzureStackManagementClient } = require("@azure/arm-azurestack");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/azurestack/arm-azurestack/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -18,6 +17,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 +32,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
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* 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
@@ -1,14 +1,16 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
BaseResource,
CloudError,
CloudManifestFileDeploymentData,
CloudManifestFileProperties,
CloudManifestFileResponse,
Compatibility,
CustomerSubscription,
CustomerSubscriptionList,
Expand Down
112 changes: 98 additions & 14 deletions sdk/azurestack/arm-azurestack/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down 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
82 changes: 80 additions & 2 deletions sdk/azurestack/arm-azurestack/src/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down 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
7 changes: 4 additions & 3 deletions sdk/azurestack/arm-azurestack/src/models/operationsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
CloudError,
Display,
ErrorDetails,
ErrorResponse,
Operation,
OperationList
} from "../models/mappers";
Loading