Skip to content

Commit

Permalink
CodeGen from PR 13562 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b95c4de769c624e137e344940878f236a82da78a into 2db34d9bfb885d51439dfdb7409aedd7547c8caf
  • Loading branch information
SDKAuto committed Mar 23, 2021
1 parent a22db68 commit 989ce78
Show file tree
Hide file tree
Showing 11 changed files with 1,395 additions and 209 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-kubernetesconfiguration

### How to use

#### nodejs - client creation and get sourceControlConfigurations as an example written in TypeScript.
#### nodejs - client creation and get extensions as an example written in TypeScript.

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

Expand All @@ -38,8 +38,8 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
const clusterRp = "Microsoft.ContainerService";
const clusterResourceName = "managedClusters";
const clusterName = "testclusterName";
const sourceControlConfigurationName = "testsourceControlConfigurationName";
client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => {
const extensionInstanceName = "testextensionInstanceName";
client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionInstanceName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -48,7 +48,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and get sourceControlConfigurations as an example written in JavaScript.
#### browser - Authentication, client creation and get extensions as an example written in JavaScript.

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

Expand Down Expand Up @@ -86,8 +86,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
const clusterRp = "Microsoft.ContainerService";
const clusterResourceName = "managedClusters";
const clusterName = "testclusterName";
const sourceControlConfigurationName = "testsourceControlConfigurationName";
client.sourceControlConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).then((result) => {
const extensionInstanceName = "testextensionInstanceName";
client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionInstanceName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* 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,
ComplianceStatus,
ConfigurationIdentity,
ErrorDefinition,
ErrorResponse,
ExtensionInstance,
ExtensionInstancesList,
ExtensionInstanceUpdate,
ExtensionStatus,
HelmOperatorProperties,
ProxyResource,
Resource,
Scope,
ScopeCluster,
ScopeNamespace,
SourceControlConfiguration,
SystemData
} from "../models/mappers";
Loading

0 comments on commit 989ce78

Please sign in to comment.