kubernetConfiguration-track2-release (#21234)
This commit is contained in:
Родитель
c7646d0c33
Коммит
aafe54e2a7
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,18 +1,8 @@
|
|||
# Release History
|
||||
|
||||
## 5.0.0 (2022-04-06)
|
||||
|
||||
## 5.0.0-beta.2 (Unreleased)
|
||||
|
||||
### Features Added
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
### Other Changes
|
||||
|
||||
## 5.0.0-beta.1 (2022-01-17)
|
||||
|
||||
The package of @azure/arm-kubernetesconfiguration is using our next generation design principles since version 5.0.0-beta.1, which contains breaking changes.
|
||||
The package of @azure/arm-kubernetesconfiguration is using our next generation design principles since version 5.0.0, which contains breaking changes.
|
||||
|
||||
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ KubernetesConfiguration Client
|
|||
|
||||
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration) |
|
||||
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-kubernetesconfiguration) |
|
||||
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview) |
|
||||
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration) |
|
||||
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
||||
|
||||
## Getting started
|
||||
|
@ -16,6 +16,8 @@ KubernetesConfiguration Client
|
|||
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
||||
- Latest versions of Safari, Chrome, Edge and Firefox.
|
||||
|
||||
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- An [Azure subscription][azure_sub].
|
||||
|
@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|||
```javascript
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
||||
|
||||
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
const client = new SourceControlConfigurationClient(new DefaultAzureCredential(), subscriptionId);
|
||||
|
||||
// For client-side applications running in the browser, use this code instead:
|
||||
// const credential = new InteractiveBrowserCredential({
|
||||
// tenantId: "<YOUR_TENANT_ID>",
|
||||
// clientId: "<YOUR_CLIENT_ID>"
|
||||
// });
|
||||
// const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"commit": "dc439efcfc15448824877603f66fc1578d1c71c5",
|
||||
"commit": "e4b7e666673125aeb2b130f2a196e6aa7f8aca72",
|
||||
"readme": "specification/kubernetesconfiguration/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/kubernetesconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
|
||||
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\kubernetesconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1 --generate-sample=true",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"use": "@autorest/typescript@6.0.0-alpha.16.20211217.1"
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.1",
|
||||
"use": "@autorest/typescript@6.0.0-alpha.18.20220329.1"
|
||||
}
|
|
@ -1,18 +1,31 @@
|
|||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
|
||||
"docModel": { "enabled": true },
|
||||
"apiReport": { "enabled": true, "reportFolder": "./review" },
|
||||
"docModel": {
|
||||
"enabled": true
|
||||
},
|
||||
"apiReport": {
|
||||
"enabled": true,
|
||||
"reportFolder": "./review"
|
||||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true,
|
||||
"untrimmedFilePath": "",
|
||||
"publicTrimmedFilePath": "./types/arm-kubernetesconfiguration.d.ts"
|
||||
},
|
||||
"messages": {
|
||||
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
|
||||
"tsdocMessageReporting": {
|
||||
"default": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
},
|
||||
"extractorMessageReporting": {
|
||||
"ae-missing-release-tag": { "logLevel": "none" },
|
||||
"ae-unresolved-link": { "logLevel": "none" }
|
||||
"ae-missing-release-tag": {
|
||||
"logLevel": "none"
|
||||
},
|
||||
"ae-unresolved-link": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
"sdk-type": "mgmt",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "A generated SDK for SourceControlConfigurationClient.",
|
||||
"version": "5.0.0-beta.2",
|
||||
"version": "5.0.0",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
|
@ -29,13 +29,13 @@
|
|||
"types": "./types/arm-kubernetesconfiguration.d.ts",
|
||||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "^7.18.11",
|
||||
"@rollup/plugin-commonjs": "11.0.2",
|
||||
"@rollup/plugin-json": "^4.0.0",
|
||||
"@rollup/plugin-multi-entry": "^3.0.0",
|
||||
"@rollup/plugin-node-resolve": "^8.0.0",
|
||||
"@rollup/plugin-commonjs": "^21.0.1",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-multi-entry": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||
"mkdirp": "^1.0.4",
|
||||
"rollup": "^1.16.3",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"rollup": "^2.66.1",
|
||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||
"typescript": "~4.2.0",
|
||||
"uglify-js": "^3.4.9",
|
||||
"rimraf": "^3.0.0",
|
||||
|
@ -98,5 +98,21 @@
|
|||
"docs": "echo skipped"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"autoPublish": true
|
||||
}
|
||||
"//metadata": {
|
||||
"constantPaths": [
|
||||
{
|
||||
"path": "src/sourceControlConfigurationClient.ts",
|
||||
"prefix": "packageDetails"
|
||||
}
|
||||
]
|
||||
},
|
||||
"autoPublish": true,
|
||||
"//sampleConfiguration": {
|
||||
"productName": "",
|
||||
"productSlugs": [
|
||||
"azure"
|
||||
],
|
||||
"disableDocsMs": true,
|
||||
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview"
|
||||
}
|
||||
}
|
|
@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|||
import { PollerLike } from '@azure/core-lro';
|
||||
import { PollOperationState } from '@azure/core-lro';
|
||||
|
||||
// @public
|
||||
export type AKSIdentityType = "SystemAssigned" | "UserAssigned";
|
||||
|
||||
// @public
|
||||
export interface BucketDefinition {
|
||||
accessKey?: string;
|
||||
|
@ -32,46 +35,6 @@ export interface BucketPatchDefinition {
|
|||
url?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ClusterExtensionType {
|
||||
get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionTypeName: string, options?: ClusterExtensionTypeGetOptionalParams): Promise<ClusterExtensionTypeGetResponse>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ClusterExtensionTypeGetOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type ClusterExtensionTypeGetResponse = ExtensionType;
|
||||
|
||||
// @public
|
||||
export interface ClusterExtensionTypes {
|
||||
list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: ClusterExtensionTypesListOptionalParams): PagedAsyncIterableIterator<ExtensionType>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ClusterExtensionTypesListNextOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type ClusterExtensionTypesListNextResponse = ExtensionTypeList;
|
||||
|
||||
// @public
|
||||
export interface ClusterExtensionTypesListOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type ClusterExtensionTypesListResponse = ExtensionTypeList;
|
||||
|
||||
// @public
|
||||
export type ClusterScopeSettings = ProxyResource & {
|
||||
allowMultipleInstances?: boolean;
|
||||
defaultReleaseNamespace?: string;
|
||||
};
|
||||
|
||||
// @public
|
||||
export type ClusterTypes = "connectedClusters" | "managedClusters";
|
||||
|
||||
// @public
|
||||
export type ComplianceStateType = string;
|
||||
|
||||
|
@ -86,17 +49,6 @@ export interface ComplianceStatus {
|
|||
// @public
|
||||
export type CreatedByType = string;
|
||||
|
||||
// @public
|
||||
export interface DependsOnDefinition {
|
||||
kustomizationName?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type Enum0 = string;
|
||||
|
||||
// @public
|
||||
export type Enum1 = string;
|
||||
|
||||
// @public
|
||||
export interface ErrorAdditionalInfo {
|
||||
readonly info?: Record<string, unknown>;
|
||||
|
@ -132,6 +84,7 @@ export type Extension = ProxyResource & {
|
|||
configurationProtectedSettings?: {
|
||||
[propertyName: string]: string;
|
||||
};
|
||||
readonly installedVersion?: string;
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
statuses?: ExtensionStatus[];
|
||||
readonly errorInfo?: ErrorDetail;
|
||||
|
@ -146,19 +99,19 @@ export type Extension = ProxyResource & {
|
|||
export interface ExtensionPropertiesAksAssignedIdentity {
|
||||
readonly principalId?: string;
|
||||
readonly tenantId?: string;
|
||||
type?: "SystemAssigned";
|
||||
type?: AKSIdentityType;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface Extensions {
|
||||
beginCreate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise<PollerLike<PollOperationState<ExtensionsCreateResponse>, ExtensionsCreateResponse>>;
|
||||
beginCreateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise<ExtensionsCreateResponse>;
|
||||
beginDelete(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise<void>;
|
||||
beginUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ExtensionsUpdateResponse>, ExtensionsUpdateResponse>>;
|
||||
beginUpdateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise<ExtensionsUpdateResponse>;
|
||||
get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise<ExtensionsGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: ExtensionsListOptionalParams): PagedAsyncIterableIterator<Extension>;
|
||||
beginCreate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise<PollerLike<PollOperationState<ExtensionsCreateResponse>, ExtensionsCreateResponse>>;
|
||||
beginCreateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise<ExtensionsCreateResponse>;
|
||||
beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise<void>;
|
||||
beginUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ExtensionsUpdateResponse>, ExtensionsUpdateResponse>>;
|
||||
beginUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, patchExtension: PatchExtension, options?: ExtensionsUpdateOptionalParams): Promise<ExtensionsUpdateResponse>;
|
||||
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise<ExtensionsGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: ExtensionsListOptionalParams): PagedAsyncIterableIterator<Extension>;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -222,58 +175,12 @@ export interface ExtensionsUpdateOptionalParams extends coreClient.OperationOpti
|
|||
// @public
|
||||
export type ExtensionsUpdateResponse = Extension;
|
||||
|
||||
// @public
|
||||
export interface ExtensionType {
|
||||
readonly clusterTypes?: ClusterTypes;
|
||||
readonly releaseTrains?: string[];
|
||||
readonly supportedScopes?: SupportedScopes;
|
||||
readonly systemData?: SystemData;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ExtensionTypeList {
|
||||
nextLink?: string;
|
||||
value?: ExtensionType[];
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ExtensionTypeVersions {
|
||||
list(location: string, extensionTypeName: string, options?: ExtensionTypeVersionsListOptionalParams): PagedAsyncIterableIterator<ExtensionVersionListVersionsItem>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ExtensionTypeVersionsListNextOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type ExtensionTypeVersionsListNextResponse = ExtensionVersionList;
|
||||
|
||||
// @public
|
||||
export interface ExtensionTypeVersionsListOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type ExtensionTypeVersionsListResponse = ExtensionVersionList;
|
||||
|
||||
// @public
|
||||
export interface ExtensionVersionList {
|
||||
nextLink?: string;
|
||||
readonly systemData?: SystemData;
|
||||
versions?: ExtensionVersionListVersionsItem[];
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface ExtensionVersionListVersionsItem {
|
||||
releaseTrain?: string;
|
||||
versions?: string[];
|
||||
}
|
||||
|
||||
// @public
|
||||
export type FluxComplianceState = string;
|
||||
|
||||
// @public
|
||||
export interface FluxConfigOperationStatus {
|
||||
get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, operationId: string, options?: FluxConfigOperationStatusGetOptionalParams): Promise<FluxConfigOperationStatusGetResponse>;
|
||||
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, operationId: string, options?: FluxConfigOperationStatusGetOptionalParams): Promise<FluxConfigOperationStatusGetResponse>;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -300,8 +207,9 @@ export type FluxConfiguration = ProxyResource & {
|
|||
};
|
||||
readonly statuses?: (ObjectStatusDefinition | null)[];
|
||||
readonly repositoryPublicKey?: string;
|
||||
readonly lastSourceUpdatedCommitId?: string;
|
||||
readonly lastSourceUpdatedAt?: Date;
|
||||
readonly sourceSyncedCommitId?: string;
|
||||
readonly sourceUpdatedAt?: Date;
|
||||
readonly statusUpdatedAt?: Date;
|
||||
readonly complianceState?: FluxComplianceState;
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
readonly errorMessage?: string;
|
||||
|
@ -309,7 +217,7 @@ export type FluxConfiguration = ProxyResource & {
|
|||
|
||||
// @public
|
||||
export interface FluxConfigurationPatch {
|
||||
bucket?: BucketDefinition;
|
||||
bucket?: BucketPatchDefinition;
|
||||
configurationProtectedSettings?: {
|
||||
[propertyName: string]: string;
|
||||
};
|
||||
|
@ -323,14 +231,14 @@ export interface FluxConfigurationPatch {
|
|||
|
||||
// @public
|
||||
export interface FluxConfigurations {
|
||||
beginCreateOrUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<FluxConfigurationsCreateOrUpdateResponse>, FluxConfigurationsCreateOrUpdateResponse>>;
|
||||
beginCreateOrUpdateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise<FluxConfigurationsCreateOrUpdateResponse>;
|
||||
beginDelete(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise<void>;
|
||||
beginUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise<PollerLike<PollOperationState<FluxConfigurationsUpdateResponse>, FluxConfigurationsUpdateResponse>>;
|
||||
beginUpdateAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise<FluxConfigurationsUpdateResponse>;
|
||||
get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams): Promise<FluxConfigurationsGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: FluxConfigurationsListOptionalParams): PagedAsyncIterableIterator<FluxConfiguration>;
|
||||
beginCreateOrUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<FluxConfigurationsCreateOrUpdateResponse>, FluxConfigurationsCreateOrUpdateResponse>>;
|
||||
beginCreateOrUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfiguration: FluxConfiguration, options?: FluxConfigurationsCreateOrUpdateOptionalParams): Promise<FluxConfigurationsCreateOrUpdateResponse>;
|
||||
beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsDeleteOptionalParams): Promise<void>;
|
||||
beginUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise<PollerLike<PollOperationState<FluxConfigurationsUpdateResponse>, FluxConfigurationsUpdateResponse>>;
|
||||
beginUpdateAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, fluxConfigurationPatch: FluxConfigurationPatch, options?: FluxConfigurationsUpdateOptionalParams): Promise<FluxConfigurationsUpdateResponse>;
|
||||
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, fluxConfigurationName: string, options?: FluxConfigurationsGetOptionalParams): Promise<FluxConfigurationsGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: FluxConfigurationsListOptionalParams): PagedAsyncIterableIterator<FluxConfiguration>;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -415,7 +323,7 @@ export interface HelmOperatorProperties {
|
|||
chartVersion?: string;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
// @public
|
||||
export interface HelmReleasePropertiesDefinition {
|
||||
failureCount?: number;
|
||||
helmChartRef?: ObjectReferenceDefinition;
|
||||
|
@ -457,22 +365,6 @@ export enum KnownCreatedByType {
|
|||
User = "User"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownEnum0 {
|
||||
// (undocumented)
|
||||
MicrosoftContainerService = "Microsoft.ContainerService",
|
||||
// (undocumented)
|
||||
MicrosoftKubernetes = "Microsoft.Kubernetes"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownEnum1 {
|
||||
// (undocumented)
|
||||
ConnectedClusters = "connectedClusters",
|
||||
// (undocumented)
|
||||
ManagedClusters = "managedClusters"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownFluxComplianceState {
|
||||
// (undocumented)
|
||||
|
@ -579,8 +471,9 @@ export enum KnownSourceKindType {
|
|||
|
||||
// @public
|
||||
export interface KustomizationDefinition {
|
||||
dependsOn?: DependsOnDefinition[];
|
||||
dependsOn?: string[];
|
||||
force?: boolean;
|
||||
readonly name?: string;
|
||||
path?: string;
|
||||
prune?: boolean;
|
||||
retryIntervalInSeconds?: number;
|
||||
|
@ -590,7 +483,7 @@ export interface KustomizationDefinition {
|
|||
|
||||
// @public
|
||||
export interface KustomizationPatchDefinition {
|
||||
dependsOn?: DependsOnDefinition[];
|
||||
dependsOn?: string[];
|
||||
force?: boolean;
|
||||
path?: string;
|
||||
prune?: boolean;
|
||||
|
@ -605,25 +498,6 @@ export type KustomizationValidationType = string;
|
|||
// @public
|
||||
export type LevelType = string;
|
||||
|
||||
// @public
|
||||
export interface LocationExtensionTypes {
|
||||
list(location: string, options?: LocationExtensionTypesListOptionalParams): PagedAsyncIterableIterator<ExtensionType>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface LocationExtensionTypesListNextOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type LocationExtensionTypesListNextResponse = ExtensionTypeList;
|
||||
|
||||
// @public
|
||||
export interface LocationExtensionTypesListOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type LocationExtensionTypesListResponse = ExtensionTypeList;
|
||||
|
||||
// @public
|
||||
export type MessageLevelType = string;
|
||||
|
||||
|
@ -674,8 +548,8 @@ export type OperationsListResponse = ResourceProviderOperationList;
|
|||
|
||||
// @public
|
||||
export interface OperationStatus {
|
||||
get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, extensionName: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise<OperationStatusGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: OperationStatusListOptionalParams): PagedAsyncIterableIterator<OperationStatusResult>;
|
||||
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, extensionName: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise<OperationStatusGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: OperationStatusListOptionalParams): PagedAsyncIterableIterator<OperationStatusResult>;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -828,20 +702,12 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient {
|
|||
// (undocumented)
|
||||
apiVersion: string;
|
||||
// (undocumented)
|
||||
clusterExtensionType: ClusterExtensionType;
|
||||
// (undocumented)
|
||||
clusterExtensionTypes: ClusterExtensionTypes;
|
||||
// (undocumented)
|
||||
extensions: Extensions;
|
||||
// (undocumented)
|
||||
extensionTypeVersions: ExtensionTypeVersions;
|
||||
// (undocumented)
|
||||
fluxConfigOperationStatus: FluxConfigOperationStatus;
|
||||
// (undocumented)
|
||||
fluxConfigurations: FluxConfigurations;
|
||||
// (undocumented)
|
||||
locationExtensionTypes: LocationExtensionTypes;
|
||||
// (undocumented)
|
||||
operations: Operations;
|
||||
// (undocumented)
|
||||
operationStatus: OperationStatus;
|
||||
|
@ -866,11 +732,11 @@ export interface SourceControlConfigurationList {
|
|||
|
||||
// @public
|
||||
export interface SourceControlConfigurations {
|
||||
beginDelete(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise<void>;
|
||||
createOrUpdate(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: SourceControlConfiguration, options?: SourceControlConfigurationsCreateOrUpdateOptionalParams): Promise<SourceControlConfigurationsCreateOrUpdateResponse>;
|
||||
get(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsGetOptionalParams): Promise<SourceControlConfigurationsGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: Enum0, clusterResourceName: Enum1, clusterName: string, options?: SourceControlConfigurationsListOptionalParams): PagedAsyncIterableIterator<SourceControlConfiguration>;
|
||||
beginDelete(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsDeleteOptionalParams): Promise<void>;
|
||||
createOrUpdate(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, sourceControlConfiguration: SourceControlConfiguration, options?: SourceControlConfigurationsCreateOrUpdateOptionalParams): Promise<SourceControlConfigurationsCreateOrUpdateResponse>;
|
||||
get(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, sourceControlConfigurationName: string, options?: SourceControlConfigurationsGetOptionalParams): Promise<SourceControlConfigurationsGetResponse>;
|
||||
list(resourceGroupName: string, clusterRp: string, clusterResourceName: string, clusterName: string, options?: SourceControlConfigurationsListOptionalParams): PagedAsyncIterableIterator<SourceControlConfiguration>;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -910,12 +776,6 @@ export type SourceControlConfigurationsListResponse = SourceControlConfiguration
|
|||
// @public
|
||||
export type SourceKindType = string;
|
||||
|
||||
// @public
|
||||
export interface SupportedScopes {
|
||||
clusterScopeSettings?: ClusterScopeSettings;
|
||||
defaultScope?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface SystemData {
|
||||
createdAt?: Date;
|
||||
|
|
|
@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|||
|
||||
import nodeBuiltins from "builtin-modules";
|
||||
|
||||
/**
|
||||
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
||||
*
|
||||
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
||||
* __exportStar downleveled helper function to declare its exports which confuses
|
||||
* rollup's automatic discovery mechanism.
|
||||
*
|
||||
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
||||
*/
|
||||
export function openTelemetryCommonJs() {
|
||||
const namedExports = {};
|
||||
|
||||
for (const key of [
|
||||
"@opentelemetry/api",
|
||||
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
||||
]) {
|
||||
namedExports[key] = [
|
||||
"SpanKind",
|
||||
"TraceFlags",
|
||||
"getSpan",
|
||||
"setSpan",
|
||||
"SpanStatusCode",
|
||||
"getSpanContext",
|
||||
"setSpanContext"
|
||||
];
|
||||
}
|
||||
|
||||
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
||||
|
||||
for (const version of releasedOpenTelemetryVersions) {
|
||||
namedExports[
|
||||
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
||||
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
||||
] = [
|
||||
"SpanKind",
|
||||
"TraceFlags",
|
||||
"getSpan",
|
||||
"setSpan",
|
||||
"StatusCode",
|
||||
"CanonicalCode",
|
||||
"getSpanContext",
|
||||
"setSpanContext"
|
||||
];
|
||||
}
|
||||
|
||||
return namedExports;
|
||||
}
|
||||
|
||||
// #region Warning Handler
|
||||
|
||||
/**
|
||||
* A function that can determine whether a rollupwarning should be ignored. If
|
||||
* A function that can determine whether a rollup warning should be ignored. If
|
||||
* the function returns `true`, then the warning will not be displayed.
|
||||
*/
|
||||
|
||||
function ignoreNiseSinonEvalWarnings(warning) {
|
||||
function ignoreNiseSinonEval(warning) {
|
||||
return (
|
||||
warning.code === "EVAL" &&
|
||||
warning.id &&
|
||||
|
@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|||
);
|
||||
}
|
||||
|
||||
function ignoreChaiCircularDependencyWarnings(warning) {
|
||||
function ignoreChaiCircularDependency(warning) {
|
||||
return (
|
||||
warning.code === "CIRCULAR_DEPENDENCY" &&
|
||||
warning.importer && warning.importer.includes("node_modules/chai") === true
|
||||
);
|
||||
}
|
||||
|
||||
const warningInhibitors = [
|
||||
ignoreChaiCircularDependencyWarnings,
|
||||
ignoreNiseSinonEvalWarnings
|
||||
];
|
||||
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
||||
|
||||
/**
|
||||
* Construct a warning handler for the shared rollup configuration
|
||||
|
@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|||
nodeResolve({
|
||||
mainFields: ["module", "browser"]
|
||||
}),
|
||||
cjs({
|
||||
namedExports: {
|
||||
// Chai's strange internal architecture makes it impossible to statically
|
||||
// analyze its exports.
|
||||
chai: [
|
||||
"version",
|
||||
"use",
|
||||
"util",
|
||||
"config",
|
||||
"expect",
|
||||
"should",
|
||||
"assert"
|
||||
],
|
||||
...openTelemetryCommonJs()
|
||||
}
|
||||
}),
|
||||
cjs(),
|
||||
json(),
|
||||
sourcemaps()
|
||||
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
||||
|
@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|||
],
|
||||
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
||||
preserveSymlinks: false,
|
||||
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
||||
plugins: [sourcemaps(), nodeResolve()]
|
||||
};
|
||||
|
||||
const config = [baseConfig];
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
Extension,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Create a new Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json
|
||||
*/
|
||||
async function createExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const extension: Extension = {
|
||||
autoUpgradeMinorVersion: true,
|
||||
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
||||
configurationSettings: {
|
||||
omsagentEnvClusterName: "clusterName1",
|
||||
omsagentSecretWsid: "a38cef99-5a89-52ed-b6db-22095c23664b"
|
||||
},
|
||||
extensionType: "azuremonitor-containers",
|
||||
releaseTrain: "Preview",
|
||||
scope: { cluster: { releaseNamespace: "kube-system" } }
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
extension
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createExtension().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
||||
*
|
||||
* @summary Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json
|
||||
*/
|
||||
async function deleteExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteExtension().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Gets Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json
|
||||
*/
|
||||
async function getExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getExtension().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Extensions in the cluster.
|
||||
*
|
||||
* @summary List all Extensions in the cluster.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json
|
||||
*/
|
||||
async function listExtensions() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.extensions.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listExtensions().catch(console.error);
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
PatchExtension,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Patch an existing Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Patch an existing Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json
|
||||
*/
|
||||
async function updateExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const patchExtension: PatchExtension = {
|
||||
autoUpgradeMinorVersion: true,
|
||||
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
||||
configurationSettings: {
|
||||
omsagentEnvClusterName: "clusterName1",
|
||||
omsagentSecretWsid: "a38cef99-5a89-52ed-b6db-22095c23664b"
|
||||
},
|
||||
releaseTrain: "Preview"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
patchExtension
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
updateExtension().catch(console.error);
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get Async Operation status
|
||||
*
|
||||
* @summary Get Async Operation status
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json
|
||||
*/
|
||||
async function fluxConfigurationAsyncOperationStatusGet() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const operationId = "99999999-9999-9999-9999-999999999999";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigOperationStatus.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
operationId
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fluxConfigurationAsyncOperationStatusGet().catch(console.error);
|
|
@ -0,0 +1,135 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
FluxConfiguration,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json
|
||||
*/
|
||||
async function createFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfiguration: FluxConfiguration = {
|
||||
gitRepository: {
|
||||
httpsCACert: "ZXhhbXBsZWNlcnRpZmljYXRl",
|
||||
repositoryRef: { branch: "master" },
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
url: "https://github.com/Azure/arc-k8s-demo"
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {
|
||||
path: "./test/path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
},
|
||||
srsKustomization2: {
|
||||
path: "./other/test/path",
|
||||
dependsOn: ["srs-kustomization1"],
|
||||
prune: false,
|
||||
retryIntervalInSeconds: 600,
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
}
|
||||
},
|
||||
namespace: "srs-namespace",
|
||||
scope: "cluster",
|
||||
sourceKind: "GitRepository",
|
||||
suspend: false
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createFluxConfiguration().catch(console.error);
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfigurationWithBucket.json
|
||||
*/
|
||||
async function createFluxConfigurationWithBucketSourceKind() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfiguration: FluxConfiguration = {
|
||||
bucket: {
|
||||
accessKey: "fluxminiotest",
|
||||
bucketName: "flux",
|
||||
syncIntervalInSeconds: 1000,
|
||||
timeoutInSeconds: 1000,
|
||||
url: "https://fluxminiotest.az.minio.io"
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {
|
||||
path: "./test/path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
},
|
||||
srsKustomization2: {
|
||||
path: "./other/test/path",
|
||||
dependsOn: ["srs-kustomization1"],
|
||||
prune: false,
|
||||
retryIntervalInSeconds: 600,
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
}
|
||||
},
|
||||
namespace: "srs-namespace",
|
||||
scope: "cluster",
|
||||
sourceKind: "Bucket",
|
||||
suspend: false
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createFluxConfigurationWithBucketSourceKind().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
||||
*
|
||||
* @summary This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json
|
||||
*/
|
||||
async function deleteFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets details of the Flux Configuration.
|
||||
*
|
||||
* @summary Gets details of the Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json
|
||||
*/
|
||||
async function getFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Flux Configurations.
|
||||
*
|
||||
* @summary List all Flux Configurations.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json
|
||||
*/
|
||||
async function listFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fluxConfigurations.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
FluxConfigurationPatch,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update an existing Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Update an existing Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json
|
||||
*/
|
||||
async function patchFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfigurationPatch: FluxConfigurationPatch = {
|
||||
gitRepository: {
|
||||
url: "https://github.com/jonathan-innis/flux2-kustomize-helm-example.git"
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {},
|
||||
srsKustomization2: {
|
||||
path: "./test/alt-path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 300
|
||||
},
|
||||
srsKustomization3: {
|
||||
path: "./test/another-path",
|
||||
syncIntervalInSeconds: 300
|
||||
}
|
||||
},
|
||||
suspend: true
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfigurationPatch
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
patchFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get Async Operation status
|
||||
*
|
||||
* @summary Get Async Operation status
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json
|
||||
*/
|
||||
async function extensionAsyncOperationStatusGet() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const operationId = "99999999-9999-9999-9999-999999999999";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.operationStatus.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
operationId
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
extensionAsyncOperationStatusGet().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List Async Operations, currently in progress, in a cluster
|
||||
*
|
||||
* @summary List Async Operations, currently in progress, in a cluster
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json
|
||||
*/
|
||||
async function asyncOperationStatusList() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operationStatus.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
asyncOperationStatusList().catch(console.error);
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all the available operations the KubernetesConfiguration resource provider supports.
|
||||
*
|
||||
* @summary List all the available operations the KubernetesConfiguration resource provider supports.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json
|
||||
*/
|
||||
async function batchAccountDelete() {
|
||||
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
batchAccountDelete().catch(console.error);
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
SourceControlConfiguration,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Source Control Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Source Control Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json
|
||||
*/
|
||||
async function createSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const sourceControlConfiguration: SourceControlConfiguration = {
|
||||
configurationProtectedSettings: {
|
||||
protectedSetting1Key: "protectedSetting1Value"
|
||||
},
|
||||
enableHelmOperator: true,
|
||||
helmOperatorProperties: {
|
||||
chartValues:
|
||||
"--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system",
|
||||
chartVersion: "0.3.0"
|
||||
},
|
||||
operatorInstanceName: "SRSGitHubFluxOp-01",
|
||||
operatorNamespace: "SRS_Namespace",
|
||||
operatorParams: "--git-email=xyzgituser@users.srs.github.com",
|
||||
operatorScope: "namespace",
|
||||
operatorType: "Flux",
|
||||
repositoryUrl: "git@github.com:k8sdeveloper425/flux-get-started",
|
||||
sshKnownHostsContents:
|
||||
"c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.sourceControlConfigurations.createOrUpdate(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName,
|
||||
sourceControlConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
|
||||
*
|
||||
* @summary This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json
|
||||
*/
|
||||
async function deleteSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.sourceControlConfigurations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets details of the Source Control Configuration.
|
||||
*
|
||||
* @summary Gets details of the Source Control Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json
|
||||
*/
|
||||
async function getSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.sourceControlConfigurations.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Source Control Configurations.
|
||||
*
|
||||
* @summary List all Source Control Configurations.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json
|
||||
*/
|
||||
async function listSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.sourceControlConfigurations.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,84 @@
|
|||
# client library samples for JavaScript
|
||||
|
||||
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [extensionsCreateSample.js][extensionscreatesample] | Create a new Kubernetes Cluster Extension. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json |
|
||||
| [extensionsDeleteSample.js][extensionsdeletesample] | Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json |
|
||||
| [extensionsGetSample.js][extensionsgetsample] | Gets Kubernetes Cluster Extension. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json |
|
||||
| [extensionsListSample.js][extensionslistsample] | List all Extensions in the cluster. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json |
|
||||
| [extensionsUpdateSample.js][extensionsupdatesample] | Patch an existing Kubernetes Cluster Extension. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json |
|
||||
| [fluxConfigOperationStatusGetSample.js][fluxconfigoperationstatusgetsample] | Get Async Operation status x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json |
|
||||
| [fluxConfigurationsCreateOrUpdateSample.js][fluxconfigurationscreateorupdatesample] | Create a new Kubernetes Flux Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json |
|
||||
| [fluxConfigurationsDeleteSample.js][fluxconfigurationsdeletesample] | This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json |
|
||||
| [fluxConfigurationsGetSample.js][fluxconfigurationsgetsample] | Gets details of the Flux Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json |
|
||||
| [fluxConfigurationsListSample.js][fluxconfigurationslistsample] | List all Flux Configurations. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json |
|
||||
| [fluxConfigurationsUpdateSample.js][fluxconfigurationsupdatesample] | Update an existing Kubernetes Flux Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json |
|
||||
| [operationStatusGetSample.js][operationstatusgetsample] | Get Async Operation status x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json |
|
||||
| [operationStatusListSample.js][operationstatuslistsample] | List Async Operations, currently in progress, in a cluster x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json |
|
||||
| [operationsListSample.js][operationslistsample] | List all the available operations the KubernetesConfiguration resource provider supports. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json |
|
||||
| [sourceControlConfigurationsCreateOrUpdateSample.js][sourcecontrolconfigurationscreateorupdatesample] | Create a new Kubernetes Source Control Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json |
|
||||
| [sourceControlConfigurationsDeleteSample.js][sourcecontrolconfigurationsdeletesample] | This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json |
|
||||
| [sourceControlConfigurationsGetSample.js][sourcecontrolconfigurationsgetsample] | Gets details of the Source Control Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json |
|
||||
| [sourceControlConfigurationsListSample.js][sourcecontrolconfigurationslistsample] | List all Source Control Configurations. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
|
||||
|
||||
You need [an Azure subscription][freesub] to run these sample programs.
|
||||
|
||||
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
|
||||
|
||||
Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
|
||||
|
||||
## Setup
|
||||
|
||||
To run the samples using the published version of the package:
|
||||
|
||||
1. Install the dependencies using `npm`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
|
||||
|
||||
3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
|
||||
|
||||
```bash
|
||||
node extensionsCreateSample.js
|
||||
```
|
||||
|
||||
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
|
||||
|
||||
```bash
|
||||
npx cross-env node extensionsCreateSample.js
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/extensionsCreateSample.js
|
||||
[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/extensionsDeleteSample.js
|
||||
[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/extensionsGetSample.js
|
||||
[extensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/extensionsListSample.js
|
||||
[extensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/extensionsUpdateSample.js
|
||||
[fluxconfigoperationstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/fluxConfigOperationStatusGetSample.js
|
||||
[fluxconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/fluxConfigurationsCreateOrUpdateSample.js
|
||||
[fluxconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/fluxConfigurationsDeleteSample.js
|
||||
[fluxconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/fluxConfigurationsGetSample.js
|
||||
[fluxconfigurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/fluxConfigurationsListSample.js
|
||||
[fluxconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/fluxConfigurationsUpdateSample.js
|
||||
[operationstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/operationStatusGetSample.js
|
||||
[operationstatuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/operationStatusListSample.js
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/operationsListSample.js
|
||||
[sourcecontrolconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/sourceControlConfigurationsCreateOrUpdateSample.js
|
||||
[sourcecontrolconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/sourceControlConfigurationsDeleteSample.js
|
||||
[sourcecontrolconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/sourceControlConfigurationsGetSample.js
|
||||
[sourcecontrolconfigurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/javascript/sourceControlConfigurationsListSample.js
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Create a new Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json
|
||||
*/
|
||||
async function createExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const extension = {
|
||||
autoUpgradeMinorVersion: true,
|
||||
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
||||
configurationSettings: {
|
||||
omsagentEnvClusterName: "clusterName1",
|
||||
omsagentSecretWsid: "a38cef99-5a89-52ed-b6db-22095c23664b",
|
||||
},
|
||||
extensionType: "azuremonitor-containers",
|
||||
releaseTrain: "Preview",
|
||||
scope: { cluster: { releaseNamespace: "kube-system" } },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.extensions.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
extension
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createExtension().catch(console.error);
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
||||
*
|
||||
* @summary Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json
|
||||
*/
|
||||
async function deleteExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.extensions.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteExtension().catch(console.error);
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Gets Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json
|
||||
*/
|
||||
async function getExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.extensions.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getExtension().catch(console.error);
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Extensions in the cluster.
|
||||
*
|
||||
* @summary List all Extensions in the cluster.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json
|
||||
*/
|
||||
async function listExtensions() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.extensions.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listExtensions().catch(console.error);
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Patch an existing Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Patch an existing Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json
|
||||
*/
|
||||
async function updateExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const patchExtension = {
|
||||
autoUpgradeMinorVersion: true,
|
||||
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
||||
configurationSettings: {
|
||||
omsagentEnvClusterName: "clusterName1",
|
||||
omsagentSecretWsid: "a38cef99-5a89-52ed-b6db-22095c23664b",
|
||||
},
|
||||
releaseTrain: "Preview",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.extensions.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
patchExtension
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
updateExtension().catch(console.error);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get Async Operation status
|
||||
*
|
||||
* @summary Get Async Operation status
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json
|
||||
*/
|
||||
async function fluxConfigurationAsyncOperationStatusGet() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const operationId = "99999999-9999-9999-9999-999999999999";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.fluxConfigOperationStatus.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
operationId
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fluxConfigurationAsyncOperationStatusGet().catch(console.error);
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json
|
||||
*/
|
||||
async function createFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfiguration = {
|
||||
gitRepository: {
|
||||
httpsCACert: "ZXhhbXBsZWNlcnRpZmljYXRl",
|
||||
repositoryRef: { branch: "master" },
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
url: "https://github.com/Azure/arc-k8s-demo",
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {
|
||||
path: "./test/path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
},
|
||||
srsKustomization2: {
|
||||
path: "./other/test/path",
|
||||
dependsOn: ["srs-kustomization1"],
|
||||
prune: false,
|
||||
retryIntervalInSeconds: 600,
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
},
|
||||
},
|
||||
namespace: "srs-namespace",
|
||||
scope: "cluster",
|
||||
sourceKind: "GitRepository",
|
||||
suspend: false,
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.fluxConfigurations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createFluxConfiguration().catch(console.error);
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfigurationWithBucket.json
|
||||
*/
|
||||
async function createFluxConfigurationWithBucketSourceKind() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfiguration = {
|
||||
bucket: {
|
||||
accessKey: "fluxminiotest",
|
||||
bucketName: "flux",
|
||||
syncIntervalInSeconds: 1000,
|
||||
timeoutInSeconds: 1000,
|
||||
url: "https://fluxminiotest.az.minio.io",
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {
|
||||
path: "./test/path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
},
|
||||
srsKustomization2: {
|
||||
path: "./other/test/path",
|
||||
dependsOn: ["srs-kustomization1"],
|
||||
prune: false,
|
||||
retryIntervalInSeconds: 600,
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
},
|
||||
},
|
||||
namespace: "srs-namespace",
|
||||
scope: "cluster",
|
||||
sourceKind: "Bucket",
|
||||
suspend: false,
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.fluxConfigurations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createFluxConfigurationWithBucketSourceKind().catch(console.error);
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
||||
*
|
||||
* @summary This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json
|
||||
*/
|
||||
async function deleteFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.fluxConfigurations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets details of the Flux Configuration.
|
||||
*
|
||||
* @summary Gets details of the Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json
|
||||
*/
|
||||
async function getFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.fluxConfigurations.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Flux Configurations.
|
||||
*
|
||||
* @summary List all Flux Configurations.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json
|
||||
*/
|
||||
async function listFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fluxConfigurations.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update an existing Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Update an existing Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json
|
||||
*/
|
||||
async function patchFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfigurationPatch = {
|
||||
gitRepository: {
|
||||
url: "https://github.com/jonathan-innis/flux2-kustomize-helm-example.git",
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {},
|
||||
srsKustomization2: {
|
||||
path: "./test/alt-path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 300,
|
||||
},
|
||||
srsKustomization3: {
|
||||
path: "./test/another-path",
|
||||
syncIntervalInSeconds: 300,
|
||||
},
|
||||
},
|
||||
suspend: true,
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.fluxConfigurations.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfigurationPatch
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
patchFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get Async Operation status
|
||||
*
|
||||
* @summary Get Async Operation status
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json
|
||||
*/
|
||||
async function extensionAsyncOperationStatusGet() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const operationId = "99999999-9999-9999-9999-999999999999";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.operationStatus.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
operationId
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
extensionAsyncOperationStatusGet().catch(console.error);
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List Async Operations, currently in progress, in a cluster
|
||||
*
|
||||
* @summary List Async Operations, currently in progress, in a cluster
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json
|
||||
*/
|
||||
async function asyncOperationStatusList() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operationStatus.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
asyncOperationStatusList().catch(console.error);
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all the available operations the KubernetesConfiguration resource provider supports.
|
||||
*
|
||||
* @summary List all the available operations the KubernetesConfiguration resource provider supports.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json
|
||||
*/
|
||||
async function batchAccountDelete() {
|
||||
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
batchAccountDelete().catch(console.error);
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"name": "@azure-samples/arm-kubernetesconfiguration-js",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": " client library samples for JavaScript",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Azure/azure-sdk-for-js.git",
|
||||
"directory": "sdk/kubernetesconfiguration/arm-kubernetesconfiguration"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration",
|
||||
"dependencies": {
|
||||
"@azure/arm-kubernetesconfiguration": "latest",
|
||||
"dotenv": "latest",
|
||||
"@azure/identity": "^2.0.1"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Source Control Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Source Control Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json
|
||||
*/
|
||||
async function createSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const sourceControlConfiguration = {
|
||||
configurationProtectedSettings: {
|
||||
protectedSetting1Key: "protectedSetting1Value",
|
||||
},
|
||||
enableHelmOperator: true,
|
||||
helmOperatorProperties: {
|
||||
chartValues: "--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system",
|
||||
chartVersion: "0.3.0",
|
||||
},
|
||||
operatorInstanceName: "SRSGitHubFluxOp-01",
|
||||
operatorNamespace: "SRS_Namespace",
|
||||
operatorParams: "--git-email=xyzgituser@users.srs.github.com",
|
||||
operatorScope: "namespace",
|
||||
operatorType: "Flux",
|
||||
repositoryUrl: "git@github.com:k8sdeveloper425/flux-get-started",
|
||||
sshKnownHostsContents:
|
||||
"c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg=",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.sourceControlConfigurations.createOrUpdate(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName,
|
||||
sourceControlConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
|
||||
*
|
||||
* @summary This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json
|
||||
*/
|
||||
async function deleteSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.sourceControlConfigurations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets details of the Source Control Configuration.
|
||||
*
|
||||
* @summary Gets details of the Source Control Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json
|
||||
*/
|
||||
async function getSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const result = await client.sourceControlConfigurations.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { SourceControlConfigurationClient } = require("@azure/arm-kubernetesconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Source Control Configurations.
|
||||
*
|
||||
* @summary List all Source Control Configurations.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json
|
||||
*/
|
||||
async function listSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.sourceControlConfigurations.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,97 @@
|
|||
# client library samples for TypeScript
|
||||
|
||||
These sample programs show how to use the TypeScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [extensionsCreateSample.ts][extensionscreatesample] | Create a new Kubernetes Cluster Extension. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json |
|
||||
| [extensionsDeleteSample.ts][extensionsdeletesample] | Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json |
|
||||
| [extensionsGetSample.ts][extensionsgetsample] | Gets Kubernetes Cluster Extension. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json |
|
||||
| [extensionsListSample.ts][extensionslistsample] | List all Extensions in the cluster. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json |
|
||||
| [extensionsUpdateSample.ts][extensionsupdatesample] | Patch an existing Kubernetes Cluster Extension. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json |
|
||||
| [fluxConfigOperationStatusGetSample.ts][fluxconfigoperationstatusgetsample] | Get Async Operation status x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json |
|
||||
| [fluxConfigurationsCreateOrUpdateSample.ts][fluxconfigurationscreateorupdatesample] | Create a new Kubernetes Flux Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json |
|
||||
| [fluxConfigurationsDeleteSample.ts][fluxconfigurationsdeletesample] | This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json |
|
||||
| [fluxConfigurationsGetSample.ts][fluxconfigurationsgetsample] | Gets details of the Flux Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json |
|
||||
| [fluxConfigurationsListSample.ts][fluxconfigurationslistsample] | List all Flux Configurations. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json |
|
||||
| [fluxConfigurationsUpdateSample.ts][fluxconfigurationsupdatesample] | Update an existing Kubernetes Flux Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json |
|
||||
| [operationStatusGetSample.ts][operationstatusgetsample] | Get Async Operation status x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json |
|
||||
| [operationStatusListSample.ts][operationstatuslistsample] | List Async Operations, currently in progress, in a cluster x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json |
|
||||
| [operationsListSample.ts][operationslistsample] | List all the available operations the KubernetesConfiguration resource provider supports. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json |
|
||||
| [sourceControlConfigurationsCreateOrUpdateSample.ts][sourcecontrolconfigurationscreateorupdatesample] | Create a new Kubernetes Source Control Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json |
|
||||
| [sourceControlConfigurationsDeleteSample.ts][sourcecontrolconfigurationsdeletesample] | This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json |
|
||||
| [sourceControlConfigurationsGetSample.ts][sourcecontrolconfigurationsgetsample] | Gets details of the Source Control Configuration. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json |
|
||||
| [sourceControlConfigurationsListSample.ts][sourcecontrolconfigurationslistsample] | List all Source Control Configurations. x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
|
||||
|
||||
Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:
|
||||
|
||||
```bash
|
||||
npm install -g typescript
|
||||
```
|
||||
|
||||
You need [an Azure subscription][freesub] to run these sample programs.
|
||||
|
||||
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
|
||||
|
||||
Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
|
||||
|
||||
## Setup
|
||||
|
||||
To run the samples using the published version of the package:
|
||||
|
||||
1. Install the dependencies using `npm`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Compile the samples:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
|
||||
|
||||
4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
|
||||
|
||||
```bash
|
||||
node dist/extensionsCreateSample.js
|
||||
```
|
||||
|
||||
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
|
||||
|
||||
```bash
|
||||
npx cross-env node dist/extensionsCreateSample.js
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/extensionsCreateSample.ts
|
||||
[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/extensionsDeleteSample.ts
|
||||
[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/extensionsGetSample.ts
|
||||
[extensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/extensionsListSample.ts
|
||||
[extensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/extensionsUpdateSample.ts
|
||||
[fluxconfigoperationstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/fluxConfigOperationStatusGetSample.ts
|
||||
[fluxconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/fluxConfigurationsCreateOrUpdateSample.ts
|
||||
[fluxconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/fluxConfigurationsDeleteSample.ts
|
||||
[fluxconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/fluxConfigurationsGetSample.ts
|
||||
[fluxconfigurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/fluxConfigurationsListSample.ts
|
||||
[fluxconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/fluxConfigurationsUpdateSample.ts
|
||||
[operationstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/operationStatusGetSample.ts
|
||||
[operationstatuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/operationStatusListSample.ts
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/operationsListSample.ts
|
||||
[sourcecontrolconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/sourceControlConfigurationsCreateOrUpdateSample.ts
|
||||
[sourcecontrolconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/sourceControlConfigurationsDeleteSample.ts
|
||||
[sourcecontrolconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/sourceControlConfigurationsGetSample.ts
|
||||
[sourcecontrolconfigurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/samples/v5/typescript/src/sourceControlConfigurationsListSample.ts
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration/README.md
|
||||
[typescript]: https://www.typescriptlang.org/docs/home.html
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "@azure-samples/arm-kubernetesconfiguration-ts",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": " client library samples for TypeScript",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"prebuild": "rimraf dist/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Azure/azure-sdk-for-js.git",
|
||||
"directory": "sdk/kubernetesconfiguration/arm-kubernetesconfiguration"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kubernetesconfiguration/arm-kubernetesconfiguration",
|
||||
"dependencies": {
|
||||
"@azure/arm-kubernetesconfiguration": "latest",
|
||||
"dotenv": "latest",
|
||||
"@azure/identity": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^12.0.0",
|
||||
"typescript": "~4.4.0",
|
||||
"rimraf": "latest"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
Extension,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Create a new Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateExtension.json
|
||||
*/
|
||||
async function createExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const extension: Extension = {
|
||||
autoUpgradeMinorVersion: true,
|
||||
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
||||
configurationSettings: {
|
||||
omsagentEnvClusterName: "clusterName1",
|
||||
omsagentSecretWsid: "a38cef99-5a89-52ed-b6db-22095c23664b"
|
||||
},
|
||||
extensionType: "azuremonitor-containers",
|
||||
releaseTrain: "Preview",
|
||||
scope: { cluster: { releaseNamespace: "kube-system" } }
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
extension
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createExtension().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
||||
*
|
||||
* @summary Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteExtension.json
|
||||
*/
|
||||
async function deleteExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteExtension().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Gets Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtension.json
|
||||
*/
|
||||
async function getExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getExtension().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Extensions in the cluster.
|
||||
*
|
||||
* @summary List all Extensions in the cluster.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListExtensions.json
|
||||
*/
|
||||
async function listExtensions() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.extensions.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listExtensions().catch(console.error);
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
PatchExtension,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Patch an existing Kubernetes Cluster Extension.
|
||||
*
|
||||
* @summary Patch an existing Kubernetes Cluster Extension.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchExtension.json
|
||||
*/
|
||||
async function updateExtension() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const patchExtension: PatchExtension = {
|
||||
autoUpgradeMinorVersion: true,
|
||||
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
||||
configurationSettings: {
|
||||
omsagentEnvClusterName: "clusterName1",
|
||||
omsagentSecretWsid: "a38cef99-5a89-52ed-b6db-22095c23664b"
|
||||
},
|
||||
releaseTrain: "Preview"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.extensions.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
patchExtension
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
updateExtension().catch(console.error);
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get Async Operation status
|
||||
*
|
||||
* @summary Get Async Operation status
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfigurationAsyncOperationStatus.json
|
||||
*/
|
||||
async function fluxConfigurationAsyncOperationStatusGet() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const operationId = "99999999-9999-9999-9999-999999999999";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigOperationStatus.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
operationId
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fluxConfigurationAsyncOperationStatusGet().catch(console.error);
|
|
@ -0,0 +1,135 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
FluxConfiguration,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfiguration.json
|
||||
*/
|
||||
async function createFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfiguration: FluxConfiguration = {
|
||||
gitRepository: {
|
||||
httpsCACert: "ZXhhbXBsZWNlcnRpZmljYXRl",
|
||||
repositoryRef: { branch: "master" },
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600,
|
||||
url: "https://github.com/Azure/arc-k8s-demo"
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {
|
||||
path: "./test/path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
},
|
||||
srsKustomization2: {
|
||||
path: "./other/test/path",
|
||||
dependsOn: ["srs-kustomization1"],
|
||||
prune: false,
|
||||
retryIntervalInSeconds: 600,
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
}
|
||||
},
|
||||
namespace: "srs-namespace",
|
||||
scope: "cluster",
|
||||
sourceKind: "GitRepository",
|
||||
suspend: false
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createFluxConfiguration().catch(console.error);
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateFluxConfigurationWithBucket.json
|
||||
*/
|
||||
async function createFluxConfigurationWithBucketSourceKind() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfiguration: FluxConfiguration = {
|
||||
bucket: {
|
||||
accessKey: "fluxminiotest",
|
||||
bucketName: "flux",
|
||||
syncIntervalInSeconds: 1000,
|
||||
timeoutInSeconds: 1000,
|
||||
url: "https://fluxminiotest.az.minio.io"
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {
|
||||
path: "./test/path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
},
|
||||
srsKustomization2: {
|
||||
path: "./other/test/path",
|
||||
dependsOn: ["srs-kustomization1"],
|
||||
prune: false,
|
||||
retryIntervalInSeconds: 600,
|
||||
syncIntervalInSeconds: 600,
|
||||
timeoutInSeconds: 600
|
||||
}
|
||||
},
|
||||
namespace: "srs-namespace",
|
||||
scope: "cluster",
|
||||
sourceKind: "Bucket",
|
||||
suspend: false
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createFluxConfigurationWithBucketSourceKind().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
||||
*
|
||||
* @summary This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteFluxConfiguration.json
|
||||
*/
|
||||
async function deleteFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets details of the Flux Configuration.
|
||||
*
|
||||
* @summary Gets details of the Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetFluxConfiguration.json
|
||||
*/
|
||||
async function getFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Flux Configurations.
|
||||
*
|
||||
* @summary List all Flux Configurations.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListFluxConfigurations.json
|
||||
*/
|
||||
async function listFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fluxConfigurations.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
FluxConfigurationPatch,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update an existing Kubernetes Flux Configuration.
|
||||
*
|
||||
* @summary Update an existing Kubernetes Flux Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/PatchFluxConfiguration.json
|
||||
*/
|
||||
async function patchFluxConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const fluxConfigurationName = "srs-fluxconfig";
|
||||
const fluxConfigurationPatch: FluxConfigurationPatch = {
|
||||
gitRepository: {
|
||||
url: "https://github.com/jonathan-innis/flux2-kustomize-helm-example.git"
|
||||
},
|
||||
kustomizations: {
|
||||
srsKustomization1: {},
|
||||
srsKustomization2: {
|
||||
path: "./test/alt-path",
|
||||
dependsOn: [],
|
||||
syncIntervalInSeconds: 300
|
||||
},
|
||||
srsKustomization3: {
|
||||
path: "./test/another-path",
|
||||
syncIntervalInSeconds: 300
|
||||
}
|
||||
},
|
||||
suspend: true
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.fluxConfigurations.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
fluxConfigurationName,
|
||||
fluxConfigurationPatch
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
patchFluxConfiguration().catch(console.error);
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get Async Operation status
|
||||
*
|
||||
* @summary Get Async Operation status
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetExtensionAsyncOperationStatus.json
|
||||
*/
|
||||
async function extensionAsyncOperationStatusGet() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const extensionName = "ClusterMonitor";
|
||||
const operationId = "99999999-9999-9999-9999-999999999999";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.operationStatus.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionName,
|
||||
operationId
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
extensionAsyncOperationStatusGet().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List Async Operations, currently in progress, in a cluster
|
||||
*
|
||||
* @summary List Async Operations, currently in progress, in a cluster
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListAsyncOperationStatus.json
|
||||
*/
|
||||
async function asyncOperationStatusList() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operationStatus.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
asyncOperationStatusList().catch(console.error);
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all the available operations the KubernetesConfiguration resource provider supports.
|
||||
*
|
||||
* @summary List all the available operations the KubernetesConfiguration resource provider supports.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/OperationsList.json
|
||||
*/
|
||||
async function batchAccountDelete() {
|
||||
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
batchAccountDelete().catch(console.error);
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
SourceControlConfiguration,
|
||||
SourceControlConfigurationClient
|
||||
} from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a new Kubernetes Source Control Configuration.
|
||||
*
|
||||
* @summary Create a new Kubernetes Source Control Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/CreateSourceControlConfiguration.json
|
||||
*/
|
||||
async function createSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const sourceControlConfiguration: SourceControlConfiguration = {
|
||||
configurationProtectedSettings: {
|
||||
protectedSetting1Key: "protectedSetting1Value"
|
||||
},
|
||||
enableHelmOperator: true,
|
||||
helmOperatorProperties: {
|
||||
chartValues:
|
||||
"--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system",
|
||||
chartVersion: "0.3.0"
|
||||
},
|
||||
operatorInstanceName: "SRSGitHubFluxOp-01",
|
||||
operatorNamespace: "SRS_Namespace",
|
||||
operatorParams: "--git-email=xyzgituser@users.srs.github.com",
|
||||
operatorScope: "namespace",
|
||||
operatorType: "Flux",
|
||||
repositoryUrl: "git@github.com:k8sdeveloper425/flux-get-started",
|
||||
sshKnownHostsContents:
|
||||
"c3NoLmRldi5henVyZS5jb20gc3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDN0hyMW9UV3FOcU9sekdKT2ZHSjROYWtWeUl6ZjFyWFlkNGQ3d282akJsa0x2Q0E0b2RCbEwwbURVeVowL1FVZlRUcWV1K3RtMjJnT3N2K1ZyVlRNazZ2d1JVNzVnWS95OXV0NU1iM2JSNUJWNThkS1h5cTlBOVVlQjVDYWtlaG41WmdtNngxbUtvVnlmK0ZGbjI2aVlxWEpSZ3pJWlpjWjVWNmhyRTBRZzM5a1ptNGF6NDhvMEFVYmY2U3A0U0xkdm51TWEyc1ZOd0hCYm9TN0VKa201N1hRUFZVMy9RcHlOTEhiV0Rkend0cmxTK2V6MzBTM0FkWWhMS0VPeEFHOHdlT255cnRMSkFVZW45bVRrb2w4b0lJMWVkZjdtV1diV1ZmMG5CbWx5MjErblpjbUNUSVNRQnRkY3lQYUVubzdmRlFNREQyNi9zMGxmS29iNEt3OEg="
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.sourceControlConfigurations.createOrUpdate(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName,
|
||||
sourceControlConfiguration
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
createSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
|
||||
*
|
||||
* @summary This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/DeleteSourceControlConfiguration.json
|
||||
*/
|
||||
async function deleteSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.sourceControlConfigurations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
deleteSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets details of the Source Control Configuration.
|
||||
*
|
||||
* @summary Gets details of the Source Control Configuration.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/GetSourceControlConfiguration.json
|
||||
*/
|
||||
async function getSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const sourceControlConfigurationName = "SRS_GitHubConfig";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.sourceControlConfigurations.get(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
sourceControlConfigurationName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
getSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List all Source Control Configurations.
|
||||
*
|
||||
* @summary List all Source Control Configurations.
|
||||
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2022-03-01/examples/ListSourceControlConfiguration.json
|
||||
*/
|
||||
async function listSourceControlConfiguration() {
|
||||
const subscriptionId = "subId1";
|
||||
const resourceGroupName = "rg1";
|
||||
const clusterRp = "Microsoft.Kubernetes";
|
||||
const clusterResourceName = "connectedClusters";
|
||||
const clusterName = "clusterName1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new SourceControlConfigurationClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.sourceControlConfigurations.list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
listSourceControlConfiguration().catch(console.error);
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2018",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"alwaysStrict": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": [
|
||||
"src/**.ts"
|
||||
]
|
||||
}
|
|
@ -8,77 +8,38 @@
|
|||
|
||||
import * as coreClient from "@azure/core-client";
|
||||
|
||||
/** Represents an Extension Type. */
|
||||
export interface ExtensionType {
|
||||
/**
|
||||
* Metadata pertaining to creation and last modification of the resource.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly systemData?: SystemData;
|
||||
/**
|
||||
* Extension release train: preview or stable
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly releaseTrains?: string[];
|
||||
/**
|
||||
* Cluster types
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly clusterTypes?: ClusterTypes;
|
||||
/**
|
||||
* Extension scopes
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly supportedScopes?: SupportedScopes;
|
||||
/** Scope of the extension. It can be either Cluster or Namespace; but not both. */
|
||||
export interface Scope {
|
||||
/** Specifies that the scope of the extension is Cluster */
|
||||
cluster?: ScopeCluster;
|
||||
/** Specifies that the scope of the extension is Namespace */
|
||||
namespace?: ScopeNamespace;
|
||||
}
|
||||
|
||||
/** Extension scopes */
|
||||
export interface SupportedScopes {
|
||||
/** Default extension scopes: cluster or namespace */
|
||||
defaultScope?: string;
|
||||
/** Scope settings */
|
||||
clusterScopeSettings?: ClusterScopeSettings;
|
||||
/** Specifies that the scope of the extension is Cluster */
|
||||
export interface ScopeCluster {
|
||||
/** Namespace where the extension Release must be placed, for a Cluster scoped extension. If this namespace does not exist, it will be created */
|
||||
releaseNamespace?: string;
|
||||
}
|
||||
|
||||
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
||||
export interface Resource {
|
||||
/**
|
||||
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly id?: string;
|
||||
/**
|
||||
* The name of the resource
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly type?: string;
|
||||
/** Specifies that the scope of the extension is Namespace */
|
||||
export interface ScopeNamespace {
|
||||
/** Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created */
|
||||
targetNamespace?: string;
|
||||
}
|
||||
|
||||
/** Metadata pertaining to creation and last modification of the resource. */
|
||||
export interface SystemData {
|
||||
/** The identity that created the resource. */
|
||||
createdBy?: string;
|
||||
/** The type of identity that created the resource. */
|
||||
createdByType?: CreatedByType;
|
||||
/** The timestamp of resource creation (UTC). */
|
||||
createdAt?: Date;
|
||||
/** The identity that last modified the resource. */
|
||||
lastModifiedBy?: string;
|
||||
/** The type of identity that last modified the resource. */
|
||||
lastModifiedByType?: CreatedByType;
|
||||
/** The timestamp of resource last modification (UTC) */
|
||||
lastModifiedAt?: Date;
|
||||
}
|
||||
|
||||
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
||||
export interface ErrorResponse {
|
||||
/** The error object. */
|
||||
error?: ErrorDetail;
|
||||
/** Status from the extension. */
|
||||
export interface ExtensionStatus {
|
||||
/** Status code provided by the Extension */
|
||||
code?: string;
|
||||
/** Short description of status of the extension. */
|
||||
displayStatus?: string;
|
||||
/** Level of the status. */
|
||||
level?: LevelType;
|
||||
/** Detailed message of the status from the Extension. */
|
||||
message?: string;
|
||||
/** DateLiteral (per ISO8601) noting the time of installation status. */
|
||||
time?: string;
|
||||
}
|
||||
|
||||
/** The error detail. */
|
||||
|
@ -124,68 +85,6 @@ export interface ErrorAdditionalInfo {
|
|||
readonly info?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
/** List Extension Types */
|
||||
export interface ExtensionTypeList {
|
||||
/** The list of Extension Types */
|
||||
value?: ExtensionType[];
|
||||
/** The link to fetch the next page of Extension Types */
|
||||
nextLink?: string;
|
||||
}
|
||||
|
||||
/** List versions for an Extension */
|
||||
export interface ExtensionVersionList {
|
||||
/** Versions available for this Extension Type */
|
||||
versions?: ExtensionVersionListVersionsItem[];
|
||||
/** The link to fetch the next page of Extension Types */
|
||||
nextLink?: string;
|
||||
/**
|
||||
* Metadata pertaining to creation and last modification of the resource.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly systemData?: SystemData;
|
||||
}
|
||||
|
||||
export interface ExtensionVersionListVersionsItem {
|
||||
/** The release train for this Extension Type */
|
||||
releaseTrain?: string;
|
||||
/** Versions available for this Extension Type and release train */
|
||||
versions?: string[];
|
||||
}
|
||||
|
||||
/** Scope of the extension. It can be either Cluster or Namespace; but not both. */
|
||||
export interface Scope {
|
||||
/** Specifies that the scope of the extension is Cluster */
|
||||
cluster?: ScopeCluster;
|
||||
/** Specifies that the scope of the extension is Namespace */
|
||||
namespace?: ScopeNamespace;
|
||||
}
|
||||
|
||||
/** Specifies that the scope of the extension is Cluster */
|
||||
export interface ScopeCluster {
|
||||
/** Namespace where the extension Release must be placed, for a Cluster scoped extension. If this namespace does not exist, it will be created */
|
||||
releaseNamespace?: string;
|
||||
}
|
||||
|
||||
/** Specifies that the scope of the extension is Namespace */
|
||||
export interface ScopeNamespace {
|
||||
/** Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created */
|
||||
targetNamespace?: string;
|
||||
}
|
||||
|
||||
/** Status from the extension. */
|
||||
export interface ExtensionStatus {
|
||||
/** Status code provided by the Extension */
|
||||
code?: string;
|
||||
/** Short description of status of the extension. */
|
||||
displayStatus?: string;
|
||||
/** Level of the status. */
|
||||
level?: LevelType;
|
||||
/** Detailed message of the status from the Extension. */
|
||||
message?: string;
|
||||
/** DateLiteral (per ISO8601) noting the time of installation status. */
|
||||
time?: string;
|
||||
}
|
||||
|
||||
/** Identity of the Extension resource in an AKS cluster */
|
||||
export interface ExtensionPropertiesAksAssignedIdentity {
|
||||
/**
|
||||
|
@ -199,7 +98,7 @@ export interface ExtensionPropertiesAksAssignedIdentity {
|
|||
*/
|
||||
readonly tenantId?: string;
|
||||
/** The identity type. */
|
||||
type?: "SystemAssigned";
|
||||
type?: AKSIdentityType;
|
||||
}
|
||||
|
||||
/** Identity for the resource. */
|
||||
|
@ -218,6 +117,47 @@ export interface Identity {
|
|||
type?: "SystemAssigned";
|
||||
}
|
||||
|
||||
/** Metadata pertaining to creation and last modification of the resource. */
|
||||
export interface SystemData {
|
||||
/** The identity that created the resource. */
|
||||
createdBy?: string;
|
||||
/** The type of identity that created the resource. */
|
||||
createdByType?: CreatedByType;
|
||||
/** The timestamp of resource creation (UTC). */
|
||||
createdAt?: Date;
|
||||
/** The identity that last modified the resource. */
|
||||
lastModifiedBy?: string;
|
||||
/** The type of identity that last modified the resource. */
|
||||
lastModifiedByType?: CreatedByType;
|
||||
/** The timestamp of resource last modification (UTC) */
|
||||
lastModifiedAt?: Date;
|
||||
}
|
||||
|
||||
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
||||
export interface Resource {
|
||||
/**
|
||||
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly id?: string;
|
||||
/**
|
||||
* The name of the resource
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly type?: string;
|
||||
}
|
||||
|
||||
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
||||
export interface ErrorResponse {
|
||||
/** The error object. */
|
||||
error?: ErrorDetail;
|
||||
}
|
||||
|
||||
/** The Extension Patch Request object. */
|
||||
export interface PatchExtension {
|
||||
/** Flag to note if this extension participates in auto upgrade of minor version, or not. */
|
||||
|
@ -315,10 +255,15 @@ export interface BucketDefinition {
|
|||
|
||||
/** The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster. */
|
||||
export interface KustomizationDefinition {
|
||||
/**
|
||||
* Name of the Kustomization, matching the key in the Kustomizations object map.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly name?: string;
|
||||
/** The path in the source reference to reconcile on the cluster. */
|
||||
path?: string;
|
||||
/** Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies have completed their reconciliation. */
|
||||
dependsOn?: DependsOnDefinition[];
|
||||
dependsOn?: string[];
|
||||
/** The maximum time to attempt to reconcile the Kustomization on the cluster. */
|
||||
timeoutInSeconds?: number;
|
||||
/** The interval at which to re-reconcile the Kustomization on the cluster. */
|
||||
|
@ -331,12 +276,6 @@ export interface KustomizationDefinition {
|
|||
force?: boolean;
|
||||
}
|
||||
|
||||
/** Specify which kustomizations must succeed reconciliation on the cluster prior to reconciling this kustomization */
|
||||
export interface DependsOnDefinition {
|
||||
/** Name of the kustomization to claim dependency on */
|
||||
kustomizationName?: string;
|
||||
}
|
||||
|
||||
/** Statuses of objects deployed by the user-specified kustomizations from the git repository. */
|
||||
export interface ObjectStatusDefinition {
|
||||
/** Name of the applied object */
|
||||
|
@ -377,6 +316,7 @@ export interface ObjectStatusConditionDefinition {
|
|||
type?: string;
|
||||
}
|
||||
|
||||
/** Properties for HelmRelease objects */
|
||||
export interface HelmReleasePropertiesDefinition {
|
||||
/** The revision number of the last released object change */
|
||||
lastRevisionApplied?: number;
|
||||
|
@ -399,7 +339,7 @@ export interface FluxConfigurationPatch {
|
|||
/** Parameters to reconcile to the GitRepository source kind type. */
|
||||
gitRepository?: GitRepositoryPatchDefinition;
|
||||
/** Parameters to reconcile to the Bucket source kind type. */
|
||||
bucket?: BucketDefinition;
|
||||
bucket?: BucketPatchDefinition;
|
||||
/** Array of kustomizations used to reconcile the artifact pulled by the source type on the cluster. */
|
||||
kustomizations?: {
|
||||
[propertyName: string]: KustomizationPatchDefinition | null;
|
||||
|
@ -428,12 +368,30 @@ export interface GitRepositoryPatchDefinition {
|
|||
localAuthRef?: string;
|
||||
}
|
||||
|
||||
/** Parameters to reconcile to the GitRepository source kind type. */
|
||||
export interface BucketPatchDefinition {
|
||||
/** The URL to sync for the flux configuration S3 bucket. */
|
||||
url?: string;
|
||||
/** The bucket name to sync from the url endpoint for the flux configuration. */
|
||||
bucketName?: string;
|
||||
/** Specify whether to use insecure communication when puling data from the S3 bucket. */
|
||||
insecure?: boolean;
|
||||
/** The maximum time to attempt to reconcile the cluster git repository source with the remote. */
|
||||
timeoutInSeconds?: number;
|
||||
/** The interval at which to re-reconcile the cluster git repository source with the remote. */
|
||||
syncIntervalInSeconds?: number;
|
||||
/** Plaintext access key used to securely access the S3 bucket */
|
||||
accessKey?: string;
|
||||
/** Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets. */
|
||||
localAuthRef?: string;
|
||||
}
|
||||
|
||||
/** The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster. */
|
||||
export interface KustomizationPatchDefinition {
|
||||
/** The path in the source reference to reconcile on the cluster. */
|
||||
path?: string;
|
||||
/** Specifies other Kustomizations that this Kustomization depends on. This Kustomization will not reconcile until all dependencies have completed their reconciliation. */
|
||||
dependsOn?: DependsOnDefinition[];
|
||||
dependsOn?: string[];
|
||||
/** The maximum time to attempt to reconcile the Kustomization on the cluster. */
|
||||
timeoutInSeconds?: number;
|
||||
/** The interval at which to re-reconcile the Kustomization on the cluster. */
|
||||
|
@ -552,35 +510,9 @@ export interface ResourceProviderOperationDisplay {
|
|||
description?: string;
|
||||
}
|
||||
|
||||
/** Parameters to reconcile to the GitRepository source kind type. */
|
||||
export interface BucketPatchDefinition {
|
||||
/** The URL to sync for the flux configuration S3 bucket. */
|
||||
url?: string;
|
||||
/** The bucket name to sync from the url endpoint for the flux configuration. */
|
||||
bucketName?: string;
|
||||
/** Specify whether to use insecure communication when puling data from the S3 bucket. */
|
||||
insecure?: boolean;
|
||||
/** The maximum time to attempt to reconcile the cluster git repository source with the remote. */
|
||||
timeoutInSeconds?: number;
|
||||
/** The interval at which to re-reconcile the cluster git repository source with the remote. */
|
||||
syncIntervalInSeconds?: number;
|
||||
/** Plaintext access key used to securely access the S3 bucket */
|
||||
accessKey?: string;
|
||||
/** Name of a local secret on the Kubernetes cluster to use as the authentication secret rather than the managed or user-provided configuration secrets. */
|
||||
localAuthRef?: string;
|
||||
}
|
||||
|
||||
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
||||
export type ProxyResource = Resource & {};
|
||||
|
||||
/** Extension scope settings */
|
||||
export type ClusterScopeSettings = ProxyResource & {
|
||||
/** Describes if multiple instances of the extension are allowed */
|
||||
allowMultipleInstances?: boolean;
|
||||
/** Default extension release namespace */
|
||||
defaultReleaseNamespace?: string;
|
||||
};
|
||||
|
||||
/** The Extension object. */
|
||||
export type Extension = ProxyResource & {
|
||||
/** Identity of the Extension resource */
|
||||
|
@ -596,7 +528,7 @@ export type Extension = ProxyResource & {
|
|||
autoUpgradeMinorVersion?: boolean;
|
||||
/** ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'. */
|
||||
releaseTrain?: string;
|
||||
/** Version of the extension for this extension, if it is 'pinned' to a specific version. autoUpgradeMinorVersion must be 'false'. */
|
||||
/** User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'. */
|
||||
version?: string;
|
||||
/** Scope at which the extension is installed. */
|
||||
scope?: Scope;
|
||||
|
@ -604,6 +536,11 @@ export type Extension = ProxyResource & {
|
|||
configurationSettings?: { [propertyName: string]: string };
|
||||
/** Configuration settings that are sensitive, as name-value pairs for configuring this extension. */
|
||||
configurationProtectedSettings?: { [propertyName: string]: string };
|
||||
/**
|
||||
* Installed version of the extension.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly installedVersion?: string;
|
||||
/**
|
||||
* Status of installation of this extension.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
|
@ -664,15 +601,20 @@ export type FluxConfiguration = ProxyResource & {
|
|||
*/
|
||||
readonly repositoryPublicKey?: string;
|
||||
/**
|
||||
* Branch and SHA of the last source commit synced with the cluster.
|
||||
* Branch and/or SHA of the source commit synced with the cluster.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly lastSourceUpdatedCommitId?: string;
|
||||
readonly sourceSyncedCommitId?: string;
|
||||
/**
|
||||
* Datetime the fluxConfiguration last synced its source on the cluster.
|
||||
* Datetime the fluxConfiguration synced its source on the cluster.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly lastSourceUpdatedAt?: Date;
|
||||
readonly sourceUpdatedAt?: Date;
|
||||
/**
|
||||
* Datetime the fluxConfiguration synced its status on the cluster with Azure.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly statusUpdatedAt?: Date;
|
||||
/**
|
||||
* Combined status of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed objects.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
|
@ -734,58 +676,6 @@ export type SourceControlConfiguration = ProxyResource & {
|
|||
readonly complianceStatus?: ComplianceStatus;
|
||||
};
|
||||
|
||||
/** Known values of {@link Enum0} that the service accepts. */
|
||||
export enum KnownEnum0 {
|
||||
MicrosoftContainerService = "Microsoft.ContainerService",
|
||||
MicrosoftKubernetes = "Microsoft.Kubernetes"
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for Enum0. \
|
||||
* {@link KnownEnum0} can be used interchangeably with Enum0,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Microsoft.ContainerService** \
|
||||
* **Microsoft.Kubernetes**
|
||||
*/
|
||||
export type Enum0 = string;
|
||||
|
||||
/** Known values of {@link Enum1} that the service accepts. */
|
||||
export enum KnownEnum1 {
|
||||
ManagedClusters = "managedClusters",
|
||||
ConnectedClusters = "connectedClusters"
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for Enum1. \
|
||||
* {@link KnownEnum1} can be used interchangeably with Enum1,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **managedClusters** \
|
||||
* **connectedClusters**
|
||||
*/
|
||||
export type Enum1 = string;
|
||||
|
||||
/** Known values of {@link CreatedByType} that the service accepts. */
|
||||
export enum KnownCreatedByType {
|
||||
User = "User",
|
||||
Application = "Application",
|
||||
ManagedIdentity = "ManagedIdentity",
|
||||
Key = "Key"
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for CreatedByType. \
|
||||
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **User** \
|
||||
* **Application** \
|
||||
* **ManagedIdentity** \
|
||||
* **Key**
|
||||
*/
|
||||
export type CreatedByType = string;
|
||||
|
||||
/** Known values of {@link ProvisioningState} that the service accepts. */
|
||||
export enum KnownProvisioningState {
|
||||
Succeeded = "Succeeded",
|
||||
|
@ -828,6 +718,26 @@ export enum KnownLevelType {
|
|||
*/
|
||||
export type LevelType = string;
|
||||
|
||||
/** Known values of {@link CreatedByType} that the service accepts. */
|
||||
export enum KnownCreatedByType {
|
||||
User = "User",
|
||||
Application = "Application",
|
||||
ManagedIdentity = "ManagedIdentity",
|
||||
Key = "Key"
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for CreatedByType. \
|
||||
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **User** \
|
||||
* **Application** \
|
||||
* **ManagedIdentity** \
|
||||
* **Key**
|
||||
*/
|
||||
export type CreatedByType = string;
|
||||
|
||||
/** Known values of {@link ScopeType} that the service accepts. */
|
||||
export enum KnownScopeType {
|
||||
Cluster = "cluster",
|
||||
|
@ -991,57 +901,8 @@ export enum KnownKustomizationValidationType {
|
|||
* **server**
|
||||
*/
|
||||
export type KustomizationValidationType = string;
|
||||
/** Defines values for ClusterTypes. */
|
||||
export type ClusterTypes = "connectedClusters" | "managedClusters";
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ClusterExtensionTypeGetOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the get operation. */
|
||||
export type ClusterExtensionTypeGetResponse = ExtensionType;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ClusterExtensionTypesListOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the list operation. */
|
||||
export type ClusterExtensionTypesListResponse = ExtensionTypeList;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ClusterExtensionTypesListNextOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listNext operation. */
|
||||
export type ClusterExtensionTypesListNextResponse = ExtensionTypeList;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ExtensionTypeVersionsListOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the list operation. */
|
||||
export type ExtensionTypeVersionsListResponse = ExtensionVersionList;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ExtensionTypeVersionsListNextOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listNext operation. */
|
||||
export type ExtensionTypeVersionsListNextResponse = ExtensionVersionList;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface LocationExtensionTypesListOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the list operation. */
|
||||
export type LocationExtensionTypesListResponse = ExtensionTypeList;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface LocationExtensionTypesListNextOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listNext operation. */
|
||||
export type LocationExtensionTypesListNextResponse = ExtensionTypeList;
|
||||
/** Defines values for AKSIdentityType. */
|
||||
export type AKSIdentityType = "SystemAssigned" | "UserAssigned";
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ExtensionsCreateOptionalParams
|
||||
|
|
|
@ -8,329 +8,6 @@
|
|||
|
||||
import * as coreClient from "@azure/core-client";
|
||||
|
||||
export const ExtensionType: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ExtensionType",
|
||||
modelProperties: {
|
||||
systemData: {
|
||||
serializedName: "systemData",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SystemData"
|
||||
}
|
||||
},
|
||||
releaseTrains: {
|
||||
serializedName: "properties.releaseTrains",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
clusterTypes: {
|
||||
serializedName: "properties.clusterTypes",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Enum",
|
||||
allowedValues: ["connectedClusters", "managedClusters"]
|
||||
}
|
||||
},
|
||||
supportedScopes: {
|
||||
serializedName: "properties.supportedScopes",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SupportedScopes"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const SupportedScopes: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SupportedScopes",
|
||||
modelProperties: {
|
||||
defaultScope: {
|
||||
serializedName: "defaultScope",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
clusterScopeSettings: {
|
||||
serializedName: "clusterScopeSettings",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ClusterScopeSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const Resource: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "Resource",
|
||||
modelProperties: {
|
||||
id: {
|
||||
serializedName: "id",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
name: {
|
||||
serializedName: "name",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
type: {
|
||||
serializedName: "type",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const SystemData: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SystemData",
|
||||
modelProperties: {
|
||||
createdBy: {
|
||||
serializedName: "createdBy",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
createdByType: {
|
||||
serializedName: "createdByType",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
createdAt: {
|
||||
serializedName: "createdAt",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
},
|
||||
lastModifiedBy: {
|
||||
serializedName: "lastModifiedBy",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
lastModifiedByType: {
|
||||
serializedName: "lastModifiedByType",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
lastModifiedAt: {
|
||||
serializedName: "lastModifiedAt",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ErrorResponse: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorResponse",
|
||||
modelProperties: {
|
||||
error: {
|
||||
serializedName: "error",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ErrorDetail: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail",
|
||||
modelProperties: {
|
||||
code: {
|
||||
serializedName: "code",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
message: {
|
||||
serializedName: "message",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
target: {
|
||||
serializedName: "target",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
details: {
|
||||
serializedName: "details",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
additionalInfo: {
|
||||
serializedName: "additionalInfo",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorAdditionalInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorAdditionalInfo",
|
||||
modelProperties: {
|
||||
type: {
|
||||
serializedName: "type",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
info: {
|
||||
serializedName: "info",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: { type: { name: "any" } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ExtensionTypeList: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ExtensionTypeList",
|
||||
modelProperties: {
|
||||
value: {
|
||||
serializedName: "value",
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ExtensionType"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
serializedName: "nextLink",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ExtensionVersionList: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ExtensionVersionList",
|
||||
modelProperties: {
|
||||
versions: {
|
||||
serializedName: "versions",
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ExtensionVersionListVersionsItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
serializedName: "nextLink",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
systemData: {
|
||||
serializedName: "systemData",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SystemData"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ExtensionVersionListVersionsItem: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ExtensionVersionListVersionsItem",
|
||||
modelProperties: {
|
||||
releaseTrain: {
|
||||
serializedName: "releaseTrain",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
versions: {
|
||||
serializedName: "versions",
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const Scope: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -424,6 +101,86 @@ export const ExtensionStatus: coreClient.CompositeMapper = {
|
|||
}
|
||||
};
|
||||
|
||||
export const ErrorDetail: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail",
|
||||
modelProperties: {
|
||||
code: {
|
||||
serializedName: "code",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
message: {
|
||||
serializedName: "message",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
target: {
|
||||
serializedName: "target",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
details: {
|
||||
serializedName: "details",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
additionalInfo: {
|
||||
serializedName: "additionalInfo",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorAdditionalInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorAdditionalInfo",
|
||||
modelProperties: {
|
||||
type: {
|
||||
serializedName: "type",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
info: {
|
||||
serializedName: "info",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: { type: { name: "any" } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ExtensionPropertiesAksAssignedIdentity: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -444,11 +201,10 @@ export const ExtensionPropertiesAksAssignedIdentity: coreClient.CompositeMapper
|
|||
}
|
||||
},
|
||||
type: {
|
||||
defaultValue: "SystemAssigned",
|
||||
isConstant: true,
|
||||
serializedName: "type",
|
||||
type: {
|
||||
name: "String"
|
||||
name: "Enum",
|
||||
allowedValues: ["SystemAssigned", "UserAssigned"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -486,6 +242,97 @@ export const Identity: coreClient.CompositeMapper = {
|
|||
}
|
||||
};
|
||||
|
||||
export const SystemData: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SystemData",
|
||||
modelProperties: {
|
||||
createdBy: {
|
||||
serializedName: "createdBy",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
createdByType: {
|
||||
serializedName: "createdByType",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
createdAt: {
|
||||
serializedName: "createdAt",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
},
|
||||
lastModifiedBy: {
|
||||
serializedName: "lastModifiedBy",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
lastModifiedByType: {
|
||||
serializedName: "lastModifiedByType",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
lastModifiedAt: {
|
||||
serializedName: "lastModifiedAt",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const Resource: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "Resource",
|
||||
modelProperties: {
|
||||
id: {
|
||||
serializedName: "id",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
name: {
|
||||
serializedName: "name",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
type: {
|
||||
serializedName: "type",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ErrorResponse: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorResponse",
|
||||
modelProperties: {
|
||||
error: {
|
||||
serializedName: "error",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const PatchExtension: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -507,6 +354,7 @@ export const PatchExtension: coreClient.CompositeMapper = {
|
|||
},
|
||||
version: {
|
||||
serializedName: "properties.version",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
|
@ -770,6 +618,13 @@ export const KustomizationDefinition: coreClient.CompositeMapper = {
|
|||
name: "Composite",
|
||||
className: "KustomizationDefinition",
|
||||
modelProperties: {
|
||||
name: {
|
||||
serializedName: "name",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
path: {
|
||||
defaultValue: "",
|
||||
serializedName: "path",
|
||||
|
@ -784,8 +639,7 @@ export const KustomizationDefinition: coreClient.CompositeMapper = {
|
|||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "DependsOnDefinition"
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -831,21 +685,6 @@ export const KustomizationDefinition: coreClient.CompositeMapper = {
|
|||
}
|
||||
};
|
||||
|
||||
export const DependsOnDefinition: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "DependsOnDefinition",
|
||||
modelProperties: {
|
||||
kustomizationName: {
|
||||
serializedName: "kustomizationName",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ObjectStatusDefinition: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -1041,7 +880,7 @@ export const FluxConfigurationPatch: coreClient.CompositeMapper = {
|
|||
serializedName: "properties.bucket",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "BucketDefinition"
|
||||
className: "BucketPatchDefinition"
|
||||
}
|
||||
},
|
||||
kustomizations: {
|
||||
|
@ -1134,6 +973,64 @@ export const GitRepositoryPatchDefinition: coreClient.CompositeMapper = {
|
|||
}
|
||||
};
|
||||
|
||||
export const BucketPatchDefinition: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "BucketPatchDefinition",
|
||||
modelProperties: {
|
||||
url: {
|
||||
serializedName: "url",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
bucketName: {
|
||||
serializedName: "bucketName",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
insecure: {
|
||||
serializedName: "insecure",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "Boolean"
|
||||
}
|
||||
},
|
||||
timeoutInSeconds: {
|
||||
serializedName: "timeoutInSeconds",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "Number"
|
||||
}
|
||||
},
|
||||
syncIntervalInSeconds: {
|
||||
serializedName: "syncIntervalInSeconds",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "Number"
|
||||
}
|
||||
},
|
||||
accessKey: {
|
||||
serializedName: "accessKey",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
localAuthRef: {
|
||||
serializedName: "localAuthRef",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const KustomizationPatchDefinition: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -1153,8 +1050,7 @@ export const KustomizationPatchDefinition: coreClient.CompositeMapper = {
|
|||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "DependsOnDefinition"
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1437,64 +1333,6 @@ export const ResourceProviderOperationDisplay: coreClient.CompositeMapper = {
|
|||
}
|
||||
};
|
||||
|
||||
export const BucketPatchDefinition: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "BucketPatchDefinition",
|
||||
modelProperties: {
|
||||
url: {
|
||||
serializedName: "url",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
bucketName: {
|
||||
serializedName: "bucketName",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
insecure: {
|
||||
serializedName: "insecure",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "Boolean"
|
||||
}
|
||||
},
|
||||
timeoutInSeconds: {
|
||||
serializedName: "timeoutInSeconds",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "Number"
|
||||
}
|
||||
},
|
||||
syncIntervalInSeconds: {
|
||||
serializedName: "syncIntervalInSeconds",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "Number"
|
||||
}
|
||||
},
|
||||
accessKey: {
|
||||
serializedName: "accessKey",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
localAuthRef: {
|
||||
serializedName: "localAuthRef",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const ProxyResource: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -1505,28 +1343,6 @@ export const ProxyResource: coreClient.CompositeMapper = {
|
|||
}
|
||||
};
|
||||
|
||||
export const ClusterScopeSettings: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ClusterScopeSettings",
|
||||
modelProperties: {
|
||||
...ProxyResource.type.modelProperties,
|
||||
allowMultipleInstances: {
|
||||
serializedName: "properties.allowMultipleInstances",
|
||||
type: {
|
||||
name: "Boolean"
|
||||
}
|
||||
},
|
||||
defaultReleaseNamespace: {
|
||||
serializedName: "properties.defaultReleaseNamespace",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const Extension: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
|
@ -1569,6 +1385,7 @@ export const Extension: coreClient.CompositeMapper = {
|
|||
},
|
||||
version: {
|
||||
serializedName: "properties.version",
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
|
@ -1596,6 +1413,14 @@ export const Extension: coreClient.CompositeMapper = {
|
|||
value: { type: { name: "String" } }
|
||||
}
|
||||
},
|
||||
installedVersion: {
|
||||
serializedName: "properties.installedVersion",
|
||||
readOnly: true,
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
provisioningState: {
|
||||
serializedName: "properties.provisioningState",
|
||||
readOnly: true,
|
||||
|
@ -1745,16 +1570,24 @@ export const FluxConfiguration: coreClient.CompositeMapper = {
|
|||
name: "String"
|
||||
}
|
||||
},
|
||||
lastSourceUpdatedCommitId: {
|
||||
serializedName: "properties.lastSourceUpdatedCommitId",
|
||||
sourceSyncedCommitId: {
|
||||
serializedName: "properties.sourceSyncedCommitId",
|
||||
readOnly: true,
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
lastSourceUpdatedAt: {
|
||||
serializedName: "properties.lastSourceUpdatedAt",
|
||||
sourceUpdatedAt: {
|
||||
serializedName: "properties.sourceUpdatedAt",
|
||||
readOnly: true,
|
||||
nullable: true,
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
},
|
||||
statusUpdatedAt: {
|
||||
serializedName: "properties.statusUpdatedAt",
|
||||
readOnly: true,
|
||||
nullable: true,
|
||||
type: {
|
||||
|
|
|
@ -19,6 +19,23 @@ import {
|
|||
SourceControlConfiguration as SourceControlConfigurationMapper
|
||||
} from "../models/mappers";
|
||||
|
||||
export const contentType: OperationParameter = {
|
||||
parameterPath: ["options", "contentType"],
|
||||
mapper: {
|
||||
defaultValue: "application/json",
|
||||
isConstant: true,
|
||||
serializedName: "Content-Type",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const extension: OperationParameter = {
|
||||
parameterPath: "extension",
|
||||
mapper: ExtensionMapper
|
||||
};
|
||||
|
||||
export const accept: OperationParameter = {
|
||||
parameterPath: "accept",
|
||||
mapper: {
|
||||
|
@ -105,69 +122,6 @@ export const clusterName: OperationURLParameter = {
|
|||
}
|
||||
};
|
||||
|
||||
export const apiVersion: OperationQueryParameter = {
|
||||
parameterPath: "apiVersion",
|
||||
mapper: {
|
||||
defaultValue: "2022-01-01-preview",
|
||||
isConstant: true,
|
||||
serializedName: "api-version",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const extensionTypeName: OperationURLParameter = {
|
||||
parameterPath: "extensionTypeName",
|
||||
mapper: {
|
||||
serializedName: "extensionTypeName",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const nextLink: OperationURLParameter = {
|
||||
parameterPath: "nextLink",
|
||||
mapper: {
|
||||
serializedName: "nextLink",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
skipEncoding: true
|
||||
};
|
||||
|
||||
export const location: OperationURLParameter = {
|
||||
parameterPath: "location",
|
||||
mapper: {
|
||||
serializedName: "location",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const contentType: OperationParameter = {
|
||||
parameterPath: ["options", "contentType"],
|
||||
mapper: {
|
||||
defaultValue: "application/json",
|
||||
isConstant: true,
|
||||
serializedName: "Content-Type",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const extension: OperationParameter = {
|
||||
parameterPath: "extension",
|
||||
mapper: ExtensionMapper
|
||||
};
|
||||
|
||||
export const extensionName: OperationURLParameter = {
|
||||
parameterPath: "extensionName",
|
||||
mapper: {
|
||||
|
@ -179,6 +133,18 @@ export const extensionName: OperationURLParameter = {
|
|||
}
|
||||
};
|
||||
|
||||
export const apiVersion: OperationQueryParameter = {
|
||||
parameterPath: "apiVersion",
|
||||
mapper: {
|
||||
defaultValue: "2022-03-01",
|
||||
isConstant: true,
|
||||
serializedName: "api-version",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const forceDelete: OperationQueryParameter = {
|
||||
parameterPath: ["options", "forceDelete"],
|
||||
mapper: {
|
||||
|
@ -194,6 +160,18 @@ export const patchExtension: OperationParameter = {
|
|||
mapper: PatchExtensionMapper
|
||||
};
|
||||
|
||||
export const nextLink: OperationURLParameter = {
|
||||
parameterPath: "nextLink",
|
||||
mapper: {
|
||||
serializedName: "nextLink",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
skipEncoding: true
|
||||
};
|
||||
|
||||
export const operationId: OperationURLParameter = {
|
||||
parameterPath: "operationId",
|
||||
mapper: {
|
||||
|
|
|
@ -1,92 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { ClusterExtensionType } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient";
|
||||
import {
|
||||
Enum0,
|
||||
Enum1,
|
||||
ClusterExtensionTypeGetOptionalParams,
|
||||
ClusterExtensionTypeGetResponse
|
||||
} from "../models";
|
||||
|
||||
/** Class containing ClusterExtensionType operations. */
|
||||
export class ClusterExtensionTypeImpl implements ClusterExtensionType {
|
||||
private readonly client: SourceControlConfigurationClient;
|
||||
|
||||
/**
|
||||
* Initialize a new instance of the class ClusterExtensionType class.
|
||||
* @param client Reference to the service client
|
||||
*/
|
||||
constructor(client: SourceControlConfigurationClient) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Extension Type details
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionTypeName Extension type name
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
extensionTypeName: string,
|
||||
options?: ClusterExtensionTypeGetOptionalParams
|
||||
): Promise<ClusterExtensionTypeGetResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
extensionTypeName,
|
||||
options
|
||||
},
|
||||
getOperationSpec
|
||||
);
|
||||
}
|
||||
}
|
||||
// Operation Specifications
|
||||
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
||||
|
||||
const getOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensionTypes/{extensionTypeName}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionType
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.clusterRp,
|
||||
Parameters.clusterResourceName,
|
||||
Parameters.clusterName,
|
||||
Parameters.extensionTypeName
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
|
@ -1,240 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import { ClusterExtensionTypes } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient";
|
||||
import {
|
||||
ExtensionType,
|
||||
Enum0,
|
||||
Enum1,
|
||||
ClusterExtensionTypesListNextOptionalParams,
|
||||
ClusterExtensionTypesListOptionalParams,
|
||||
ClusterExtensionTypesListResponse,
|
||||
ClusterExtensionTypesListNextResponse
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Class containing ClusterExtensionTypes operations. */
|
||||
export class ClusterExtensionTypesImpl implements ClusterExtensionTypes {
|
||||
private readonly client: SourceControlConfigurationClient;
|
||||
|
||||
/**
|
||||
* Initialize a new instance of the class ClusterExtensionTypes class.
|
||||
* @param client Reference to the service client
|
||||
*/
|
||||
constructor(client: SourceControlConfigurationClient) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Extension Types
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
options?: ClusterExtensionTypesListOptionalParams
|
||||
): PagedAsyncIterableIterator<ExtensionType> {
|
||||
const iter = this.listPagingAll(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
options
|
||||
);
|
||||
return {
|
||||
next() {
|
||||
return iter.next();
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this;
|
||||
},
|
||||
byPage: () => {
|
||||
return this.listPagingPage(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
options
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private async *listPagingPage(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
options?: ClusterExtensionTypesListOptionalParams
|
||||
): AsyncIterableIterator<ExtensionType[]> {
|
||||
let result = await this._list(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
options
|
||||
);
|
||||
yield result.value || [];
|
||||
let continuationToken = result.nextLink;
|
||||
while (continuationToken) {
|
||||
result = await this._listNext(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
continuationToken,
|
||||
options
|
||||
);
|
||||
continuationToken = result.nextLink;
|
||||
yield result.value || [];
|
||||
}
|
||||
}
|
||||
|
||||
private async *listPagingAll(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
options?: ClusterExtensionTypesListOptionalParams
|
||||
): AsyncIterableIterator<ExtensionType> {
|
||||
for await (const page of this.listPagingPage(
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
options
|
||||
)) {
|
||||
yield* page;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Extension Types
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
options?: ClusterExtensionTypesListOptionalParams
|
||||
): Promise<ClusterExtensionTypesListResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
options
|
||||
},
|
||||
listOperationSpec
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* ListNext
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
nextLink: string,
|
||||
options?: ClusterExtensionTypesListNextOptionalParams
|
||||
): Promise<ClusterExtensionTypesListNextResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{
|
||||
resourceGroupName,
|
||||
clusterRp,
|
||||
clusterResourceName,
|
||||
clusterName,
|
||||
nextLink,
|
||||
options
|
||||
},
|
||||
listNextOperationSpec
|
||||
);
|
||||
}
|
||||
}
|
||||
// Operation Specifications
|
||||
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
||||
|
||||
const listOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensionTypes",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionTypeList
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.clusterRp,
|
||||
Parameters.clusterResourceName,
|
||||
Parameters.clusterName
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
||||
const listNextOperationSpec: coreClient.OperationSpec = {
|
||||
path: "{nextLink}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionTypeList
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.clusterRp,
|
||||
Parameters.clusterResourceName,
|
||||
Parameters.clusterName,
|
||||
Parameters.nextLink
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
|
@ -1,177 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import { ExtensionTypeVersions } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient";
|
||||
import {
|
||||
ExtensionVersionListVersionsItem,
|
||||
ExtensionTypeVersionsListNextOptionalParams,
|
||||
ExtensionTypeVersionsListOptionalParams,
|
||||
ExtensionTypeVersionsListResponse,
|
||||
ExtensionTypeVersionsListNextResponse
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Class containing ExtensionTypeVersions operations. */
|
||||
export class ExtensionTypeVersionsImpl implements ExtensionTypeVersions {
|
||||
private readonly client: SourceControlConfigurationClient;
|
||||
|
||||
/**
|
||||
* Initialize a new instance of the class ExtensionTypeVersions class.
|
||||
* @param client Reference to the service client
|
||||
*/
|
||||
constructor(client: SourceControlConfigurationClient) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
/**
|
||||
* List available versions for an Extension Type
|
||||
* @param location extension location
|
||||
* @param extensionTypeName Extension type name
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
location: string,
|
||||
extensionTypeName: string,
|
||||
options?: ExtensionTypeVersionsListOptionalParams
|
||||
): PagedAsyncIterableIterator<ExtensionVersionListVersionsItem> {
|
||||
const iter = this.listPagingAll(location, extensionTypeName, options);
|
||||
return {
|
||||
next() {
|
||||
return iter.next();
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this;
|
||||
},
|
||||
byPage: () => {
|
||||
return this.listPagingPage(location, extensionTypeName, options);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private async *listPagingPage(
|
||||
location: string,
|
||||
extensionTypeName: string,
|
||||
options?: ExtensionTypeVersionsListOptionalParams
|
||||
): AsyncIterableIterator<ExtensionVersionListVersionsItem[]> {
|
||||
let result = await this._list(location, extensionTypeName, options);
|
||||
yield result.versions || [];
|
||||
let continuationToken = result.nextLink;
|
||||
while (continuationToken) {
|
||||
result = await this._listNext(
|
||||
location,
|
||||
extensionTypeName,
|
||||
continuationToken,
|
||||
options
|
||||
);
|
||||
continuationToken = result.nextLink;
|
||||
yield result.versions || [];
|
||||
}
|
||||
}
|
||||
|
||||
private async *listPagingAll(
|
||||
location: string,
|
||||
extensionTypeName: string,
|
||||
options?: ExtensionTypeVersionsListOptionalParams
|
||||
): AsyncIterableIterator<ExtensionVersionListVersionsItem> {
|
||||
for await (const page of this.listPagingPage(
|
||||
location,
|
||||
extensionTypeName,
|
||||
options
|
||||
)) {
|
||||
yield* page;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* List available versions for an Extension Type
|
||||
* @param location extension location
|
||||
* @param extensionTypeName Extension type name
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
location: string,
|
||||
extensionTypeName: string,
|
||||
options?: ExtensionTypeVersionsListOptionalParams
|
||||
): Promise<ExtensionTypeVersionsListResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ location, extensionTypeName, options },
|
||||
listOperationSpec
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* ListNext
|
||||
* @param location extension location
|
||||
* @param extensionTypeName Extension type name
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
location: string,
|
||||
extensionTypeName: string,
|
||||
nextLink: string,
|
||||
options?: ExtensionTypeVersionsListNextOptionalParams
|
||||
): Promise<ExtensionTypeVersionsListNextResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ location, extensionTypeName, nextLink, options },
|
||||
listNextOperationSpec
|
||||
);
|
||||
}
|
||||
}
|
||||
// Operation Specifications
|
||||
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
||||
|
||||
const listOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/providers/Microsoft.KubernetesConfiguration/locations/{location}/extensionTypes/{extensionTypeName}/versions",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionVersionList
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.extensionTypeName,
|
||||
Parameters.location
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
||||
const listNextOperationSpec: coreClient.OperationSpec = {
|
||||
path: "{nextLink}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionVersionList
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.extensionTypeName,
|
||||
Parameters.nextLink,
|
||||
Parameters.location
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
|
@ -16,8 +16,6 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|||
import { LroImpl } from "../lroImpl";
|
||||
import {
|
||||
Extension,
|
||||
Enum0,
|
||||
Enum1,
|
||||
ExtensionsListNextOptionalParams,
|
||||
ExtensionsListOptionalParams,
|
||||
ExtensionsCreateOptionalParams,
|
||||
|
@ -48,17 +46,17 @@ export class ExtensionsImpl implements Extensions {
|
|||
/**
|
||||
* List all Extensions in the cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: ExtensionsListOptionalParams
|
||||
): PagedAsyncIterableIterator<Extension> {
|
||||
|
@ -90,8 +88,8 @@ export class ExtensionsImpl implements Extensions {
|
|||
|
||||
private async *listPagingPage(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: ExtensionsListOptionalParams
|
||||
): AsyncIterableIterator<Extension[]> {
|
||||
|
@ -120,8 +118,8 @@ export class ExtensionsImpl implements Extensions {
|
|||
|
||||
private async *listPagingAll(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: ExtensionsListOptionalParams
|
||||
): AsyncIterableIterator<Extension> {
|
||||
|
@ -139,10 +137,10 @@ export class ExtensionsImpl implements Extensions {
|
|||
/**
|
||||
* Create a new Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param extension Properties necessary to Create an Extension.
|
||||
|
@ -150,8 +148,8 @@ export class ExtensionsImpl implements Extensions {
|
|||
*/
|
||||
async beginCreate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
extension: Extension,
|
||||
|
@ -214,20 +212,22 @@ export class ExtensionsImpl implements Extensions {
|
|||
},
|
||||
createOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
lroResourceLocationConfig: "azure-async-operation"
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param extension Properties necessary to Create an Extension.
|
||||
|
@ -235,8 +235,8 @@ export class ExtensionsImpl implements Extensions {
|
|||
*/
|
||||
async beginCreateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
extension: Extension,
|
||||
|
@ -257,18 +257,18 @@ export class ExtensionsImpl implements Extensions {
|
|||
/**
|
||||
* Gets Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
options?: ExtensionsGetOptionalParams
|
||||
|
@ -290,18 +290,18 @@ export class ExtensionsImpl implements Extensions {
|
|||
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the
|
||||
* cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
async beginDelete(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
options?: ExtensionsDeleteOptionalParams
|
||||
|
@ -357,29 +357,31 @@ export class ExtensionsImpl implements Extensions {
|
|||
},
|
||||
deleteOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
lroResourceLocationConfig: "azure-async-operation"
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the
|
||||
* cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
async beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
options?: ExtensionsDeleteOptionalParams
|
||||
|
@ -398,10 +400,10 @@ export class ExtensionsImpl implements Extensions {
|
|||
/**
|
||||
* Patch an existing Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param patchExtension Properties to Patch in an existing Extension.
|
||||
|
@ -409,8 +411,8 @@ export class ExtensionsImpl implements Extensions {
|
|||
*/
|
||||
async beginUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
patchExtension: PatchExtension,
|
||||
|
@ -473,20 +475,22 @@ export class ExtensionsImpl implements Extensions {
|
|||
},
|
||||
updateOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
lroResourceLocationConfig: "azure-async-operation"
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Patch an existing Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param patchExtension Properties to Patch in an existing Extension.
|
||||
|
@ -494,8 +498,8 @@ export class ExtensionsImpl implements Extensions {
|
|||
*/
|
||||
async beginUpdateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
patchExtension: PatchExtension,
|
||||
|
@ -516,17 +520,17 @@ export class ExtensionsImpl implements Extensions {
|
|||
/**
|
||||
* List all Extensions in the cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: ExtensionsListOptionalParams
|
||||
): Promise<ExtensionsListResponse> {
|
||||
|
@ -545,18 +549,18 @@ export class ExtensionsImpl implements Extensions {
|
|||
/**
|
||||
* ListNext
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
nextLink: string,
|
||||
options?: ExtensionsListNextOptionalParams
|
||||
|
@ -609,7 +613,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.clusterName,
|
||||
Parameters.extensionName
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
headerParameters: [Parameters.contentType, Parameters.accept],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
};
|
||||
|
@ -696,7 +700,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.clusterName,
|
||||
Parameters.extensionName
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
headerParameters: [Parameters.contentType, Parameters.accept],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
};
|
||||
|
|
|
@ -12,8 +12,6 @@ import * as Mappers from "../models/mappers";
|
|||
import * as Parameters from "../models/parameters";
|
||||
import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient";
|
||||
import {
|
||||
Enum0,
|
||||
Enum1,
|
||||
FluxConfigOperationStatusGetOptionalParams,
|
||||
FluxConfigOperationStatusGetResponse
|
||||
} from "../models";
|
||||
|
@ -34,10 +32,10 @@ export class FluxConfigOperationStatusImpl
|
|||
/**
|
||||
* Get Async Operation status
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param operationId operation Id
|
||||
|
@ -45,8 +43,8 @@ export class FluxConfigOperationStatusImpl
|
|||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
operationId: string,
|
||||
|
|
|
@ -16,8 +16,6 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|||
import { LroImpl } from "../lroImpl";
|
||||
import {
|
||||
FluxConfiguration,
|
||||
Enum0,
|
||||
Enum1,
|
||||
FluxConfigurationsListNextOptionalParams,
|
||||
FluxConfigurationsListOptionalParams,
|
||||
FluxConfigurationsGetOptionalParams,
|
||||
|
@ -48,17 +46,17 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
/**
|
||||
* List all Flux Configurations.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: FluxConfigurationsListOptionalParams
|
||||
): PagedAsyncIterableIterator<FluxConfiguration> {
|
||||
|
@ -90,8 +88,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
|
||||
private async *listPagingPage(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: FluxConfigurationsListOptionalParams
|
||||
): AsyncIterableIterator<FluxConfiguration[]> {
|
||||
|
@ -120,8 +118,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
|
||||
private async *listPagingAll(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: FluxConfigurationsListOptionalParams
|
||||
): AsyncIterableIterator<FluxConfiguration> {
|
||||
|
@ -139,18 +137,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
/**
|
||||
* Gets details of the Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
options?: FluxConfigurationsGetOptionalParams
|
||||
|
@ -171,10 +169,10 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
/**
|
||||
* Create a new Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
|
||||
|
@ -182,8 +180,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
*/
|
||||
async beginCreateOrUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfiguration: FluxConfiguration,
|
||||
|
@ -246,20 +244,22 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
},
|
||||
createOrUpdateOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
lroResourceLocationConfig: "azure-async-operation"
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
|
||||
|
@ -267,8 +267,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
*/
|
||||
async beginCreateOrUpdateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfiguration: FluxConfiguration,
|
||||
|
@ -289,10 +289,10 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
/**
|
||||
* Update an existing Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
|
||||
|
@ -300,8 +300,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
*/
|
||||
async beginUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfigurationPatch: FluxConfigurationPatch,
|
||||
|
@ -364,20 +364,22 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
},
|
||||
updateOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
lroResourceLocationConfig: "azure-async-operation"
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
|
||||
|
@ -385,8 +387,8 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
*/
|
||||
async beginUpdateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfigurationPatch: FluxConfigurationPatch,
|
||||
|
@ -408,18 +410,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
* This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
|
||||
* the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
async beginDelete(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
options?: FluxConfigurationsDeleteOptionalParams
|
||||
|
@ -475,29 +477,31 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
},
|
||||
deleteOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
lroResourceLocationConfig: "azure-async-operation"
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
|
||||
* the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
async beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
options?: FluxConfigurationsDeleteOptionalParams
|
||||
|
@ -516,17 +520,17 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
/**
|
||||
* List all Flux Configurations.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: FluxConfigurationsListOptionalParams
|
||||
): Promise<FluxConfigurationsListResponse> {
|
||||
|
@ -545,18 +549,18 @@ export class FluxConfigurationsImpl implements FluxConfigurations {
|
|||
/**
|
||||
* ListNext
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
nextLink: string,
|
||||
options?: FluxConfigurationsListNextOptionalParams
|
||||
|
@ -634,7 +638,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.clusterName,
|
||||
Parameters.fluxConfigurationName
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
headerParameters: [Parameters.contentType, Parameters.accept],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
};
|
||||
|
@ -670,7 +674,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.clusterName,
|
||||
Parameters.fluxConfigurationName
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
headerParameters: [Parameters.contentType, Parameters.accept],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
};
|
||||
|
|
|
@ -6,10 +6,6 @@
|
|||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
export * from "./clusterExtensionType";
|
||||
export * from "./clusterExtensionTypes";
|
||||
export * from "./extensionTypeVersions";
|
||||
export * from "./locationExtensionTypes";
|
||||
export * from "./extensions";
|
||||
export * from "./operationStatus";
|
||||
export * from "./fluxConfigurations";
|
||||
|
|
|
@ -1,158 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import { LocationExtensionTypes } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient";
|
||||
import {
|
||||
ExtensionType,
|
||||
LocationExtensionTypesListNextOptionalParams,
|
||||
LocationExtensionTypesListOptionalParams,
|
||||
LocationExtensionTypesListResponse,
|
||||
LocationExtensionTypesListNextResponse
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Class containing LocationExtensionTypes operations. */
|
||||
export class LocationExtensionTypesImpl implements LocationExtensionTypes {
|
||||
private readonly client: SourceControlConfigurationClient;
|
||||
|
||||
/**
|
||||
* Initialize a new instance of the class LocationExtensionTypes class.
|
||||
* @param client Reference to the service client
|
||||
*/
|
||||
constructor(client: SourceControlConfigurationClient) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
/**
|
||||
* List all Extension Types
|
||||
* @param location extension location
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
location: string,
|
||||
options?: LocationExtensionTypesListOptionalParams
|
||||
): PagedAsyncIterableIterator<ExtensionType> {
|
||||
const iter = this.listPagingAll(location, options);
|
||||
return {
|
||||
next() {
|
||||
return iter.next();
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this;
|
||||
},
|
||||
byPage: () => {
|
||||
return this.listPagingPage(location, options);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private async *listPagingPage(
|
||||
location: string,
|
||||
options?: LocationExtensionTypesListOptionalParams
|
||||
): AsyncIterableIterator<ExtensionType[]> {
|
||||
let result = await this._list(location, options);
|
||||
yield result.value || [];
|
||||
let continuationToken = result.nextLink;
|
||||
while (continuationToken) {
|
||||
result = await this._listNext(location, continuationToken, options);
|
||||
continuationToken = result.nextLink;
|
||||
yield result.value || [];
|
||||
}
|
||||
}
|
||||
|
||||
private async *listPagingAll(
|
||||
location: string,
|
||||
options?: LocationExtensionTypesListOptionalParams
|
||||
): AsyncIterableIterator<ExtensionType> {
|
||||
for await (const page of this.listPagingPage(location, options)) {
|
||||
yield* page;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* List all Extension Types
|
||||
* @param location extension location
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
location: string,
|
||||
options?: LocationExtensionTypesListOptionalParams
|
||||
): Promise<LocationExtensionTypesListResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ location, options },
|
||||
listOperationSpec
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* ListNext
|
||||
* @param location extension location
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
location: string,
|
||||
nextLink: string,
|
||||
options?: LocationExtensionTypesListNextOptionalParams
|
||||
): Promise<LocationExtensionTypesListNextResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ location, nextLink, options },
|
||||
listNextOperationSpec
|
||||
);
|
||||
}
|
||||
}
|
||||
// Operation Specifications
|
||||
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
||||
|
||||
const listOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/providers/Microsoft.KubernetesConfiguration/locations/{location}/extensionTypes",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionTypeList
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.location
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
||||
const listNextOperationSpec: coreClient.OperationSpec = {
|
||||
path: "{nextLink}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.ExtensionTypeList
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.nextLink,
|
||||
Parameters.location
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
|
@ -14,8 +14,6 @@ import * as Parameters from "../models/parameters";
|
|||
import { SourceControlConfigurationClient } from "../sourceControlConfigurationClient";
|
||||
import {
|
||||
OperationStatusResult,
|
||||
Enum0,
|
||||
Enum1,
|
||||
OperationStatusListNextOptionalParams,
|
||||
OperationStatusListOptionalParams,
|
||||
OperationStatusGetOptionalParams,
|
||||
|
@ -40,17 +38,17 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
/**
|
||||
* List Async Operations, currently in progress, in a cluster
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: OperationStatusListOptionalParams
|
||||
): PagedAsyncIterableIterator<OperationStatusResult> {
|
||||
|
@ -82,8 +80,8 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
|
||||
private async *listPagingPage(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: OperationStatusListOptionalParams
|
||||
): AsyncIterableIterator<OperationStatusResult[]> {
|
||||
|
@ -112,8 +110,8 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
|
||||
private async *listPagingAll(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: OperationStatusListOptionalParams
|
||||
): AsyncIterableIterator<OperationStatusResult> {
|
||||
|
@ -131,10 +129,10 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
/**
|
||||
* Get Async Operation status
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param operationId operation Id
|
||||
|
@ -142,8 +140,8 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
operationId: string,
|
||||
|
@ -166,17 +164,17 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
/**
|
||||
* List Async Operations, currently in progress, in a cluster
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: OperationStatusListOptionalParams
|
||||
): Promise<OperationStatusListResponse> {
|
||||
|
@ -195,18 +193,18 @@ export class OperationStatusImpl implements OperationStatus {
|
|||
/**
|
||||
* ListNext
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
nextLink: string,
|
||||
options?: OperationStatusListNextOptionalParams
|
||||
|
|
|
@ -16,8 +16,6 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|||
import { LroImpl } from "../lroImpl";
|
||||
import {
|
||||
SourceControlConfiguration,
|
||||
Enum0,
|
||||
Enum1,
|
||||
SourceControlConfigurationsListNextOptionalParams,
|
||||
SourceControlConfigurationsListOptionalParams,
|
||||
SourceControlConfigurationsGetOptionalParams,
|
||||
|
@ -46,17 +44,17 @@ export class SourceControlConfigurationsImpl
|
|||
/**
|
||||
* List all Source Control Configurations.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: SourceControlConfigurationsListOptionalParams
|
||||
): PagedAsyncIterableIterator<SourceControlConfiguration> {
|
||||
|
@ -88,8 +86,8 @@ export class SourceControlConfigurationsImpl
|
|||
|
||||
private async *listPagingPage(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: SourceControlConfigurationsListOptionalParams
|
||||
): AsyncIterableIterator<SourceControlConfiguration[]> {
|
||||
|
@ -118,8 +116,8 @@ export class SourceControlConfigurationsImpl
|
|||
|
||||
private async *listPagingAll(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: SourceControlConfigurationsListOptionalParams
|
||||
): AsyncIterableIterator<SourceControlConfiguration> {
|
||||
|
@ -137,18 +135,18 @@ export class SourceControlConfigurationsImpl
|
|||
/**
|
||||
* Gets details of the Source Control Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
options?: SourceControlConfigurationsGetOptionalParams
|
||||
|
@ -169,10 +167,10 @@ export class SourceControlConfigurationsImpl
|
|||
/**
|
||||
* Create a new Kubernetes Source Control Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
|
||||
|
@ -180,8 +178,8 @@ export class SourceControlConfigurationsImpl
|
|||
*/
|
||||
createOrUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
sourceControlConfiguration: SourceControlConfiguration,
|
||||
|
@ -205,18 +203,18 @@ export class SourceControlConfigurationsImpl
|
|||
* This will delete the YAML file used to set up the Source control configuration, thus stopping future
|
||||
* sync from the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
async beginDelete(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
options?: SourceControlConfigurationsDeleteOptionalParams
|
||||
|
@ -272,28 +270,30 @@ export class SourceControlConfigurationsImpl
|
|||
},
|
||||
deleteOperationSpec
|
||||
);
|
||||
return new LroEngine(lro, {
|
||||
const poller = new LroEngine(lro, {
|
||||
resumeFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
}
|
||||
|
||||
/**
|
||||
* This will delete the YAML file used to set up the Source control configuration, thus stopping future
|
||||
* sync from the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
async beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
options?: SourceControlConfigurationsDeleteOptionalParams
|
||||
|
@ -312,17 +312,17 @@ export class SourceControlConfigurationsImpl
|
|||
/**
|
||||
* List all Source Control Configurations.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: SourceControlConfigurationsListOptionalParams
|
||||
): Promise<SourceControlConfigurationsListResponse> {
|
||||
|
@ -341,18 +341,18 @@ export class SourceControlConfigurationsImpl
|
|||
/**
|
||||
* ListNext
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param nextLink The nextLink from the previous successful call to the List method.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
private _listNext(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
nextLink: string,
|
||||
options?: SourceControlConfigurationsListNextOptionalParams
|
||||
|
@ -424,7 +424,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.clusterName,
|
||||
Parameters.sourceControlConfigurationName
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
headerParameters: [Parameters.contentType, Parameters.accept],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
};
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import {
|
||||
Enum0,
|
||||
Enum1,
|
||||
ClusterExtensionTypeGetOptionalParams,
|
||||
ClusterExtensionTypeGetResponse
|
||||
} from "../models";
|
||||
|
||||
/** Interface representing a ClusterExtensionType. */
|
||||
export interface ClusterExtensionType {
|
||||
/**
|
||||
* Get Extension Type details
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionTypeName Extension type name
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
extensionTypeName: string,
|
||||
options?: ClusterExtensionTypeGetOptionalParams
|
||||
): Promise<ClusterExtensionTypeGetResponse>;
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import {
|
||||
ExtensionType,
|
||||
Enum0,
|
||||
Enum1,
|
||||
ClusterExtensionTypesListOptionalParams
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Interface representing a ClusterExtensionTypes. */
|
||||
export interface ClusterExtensionTypes {
|
||||
/**
|
||||
* Get Extension Types
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterName: string,
|
||||
options?: ClusterExtensionTypesListOptionalParams
|
||||
): PagedAsyncIterableIterator<ExtensionType>;
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import {
|
||||
ExtensionVersionListVersionsItem,
|
||||
ExtensionTypeVersionsListOptionalParams
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Interface representing a ExtensionTypeVersions. */
|
||||
export interface ExtensionTypeVersions {
|
||||
/**
|
||||
* List available versions for an Extension Type
|
||||
* @param location extension location
|
||||
* @param extensionTypeName Extension type name
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
location: string,
|
||||
extensionTypeName: string,
|
||||
options?: ExtensionTypeVersionsListOptionalParams
|
||||
): PagedAsyncIterableIterator<ExtensionVersionListVersionsItem>;
|
||||
}
|
|
@ -10,8 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|||
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
||||
import {
|
||||
Extension,
|
||||
Enum0,
|
||||
Enum1,
|
||||
ExtensionsListOptionalParams,
|
||||
ExtensionsCreateOptionalParams,
|
||||
ExtensionsCreateResponse,
|
||||
|
@ -29,27 +27,27 @@ export interface Extensions {
|
|||
/**
|
||||
* List all Extensions in the cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: ExtensionsListOptionalParams
|
||||
): PagedAsyncIterableIterator<Extension>;
|
||||
/**
|
||||
* Create a new Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param extension Properties necessary to Create an Extension.
|
||||
|
@ -57,8 +55,8 @@ export interface Extensions {
|
|||
*/
|
||||
beginCreate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
extension: Extension,
|
||||
|
@ -72,10 +70,10 @@ export interface Extensions {
|
|||
/**
|
||||
* Create a new Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param extension Properties necessary to Create an Extension.
|
||||
|
@ -83,8 +81,8 @@ export interface Extensions {
|
|||
*/
|
||||
beginCreateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
extension: Extension,
|
||||
|
@ -93,18 +91,18 @@ export interface Extensions {
|
|||
/**
|
||||
* Gets Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
options?: ExtensionsGetOptionalParams
|
||||
|
@ -113,18 +111,18 @@ export interface Extensions {
|
|||
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the
|
||||
* cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
beginDelete(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
options?: ExtensionsDeleteOptionalParams
|
||||
|
@ -133,18 +131,18 @@ export interface Extensions {
|
|||
* Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the
|
||||
* cluster.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
options?: ExtensionsDeleteOptionalParams
|
||||
|
@ -152,10 +150,10 @@ export interface Extensions {
|
|||
/**
|
||||
* Patch an existing Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param patchExtension Properties to Patch in an existing Extension.
|
||||
|
@ -163,8 +161,8 @@ export interface Extensions {
|
|||
*/
|
||||
beginUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
patchExtension: PatchExtension,
|
||||
|
@ -178,10 +176,10 @@ export interface Extensions {
|
|||
/**
|
||||
* Patch an existing Kubernetes Cluster Extension.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param patchExtension Properties to Patch in an existing Extension.
|
||||
|
@ -189,8 +187,8 @@ export interface Extensions {
|
|||
*/
|
||||
beginUpdateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
patchExtension: PatchExtension,
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
Enum0,
|
||||
Enum1,
|
||||
FluxConfigOperationStatusGetOptionalParams,
|
||||
FluxConfigOperationStatusGetResponse
|
||||
} from "../models";
|
||||
|
@ -18,10 +16,10 @@ export interface FluxConfigOperationStatus {
|
|||
/**
|
||||
* Get Async Operation status
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param operationId operation Id
|
||||
|
@ -29,8 +27,8 @@ export interface FluxConfigOperationStatus {
|
|||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
operationId: string,
|
||||
|
|
|
@ -10,8 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|||
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
||||
import {
|
||||
FluxConfiguration,
|
||||
Enum0,
|
||||
Enum1,
|
||||
FluxConfigurationsListOptionalParams,
|
||||
FluxConfigurationsGetOptionalParams,
|
||||
FluxConfigurationsGetResponse,
|
||||
|
@ -29,35 +27,35 @@ export interface FluxConfigurations {
|
|||
/**
|
||||
* List all Flux Configurations.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: FluxConfigurationsListOptionalParams
|
||||
): PagedAsyncIterableIterator<FluxConfiguration>;
|
||||
/**
|
||||
* Gets details of the Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
options?: FluxConfigurationsGetOptionalParams
|
||||
|
@ -65,10 +63,10 @@ export interface FluxConfigurations {
|
|||
/**
|
||||
* Create a new Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
|
||||
|
@ -76,8 +74,8 @@ export interface FluxConfigurations {
|
|||
*/
|
||||
beginCreateOrUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfiguration: FluxConfiguration,
|
||||
|
@ -91,10 +89,10 @@ export interface FluxConfigurations {
|
|||
/**
|
||||
* Create a new Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
|
||||
|
@ -102,8 +100,8 @@ export interface FluxConfigurations {
|
|||
*/
|
||||
beginCreateOrUpdateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfiguration: FluxConfiguration,
|
||||
|
@ -112,10 +110,10 @@ export interface FluxConfigurations {
|
|||
/**
|
||||
* Update an existing Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
|
||||
|
@ -123,8 +121,8 @@ export interface FluxConfigurations {
|
|||
*/
|
||||
beginUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfigurationPatch: FluxConfigurationPatch,
|
||||
|
@ -138,10 +136,10 @@ export interface FluxConfigurations {
|
|||
/**
|
||||
* Update an existing Kubernetes Flux Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
|
||||
|
@ -149,8 +147,8 @@ export interface FluxConfigurations {
|
|||
*/
|
||||
beginUpdateAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
fluxConfigurationPatch: FluxConfigurationPatch,
|
||||
|
@ -160,18 +158,18 @@ export interface FluxConfigurations {
|
|||
* This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
|
||||
* the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
beginDelete(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
options?: FluxConfigurationsDeleteOptionalParams
|
||||
|
@ -180,18 +178,18 @@ export interface FluxConfigurations {
|
|||
* This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
|
||||
* the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param fluxConfigurationName Name of the Flux Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
fluxConfigurationName: string,
|
||||
options?: FluxConfigurationsDeleteOptionalParams
|
||||
|
|
|
@ -6,10 +6,6 @@
|
|||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
export * from "./clusterExtensionType";
|
||||
export * from "./clusterExtensionTypes";
|
||||
export * from "./extensionTypeVersions";
|
||||
export * from "./locationExtensionTypes";
|
||||
export * from "./extensions";
|
||||
export * from "./operationStatus";
|
||||
export * from "./fluxConfigurations";
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import {
|
||||
ExtensionType,
|
||||
LocationExtensionTypesListOptionalParams
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Interface representing a LocationExtensionTypes. */
|
||||
export interface LocationExtensionTypes {
|
||||
/**
|
||||
* List all Extension Types
|
||||
* @param location extension location
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
location: string,
|
||||
options?: LocationExtensionTypesListOptionalParams
|
||||
): PagedAsyncIterableIterator<ExtensionType>;
|
||||
}
|
|
@ -9,8 +9,6 @@
|
|||
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
||||
import {
|
||||
OperationStatusResult,
|
||||
Enum0,
|
||||
Enum1,
|
||||
OperationStatusListOptionalParams,
|
||||
OperationStatusGetOptionalParams,
|
||||
OperationStatusGetResponse
|
||||
|
@ -22,27 +20,27 @@ export interface OperationStatus {
|
|||
/**
|
||||
* List Async Operations, currently in progress, in a cluster
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: OperationStatusListOptionalParams
|
||||
): PagedAsyncIterableIterator<OperationStatusResult>;
|
||||
/**
|
||||
* Get Async Operation status
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param extensionName Name of the Extension.
|
||||
* @param operationId operation Id
|
||||
|
@ -50,8 +48,8 @@ export interface OperationStatus {
|
|||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
extensionName: string,
|
||||
operationId: string,
|
||||
|
|
|
@ -10,8 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|||
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
||||
import {
|
||||
SourceControlConfiguration,
|
||||
Enum0,
|
||||
Enum1,
|
||||
SourceControlConfigurationsListOptionalParams,
|
||||
SourceControlConfigurationsGetOptionalParams,
|
||||
SourceControlConfigurationsGetResponse,
|
||||
|
@ -26,35 +24,35 @@ export interface SourceControlConfigurations {
|
|||
/**
|
||||
* List all Source Control Configurations.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
options?: SourceControlConfigurationsListOptionalParams
|
||||
): PagedAsyncIterableIterator<SourceControlConfiguration>;
|
||||
/**
|
||||
* Gets details of the Source Control Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
get(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
options?: SourceControlConfigurationsGetOptionalParams
|
||||
|
@ -62,10 +60,10 @@ export interface SourceControlConfigurations {
|
|||
/**
|
||||
* Create a new Kubernetes Source Control Configuration.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.
|
||||
|
@ -73,8 +71,8 @@ export interface SourceControlConfigurations {
|
|||
*/
|
||||
createOrUpdate(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
sourceControlConfiguration: SourceControlConfiguration,
|
||||
|
@ -84,18 +82,18 @@ export interface SourceControlConfigurations {
|
|||
* This will delete the YAML file used to set up the Source control configuration, thus stopping future
|
||||
* sync from the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
beginDelete(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
options?: SourceControlConfigurationsDeleteOptionalParams
|
||||
|
@ -104,18 +102,18 @@ export interface SourceControlConfigurations {
|
|||
* This will delete the YAML file used to set up the Source control configuration, thus stopping future
|
||||
* sync from the source repo.
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
* @param clusterRp The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or
|
||||
* Microsoft.Kubernetes (for OnPrem K8S clusters).
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - either managedClusters (for AKS
|
||||
* clusters) or connectedClusters (for OnPrem K8S clusters).
|
||||
* @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
|
||||
* Microsoft.HybridContainerService.
|
||||
* @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
|
||||
* connectedClusters, provisionedClusters.
|
||||
* @param clusterName The name of the kubernetes cluster.
|
||||
* @param sourceControlConfigurationName Name of the Source Control Configuration.
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
clusterRp: Enum0,
|
||||
clusterResourceName: Enum1,
|
||||
clusterRp: string,
|
||||
clusterResourceName: string,
|
||||
clusterName: string,
|
||||
sourceControlConfigurationName: string,
|
||||
options?: SourceControlConfigurationsDeleteOptionalParams
|
||||
|
|
|
@ -9,10 +9,6 @@
|
|||
import * as coreClient from "@azure/core-client";
|
||||
import * as coreAuth from "@azure/core-auth";
|
||||
import {
|
||||
ClusterExtensionTypeImpl,
|
||||
ClusterExtensionTypesImpl,
|
||||
ExtensionTypeVersionsImpl,
|
||||
LocationExtensionTypesImpl,
|
||||
ExtensionsImpl,
|
||||
OperationStatusImpl,
|
||||
FluxConfigurationsImpl,
|
||||
|
@ -21,10 +17,6 @@ import {
|
|||
OperationsImpl
|
||||
} from "./operations";
|
||||
import {
|
||||
ClusterExtensionType,
|
||||
ClusterExtensionTypes,
|
||||
ExtensionTypeVersions,
|
||||
LocationExtensionTypes,
|
||||
Extensions,
|
||||
OperationStatus,
|
||||
FluxConfigurations,
|
||||
|
@ -66,7 +58,7 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient {
|
|||
credential: credentials
|
||||
};
|
||||
|
||||
const packageDetails = `azsdk-js-arm-kubernetesconfiguration/5.0.0-beta.1`;
|
||||
const packageDetails = `azsdk-js-arm-kubernetesconfiguration/5.0.0`;
|
||||
const userAgentPrefix =
|
||||
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
||||
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
||||
|
@ -81,7 +73,8 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient {
|
|||
userAgentOptions: {
|
||||
userAgentPrefix
|
||||
},
|
||||
baseUri: options.endpoint || "https://management.azure.com"
|
||||
baseUri:
|
||||
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
||||
};
|
||||
super(optionsWithDefaults);
|
||||
// Parameter assignments
|
||||
|
@ -89,11 +82,7 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient {
|
|||
|
||||
// Assigning values to Constant parameters
|
||||
this.$host = options.$host || "https://management.azure.com";
|
||||
this.apiVersion = options.apiVersion || "2022-01-01-preview";
|
||||
this.clusterExtensionType = new ClusterExtensionTypeImpl(this);
|
||||
this.clusterExtensionTypes = new ClusterExtensionTypesImpl(this);
|
||||
this.extensionTypeVersions = new ExtensionTypeVersionsImpl(this);
|
||||
this.locationExtensionTypes = new LocationExtensionTypesImpl(this);
|
||||
this.apiVersion = options.apiVersion || "2022-03-01";
|
||||
this.extensions = new ExtensionsImpl(this);
|
||||
this.operationStatus = new OperationStatusImpl(this);
|
||||
this.fluxConfigurations = new FluxConfigurationsImpl(this);
|
||||
|
@ -104,10 +93,6 @@ export class SourceControlConfigurationClient extends coreClient.ServiceClient {
|
|||
this.operations = new OperationsImpl(this);
|
||||
}
|
||||
|
||||
clusterExtensionType: ClusterExtensionType;
|
||||
clusterExtensionTypes: ClusterExtensionTypes;
|
||||
extensionTypeVersions: ExtensionTypeVersions;
|
||||
locationExtensionTypes: LocationExtensionTypes;
|
||||
extensions: Extensions;
|
||||
operationStatus: OperationStatus;
|
||||
fluxConfigurations: FluxConfigurations;
|
||||
|
|
|
@ -9,11 +9,25 @@
|
|||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": ["es6", "dom"],
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"declaration": true,
|
||||
"outDir": "./dist-esm",
|
||||
"importHelpers": true
|
||||
"importHelpers": true,
|
||||
"paths": {
|
||||
"@azure/arm-kubernetesconfiguration": [
|
||||
"./src/index"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
"include": [
|
||||
"./src/**/*.ts",
|
||||
"./test/**/*.ts",
|
||||
"samples-dev/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
|
||||
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
|
@ -9,7 +9,7 @@ trigger:
|
|||
paths:
|
||||
include:
|
||||
- sdk/kubernetesconfiguration/ci.mgmt.yml
|
||||
- sdk/kubernetesconfiguration/arm-kubernetesconfiguration/
|
||||
- sdk/kubernetesconfiguration/arm-kubernetesconfiguration
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
|
@ -22,12 +22,11 @@ pr:
|
|||
paths:
|
||||
include:
|
||||
- sdk/kubernetesconfiguration/ci.mgmt.yml
|
||||
- sdk/kubernetesconfiguration/arm-kubernetesconfiguration/
|
||||
|
||||
- sdk/kubernetesconfiguration/arm-kubernetesconfiguration
|
||||
extends:
|
||||
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
|
||||
parameters:
|
||||
ServiceDirectory: kubernetesconfiguration
|
||||
Artifacts:
|
||||
- name: azure-arm-kubernetesconfiguration
|
||||
safeName: azurearmkubernetesconfiguration
|
||||
safeName: azurearmkubernetesconfiguration
|
||||
|
|
Загрузка…
Ссылка в новой задаче