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

[AutoPR @azure/arm-kubernetesconfiguration] KubernetesConfiguration Add package-preview-2021-03 #3964

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
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