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 57f88ff214a03c803b121a0d1bb859c8be7d2685 into ada21ec1b5c89d71e3784898b90b4ab1e0b7faa2
  • Loading branch information
SDKAuto committed Mar 16, 2021
1 parent ca6fcf0 commit 57f3891
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 57f3891

Please sign in to comment.