Skip to content

Commit d85475b

Browse files
author
SDKAuto
committed
CodeGen from PR 14083 in Azure/azure-rest-api-specs
Merge 13779ed1af7fd703b8290766626b46265b0042dc into c16a5712e424a4578c1237af4f88ceb50d62fcf5
1 parent aee2c31 commit d85475b

19 files changed

+1350
-258
lines changed

sdk/appconfiguration/arm-appconfiguration/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/appconfiguration/arm-appconfiguration/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-appconfiguration
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list configurationStores as an example written in TypeScript.
18+
#### nodejs - client creation and list configurationStores as an example written in TypeScript.
1919

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

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

2727
##### Sample code
2828

29+
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
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { AppConfigurationManagementClient, AppConfigurationManagementModels, AppConfigurationManagementMappers } from "@azure/arm-appconfiguration";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {

sdk/appconfiguration/arm-appconfiguration/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -21,6 +20,7 @@ class AppConfigurationManagementClient extends AppConfigurationManagementClientC
2120
operations: operations.Operations;
2221
privateEndpointConnections: operations.PrivateEndpointConnections;
2322
privateLinkResources: operations.PrivateLinkResources;
23+
keyValues: operations.KeyValues;
2424

2525
/**
2626
* Initializes a new instance of the AppConfigurationManagementClient class.
@@ -34,6 +34,7 @@ class AppConfigurationManagementClient extends AppConfigurationManagementClientC
3434
this.operations = new operations.Operations(this);
3535
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
3636
this.privateLinkResources = new operations.PrivateLinkResources(this);
37+
this.keyValues = new operations.KeyValues(this);
3738
}
3839
}
3940

sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClientContext.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -37,25 +36,25 @@ export class AppConfigurationManagementClientContext extends msRestAzure.AzureSe
3736
if (!options) {
3837
options = {};
3938
}
40-
if (!options.userAgent) {
39+
if(!options.userAgent) {
4140
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4241
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4342
}
4443

4544
super(credentials, options);
4645

47-
this.apiVersion = '2020-06-01';
46+
this.apiVersion = '2021-03-01-preview';
4847
this.acceptLanguage = 'en-US';
4948
this.longRunningOperationRetryTimeout = 30;
5049
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5150
this.requestContentType = "application/json; charset=utf-8";
5251
this.credentials = credentials;
5352
this.subscriptionId = subscriptionId;
5453

55-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
54+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5655
this.acceptLanguage = options.acceptLanguage;
5756
}
58-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
57+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5958
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6059
}
6160
}
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -9,22 +9,27 @@
99
export {
1010
ApiKey,
1111
ApiKeyListResult,
12+
AzureEntityResource,
1213
BaseResource,
1314
ConfigurationStore,
1415
ConfigurationStoreListResult,
1516
ConfigurationStoreUpdateParameters,
1617
EncryptionProperties,
17-
ErrorModel,
18+
ErrorAdditionalInfo,
19+
ErrorDetails,
20+
ErrorResponse,
1821
KeyValue,
1922
KeyVaultProperties,
20-
ListKeyValueParameters,
2123
PrivateEndpoint,
2224
PrivateEndpointConnection,
2325
PrivateEndpointConnectionReference,
2426
PrivateLinkServiceConnectionState,
27+
ProxyResource,
2528
RegenerateKeyParameters,
2629
Resource,
2730
ResourceIdentity,
2831
Sku,
32+
SystemData,
33+
TrackedResource,
2934
UserIdentity
3035
} from "../models/mappers";

0 commit comments

Comments
 (0)