Skip to content

Commit

Permalink
CodeGen from PR 14302 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e16440efb4764a1a1637a52823dacac2a7949dfb into 3f1e770aa89c7d306d7cdb4f7aa852819d2f9fa8
  • Loading branch information
SDKAuto committed May 7, 2021
1 parent d1d463b commit 8955c5c
Show file tree
Hide file tree
Showing 22 changed files with 3,562 additions and 309 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 extensionName = "testextensionName";
client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName).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 extensionName = "testextensionName";
client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName).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,37 @@
/*
* 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 {
AzureEntityResource,
BaseResource,
ClusterScopeSettings,
ComplianceStatus,
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
Extension,
ExtensionStatus,
ExtensionType,
HelmOperatorProperties,
Identity,
Plan,
ProxyResource,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Scope,
ScopeCluster,
ScopeNamespace,
Sku,
SourceControlConfiguration,
SupportedScopes,
SystemData,
TrackedResource
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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 {
AzureEntityResource,
BaseResource,
ClusterScopeSettings,
ComplianceStatus,
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
Extension,
ExtensionStatus,
ExtensionType,
ExtensionTypeList,
HelmOperatorProperties,
Identity,
Plan,
ProxyResource,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Scope,
ScopeCluster,
ScopeNamespace,
Sku,
SourceControlConfiguration,
SupportedScopes,
SystemData,
TrackedResource
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* 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 {
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
ExtensionVersionList,
ExtensionVersionListVersionsItem,
SystemData
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* 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 {
AzureEntityResource,
BaseResource,
ClusterScopeSettings,
ComplianceStatus,
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
Extension,
ExtensionsList,
ExtensionStatus,
HelmOperatorProperties,
Identity,
Plan,
ProxyResource,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Scope,
ScopeCluster,
ScopeNamespace,
Sku,
SourceControlConfiguration,
SystemData,
TrackedResource
} from "../models/mappers";
Loading

0 comments on commit 8955c5c

Please sign in to comment.