Skip to content

Commit

Permalink
CodeGen from PR 13374 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge aee6b6040c7e0f2dcf3f0d76010750164f10007c into 7e7622058576795b3e20412f43333ae4c2217e2c
  • Loading branch information
SDKAuto committed Mar 16, 2021
1 parent ca6fcf0 commit a066480
Show file tree
Hide file tree
Showing 12 changed files with 954 additions and 1,075 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
Expand Up @@ -7,16 +7,18 @@
*/

export {
AzureEntityResource,
BaseResource,
ComplianceStatus,
ConfigurationIdentity,
ErrorDefinition,
ErrorResponse,
HelmOperatorProperties,
ExtensionInstance,
ExtensionInstancesList,
ExtensionInstanceUpdate,
ExtensionStatus,
ProxyResource,
Resource,
SourceControlConfiguration,
SourceControlConfigurationList,
SystemData,
TrackedResource
Scope,
ScopeCluster,
ScopeNamespace,
SystemData
} from "../models/mappers";
Loading

0 comments on commit a066480

Please sign in to comment.