diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index 3aef6be9c58d..9b2c7b5294cf 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History + +## 19.7.0 (2024-01-19) + +**Features** -## 19.6.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface AgentPoolUpgradeSettings has a new optional parameter nodeSoakDurationInMinutes + + ## 19.6.0 (2023-12-21) **Features** diff --git a/sdk/containerservice/arm-containerservice/LICENSE b/sdk/containerservice/arm-containerservice/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/containerservice/arm-containerservice/LICENSE +++ b/sdk/containerservice/arm-containerservice/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index 0f1c02ddfe8e..429ace87f506 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "d0c0ce3db26b90fefe5a4be126fdf913e3efa7af", + "commit": "f11f6103b36865af37e206e34315d827faa0b8c6", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index cc4b8f4fe642..b5d457beeafe 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerServiceClient.", - "version": "19.6.1", + "version": "19.7.0", "engines": { "node": ">=18.0.0" }, @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -107,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice" +} \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md index 7a868876e80f..cb61100f7b9e 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -222,6 +222,7 @@ export interface AgentPoolUpgradeProfilePropertiesUpgradesItem { export interface AgentPoolUpgradeSettings { drainTimeoutInMinutes?: number; maxSurge?: string; + nodeSoakDurationInMinutes?: number; } // @public diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 22a4f0d795eb..7de91a088df6 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -24,7 +24,7 @@ import { ResolvePrivateLinkServiceIdImpl, SnapshotsImpl, TrustedAccessRoleBindingsImpl, - TrustedAccessRolesImpl + TrustedAccessRolesImpl, } from "./operations"; import { Operations, @@ -36,7 +36,7 @@ import { ResolvePrivateLinkServiceId, Snapshots, TrustedAccessRoleBindings, - TrustedAccessRoles + TrustedAccessRoles, } from "./operationsInterfaces"; import { ContainerServiceClientOptionalParams } from "./models"; @@ -54,7 +54,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ContainerServiceClientOptionalParams + options?: ContainerServiceClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -69,10 +69,10 @@ export class ContainerServiceClient extends coreClient.ServiceClient { } const defaults: ContainerServiceClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-containerservice/19.6.1`; + const packageDetails = `azsdk-js-arm-containerservice/19.7.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -82,20 +82,21 @@ export class ContainerServiceClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -105,7 +106,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -115,9 +116,9 @@ export class ContainerServiceClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -125,7 +126,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-10-01"; + this.apiVersion = options.apiVersion || "2023-11-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); @@ -133,7 +134,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.resolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdImpl( - this + this, ); this.snapshots = new SnapshotsImpl(this); this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this); @@ -150,7 +151,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -164,7 +165,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/containerservice/arm-containerservice/src/lroImpl.ts b/sdk/containerservice/arm-containerservice/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/containerservice/arm-containerservice/src/lroImpl.ts +++ b/sdk/containerservice/arm-containerservice/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 7df98601047d..2747cbdd0159 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -312,6 +312,8 @@ export interface AgentPoolUpgradeSettings { maxSurge?: string; /** The amount of time (in minutes) to wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod disruption budgets. If this time is exceeded, the upgrade fails. If not specified, the default is 30 minutes. */ drainTimeoutInMinutes?: number; + /** The amount of time (in minutes) to wait after draining a node and before reimaging it and moving on to next node. If not specified, the default is 0 minutes. */ + nodeSoakDurationInMinutes?: number; } /** See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details. */ @@ -2039,7 +2041,7 @@ export enum KnownKubernetesSupportPlan { /** Support for the version is the same as for the open source Kubernetes offering. Official Kubernetes open source community support versions for 1 year after release. */ KubernetesOfficial = "KubernetesOfficial", /** Support for the version extended past the KubernetesOfficial support of 1 year. AKS continues to patch CVEs for another 1 year, for a total of 2 years of support. */ - AKSLongTermSupport = "AKSLongTermSupport" + AKSLongTermSupport = "AKSLongTermSupport", } /** @@ -2055,7 +2057,7 @@ export type KubernetesSupportPlan = string; /** Known values of {@link ManagedClusterSKUName} that the service accepts. */ export enum KnownManagedClusterSKUName { /** Base option for the AKS control plane. */ - Base = "Base" + Base = "Base", } /** @@ -2074,7 +2076,7 @@ export enum KnownManagedClusterSKUTier { /** Recommended for mission-critical and production workloads. Includes Kubernetes control plane autoscaling, workload-intensive testing, and up to 5,000 nodes per cluster. Guarantees 99.95% availability of the Kubernetes API server endpoint for clusters that use Availability Zones and 99.9% of availability for clusters that don't use Availability Zones. */ Standard = "Standard", /** The cluster management is free, but charged for VM, storage, and networking usage. Best for experimenting, learning, simple testing, or workloads with fewer than 10 nodes. Not recommended for production use cases. */ - Free = "Free" + Free = "Free", } /** @@ -2091,7 +2093,7 @@ export type ManagedClusterSKUTier = string; /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -2108,7 +2110,7 @@ export enum KnownCode { /** The cluster is running. */ Running = "Running", /** The cluster is stopped. */ - Stopped = "Stopped" + Stopped = "Stopped", } /** @@ -2126,7 +2128,7 @@ export enum KnownOSDiskType { /** Azure replicates the operating system disk for a virtual machine to Azure storage to avoid data loss should the VM need to be relocated to another host. Since containers aren't designed to have local state persisted, this behavior offers limited value while providing some drawbacks, including slower node provisioning and higher read\/write latency. */ Managed = "Managed", /** Ephemeral OS disks are stored only on the host machine, just like a temporary disk. This provides lower read\/write latency, along with faster node scaling and cluster upgrades. */ - Ephemeral = "Ephemeral" + Ephemeral = "Ephemeral", } /** @@ -2144,7 +2146,7 @@ export enum KnownKubeletDiskType { /** Kubelet will use the OS disk for its data. */ OS = "OS", /** Kubelet will use the temporary disk for its data. */ - Temporary = "Temporary" + Temporary = "Temporary", } /** @@ -2162,7 +2164,7 @@ export enum KnownWorkloadRuntime { /** Nodes will use Kubelet to run standard OCI container workloads. */ OCIContainer = "OCIContainer", /** Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview). */ - WasmWasi = "WasmWasi" + WasmWasi = "WasmWasi", } /** @@ -2180,7 +2182,7 @@ export enum KnownOSType { /** Use Linux. */ Linux = "Linux", /** Use Windows. */ - Windows = "Windows" + Windows = "Windows", } /** @@ -2204,7 +2206,7 @@ export enum KnownOssku { /** Use Windows2019 as the OS for node images. Unsupported for system node pools. Windows2019 only supports Windows2019 containers; it cannot run Windows2022 containers and vice versa. */ Windows2019 = "Windows2019", /** Use Windows2022 as the OS for node images. Unsupported for system node pools. Windows2022 only supports Windows2022 containers; it cannot run Windows2019 containers and vice versa. */ - Windows2022 = "Windows2022" + Windows2022 = "Windows2022", } /** @@ -2225,7 +2227,7 @@ export enum KnownScaleDownMode { /** Create new instances during scale up and remove instances during scale down. */ Delete = "Delete", /** Attempt to start deallocated instances (if they exist) during scale up and deallocate instances during scale down. */ - Deallocate = "Deallocate" + Deallocate = "Deallocate", } /** @@ -2243,7 +2245,7 @@ export enum KnownAgentPoolType { /** Create an Agent Pool backed by a Virtual Machine Scale Set. */ VirtualMachineScaleSets = "VirtualMachineScaleSets", /** Use of this is strongly discouraged. */ - AvailabilitySet = "AvailabilitySet" + AvailabilitySet = "AvailabilitySet", } /** @@ -2261,7 +2263,7 @@ export enum KnownAgentPoolMode { /** System agent pools are primarily for hosting critical system pods such as CoreDNS and metrics-server. System agent pools osType must be Linux. System agent pools VM SKU must have at least 2vCPUs and 4GB of memory. */ System = "System", /** User agent pools are primarily for hosting your application pods. */ - User = "User" + User = "User", } /** @@ -2279,7 +2281,7 @@ export enum KnownScaleSetPriority { /** Spot priority VMs will be used. There is no SLA for spot nodes. See [spot on AKS](https:\//docs.microsoft.com\/azure\/aks\/spot-node-pool) for more information. */ Spot = "Spot", /** Regular VMs will be used. */ - Regular = "Regular" + Regular = "Regular", } /** @@ -2297,7 +2299,7 @@ export enum KnownScaleSetEvictionPolicy { /** Nodes in the underlying Scale Set of the node pool are deleted when they're evicted. */ Delete = "Delete", /** Nodes in the underlying Scale Set of the node pool are set to the stopped-deallocated state upon eviction. Nodes in the stopped-deallocated state count against your compute quota and can cause issues with cluster scaling or upgrading. */ - Deallocate = "Deallocate" + Deallocate = "Deallocate", } /** @@ -2321,7 +2323,7 @@ export enum KnownGPUInstanceProfile { /** MIG4G */ MIG4G = "MIG4g", /** MIG7G */ - MIG7G = "MIG7g" + MIG7G = "MIG7g", } /** @@ -2342,7 +2344,7 @@ export enum KnownProtocol { /** TCP protocol. */ TCP = "TCP", /** UDP protocol. */ - UDP = "UDP" + UDP = "UDP", } /** @@ -2360,7 +2362,7 @@ export enum KnownLicenseType { /** No additional licensing is applied. */ None = "None", /** Enables Azure Hybrid User Benefits for Windows VMs. */ - WindowsServer = "Windows_Server" + WindowsServer = "Windows_Server", } /** @@ -2386,7 +2388,7 @@ export enum KnownManagedClusterPodIdentityProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2410,7 +2412,7 @@ export enum KnownNetworkPlugin { /** Use the Kubenet network plugin. See [Kubenet (basic) networking](https:\//docs.microsoft.com\/azure\/aks\/concepts-network#kubenet-basic-networking) for more information. */ Kubenet = "kubenet", /** No CNI plugin is pre-installed. See [BYO CNI](https:\//docs.microsoft.com\/en-us\/azure\/aks\/use-byo-cni) for more information. */ - None = "none" + None = "none", } /** @@ -2427,7 +2429,7 @@ export type NetworkPlugin = string; /** Known values of {@link NetworkPluginMode} that the service accepts. */ export enum KnownNetworkPluginMode { /** Used with networkPlugin=azure, pods are given IPs from the PodCIDR address space but use Azure Routing Domains rather than Kubenet's method of route tables. For more information visit https:\//aka.ms\/aks\/azure-cni-overlay. */ - Overlay = "overlay" + Overlay = "overlay", } /** @@ -2446,7 +2448,7 @@ export enum KnownNetworkPolicy { /** Use Azure network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */ Azure = "azure", /** Use Cilium to enforce network policies. This requires networkDataplane to be 'cilium'. */ - Cilium = "cilium" + Cilium = "cilium", } /** @@ -2465,7 +2467,7 @@ export enum KnownNetworkMode { /** No bridge is created. Intra-VM Pod to Pod communication is through IP routes created by Azure CNI. See [Transparent Mode](https:\//docs.microsoft.com\/azure\/aks\/faq#transparent-mode) for more information. */ Transparent = "transparent", /** This is no longer supported */ - Bridge = "bridge" + Bridge = "bridge", } /** @@ -2483,7 +2485,7 @@ export enum KnownNetworkDataplane { /** Use Azure network dataplane. */ Azure = "azure", /** Use Cilium network dataplane. See [Azure CNI Powered by Cilium](https:\//learn.microsoft.com\/azure\/aks\/azure-cni-powered-by-cilium) for more information. */ - Cilium = "cilium" + Cilium = "cilium", } /** @@ -2505,7 +2507,7 @@ export enum KnownOutboundType { /** The AKS-managed NAT gateway is used for egress. */ ManagedNATGateway = "managedNATGateway", /** The user-assigned NAT gateway associated to the cluster subnet is used for egress. This is an advanced scenario and requires proper network configuration. */ - UserAssignedNATGateway = "userAssignedNATGateway" + UserAssignedNATGateway = "userAssignedNATGateway", } /** @@ -2525,7 +2527,7 @@ export enum KnownLoadBalancerSku { /** Use a a standard Load Balancer. This is the recommended Load Balancer SKU. For more information about on working with the load balancer in the managed cluster, see the [standard Load Balancer](https:\//docs.microsoft.com\/azure\/aks\/load-balancer-standard) article. */ Standard = "standard", /** Use a basic Load Balancer with limited functionality. */ - Basic = "basic" + Basic = "basic", } /** @@ -2543,7 +2545,7 @@ export enum KnownBackendPoolType { /** The type of the managed inbound Load Balancer BackendPool. https:\//cloud-provider-azure.sigs.k8s.io\/topics\/loadbalancer\/#configure-load-balancer-backend. */ NodeIPConfiguration = "NodeIPConfiguration", /** The type of the managed inbound Load Balancer BackendPool. https:\//cloud-provider-azure.sigs.k8s.io\/topics\/loadbalancer\/#configure-load-balancer-backend. */ - NodeIP = "NodeIP" + NodeIP = "NodeIP", } /** @@ -2561,7 +2563,7 @@ export enum KnownIpFamily { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -2585,7 +2587,7 @@ export enum KnownUpgradeChannel { /** Automatically upgrade the node image to the latest version available. Consider using nodeOSUpgradeChannel instead as that allows you to configure node OS patching separate from Kubernetes version patching */ NodeImage = "node-image", /** Disables auto-upgrades and keeps the cluster at its current version of Kubernetes. */ - None = "none" + None = "none", } /** @@ -2608,7 +2610,7 @@ export enum KnownNodeOSUpgradeChannel { /** OS updates will be applied automatically through the OS built-in patching infrastructure. Newly scaled in machines will be unpatched initially and will be patched at some point by the OS's infrastructure. Behavior of this option depends on the OS in question. Ubuntu and Mariner apply security patches through unattended upgrade roughly once a day around 06:00 UTC. Windows does not apply security patches automatically and so for them this option is equivalent to None till further notice */ Unmanaged = "Unmanaged", /** AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. */ - NodeImage = "NodeImage" + NodeImage = "NodeImage", } /** @@ -2631,7 +2633,7 @@ export enum KnownExpander { /** Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details [here](https:\//github.com\/kubernetes\/autoscaler\/blob\/master\/cluster-autoscaler\/expander\/priority\/readme.md). */ Priority = "priority", /** Used when you don't have a particular need for the node groups to scale differently. */ - Random = "random" + Random = "random", } /** @@ -2651,7 +2653,7 @@ export enum KnownKeyVaultNetworkAccessTypes { /** Public */ Public = "Public", /** Private */ - Private = "Private" + Private = "Private", } /** @@ -2669,7 +2671,7 @@ export enum KnownPublicNetworkAccess { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2687,7 +2689,7 @@ export enum KnownServiceMeshMode { /** Istio deployed as an AKS addon. */ Istio = "Istio", /** Mesh is disabled. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2705,7 +2707,7 @@ export enum KnownIstioIngressGatewayMode { /** The ingress gateway is assigned a public IP address and is publicly accessible. */ External = "External", /** The ingress gateway is assigned an internal IP address and cannot is accessed publicly. */ - Internal = "Internal" + Internal = "Internal", } /** @@ -2727,7 +2729,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -2747,7 +2749,7 @@ export enum KnownFormat { /** Return azure auth-provider kubeconfig. This format is deprecated in v1.22 and will be fully removed in v1.26. See: https:\//aka.ms\/k8s\/changes-1-26. */ Azure = "azure", /** Return exec format kubeconfig. This format requires kubelogin binary in the path. */ - Exec = "exec" + Exec = "exec", } /** @@ -2775,7 +2777,7 @@ export enum KnownWeekDay { /** Friday */ Friday = "Friday", /** Saturday */ - Saturday = "Saturday" + Saturday = "Saturday", } /** @@ -2804,7 +2806,7 @@ export enum KnownType { /** Fourth week of the month. */ Fourth = "Fourth", /** Last week of the month. */ - Last = "Last" + Last = "Last", } /** @@ -2831,7 +2833,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Failed */ Failed = "Failed", /** Succeeded */ - Succeeded = "Succeeded" + Succeeded = "Succeeded", } /** @@ -2856,7 +2858,7 @@ export enum KnownConnectionStatus { /** Rejected */ Rejected = "Rejected", /** Disconnected */ - Disconnected = "Disconnected" + Disconnected = "Disconnected", } /** @@ -2874,7 +2876,7 @@ export type ConnectionStatus = string; /** Known values of {@link SnapshotType} that the service accepts. */ export enum KnownSnapshotType { /** The snapshot is a snapshot of a node pool. */ - NodePool = "NodePool" + NodePool = "NodePool", } /** @@ -2897,7 +2899,7 @@ export enum KnownTrustedAccessRoleBindingProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2937,7 +2939,8 @@ export interface ManagedClustersListKubernetesVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listKubernetesVersions operation. */ -export type ManagedClustersListKubernetesVersionsResponse = KubernetesVersionListResult; +export type ManagedClustersListKubernetesVersionsResponse = + KubernetesVersionListResult; /** Optional parameters. */ export interface ManagedClustersListOptionalParams @@ -2951,21 +2954,24 @@ export interface ManagedClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ManagedClustersListByResourceGroupResponse = ManagedClusterListResult; +export type ManagedClustersListByResourceGroupResponse = + ManagedClusterListResult; /** Optional parameters. */ export interface ManagedClustersGetUpgradeProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpgradeProfile operation. */ -export type ManagedClustersGetUpgradeProfileResponse = ManagedClusterUpgradeProfile; +export type ManagedClustersGetUpgradeProfileResponse = + ManagedClusterUpgradeProfile; /** Optional parameters. */ export interface ManagedClustersGetAccessProfileOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAccessProfile operation. */ -export type ManagedClustersGetAccessProfileResponse = ManagedClusterAccessProfile; +export type ManagedClustersGetAccessProfileResponse = + ManagedClusterAccessProfile; /** Optional parameters. */ export interface ManagedClustersListClusterAdminCredentialsOptionalParams @@ -2975,7 +2981,8 @@ export interface ManagedClustersListClusterAdminCredentialsOptionalParams } /** Contains response data for the listClusterAdminCredentials operation. */ -export type ManagedClustersListClusterAdminCredentialsResponse = CredentialResults; +export type ManagedClustersListClusterAdminCredentialsResponse = + CredentialResults; /** Optional parameters. */ export interface ManagedClustersListClusterUserCredentialsOptionalParams @@ -2987,7 +2994,8 @@ export interface ManagedClustersListClusterUserCredentialsOptionalParams } /** Contains response data for the listClusterUserCredentials operation. */ -export type ManagedClustersListClusterUserCredentialsResponse = CredentialResults; +export type ManagedClustersListClusterUserCredentialsResponse = + CredentialResults; /** Optional parameters. */ export interface ManagedClustersListClusterMonitoringUserCredentialsOptionalParams @@ -2997,7 +3005,8 @@ export interface ManagedClustersListClusterMonitoringUserCredentialsOptionalPara } /** Contains response data for the listClusterMonitoringUserCredentials operation. */ -export type ManagedClustersListClusterMonitoringUserCredentialsResponse = CredentialResults; +export type ManagedClustersListClusterMonitoringUserCredentialsResponse = + CredentialResults; /** Optional parameters. */ export interface ManagedClustersGetOptionalParams @@ -3070,7 +3079,8 @@ export interface ManagedClustersRotateClusterCertificatesOptionalParams } /** Contains response data for the rotateClusterCertificates operation. */ -export type ManagedClustersRotateClusterCertificatesResponse = ManagedClustersRotateClusterCertificatesHeaders; +export type ManagedClustersRotateClusterCertificatesResponse = + ManagedClustersRotateClusterCertificatesHeaders; /** Optional parameters. */ export interface ManagedClustersAbortLatestOperationOptionalParams @@ -3082,7 +3092,8 @@ export interface ManagedClustersAbortLatestOperationOptionalParams } /** Contains response data for the abortLatestOperation operation. */ -export type ManagedClustersAbortLatestOperationResponse = ManagedClustersAbortLatestOperationHeaders; +export type ManagedClustersAbortLatestOperationResponse = + ManagedClustersAbortLatestOperationHeaders; /** Optional parameters. */ export interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams @@ -3094,7 +3105,8 @@ export interface ManagedClustersRotateServiceAccountSigningKeysOptionalParams } /** Contains response data for the rotateServiceAccountSigningKeys operation. */ -export type ManagedClustersRotateServiceAccountSigningKeysResponse = ManagedClustersRotateServiceAccountSigningKeysHeaders; +export type ManagedClustersRotateServiceAccountSigningKeysResponse = + ManagedClustersRotateServiceAccountSigningKeysHeaders; /** Optional parameters. */ export interface ManagedClustersStopOptionalParams @@ -3144,14 +3156,16 @@ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsOptional extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; +export type ManagedClustersListOutboundNetworkDependenciesEndpointsResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface ManagedClustersListMeshRevisionProfilesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshRevisionProfiles operation. */ -export type ManagedClustersListMeshRevisionProfilesResponse = MeshRevisionProfileList; +export type ManagedClustersListMeshRevisionProfilesResponse = + MeshRevisionProfileList; /** Optional parameters. */ export interface ManagedClustersGetMeshRevisionProfileOptionalParams @@ -3165,7 +3179,8 @@ export interface ManagedClustersListMeshUpgradeProfilesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshUpgradeProfiles operation. */ -export type ManagedClustersListMeshUpgradeProfilesResponse = MeshUpgradeProfileList; +export type ManagedClustersListMeshUpgradeProfilesResponse = + MeshUpgradeProfileList; /** Optional parameters. */ export interface ManagedClustersGetMeshUpgradeProfileOptionalParams @@ -3186,35 +3201,40 @@ export interface ManagedClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedClustersListByResourceGroupNextResponse = ManagedClusterListResult; +export type ManagedClustersListByResourceGroupNextResponse = + ManagedClusterListResult; /** Optional parameters. */ export interface ManagedClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation. */ -export type ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; +export type ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface ManagedClustersListMeshRevisionProfilesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshRevisionProfilesNext operation. */ -export type ManagedClustersListMeshRevisionProfilesNextResponse = MeshRevisionProfileList; +export type ManagedClustersListMeshRevisionProfilesNextResponse = + MeshRevisionProfileList; /** Optional parameters. */ export interface ManagedClustersListMeshUpgradeProfilesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listMeshUpgradeProfilesNext operation. */ -export type ManagedClustersListMeshUpgradeProfilesNextResponse = MeshUpgradeProfileList; +export type ManagedClustersListMeshUpgradeProfilesNextResponse = + MeshUpgradeProfileList; /** Optional parameters. */ export interface MaintenanceConfigurationsListByManagedClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByManagedCluster operation. */ -export type MaintenanceConfigurationsListByManagedClusterResponse = MaintenanceConfigurationListResult; +export type MaintenanceConfigurationsListByManagedClusterResponse = + MaintenanceConfigurationListResult; /** Optional parameters. */ export interface MaintenanceConfigurationsGetOptionalParams @@ -3228,7 +3248,8 @@ export interface MaintenanceConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type MaintenanceConfigurationsCreateOrUpdateResponse = MaintenanceConfiguration; +export type MaintenanceConfigurationsCreateOrUpdateResponse = + MaintenanceConfiguration; /** Optional parameters. */ export interface MaintenanceConfigurationsDeleteOptionalParams @@ -3239,7 +3260,8 @@ export interface MaintenanceConfigurationsListByManagedClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByManagedClusterNext operation. */ -export type MaintenanceConfigurationsListByManagedClusterNextResponse = MaintenanceConfigurationListResult; +export type MaintenanceConfigurationsListByManagedClusterNextResponse = + MaintenanceConfigurationListResult; /** Optional parameters. */ export interface AgentPoolsAbortLatestOperationOptionalParams @@ -3251,7 +3273,8 @@ export interface AgentPoolsAbortLatestOperationOptionalParams } /** Contains response data for the abortLatestOperation operation. */ -export type AgentPoolsAbortLatestOperationResponse = AgentPoolsAbortLatestOperationHeaders; +export type AgentPoolsAbortLatestOperationResponse = + AgentPoolsAbortLatestOperationHeaders; /** Optional parameters. */ export interface AgentPoolsListOptionalParams @@ -3303,7 +3326,8 @@ export interface AgentPoolsGetAvailableAgentPoolVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAvailableAgentPoolVersions operation. */ -export type AgentPoolsGetAvailableAgentPoolVersionsResponse = AgentPoolAvailableVersions; +export type AgentPoolsGetAvailableAgentPoolVersionsResponse = + AgentPoolAvailableVersions; /** Optional parameters. */ export interface AgentPoolsUpgradeNodeImageVersionOptionalParams @@ -3326,7 +3350,8 @@ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsGetOptionalParams @@ -3340,7 +3365,8 @@ export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -3423,7 +3449,8 @@ export interface TrustedAccessRoleBindingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type TrustedAccessRoleBindingsListResponse = TrustedAccessRoleBindingListResult; +export type TrustedAccessRoleBindingsListResponse = + TrustedAccessRoleBindingListResult; /** Optional parameters. */ export interface TrustedAccessRoleBindingsGetOptionalParams @@ -3442,7 +3469,8 @@ export interface TrustedAccessRoleBindingsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type TrustedAccessRoleBindingsCreateOrUpdateResponse = TrustedAccessRoleBinding; +export type TrustedAccessRoleBindingsCreateOrUpdateResponse = + TrustedAccessRoleBinding; /** Optional parameters. */ export interface TrustedAccessRoleBindingsDeleteOptionalParams @@ -3454,14 +3482,16 @@ export interface TrustedAccessRoleBindingsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type TrustedAccessRoleBindingsDeleteResponse = TrustedAccessRoleBindingsDeleteHeaders; +export type TrustedAccessRoleBindingsDeleteResponse = + TrustedAccessRoleBindingsDeleteHeaders; /** Optional parameters. */ export interface TrustedAccessRoleBindingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type TrustedAccessRoleBindingsListNextResponse = TrustedAccessRoleBindingListResult; +export type TrustedAccessRoleBindingsListNextResponse = + TrustedAccessRoleBindingListResult; /** Optional parameters. */ export interface TrustedAccessRolesListOptionalParams diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 4a8d971b7c2a..ea8362c795cc 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -21,13 +21,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationValue" - } - } - } - } - } - } + className: "OperationValue", + }, + }, + }, + }, + }, + }, }; export const OperationValue: coreClient.CompositeMapper = { @@ -39,46 +39,46 @@ export const OperationValue: coreClient.CompositeMapper = { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "display.operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "display.resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "display.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "display.provider", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -90,11 +90,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -105,20 +105,20 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -127,13 +127,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const OSOptionProfile: coreClient.CompositeMapper = { @@ -145,22 +145,22 @@ export const OSOptionProfile: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osOptionPropertyList: { serializedName: "properties.osOptionPropertyList", @@ -170,13 +170,13 @@ export const OSOptionProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSOptionProperty" - } - } - } - } - } - } + className: "OSOptionProperty", + }, + }, + }, + }, + }, + }, }; export const OSOptionProperty: coreClient.CompositeMapper = { @@ -188,18 +188,18 @@ export const OSOptionProperty: coreClient.CompositeMapper = { serializedName: "os-type", required: true, type: { - name: "String" - } + name: "String", + }, }, enableFipsImage: { serializedName: "enable-fips-image", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KubernetesVersionListResult: coreClient.CompositeMapper = { @@ -214,13 +214,13 @@ export const KubernetesVersionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesVersion" - } - } - } - } - } - } + className: "KubernetesVersion", + }, + }, + }, + }, + }, + }, }; export const KubernetesVersion: coreClient.CompositeMapper = { @@ -231,33 +231,33 @@ export const KubernetesVersion: coreClient.CompositeMapper = { version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "KubernetesVersionCapabilities" - } + className: "KubernetesVersionCapabilities", + }, }, isPreview: { serializedName: "isPreview", type: { - name: "Boolean" - } + name: "Boolean", + }, }, patchVersions: { serializedName: "patchVersions", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "KubernetesPatchVersion" } - } - } - } - } - } + type: { name: "Composite", className: "KubernetesPatchVersion" }, + }, + }, + }, + }, + }, }; export const KubernetesVersionCapabilities: coreClient.CompositeMapper = { @@ -271,13 +271,13 @@ export const KubernetesVersionCapabilities: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KubernetesPatchVersion: coreClient.CompositeMapper = { @@ -291,13 +291,13 @@ export const KubernetesPatchVersion: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ManagedClusterListResult: coreClient.CompositeMapper = { @@ -312,20 +312,20 @@ export const ManagedClusterListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedCluster" - } - } - } + className: "ManagedCluster", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterSKU: coreClient.CompositeMapper = { @@ -336,17 +336,17 @@ export const ManagedClusterSKU: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -357,17 +357,17 @@ export const ExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterIdentity: coreClient.CompositeMapper = { @@ -379,29 +379,31 @@ export const ManagedClusterIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] - } + allowedValues: ["SystemAssigned", "UserAssigned", "None"], + }, }, delegatedResources: { serializedName: "delegatedResources", type: { name: "Dictionary", - value: { type: { name: "Composite", className: "DelegatedResource" } } - } + value: { + type: { name: "Composite", className: "DelegatedResource" }, + }, + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -410,13 +412,13 @@ export const ManagedClusterIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const DelegatedResource: coreClient.CompositeMapper = { @@ -427,53 +429,54 @@ export const DelegatedResource: coreClient.CompositeMapper = { resourceId: { serializedName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, referralResource: { serializedName: "referralResource", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const ManagedServiceIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ManagedServiceIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const PowerState: coreClient.CompositeMapper = { type: { @@ -483,638 +486,649 @@ export const PowerState: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterAgentPoolProfileProperties", + modelProperties: { + count: { + serializedName: "count", + type: { + name: "Number", + }, + }, + vmSize: { + serializedName: "vmSize", + type: { + name: "String", + }, + }, + osDiskSizeGB: { + constraints: { + InclusiveMaximum: 2048, + InclusiveMinimum: 0, + }, + serializedName: "osDiskSizeGB", + type: { + name: "Number", + }, + }, + osDiskType: { + serializedName: "osDiskType", + type: { + name: "String", + }, + }, + kubeletDiskType: { + serializedName: "kubeletDiskType", + type: { + name: "String", + }, + }, + workloadRuntime: { + serializedName: "workloadRuntime", + type: { + name: "String", + }, + }, + vnetSubnetID: { + serializedName: "vnetSubnetID", + type: { + name: "String", + }, + }, + podSubnetID: { + serializedName: "podSubnetID", + type: { + name: "String", + }, + }, + maxPods: { + serializedName: "maxPods", + type: { + name: "Number", + }, + }, + osType: { + defaultValue: "Linux", + serializedName: "osType", + type: { + name: "String", + }, + }, + osSKU: { + serializedName: "osSKU", + type: { + name: "String", + }, + }, + maxCount: { + serializedName: "maxCount", + type: { + name: "Number", + }, + }, + minCount: { + serializedName: "minCount", + type: { + name: "Number", + }, + }, + enableAutoScaling: { + serializedName: "enableAutoScaling", + type: { + name: "Boolean", + }, + }, + scaleDownMode: { + serializedName: "scaleDownMode", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + mode: { + serializedName: "mode", + type: { + name: "String", + }, + }, + orchestratorVersion: { + serializedName: "orchestratorVersion", + type: { + name: "String", + }, + }, + currentOrchestratorVersion: { + serializedName: "currentOrchestratorVersion", + readOnly: true, + type: { + name: "String", + }, + }, + nodeImageVersion: { + serializedName: "nodeImageVersion", + readOnly: true, + type: { + name: "String", + }, + }, + upgradeSettings: { + serializedName: "upgradeSettings", + type: { + name: "Composite", + className: "AgentPoolUpgradeSettings", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + powerState: { + serializedName: "powerState", + type: { + name: "Composite", + className: "PowerState", + }, + }, + availabilityZones: { + serializedName: "availabilityZones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + enableNodePublicIP: { + serializedName: "enableNodePublicIP", + type: { + name: "Boolean", + }, + }, + nodePublicIPPrefixID: { + serializedName: "nodePublicIPPrefixID", + type: { + name: "String", + }, + }, + scaleSetPriority: { + defaultValue: "Regular", + serializedName: "scaleSetPriority", + type: { + name: "String", + }, + }, + scaleSetEvictionPolicy: { + defaultValue: "Delete", + serializedName: "scaleSetEvictionPolicy", + type: { + name: "String", + }, + }, + spotMaxPrice: { + defaultValue: -1, + serializedName: "spotMaxPrice", + type: { + name: "Number", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + nodeLabels: { + serializedName: "nodeLabels", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + nodeTaints: { + serializedName: "nodeTaints", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + proximityPlacementGroupID: { + serializedName: "proximityPlacementGroupID", + type: { + name: "String", + }, + }, + kubeletConfig: { + serializedName: "kubeletConfig", + type: { + name: "Composite", + className: "KubeletConfig", + }, + }, + linuxOSConfig: { + serializedName: "linuxOSConfig", + type: { + name: "Composite", + className: "LinuxOSConfig", + }, + }, + enableEncryptionAtHost: { + serializedName: "enableEncryptionAtHost", + type: { + name: "Boolean", + }, + }, + enableUltraSSD: { + serializedName: "enableUltraSSD", + type: { + name: "Boolean", + }, + }, + enableFips: { + serializedName: "enableFIPS", + type: { + name: "Boolean", + }, + }, + gpuInstanceProfile: { + serializedName: "gpuInstanceProfile", + type: { + name: "String", + }, + }, + creationData: { + serializedName: "creationData", + type: { + name: "Composite", + className: "CreationData", + }, + }, + capacityReservationGroupID: { + serializedName: "capacityReservationGroupID", + type: { + name: "String", + }, + }, + hostGroupID: { + serializedName: "hostGroupID", + type: { + name: "String", + }, + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "AgentPoolNetworkProfile", + }, + }, + }, + }, + }; -export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMapper = { +export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterAgentPoolProfileProperties", + className: "AgentPoolUpgradeSettings", modelProperties: { - count: { - serializedName: "count", + maxSurge: { + serializedName: "maxSurge", type: { - name: "Number" - } + name: "String", + }, }, - vmSize: { - serializedName: "vmSize", + drainTimeoutInMinutes: { + constraints: { + InclusiveMaximum: 1440, + InclusiveMinimum: 1, + }, + serializedName: "drainTimeoutInMinutes", type: { - name: "String" - } + name: "Number", + }, }, - osDiskSizeGB: { + nodeSoakDurationInMinutes: { constraints: { - InclusiveMaximum: 2048, - InclusiveMinimum: 0 + InclusiveMaximum: 30, + InclusiveMinimum: 0, }, - serializedName: "osDiskSizeGB", + serializedName: "nodeSoakDurationInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, - osDiskType: { - serializedName: "osDiskType", + }, + }, +}; + +export const KubeletConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubeletConfig", + modelProperties: { + cpuManagerPolicy: { + serializedName: "cpuManagerPolicy", type: { - name: "String" - } + name: "String", + }, }, - kubeletDiskType: { - serializedName: "kubeletDiskType", + cpuCfsQuota: { + serializedName: "cpuCfsQuota", type: { - name: "String" - } + name: "Boolean", + }, }, - workloadRuntime: { - serializedName: "workloadRuntime", + cpuCfsQuotaPeriod: { + serializedName: "cpuCfsQuotaPeriod", type: { - name: "String" - } + name: "String", + }, }, - vnetSubnetID: { - serializedName: "vnetSubnetID", + imageGcHighThreshold: { + serializedName: "imageGcHighThreshold", type: { - name: "String" - } + name: "Number", + }, }, - podSubnetID: { - serializedName: "podSubnetID", + imageGcLowThreshold: { + serializedName: "imageGcLowThreshold", type: { - name: "String" - } + name: "Number", + }, }, - maxPods: { - serializedName: "maxPods", + topologyManagerPolicy: { + serializedName: "topologyManagerPolicy", type: { - name: "Number" - } + name: "String", + }, }, - osType: { - defaultValue: "Linux", - serializedName: "osType", + allowedUnsafeSysctls: { + serializedName: "allowedUnsafeSysctls", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - osSKU: { - serializedName: "osSKU", + failSwapOn: { + serializedName: "failSwapOn", type: { - name: "String" - } + name: "Boolean", + }, }, - maxCount: { - serializedName: "maxCount", + containerLogMaxSizeMB: { + serializedName: "containerLogMaxSizeMB", type: { - name: "Number" - } + name: "Number", + }, }, - minCount: { - serializedName: "minCount", + containerLogMaxFiles: { + constraints: { + InclusiveMinimum: 2, + }, + serializedName: "containerLogMaxFiles", type: { - name: "Number" - } + name: "Number", + }, }, - enableAutoScaling: { - serializedName: "enableAutoScaling", + podMaxPids: { + serializedName: "podMaxPids", type: { - name: "Boolean" - } + name: "Number", + }, }, - scaleDownMode: { - serializedName: "scaleDownMode", + }, + }, +}; + +export const LinuxOSConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinuxOSConfig", + modelProperties: { + sysctls: { + serializedName: "sysctls", type: { - name: "String" - } + name: "Composite", + className: "SysctlConfig", + }, }, - type: { - serializedName: "type", + transparentHugePageEnabled: { + serializedName: "transparentHugePageEnabled", type: { - name: "String" - } + name: "String", + }, }, - mode: { - serializedName: "mode", + transparentHugePageDefrag: { + serializedName: "transparentHugePageDefrag", type: { - name: "String" - } + name: "String", + }, }, - orchestratorVersion: { - serializedName: "orchestratorVersion", + swapFileSizeMB: { + serializedName: "swapFileSizeMB", type: { - name: "String" - } + name: "Number", + }, }, - currentOrchestratorVersion: { - serializedName: "currentOrchestratorVersion", - readOnly: true, + }, + }, +}; + +export const SysctlConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SysctlConfig", + modelProperties: { + netCoreSomaxconn: { + serializedName: "netCoreSomaxconn", type: { - name: "String" - } + name: "Number", + }, }, - nodeImageVersion: { - serializedName: "nodeImageVersion", - readOnly: true, + netCoreNetdevMaxBacklog: { + serializedName: "netCoreNetdevMaxBacklog", type: { - name: "String" - } + name: "Number", + }, }, - upgradeSettings: { - serializedName: "upgradeSettings", + netCoreRmemDefault: { + serializedName: "netCoreRmemDefault", type: { - name: "Composite", - className: "AgentPoolUpgradeSettings" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - powerState: { - serializedName: "powerState", - type: { - name: "Composite", - className: "PowerState" - } - }, - availabilityZones: { - serializedName: "availabilityZones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - enableNodePublicIP: { - serializedName: "enableNodePublicIP", - type: { - name: "Boolean" - } - }, - nodePublicIPPrefixID: { - serializedName: "nodePublicIPPrefixID", - type: { - name: "String" - } - }, - scaleSetPriority: { - defaultValue: "Regular", - serializedName: "scaleSetPriority", - type: { - name: "String" - } - }, - scaleSetEvictionPolicy: { - defaultValue: "Delete", - serializedName: "scaleSetEvictionPolicy", - type: { - name: "String" - } - }, - spotMaxPrice: { - defaultValue: -1, - serializedName: "spotMaxPrice", - type: { - name: "Number" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - nodeLabels: { - serializedName: "nodeLabels", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - nodeTaints: { - serializedName: "nodeTaints", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - proximityPlacementGroupID: { - serializedName: "proximityPlacementGroupID", - type: { - name: "String" - } - }, - kubeletConfig: { - serializedName: "kubeletConfig", - type: { - name: "Composite", - className: "KubeletConfig" - } - }, - linuxOSConfig: { - serializedName: "linuxOSConfig", - type: { - name: "Composite", - className: "LinuxOSConfig" - } - }, - enableEncryptionAtHost: { - serializedName: "enableEncryptionAtHost", - type: { - name: "Boolean" - } - }, - enableUltraSSD: { - serializedName: "enableUltraSSD", - type: { - name: "Boolean" - } - }, - enableFips: { - serializedName: "enableFIPS", - type: { - name: "Boolean" - } - }, - gpuInstanceProfile: { - serializedName: "gpuInstanceProfile", - type: { - name: "String" - } - }, - creationData: { - serializedName: "creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, - capacityReservationGroupID: { - serializedName: "capacityReservationGroupID", - type: { - name: "String" - } - }, - hostGroupID: { - serializedName: "hostGroupID", - type: { - name: "String" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "AgentPoolNetworkProfile" - } - } - } - } -}; - -export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolUpgradeSettings", - modelProperties: { - maxSurge: { - serializedName: "maxSurge", - type: { - name: "String" - } - }, - drainTimeoutInMinutes: { - constraints: { - InclusiveMaximum: 1440, - InclusiveMinimum: 1 - }, - serializedName: "drainTimeoutInMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const KubeletConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KubeletConfig", - modelProperties: { - cpuManagerPolicy: { - serializedName: "cpuManagerPolicy", - type: { - name: "String" - } - }, - cpuCfsQuota: { - serializedName: "cpuCfsQuota", - type: { - name: "Boolean" - } - }, - cpuCfsQuotaPeriod: { - serializedName: "cpuCfsQuotaPeriod", - type: { - name: "String" - } - }, - imageGcHighThreshold: { - serializedName: "imageGcHighThreshold", - type: { - name: "Number" - } - }, - imageGcLowThreshold: { - serializedName: "imageGcLowThreshold", - type: { - name: "Number" - } - }, - topologyManagerPolicy: { - serializedName: "topologyManagerPolicy", - type: { - name: "String" - } - }, - allowedUnsafeSysctls: { - serializedName: "allowedUnsafeSysctls", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - failSwapOn: { - serializedName: "failSwapOn", - type: { - name: "Boolean" - } - }, - containerLogMaxSizeMB: { - serializedName: "containerLogMaxSizeMB", - type: { - name: "Number" - } - }, - containerLogMaxFiles: { - constraints: { - InclusiveMinimum: 2 - }, - serializedName: "containerLogMaxFiles", - type: { - name: "Number" - } - }, - podMaxPids: { - serializedName: "podMaxPids", - type: { - name: "Number" - } - } - } - } -}; - -export const LinuxOSConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinuxOSConfig", - modelProperties: { - sysctls: { - serializedName: "sysctls", - type: { - name: "Composite", - className: "SysctlConfig" - } - }, - transparentHugePageEnabled: { - serializedName: "transparentHugePageEnabled", - type: { - name: "String" - } - }, - transparentHugePageDefrag: { - serializedName: "transparentHugePageDefrag", - type: { - name: "String" - } - }, - swapFileSizeMB: { - serializedName: "swapFileSizeMB", - type: { - name: "Number" - } - } - } - } -}; - -export const SysctlConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SysctlConfig", - modelProperties: { - netCoreSomaxconn: { - serializedName: "netCoreSomaxconn", - type: { - name: "Number" - } - }, - netCoreNetdevMaxBacklog: { - serializedName: "netCoreNetdevMaxBacklog", - type: { - name: "Number" - } - }, - netCoreRmemDefault: { - serializedName: "netCoreRmemDefault", - type: { - name: "Number" - } + name: "Number", + }, }, netCoreRmemMax: { serializedName: "netCoreRmemMax", type: { - name: "Number" - } + name: "Number", + }, }, netCoreWmemDefault: { serializedName: "netCoreWmemDefault", type: { - name: "Number" - } + name: "Number", + }, }, netCoreWmemMax: { serializedName: "netCoreWmemMax", type: { - name: "Number" - } + name: "Number", + }, }, netCoreOptmemMax: { serializedName: "netCoreOptmemMax", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpMaxSynBacklog: { serializedName: "netIpv4TcpMaxSynBacklog", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpMaxTwBuckets: { serializedName: "netIpv4TcpMaxTwBuckets", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpFinTimeout: { serializedName: "netIpv4TcpFinTimeout", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpKeepaliveTime: { serializedName: "netIpv4TcpKeepaliveTime", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpKeepaliveProbes: { serializedName: "netIpv4TcpKeepaliveProbes", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpkeepaliveIntvl: { constraints: { InclusiveMaximum: 90, - InclusiveMinimum: 10 + InclusiveMinimum: 10, }, serializedName: "netIpv4TcpkeepaliveIntvl", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4TcpTwReuse: { serializedName: "netIpv4TcpTwReuse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, netIpv4IpLocalPortRange: { serializedName: "netIpv4IpLocalPortRange", type: { - name: "String" - } + name: "String", + }, }, netIpv4NeighDefaultGcThresh1: { serializedName: "netIpv4NeighDefaultGcThresh1", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4NeighDefaultGcThresh2: { serializedName: "netIpv4NeighDefaultGcThresh2", type: { - name: "Number" - } + name: "Number", + }, }, netIpv4NeighDefaultGcThresh3: { serializedName: "netIpv4NeighDefaultGcThresh3", type: { - name: "Number" - } + name: "Number", + }, }, netNetfilterNfConntrackMax: { constraints: { InclusiveMaximum: 2097152, - InclusiveMinimum: 131072 + InclusiveMinimum: 131072, }, serializedName: "netNetfilterNfConntrackMax", type: { - name: "Number" - } + name: "Number", + }, }, netNetfilterNfConntrackBuckets: { constraints: { InclusiveMaximum: 524288, - InclusiveMinimum: 65536 + InclusiveMinimum: 65536, }, serializedName: "netNetfilterNfConntrackBuckets", type: { - name: "Number" - } + name: "Number", + }, }, fsInotifyMaxUserWatches: { serializedName: "fsInotifyMaxUserWatches", type: { - name: "Number" - } + name: "Number", + }, }, fsFileMax: { serializedName: "fsFileMax", type: { - name: "Number" - } + name: "Number", + }, }, fsAioMaxNr: { serializedName: "fsAioMaxNr", type: { - name: "Number" - } + name: "Number", + }, }, fsNrOpen: { serializedName: "fsNrOpen", type: { - name: "Number" - } + name: "Number", + }, }, kernelThreadsMax: { serializedName: "kernelThreadsMax", type: { - name: "Number" - } + name: "Number", + }, }, vmMaxMapCount: { serializedName: "vmMaxMapCount", type: { - name: "Number" - } + name: "Number", + }, }, vmSwappiness: { serializedName: "vmSwappiness", type: { - name: "Number" - } + name: "Number", + }, }, vmVfsCachePressure: { serializedName: "vmVfsCachePressure", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CreationData: coreClient.CompositeMapper = { @@ -1125,11 +1139,11 @@ export const CreationData: coreClient.CompositeMapper = { sourceResourceId: { serializedName: "sourceResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolNetworkProfile: coreClient.CompositeMapper = { @@ -1144,10 +1158,10 @@ export const AgentPoolNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPTag" - } - } - } + className: "IPTag", + }, + }, + }, }, allowedHostPorts: { serializedName: "allowedHostPorts", @@ -1156,10 +1170,10 @@ export const AgentPoolNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PortRange" - } - } - } + className: "PortRange", + }, + }, + }, }, applicationSecurityGroups: { serializedName: "applicationSecurityGroups", @@ -1167,13 +1181,13 @@ export const AgentPoolNetworkProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const IPTag: coreClient.CompositeMapper = { @@ -1184,17 +1198,17 @@ export const IPTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PortRange: coreClient.CompositeMapper = { @@ -1205,31 +1219,31 @@ export const PortRange: coreClient.CompositeMapper = { portStart: { constraints: { InclusiveMaximum: 65535, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "portStart", type: { - name: "Number" - } + name: "Number", + }, }, portEnd: { constraints: { InclusiveMaximum: 65535, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "portEnd", type: { - name: "Number" - } + name: "Number", + }, }, protocol: { serializedName: "protocol", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContainerServiceLinuxProfile: coreClient.CompositeMapper = { @@ -1239,23 +1253,23 @@ export const ContainerServiceLinuxProfile: coreClient.CompositeMapper = { modelProperties: { adminUsername: { constraints: { - Pattern: new RegExp("^[A-Za-z][-A-Za-z0-9_]*$") + Pattern: new RegExp("^[A-Za-z][-A-Za-z0-9_]*$"), }, serializedName: "adminUsername", required: true, type: { - name: "String" - } + name: "String", + }, }, ssh: { serializedName: "ssh", type: { name: "Composite", - className: "ContainerServiceSshConfiguration" - } - } - } - } + className: "ContainerServiceSshConfiguration", + }, + }, + }, + }, }; export const ContainerServiceSshConfiguration: coreClient.CompositeMapper = { @@ -1271,13 +1285,13 @@ export const ContainerServiceSshConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContainerServiceSshPublicKey" - } - } - } - } - } - } + className: "ContainerServiceSshPublicKey", + }, + }, + }, + }, + }, + }, }; export const ContainerServiceSshPublicKey: coreClient.CompositeMapper = { @@ -1289,11 +1303,11 @@ export const ContainerServiceSshPublicKey: coreClient.CompositeMapper = { serializedName: "keyData", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterWindowsProfile: coreClient.CompositeMapper = { @@ -1305,36 +1319,36 @@ export const ManagedClusterWindowsProfile: coreClient.CompositeMapper = { serializedName: "adminUsername", required: true, type: { - name: "String" - } + name: "String", + }, }, adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, enableCSIProxy: { serializedName: "enableCSIProxy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gmsaProfile: { serializedName: "gmsaProfile", type: { name: "Composite", - className: "WindowsGmsaProfile" - } - } - } - } + className: "WindowsGmsaProfile", + }, + }, + }, + }, }; export const WindowsGmsaProfile: coreClient.CompositeMapper = { @@ -1345,46 +1359,47 @@ export const WindowsGmsaProfile: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, dnsServer: { serializedName: "dnsServer", type: { - name: "String" - } + name: "String", + }, }, rootDomainName: { serializedName: "rootDomainName", type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterServicePrincipalProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterServicePrincipalProfile", - modelProperties: { - clientId: { - serializedName: "clientId", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - secret: { - serializedName: "secret", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClusterServicePrincipalProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterServicePrincipalProfile", + modelProperties: { + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "String", + }, + }, + secret: { + serializedName: "secret", + type: { + name: "String", + }, + }, + }, + }, + }; export const ManagedClusterAddonProfile: coreClient.CompositeMapper = { type: { @@ -1395,25 +1410,25 @@ export const ManagedClusterAddonProfile: coreClient.CompositeMapper = { serializedName: "enabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, config: { serializedName: "config", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedClusterAddonProfileIdentity" - } - } - } - } + className: "ManagedClusterAddonProfileIdentity", + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -1424,23 +1439,23 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { resourceId: { serializedName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, objectId: { serializedName: "objectId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterPodIdentityProfile: coreClient.CompositeMapper = { @@ -1451,14 +1466,14 @@ export const ManagedClusterPodIdentityProfile: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowNetworkPluginKubenet: { serializedName: "allowNetworkPluginKubenet", type: { - name: "Boolean" - } + name: "Boolean", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -1467,10 +1482,10 @@ export const ManagedClusterPodIdentityProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedClusterPodIdentity" - } - } - } + className: "ManagedClusterPodIdentity", + }, + }, + }, }, userAssignedIdentityExceptions: { serializedName: "userAssignedIdentityExceptions", @@ -1479,13 +1494,13 @@ export const ManagedClusterPodIdentityProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedClusterPodIdentityException" - } - } - } - } - } - } + className: "ManagedClusterPodIdentityException", + }, + }, + }, + }, + }, + }, }; export const ManagedClusterPodIdentity: coreClient.CompositeMapper = { @@ -1497,117 +1512,120 @@ export const ManagedClusterPodIdentity: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, namespace: { serializedName: "namespace", required: true, type: { - name: "String" - } + name: "String", + }, }, bindingSelector: { serializedName: "bindingSelector", type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "UserAssignedIdentity" - } + className: "UserAssignedIdentity", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningInfo: { serializedName: "provisioningInfo", type: { name: "Composite", - className: "ManagedClusterPodIdentityProvisioningInfo" - } - } - } - } -}; - -export const ManagedClusterPodIdentityProvisioningInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningInfo", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningError" - } - } - } - } -}; - -export const ManagedClusterPodIdentityProvisioningError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningErrorBody" - } - } - } - } -}; - -export const ManagedClusterPodIdentityProvisioningErrorBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningErrorBody", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } + className: "ManagedClusterPodIdentityProvisioningInfo", + }, }, - message: { - serializedName: "message", - type: { - name: "String" - } + }, + }, +}; + +export const ManagedClusterPodIdentityProvisioningInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningInfo", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningError", + }, + }, }, - target: { - serializedName: "target", - type: { - name: "String" - } + }, + }; + +export const ManagedClusterPodIdentityProvisioningError: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningError", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningErrorBody", + }, + }, }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterPodIdentityProvisioningErrorBody" - } - } - } - } - } - } -}; + }, + }; + +export const ManagedClusterPodIdentityProvisioningErrorBody: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningErrorBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterPodIdentityProvisioningErrorBody", + }, + }, + }, + }, + }, + }, + }; export const ManagedClusterPodIdentityException: coreClient.CompositeMapper = { type: { @@ -1618,26 +1636,26 @@ export const ManagedClusterPodIdentityException: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, namespace: { serializedName: "namespace", required: true, type: { - name: "String" - } + name: "String", + }, }, podLabels: { serializedName: "podLabels", required: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper = { @@ -1649,17 +1667,17 @@ export const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper = { serializedName: "issuerURL", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { @@ -1671,95 +1689,95 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { defaultValue: "kubenet", serializedName: "networkPlugin", type: { - name: "String" - } + name: "String", + }, }, networkPluginMode: { serializedName: "networkPluginMode", type: { - name: "String" - } + name: "String", + }, }, networkPolicy: { serializedName: "networkPolicy", type: { - name: "String" - } + name: "String", + }, }, networkMode: { serializedName: "networkMode", type: { - name: "String" - } + name: "String", + }, }, networkDataplane: { serializedName: "networkDataplane", type: { - name: "String" - } + name: "String", + }, }, podCidr: { defaultValue: "10.244.0.0/16", constraints: { Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" - ) + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$", + ), }, serializedName: "podCidr", type: { - name: "String" - } + name: "String", + }, }, serviceCidr: { defaultValue: "10.0.0.0/16", constraints: { Pattern: new RegExp( - "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" - ) + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$", + ), }, serializedName: "serviceCidr", type: { - name: "String" - } + name: "String", + }, }, dnsServiceIP: { defaultValue: "10.0.0.10", constraints: { Pattern: new RegExp( - "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" - ) + "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", + ), }, serializedName: "dnsServiceIP", type: { - name: "String" - } + name: "String", + }, }, outboundType: { defaultValue: "loadBalancer", serializedName: "outboundType", type: { - name: "String" - } + name: "String", + }, }, loadBalancerSku: { serializedName: "loadBalancerSku", type: { - name: "String" - } + name: "String", + }, }, loadBalancerProfile: { serializedName: "loadBalancerProfile", type: { name: "Composite", - className: "ManagedClusterLoadBalancerProfile" - } + className: "ManagedClusterLoadBalancerProfile", + }, }, natGatewayProfile: { serializedName: "natGatewayProfile", type: { name: "Composite", - className: "ManagedClusterNATGatewayProfile" - } + className: "ManagedClusterNATGatewayProfile", + }, }, podCidrs: { serializedName: "podCidrs", @@ -1767,10 +1785,10 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, serviceCidrs: { serializedName: "serviceCidrs", @@ -1778,10 +1796,10 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ipFamilies: { serializedName: "ipFamilies", @@ -1789,13 +1807,13 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { @@ -1807,22 +1825,22 @@ export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { serializedName: "managedOutboundIPs", type: { name: "Composite", - className: "ManagedClusterLoadBalancerProfileManagedOutboundIPs" - } + className: "ManagedClusterLoadBalancerProfileManagedOutboundIPs", + }, }, outboundIPPrefixes: { serializedName: "outboundIPPrefixes", type: { name: "Composite", - className: "ManagedClusterLoadBalancerProfileOutboundIPPrefixes" - } + className: "ManagedClusterLoadBalancerProfileOutboundIPPrefixes", + }, }, outboundIPs: { serializedName: "outboundIPs", type: { name: "Composite", - className: "ManagedClusterLoadBalancerProfileOutboundIPs" - } + className: "ManagedClusterLoadBalancerProfileOutboundIPs", + }, }, effectiveOutboundIPs: { serializedName: "effectiveOutboundIPs", @@ -1831,101 +1849,103 @@ export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, allocatedOutboundPorts: { defaultValue: 0, constraints: { InclusiveMaximum: 64000, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "allocatedOutboundPorts", type: { - name: "Number" - } + name: "Number", + }, }, idleTimeoutInMinutes: { defaultValue: 30, constraints: { InclusiveMaximum: 120, - InclusiveMinimum: 4 + InclusiveMinimum: 4, }, serializedName: "idleTimeoutInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, enableMultipleStandardLoadBalancers: { serializedName: "enableMultipleStandardLoadBalancers", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backendPoolType: { defaultValue: "NodeIPConfiguration", serializedName: "backendPoolType", type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterLoadBalancerProfileManagedOutboundIPs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterLoadBalancerProfileManagedOutboundIPs", - modelProperties: { - count: { - defaultValue: 1, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 + name: "String", }, - serializedName: "count", - type: { - name: "Number" - } }, - countIPv6: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 + }, + }, +}; + +export const ManagedClusterLoadBalancerProfileManagedOutboundIPs: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfileManagedOutboundIPs", + modelProperties: { + count: { + defaultValue: 1, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1, + }, + serializedName: "count", + type: { + name: "Number", + }, }, - serializedName: "countIPv6", - type: { - name: "Number" - } - } - } - } -}; - -export const ManagedClusterLoadBalancerProfileOutboundIPPrefixes: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterLoadBalancerProfileOutboundIPPrefixes", - modelProperties: { - publicIPPrefixes: { - serializedName: "publicIPPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } - } - } - } - } -}; + countIPv6: { + defaultValue: 0, + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "countIPv6", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const ManagedClusterLoadBalancerProfileOutboundIPPrefixes: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfileOutboundIPPrefixes", + modelProperties: { + publicIPPrefixes: { + serializedName: "publicIPPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference", + }, + }, + }, + }, + }, + }, + }; export const ResourceReference: coreClient.CompositeMapper = { type: { @@ -1935,33 +1955,34 @@ export const ResourceReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterLoadBalancerProfileOutboundIPs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterLoadBalancerProfileOutboundIPs", - modelProperties: { - publicIPs: { - serializedName: "publicIPs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceReference" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ManagedClusterLoadBalancerProfileOutboundIPs: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterLoadBalancerProfileOutboundIPs", + modelProperties: { + publicIPs: { + serializedName: "publicIPs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference", + }, + }, + }, + }, + }, + }, + }; export const ManagedClusterNATGatewayProfile: coreClient.CompositeMapper = { type: { @@ -1972,8 +1993,8 @@ export const ManagedClusterNATGatewayProfile: coreClient.CompositeMapper = { serializedName: "managedOutboundIPProfile", type: { name: "Composite", - className: "ManagedClusterManagedOutboundIPProfile" - } + className: "ManagedClusterManagedOutboundIPProfile", + }, }, effectiveOutboundIPs: { serializedName: "effectiveOutboundIPs", @@ -1982,45 +2003,46 @@ export const ManagedClusterNATGatewayProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, idleTimeoutInMinutes: { defaultValue: 4, constraints: { InclusiveMaximum: 120, - InclusiveMinimum: 4 + InclusiveMinimum: 4, }, serializedName: "idleTimeoutInMinutes", type: { - name: "Number" - } - } - } - } -}; - -export const ManagedClusterManagedOutboundIPProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterManagedOutboundIPProfile", - modelProperties: { - count: { - defaultValue: 1, - constraints: { - InclusiveMaximum: 16, - InclusiveMinimum: 1 + name: "Number", }, - serializedName: "count", - type: { - name: "Number" - } - } - } - } -}; + }, + }, + }, +}; + +export const ManagedClusterManagedOutboundIPProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterManagedOutboundIPProfile", + modelProperties: { + count: { + defaultValue: 1, + constraints: { + InclusiveMaximum: 16, + InclusiveMinimum: 1, + }, + serializedName: "count", + type: { + name: "Number", + }, + }, + }, + }, + }; export const ManagedClusterAADProfile: coreClient.CompositeMapper = { type: { @@ -2030,14 +2052,14 @@ export const ManagedClusterAADProfile: coreClient.CompositeMapper = { managed: { serializedName: "managed", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAzureRbac: { serializedName: "enableAzureRBAC", type: { - name: "Boolean" - } + name: "Boolean", + }, }, adminGroupObjectIDs: { serializedName: "adminGroupObjectIDs", @@ -2045,37 +2067,37 @@ export const ManagedClusterAADProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clientAppID: { serializedName: "clientAppID", type: { - name: "String" - } + name: "String", + }, }, serverAppID: { serializedName: "serverAppID", type: { - name: "String" - } + name: "String", + }, }, serverAppSecret: { serializedName: "serverAppSecret", type: { - name: "String" - } + name: "String", + }, }, tenantID: { serializedName: "tenantID", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterAutoUpgradeProfile: coreClient.CompositeMapper = { @@ -2086,17 +2108,17 @@ export const ManagedClusterAutoUpgradeProfile: coreClient.CompositeMapper = { upgradeChannel: { serializedName: "upgradeChannel", type: { - name: "String" - } + name: "String", + }, }, nodeOSUpgradeChannel: { serializedName: "nodeOSUpgradeChannel", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterUpgradeSettings: coreClient.CompositeMapper = { @@ -2108,11 +2130,11 @@ export const ClusterUpgradeSettings: coreClient.CompositeMapper = { serializedName: "overrideSettings", type: { name: "Composite", - className: "UpgradeOverrideSettings" - } - } - } - } + className: "UpgradeOverrideSettings", + }, + }, + }, + }, }; export const UpgradeOverrideSettings: coreClient.CompositeMapper = { @@ -2123,173 +2145,175 @@ export const UpgradeOverrideSettings: coreClient.CompositeMapper = { forceUpgrade: { serializedName: "forceUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, until: { serializedName: "until", type: { - name: "DateTime" - } - } - } - } -}; - -export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPropertiesAutoScalerProfile", - modelProperties: { - balanceSimilarNodeGroups: { - serializedName: "balance-similar-node-groups", - type: { - name: "String" - } - }, - expander: { - serializedName: "expander", - type: { - name: "String" - } - }, - maxEmptyBulkDelete: { - serializedName: "max-empty-bulk-delete", - type: { - name: "String" - } - }, - maxGracefulTerminationSec: { - serializedName: "max-graceful-termination-sec", - type: { - name: "String" - } - }, - maxNodeProvisionTime: { - serializedName: "max-node-provision-time", - type: { - name: "String" - } - }, - maxTotalUnreadyPercentage: { - serializedName: "max-total-unready-percentage", - type: { - name: "String" - } - }, - newPodScaleUpDelay: { - serializedName: "new-pod-scale-up-delay", - type: { - name: "String" - } - }, - okTotalUnreadyCount: { - serializedName: "ok-total-unready-count", - type: { - name: "String" - } - }, - scanInterval: { - serializedName: "scan-interval", - type: { - name: "String" - } - }, - scaleDownDelayAfterAdd: { - serializedName: "scale-down-delay-after-add", - type: { - name: "String" - } - }, - scaleDownDelayAfterDelete: { - serializedName: "scale-down-delay-after-delete", - type: { - name: "String" - } - }, - scaleDownDelayAfterFailure: { - serializedName: "scale-down-delay-after-failure", - type: { - name: "String" - } - }, - scaleDownUnneededTime: { - serializedName: "scale-down-unneeded-time", - type: { - name: "String" - } - }, - scaleDownUnreadyTime: { - serializedName: "scale-down-unready-time", - type: { - name: "String" - } - }, - scaleDownUtilizationThreshold: { - serializedName: "scale-down-utilization-threshold", - type: { - name: "String" - } - }, - skipNodesWithLocalStorage: { - serializedName: "skip-nodes-with-local-storage", - type: { - name: "String" - } - }, - skipNodesWithSystemPods: { - serializedName: "skip-nodes-with-system-pods", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAPIServerAccessProfile", - modelProperties: { - authorizedIPRanges: { - serializedName: "authorizedIPRanges", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - enablePrivateCluster: { - serializedName: "enablePrivateCluster", - type: { - name: "Boolean" - } + name: "DateTime", + }, }, - privateDNSZone: { - serializedName: "privateDNSZone", - type: { - name: "String" - } + }, + }, +}; + +export const ManagedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterPropertiesAutoScalerProfile", + modelProperties: { + balanceSimilarNodeGroups: { + serializedName: "balance-similar-node-groups", + type: { + name: "String", + }, + }, + expander: { + serializedName: "expander", + type: { + name: "String", + }, + }, + maxEmptyBulkDelete: { + serializedName: "max-empty-bulk-delete", + type: { + name: "String", + }, + }, + maxGracefulTerminationSec: { + serializedName: "max-graceful-termination-sec", + type: { + name: "String", + }, + }, + maxNodeProvisionTime: { + serializedName: "max-node-provision-time", + type: { + name: "String", + }, + }, + maxTotalUnreadyPercentage: { + serializedName: "max-total-unready-percentage", + type: { + name: "String", + }, + }, + newPodScaleUpDelay: { + serializedName: "new-pod-scale-up-delay", + type: { + name: "String", + }, + }, + okTotalUnreadyCount: { + serializedName: "ok-total-unready-count", + type: { + name: "String", + }, + }, + scanInterval: { + serializedName: "scan-interval", + type: { + name: "String", + }, + }, + scaleDownDelayAfterAdd: { + serializedName: "scale-down-delay-after-add", + type: { + name: "String", + }, + }, + scaleDownDelayAfterDelete: { + serializedName: "scale-down-delay-after-delete", + type: { + name: "String", + }, + }, + scaleDownDelayAfterFailure: { + serializedName: "scale-down-delay-after-failure", + type: { + name: "String", + }, + }, + scaleDownUnneededTime: { + serializedName: "scale-down-unneeded-time", + type: { + name: "String", + }, + }, + scaleDownUnreadyTime: { + serializedName: "scale-down-unready-time", + type: { + name: "String", + }, + }, + scaleDownUtilizationThreshold: { + serializedName: "scale-down-utilization-threshold", + type: { + name: "String", + }, + }, + skipNodesWithLocalStorage: { + serializedName: "skip-nodes-with-local-storage", + type: { + name: "String", + }, + }, + skipNodesWithSystemPods: { + serializedName: "skip-nodes-with-system-pods", + type: { + name: "String", + }, + }, }, - enablePrivateClusterPublicFqdn: { - serializedName: "enablePrivateClusterPublicFQDN", - type: { - name: "Boolean" - } + }, + }; + +export const ManagedClusterAPIServerAccessProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterAPIServerAccessProfile", + modelProperties: { + authorizedIPRanges: { + serializedName: "authorizedIPRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + enablePrivateCluster: { + serializedName: "enablePrivateCluster", + type: { + name: "Boolean", + }, + }, + privateDNSZone: { + serializedName: "privateDNSZone", + type: { + name: "String", + }, + }, + enablePrivateClusterPublicFqdn: { + serializedName: "enablePrivateClusterPublicFQDN", + type: { + name: "Boolean", + }, + }, + disableRunCommand: { + serializedName: "disableRunCommand", + type: { + name: "Boolean", + }, + }, }, - disableRunCommand: { - serializedName: "disableRunCommand", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }; export const PrivateLinkResource: coreClient.CompositeMapper = { type: { @@ -2299,26 +2323,26 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "groupId", type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "requiredMembers", @@ -2326,20 +2350,20 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateLinkServiceID: { serializedName: "privateLinkServiceID", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { @@ -2350,14 +2374,14 @@ export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { httpProxy: { serializedName: "httpProxy", type: { - name: "String" - } + name: "String", + }, }, httpsProxy: { serializedName: "httpsProxy", type: { - name: "String" - } + name: "String", + }, }, noProxy: { serializedName: "noProxy", @@ -2365,19 +2389,19 @@ export const ManagedClusterHttpProxyConfig: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, trustedCa: { serializedName: "trustedCa", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { @@ -2389,70 +2413,73 @@ export const ManagedClusterSecurityProfile: coreClient.CompositeMapper = { serializedName: "defender", type: { name: "Composite", - className: "ManagedClusterSecurityProfileDefender" - } + className: "ManagedClusterSecurityProfileDefender", + }, }, azureKeyVaultKms: { serializedName: "azureKeyVaultKms", type: { name: "Composite", - className: "AzureKeyVaultKms" - } + className: "AzureKeyVaultKms", + }, }, workloadIdentity: { serializedName: "workloadIdentity", type: { name: "Composite", - className: "ManagedClusterSecurityProfileWorkloadIdentity" - } + className: "ManagedClusterSecurityProfileWorkloadIdentity", + }, }, imageCleaner: { serializedName: "imageCleaner", type: { name: "Composite", - className: "ManagedClusterSecurityProfileImageCleaner" - } - } - } - } -}; - -export const ManagedClusterSecurityProfileDefender: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefender", - modelProperties: { - logAnalyticsWorkspaceResourceId: { - serializedName: "logAnalyticsWorkspaceResourceId", - type: { - name: "String" - } + className: "ManagedClusterSecurityProfileImageCleaner", + }, }, - securityMonitoring: { - serializedName: "securityMonitoring", - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefenderSecurityMonitoring" - } - } - } - } -}; - -export const ManagedClusterSecurityProfileDefenderSecurityMonitoring: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileDefenderSecurityMonitoring", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClusterSecurityProfileDefender: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileDefender", + modelProperties: { + logAnalyticsWorkspaceResourceId: { + serializedName: "logAnalyticsWorkspaceResourceId", + type: { + name: "String", + }, + }, + securityMonitoring: { + serializedName: "securityMonitoring", + type: { + name: "Composite", + className: + "ManagedClusterSecurityProfileDefenderSecurityMonitoring", + }, + }, + }, + }, + }; + +export const ManagedClusterSecurityProfileDefenderSecurityMonitoring: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileDefenderSecurityMonitoring", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const AzureKeyVaultKms: coreClient.CompositeMapper = { type: { @@ -2462,67 +2489,69 @@ export const AzureKeyVaultKms: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, keyId: { serializedName: "keyId", type: { - name: "String" - } + name: "String", + }, }, keyVaultNetworkAccess: { defaultValue: "Public", serializedName: "keyVaultNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, keyVaultResourceId: { serializedName: "keyVaultResourceId", type: { - name: "String" - } - } - } - } -}; - -export const ManagedClusterSecurityProfileWorkloadIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileWorkloadIdentity", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterSecurityProfileImageCleaner", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } + name: "String", + }, }, - intervalHours: { - serializedName: "intervalHours", - type: { - name: "Number" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClusterSecurityProfileWorkloadIdentity: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileWorkloadIdentity", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const ManagedClusterSecurityProfileImageCleaner: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterSecurityProfileImageCleaner", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + intervalHours: { + serializedName: "intervalHours", + type: { + name: "Number", + }, + }, + }, + }, + }; export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { type: { @@ -2533,150 +2562,157 @@ export const ManagedClusterStorageProfile: coreClient.CompositeMapper = { serializedName: "diskCSIDriver", type: { name: "Composite", - className: "ManagedClusterStorageProfileDiskCSIDriver" - } + className: "ManagedClusterStorageProfileDiskCSIDriver", + }, }, fileCSIDriver: { serializedName: "fileCSIDriver", type: { name: "Composite", - className: "ManagedClusterStorageProfileFileCSIDriver" - } + className: "ManagedClusterStorageProfileFileCSIDriver", + }, }, snapshotController: { serializedName: "snapshotController", type: { name: "Composite", - className: "ManagedClusterStorageProfileSnapshotController" - } + className: "ManagedClusterStorageProfileSnapshotController", + }, }, blobCSIDriver: { serializedName: "blobCSIDriver", type: { name: "Composite", - className: "ManagedClusterStorageProfileBlobCSIDriver" - } - } - } - } -}; - -export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileDiskCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterStorageProfileFileCSIDriver: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileFileCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterStorageProfileSnapshotController: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileSnapshotController", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterStorageProfileBlobCSIDriver: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterStorageProfileBlobCSIDriver", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfile", - modelProperties: { - keda: { - serializedName: "keda", - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileKeda" - } + className: "ManagedClusterStorageProfileBlobCSIDriver", + }, }, - verticalPodAutoscaler: { - serializedName: "verticalPodAutoscaler", - type: { - name: "Composite", - className: - "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler" - } - } - } - } -}; - -export const ManagedClusterWorkloadAutoScalerProfileKeda: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileKeda", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", - modelProperties: { - enabled: { - defaultValue: false, - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClusterStorageProfileDiskCSIDriver: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileDiskCSIDriver", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const ManagedClusterStorageProfileFileCSIDriver: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileFileCSIDriver", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const ManagedClusterStorageProfileSnapshotController: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileSnapshotController", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const ManagedClusterStorageProfileBlobCSIDriver: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterStorageProfileBlobCSIDriver", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const ManagedClusterWorkloadAutoScalerProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfile", + modelProperties: { + keda: { + serializedName: "keda", + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfileKeda", + }, + }, + verticalPodAutoscaler: { + serializedName: "verticalPodAutoscaler", + type: { + name: "Composite", + className: + "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", + }, + }, + }, + }, + }; + +export const ManagedClusterWorkloadAutoScalerProfileKeda: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfileKeda", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler", + modelProperties: { + enabled: { + defaultValue: false, + serializedName: "enabled", + required: true, + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const ManagedClusterAzureMonitorProfile: coreClient.CompositeMapper = { type: { @@ -2687,56 +2723,58 @@ export const ManagedClusterAzureMonitorProfile: coreClient.CompositeMapper = { serializedName: "metrics", type: { name: "Composite", - className: "ManagedClusterAzureMonitorProfileMetrics" - } - } - } - } -}; - -export const ManagedClusterAzureMonitorProfileMetrics: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileMetrics", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } + className: "ManagedClusterAzureMonitorProfileMetrics", + }, }, - kubeStateMetrics: { - serializedName: "kubeStateMetrics", - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileKubeStateMetrics" - } - } - } - } -}; - -export const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", - modelProperties: { - metricLabelsAllowlist: { - serializedName: "metricLabelsAllowlist", - type: { - name: "String" - } + }, + }, +}; + +export const ManagedClusterAzureMonitorProfileMetrics: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterAzureMonitorProfileMetrics", + modelProperties: { + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean", + }, + }, + kubeStateMetrics: { + serializedName: "kubeStateMetrics", + type: { + name: "Composite", + className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", + }, + }, }, - metricAnnotationsAllowList: { - serializedName: "metricAnnotationsAllowList", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const ManagedClusterAzureMonitorProfileKubeStateMetrics: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterAzureMonitorProfileKubeStateMetrics", + modelProperties: { + metricLabelsAllowlist: { + serializedName: "metricLabelsAllowlist", + type: { + name: "String", + }, + }, + metricAnnotationsAllowList: { + serializedName: "metricAnnotationsAllowList", + type: { + name: "String", + }, + }, + }, + }, + }; export const ServiceMeshProfile: coreClient.CompositeMapper = { type: { @@ -2747,18 +2785,18 @@ export const ServiceMeshProfile: coreClient.CompositeMapper = { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, istio: { serializedName: "istio", type: { name: "Composite", - className: "IstioServiceMesh" - } - } - } - } + className: "IstioServiceMesh", + }, + }, + }, + }, }; export const IstioServiceMesh: coreClient.CompositeMapper = { @@ -2770,33 +2808,33 @@ export const IstioServiceMesh: coreClient.CompositeMapper = { serializedName: "components", type: { name: "Composite", - className: "IstioComponents" - } + className: "IstioComponents", + }, }, certificateAuthority: { serializedName: "certificateAuthority", type: { name: "Composite", - className: "IstioCertificateAuthority" - } + className: "IstioCertificateAuthority", + }, }, revisions: { constraints: { MaxItems: 2, - UniqueItems: true + UniqueItems: true, }, serializedName: "revisions", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const IstioComponents: coreClient.CompositeMapper = { @@ -2811,10 +2849,10 @@ export const IstioComponents: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IstioIngressGateway" - } - } - } + className: "IstioIngressGateway", + }, + }, + }, }, egressGateways: { serializedName: "egressGateways", @@ -2823,13 +2861,13 @@ export const IstioComponents: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IstioEgressGateway" - } - } - } - } - } - } + className: "IstioEgressGateway", + }, + }, + }, + }, + }, + }, }; export const IstioIngressGateway: coreClient.CompositeMapper = { @@ -2841,18 +2879,18 @@ export const IstioIngressGateway: coreClient.CompositeMapper = { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const IstioEgressGateway: coreClient.CompositeMapper = { @@ -2864,18 +2902,18 @@ export const IstioEgressGateway: coreClient.CompositeMapper = { serializedName: "enabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, nodeSelector: { serializedName: "nodeSelector", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const IstioCertificateAuthority: coreClient.CompositeMapper = { @@ -2887,11 +2925,11 @@ export const IstioCertificateAuthority: coreClient.CompositeMapper = { serializedName: "plugin", type: { name: "Composite", - className: "IstioPluginCertificateAuthority" - } - } - } - } + className: "IstioPluginCertificateAuthority", + }, + }, + }, + }, }; export const IstioPluginCertificateAuthority: coreClient.CompositeMapper = { @@ -2902,35 +2940,35 @@ export const IstioPluginCertificateAuthority: coreClient.CompositeMapper = { keyVaultId: { serializedName: "keyVaultId", type: { - name: "String" - } + name: "String", + }, }, certObjectName: { serializedName: "certObjectName", type: { - name: "String" - } + name: "String", + }, }, keyObjectName: { serializedName: "keyObjectName", type: { - name: "String" - } + name: "String", + }, }, rootCertObjectName: { serializedName: "rootCertObjectName", type: { - name: "String" - } + name: "String", + }, }, certChainObjectName: { serializedName: "certChainObjectName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -2942,32 +2980,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -2978,41 +3016,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ManagedClusterUpgradeProfile: coreClient.CompositeMapper = { @@ -3024,29 +3062,29 @@ export const ManagedClusterUpgradeProfile: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, controlPlaneProfile: { serializedName: "properties.controlPlaneProfile", type: { name: "Composite", - className: "ManagedClusterPoolUpgradeProfile" - } + className: "ManagedClusterPoolUpgradeProfile", + }, }, agentPoolProfiles: { serializedName: "properties.agentPoolProfiles", @@ -3056,13 +3094,13 @@ export const ManagedClusterUpgradeProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedClusterPoolUpgradeProfile" - } - } - } - } - } - } + className: "ManagedClusterPoolUpgradeProfile", + }, + }, + }, + }, + }, + }, }; export const ManagedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { @@ -3074,22 +3112,22 @@ export const ManagedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { serializedName: "kubernetesVersion", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, osType: { defaultValue: "Linux", serializedName: "osType", required: true, type: { - name: "String" - } + name: "String", + }, }, upgrades: { serializedName: "upgrades", @@ -3098,35 +3136,36 @@ export const ManagedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedClusterPoolUpgradeProfileUpgradesItem" - } - } - } - } - } - } -}; - -export const ManagedClusterPoolUpgradeProfileUpgradesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClusterPoolUpgradeProfileUpgradesItem", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String" - } + className: "ManagedClusterPoolUpgradeProfileUpgradesItem", + }, + }, + }, }, - isPreview: { - serializedName: "isPreview", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClusterPoolUpgradeProfileUpgradesItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterPoolUpgradeProfileUpgradesItem", + modelProperties: { + kubernetesVersion: { + serializedName: "kubernetesVersion", + type: { + name: "String", + }, + }, + isPreview: { + serializedName: "isPreview", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const CredentialResults: coreClient.CompositeMapper = { type: { @@ -3141,13 +3180,13 @@ export const CredentialResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CredentialResult" - } - } - } - } - } - } + className: "CredentialResult", + }, + }, + }, + }, + }, + }, }; export const CredentialResult: coreClient.CompositeMapper = { @@ -3159,18 +3198,18 @@ export const CredentialResult: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "ByteArray" - } - } - } - } + name: "ByteArray", + }, + }, + }, + }, }; export const TagsObject: coreClient.CompositeMapper = { @@ -3182,11 +3221,11 @@ export const TagsObject: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const MaintenanceConfigurationListResult: coreClient.CompositeMapper = { @@ -3201,20 +3240,20 @@ export const MaintenanceConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MaintenanceConfiguration" - } - } - } + className: "MaintenanceConfiguration", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TimeInWeek: coreClient.CompositeMapper = { @@ -3225,8 +3264,8 @@ export const TimeInWeek: coreClient.CompositeMapper = { day: { serializedName: "day", type: { - name: "String" - } + name: "String", + }, }, hourSlots: { serializedName: "hourSlots", @@ -3235,16 +3274,16 @@ export const TimeInWeek: coreClient.CompositeMapper = { element: { constraints: { InclusiveMaximum: 23, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, type: { - name: "Number" - } - } - } - } - } - } + name: "Number", + }, + }, + }, + }, + }, + }, }; export const TimeSpan: coreClient.CompositeMapper = { @@ -3255,17 +3294,17 @@ export const TimeSpan: coreClient.CompositeMapper = { start: { serializedName: "start", type: { - name: "DateTime" - } + name: "DateTime", + }, }, end: { serializedName: "end", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const MaintenanceWindow: coreClient.CompositeMapper = { @@ -3277,45 +3316,45 @@ export const MaintenanceWindow: coreClient.CompositeMapper = { serializedName: "schedule", type: { name: "Composite", - className: "Schedule" - } + className: "Schedule", + }, }, durationHours: { defaultValue: 24, constraints: { InclusiveMaximum: 24, - InclusiveMinimum: 4 + InclusiveMinimum: 4, }, serializedName: "durationHours", required: true, type: { - name: "Number" - } + name: "Number", + }, }, utcOffset: { constraints: { - Pattern: new RegExp("^(-|\\+)[0-9]{2}:[0-9]{2}$") + Pattern: new RegExp("^(-|\\+)[0-9]{2}:[0-9]{2}$"), }, serializedName: "utcOffset", type: { - name: "String" - } + name: "String", + }, }, startDate: { serializedName: "startDate", type: { - name: "Date" - } + name: "Date", + }, }, startTime: { constraints: { - Pattern: new RegExp("^\\d{2}:\\d{2}$") + Pattern: new RegExp("^\\d{2}:\\d{2}$"), }, serializedName: "startTime", required: true, type: { - name: "String" - } + name: "String", + }, }, notAllowedDates: { serializedName: "notAllowedDates", @@ -3324,13 +3363,13 @@ export const MaintenanceWindow: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DateSpan" - } - } - } - } - } - } + className: "DateSpan", + }, + }, + }, + }, + }, + }, }; export const Schedule: coreClient.CompositeMapper = { @@ -3342,32 +3381,32 @@ export const Schedule: coreClient.CompositeMapper = { serializedName: "daily", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weekly: { serializedName: "weekly", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, absoluteMonthly: { serializedName: "absoluteMonthly", type: { name: "Composite", - className: "AbsoluteMonthlySchedule" - } + className: "AbsoluteMonthlySchedule", + }, }, relativeMonthly: { serializedName: "relativeMonthly", type: { name: "Composite", - className: "RelativeMonthlySchedule" - } - } - } - } + className: "RelativeMonthlySchedule", + }, + }, + }, + }, }; export const DailySchedule: coreClient.CompositeMapper = { @@ -3378,16 +3417,16 @@ export const DailySchedule: coreClient.CompositeMapper = { intervalDays: { constraints: { InclusiveMaximum: 7, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "intervalDays", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const WeeklySchedule: coreClient.CompositeMapper = { @@ -3398,23 +3437,23 @@ export const WeeklySchedule: coreClient.CompositeMapper = { intervalWeeks: { constraints: { InclusiveMaximum: 4, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "intervalWeeks", required: true, type: { - name: "Number" - } + name: "Number", + }, }, dayOfWeek: { serializedName: "dayOfWeek", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AbsoluteMonthlySchedule: coreClient.CompositeMapper = { @@ -3425,27 +3464,27 @@ export const AbsoluteMonthlySchedule: coreClient.CompositeMapper = { intervalMonths: { constraints: { InclusiveMaximum: 6, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "intervalMonths", required: true, type: { - name: "Number" - } + name: "Number", + }, }, dayOfMonth: { constraints: { InclusiveMaximum: 31, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "dayOfMonth", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RelativeMonthlySchedule: coreClient.CompositeMapper = { @@ -3456,30 +3495,30 @@ export const RelativeMonthlySchedule: coreClient.CompositeMapper = { intervalMonths: { constraints: { InclusiveMaximum: 6, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "intervalMonths", required: true, type: { - name: "Number" - } + name: "Number", + }, }, weekIndex: { serializedName: "weekIndex", required: true, type: { - name: "String" - } + name: "String", + }, }, dayOfWeek: { serializedName: "dayOfWeek", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DateSpan: coreClient.CompositeMapper = { @@ -3491,18 +3530,18 @@ export const DateSpan: coreClient.CompositeMapper = { serializedName: "start", required: true, type: { - name: "Date" - } + name: "Date", + }, }, end: { serializedName: "end", required: true, type: { - name: "Date" - } - } - } - } + name: "Date", + }, + }, + }, + }, }; export const SubResource: coreClient.CompositeMapper = { @@ -3514,25 +3553,25 @@ export const SubResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolListResult: coreClient.CompositeMapper = { @@ -3547,20 +3586,20 @@ export const AgentPoolListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPool" - } - } - } + className: "AgentPool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolUpgradeProfile: coreClient.CompositeMapper = { @@ -3572,37 +3611,37 @@ export const AgentPoolUpgradeProfile: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", required: true, type: { - name: "String" - } + name: "String", + }, }, osType: { defaultValue: "Linux", serializedName: "properties.osType", required: true, type: { - name: "String" - } + name: "String", + }, }, upgrades: { serializedName: "properties.upgrades", @@ -3611,41 +3650,42 @@ export const AgentPoolUpgradeProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPoolUpgradeProfilePropertiesUpgradesItem" - } - } - } + className: "AgentPoolUpgradeProfilePropertiesUpgradesItem", + }, + }, + }, }, latestNodeImageVersion: { serializedName: "properties.latestNodeImageVersion", type: { - name: "String" - } - } - } - } -}; - -export const AgentPoolUpgradeProfilePropertiesUpgradesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolUpgradeProfilePropertiesUpgradesItem", - modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String" - } + name: "String", + }, }, - isPreview: { - serializedName: "isPreview", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const AgentPoolUpgradeProfilePropertiesUpgradesItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AgentPoolUpgradeProfilePropertiesUpgradesItem", + modelProperties: { + kubernetesVersion: { + serializedName: "kubernetesVersion", + type: { + name: "String", + }, + }, + isPreview: { + serializedName: "isPreview", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const AgentPoolAvailableVersions: coreClient.CompositeMapper = { type: { @@ -3656,22 +3696,22 @@ export const AgentPoolAvailableVersions: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, agentPoolVersions: { serializedName: "properties.agentPoolVersions", @@ -3681,41 +3721,42 @@ export const AgentPoolAvailableVersions: coreClient.CompositeMapper = { type: { name: "Composite", className: - "AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem" - } - } - } - } - } - } -}; - -export const AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", - modelProperties: { - default: { - serializedName: "default", - type: { - name: "Boolean" - } + "AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", + }, + }, + }, }, - kubernetesVersion: { - serializedName: "kubernetesVersion", - type: { - name: "String" - } + }, + }, +}; + +export const AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem", + modelProperties: { + default: { + serializedName: "default", + type: { + name: "Boolean", + }, + }, + kubernetesVersion: { + serializedName: "kubernetesVersion", + type: { + name: "String", + }, + }, + isPreview: { + serializedName: "isPreview", + type: { + name: "Boolean", + }, + }, }, - isPreview: { - serializedName: "isPreview", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { @@ -3729,13 +3770,13 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -3747,46 +3788,46 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -3797,11 +3838,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -3812,17 +3853,17 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourcesListResult: coreClient.CompositeMapper = { @@ -3837,13 +3878,13 @@ export const PrivateLinkResourcesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const RunCommandRequest: coreClient.CompositeMapper = { @@ -3855,23 +3896,23 @@ export const RunCommandRequest: coreClient.CompositeMapper = { serializedName: "command", required: true, type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "context", type: { - name: "String" - } + name: "String", + }, }, clusterToken: { serializedName: "clusterToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandResult: coreClient.CompositeMapper = { @@ -3883,83 +3924,84 @@ export const RunCommandResult: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, exitCode: { serializedName: "properties.exitCode", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startedAt: { serializedName: "properties.startedAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, finishedAt: { serializedName: "properties.finishedAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, logs: { serializedName: "properties.logs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, reason: { serializedName: "properties.reason", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpointCollection", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { @@ -3969,8 +4011,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -3979,13 +4021,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -3996,8 +4038,8 @@ export const EndpointDependency: coreClient.CompositeMapper = { domainName: { serializedName: "domainName", type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -4006,13 +4048,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -4023,29 +4065,29 @@ export const EndpointDetail: coreClient.CompositeMapper = { ipAddress: { serializedName: "ipAddress", type: { - name: "String" - } + name: "String", + }, }, port: { serializedName: "port", type: { - name: "Number" - } + name: "Number", + }, }, protocol: { serializedName: "protocol", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotListResult: coreClient.CompositeMapper = { @@ -4060,20 +4102,20 @@ export const SnapshotListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } + className: "Snapshot", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MeshRevisionProfileList: coreClient.CompositeMapper = { @@ -4088,20 +4130,20 @@ export const MeshRevisionProfileList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MeshRevisionProfile" - } - } - } + className: "MeshRevisionProfile", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { @@ -4116,13 +4158,13 @@ export const MeshRevisionProfileProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MeshRevision" - } - } - } - } - } - } + className: "MeshRevision", + }, + }, + }, + }, + }, + }, }; export const MeshRevision: coreClient.CompositeMapper = { @@ -4133,8 +4175,8 @@ export const MeshRevision: coreClient.CompositeMapper = { revision: { serializedName: "revision", type: { - name: "String" - } + name: "String", + }, }, upgrades: { serializedName: "upgrades", @@ -4142,10 +4184,10 @@ export const MeshRevision: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, compatibleWith: { serializedName: "compatibleWith", @@ -4154,13 +4196,13 @@ export const MeshRevision: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CompatibleVersions" - } - } - } - } - } - } + className: "CompatibleVersions", + }, + }, + }, + }, + }, + }, }; export const CompatibleVersions: coreClient.CompositeMapper = { @@ -4171,8 +4213,8 @@ export const CompatibleVersions: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, versions: { serializedName: "versions", @@ -4180,13 +4222,13 @@ export const CompatibleVersions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const MeshUpgradeProfileList: coreClient.CompositeMapper = { @@ -4201,20 +4243,20 @@ export const MeshUpgradeProfileList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MeshUpgradeProfile" - } - } - } + className: "MeshUpgradeProfile", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { @@ -4229,20 +4271,20 @@ export const TrustedAccessRoleBindingListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrustedAccessRoleBinding" - } - } - } + className: "TrustedAccessRoleBinding", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -4254,11 +4296,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -4270,22 +4312,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -4295,10 +4337,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -4308,13 +4350,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -4326,19 +4368,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { @@ -4354,20 +4396,20 @@ export const TrustedAccessRoleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrustedAccessRole" - } - } - } + className: "TrustedAccessRole", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TrustedAccessRole: coreClient.CompositeMapper = { @@ -4379,15 +4421,15 @@ export const TrustedAccessRole: coreClient.CompositeMapper = { serializedName: "sourceResourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rules: { serializedName: "rules", @@ -4397,13 +4439,13 @@ export const TrustedAccessRole: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrustedAccessRoleRule" - } - } - } - } - } - } + className: "TrustedAccessRoleRule", + }, + }, + }, + }, + }, + }, }; export const TrustedAccessRoleRule: coreClient.CompositeMapper = { @@ -4418,10 +4460,10 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, apiGroups: { serializedName: "apiGroups", @@ -4430,10 +4472,10 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resources: { serializedName: "resources", @@ -4442,10 +4484,10 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resourceNames: { serializedName: "resourceNames", @@ -4454,10 +4496,10 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, nonResourceURLs: { serializedName: "nonResourceURLs", @@ -4466,13 +4508,13 @@ export const TrustedAccessRoleRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ManagedClusterAgentPoolProfile: coreClient.CompositeMapper = { @@ -4483,16 +4525,16 @@ export const ManagedClusterAgentPoolProfile: coreClient.CompositeMapper = { ...ManagedClusterAgentPoolProfileProperties.type.modelProperties, name: { constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$") + Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$"), }, serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterAddonProfileIdentity: coreClient.CompositeMapper = { @@ -4500,9 +4542,9 @@ export const ManagedClusterAddonProfileIdentity: coreClient.CompositeMapper = { name: "Composite", className: "ManagedClusterAddonProfileIdentity", modelProperties: { - ...UserAssignedIdentity.type.modelProperties - } - } + ...UserAssignedIdentity.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -4515,18 +4557,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -4534,9 +4576,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { @@ -4549,15 +4591,15 @@ export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceResourceId: { serializedName: "properties.sourceResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, roles: { serializedName: "properties.roles", @@ -4566,13 +4608,13 @@ export const TrustedAccessRoleBinding: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const MaintenanceConfiguration: coreClient.CompositeMapper = { @@ -4585,8 +4627,8 @@ export const MaintenanceConfiguration: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, timeInWeek: { serializedName: "properties.timeInWeek", @@ -4595,10 +4637,10 @@ export const MaintenanceConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TimeInWeek" - } - } - } + className: "TimeInWeek", + }, + }, + }, }, notAllowedTime: { serializedName: "properties.notAllowedTime", @@ -4607,20 +4649,20 @@ export const MaintenanceConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TimeSpan" - } - } - } + className: "TimeSpan", + }, + }, + }, }, maintenanceWindow: { serializedName: "properties.maintenanceWindow", type: { name: "Composite", - className: "MaintenanceWindow" - } - } - } - } + className: "MaintenanceWindow", + }, + }, + }, + }, }; export const AgentPool: coreClient.CompositeMapper = { @@ -4632,150 +4674,150 @@ export const AgentPool: coreClient.CompositeMapper = { count: { serializedName: "properties.count", type: { - name: "Number" - } + name: "Number", + }, }, vmSize: { serializedName: "properties.vmSize", type: { - name: "String" - } + name: "String", + }, }, osDiskSizeGB: { constraints: { InclusiveMaximum: 2048, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.osDiskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, osDiskType: { serializedName: "properties.osDiskType", type: { - name: "String" - } + name: "String", + }, }, kubeletDiskType: { serializedName: "properties.kubeletDiskType", type: { - name: "String" - } + name: "String", + }, }, workloadRuntime: { serializedName: "properties.workloadRuntime", type: { - name: "String" - } + name: "String", + }, }, vnetSubnetID: { serializedName: "properties.vnetSubnetID", type: { - name: "String" - } + name: "String", + }, }, podSubnetID: { serializedName: "properties.podSubnetID", type: { - name: "String" - } + name: "String", + }, }, maxPods: { serializedName: "properties.maxPods", type: { - name: "Number" - } + name: "Number", + }, }, osType: { defaultValue: "Linux", serializedName: "properties.osType", type: { - name: "String" - } + name: "String", + }, }, osSKU: { serializedName: "properties.osSKU", type: { - name: "String" - } + name: "String", + }, }, maxCount: { serializedName: "properties.maxCount", type: { - name: "Number" - } + name: "Number", + }, }, minCount: { serializedName: "properties.minCount", type: { - name: "Number" - } + name: "Number", + }, }, enableAutoScaling: { serializedName: "properties.enableAutoScaling", type: { - name: "Boolean" - } + name: "Boolean", + }, }, scaleDownMode: { serializedName: "properties.scaleDownMode", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, mode: { serializedName: "properties.mode", type: { - name: "String" - } + name: "String", + }, }, orchestratorVersion: { serializedName: "properties.orchestratorVersion", type: { - name: "String" - } + name: "String", + }, }, currentOrchestratorVersion: { serializedName: "properties.currentOrchestratorVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodeImageVersion: { serializedName: "properties.nodeImageVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, upgradeSettings: { serializedName: "properties.upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, powerState: { serializedName: "properties.powerState", type: { name: "Composite", - className: "PowerState" - } + className: "PowerState", + }, }, availabilityZones: { serializedName: "properties.availabilityZones", @@ -4783,57 +4825,57 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, enableNodePublicIP: { serializedName: "properties.enableNodePublicIP", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nodePublicIPPrefixID: { serializedName: "properties.nodePublicIPPrefixID", type: { - name: "String" - } + name: "String", + }, }, scaleSetPriority: { defaultValue: "Regular", serializedName: "properties.scaleSetPriority", type: { - name: "String" - } + name: "String", + }, }, scaleSetEvictionPolicy: { defaultValue: "Delete", serializedName: "properties.scaleSetEvictionPolicy", type: { - name: "String" - } + name: "String", + }, }, spotMaxPrice: { defaultValue: -1, serializedName: "properties.spotMaxPrice", type: { - name: "Number" - } + name: "Number", + }, }, tags: { serializedName: "properties.tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, nodeLabels: { serializedName: "properties.nodeLabels", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, nodeTaints: { serializedName: "properties.nodeTaints", @@ -4841,83 +4883,83 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, proximityPlacementGroupID: { serializedName: "properties.proximityPlacementGroupID", type: { - name: "String" - } + name: "String", + }, }, kubeletConfig: { serializedName: "properties.kubeletConfig", type: { name: "Composite", - className: "KubeletConfig" - } + className: "KubeletConfig", + }, }, linuxOSConfig: { serializedName: "properties.linuxOSConfig", type: { name: "Composite", - className: "LinuxOSConfig" - } + className: "LinuxOSConfig", + }, }, enableEncryptionAtHost: { serializedName: "properties.enableEncryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableUltraSSD: { serializedName: "properties.enableUltraSSD", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableFips: { serializedName: "properties.enableFIPS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gpuInstanceProfile: { serializedName: "properties.gpuInstanceProfile", type: { - name: "String" - } + name: "String", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, capacityReservationGroupID: { serializedName: "properties.capacityReservationGroupID", type: { - name: "String" - } + name: "String", + }, }, hostGroupID: { serializedName: "properties.hostGroupID", type: { - name: "String" - } + name: "String", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "AgentPoolNetworkProfile" - } - } - } - } + className: "AgentPoolNetworkProfile", + }, + }, + }, + }, }; export const MeshUpgradeProfileProperties: coreClient.CompositeMapper = { @@ -4925,9 +4967,9 @@ export const MeshUpgradeProfileProperties: coreClient.CompositeMapper = { name: "Composite", className: "MeshUpgradeProfileProperties", modelProperties: { - ...MeshRevision.type.modelProperties - } - } + ...MeshRevision.type.modelProperties, + }, + }, }; export const ManagedCluster: coreClient.CompositeMapper = { @@ -4940,89 +4982,89 @@ export const ManagedCluster: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "ManagedClusterSKU" - } + className: "ManagedClusterSKU", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedClusterIdentity" - } + className: "ManagedClusterIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, powerState: { serializedName: "properties.powerState", type: { name: "Composite", - className: "PowerState" - } + className: "PowerState", + }, }, maxAgentPools: { serializedName: "properties.maxAgentPools", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", type: { - name: "String" - } + name: "String", + }, }, currentKubernetesVersion: { serializedName: "properties.currentKubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dnsPrefix: { serializedName: "properties.dnsPrefix", type: { - name: "String" - } + name: "String", + }, }, fqdnSubdomain: { serializedName: "properties.fqdnSubdomain", type: { - name: "String" - } + name: "String", + }, }, fqdn: { serializedName: "properties.fqdn", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateFqdn: { serializedName: "properties.privateFQDN", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, azurePortalFqdn: { serializedName: "properties.azurePortalFQDN", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, agentPoolProfiles: { serializedName: "properties.agentPoolProfiles", @@ -5031,135 +5073,138 @@ export const ManagedCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedClusterAgentPoolProfile" - } - } - } + className: "ManagedClusterAgentPoolProfile", + }, + }, + }, }, linuxProfile: { serializedName: "properties.linuxProfile", type: { name: "Composite", - className: "ContainerServiceLinuxProfile" - } + className: "ContainerServiceLinuxProfile", + }, }, windowsProfile: { serializedName: "properties.windowsProfile", type: { name: "Composite", - className: "ManagedClusterWindowsProfile" - } + className: "ManagedClusterWindowsProfile", + }, }, servicePrincipalProfile: { serializedName: "properties.servicePrincipalProfile", type: { name: "Composite", - className: "ManagedClusterServicePrincipalProfile" - } + className: "ManagedClusterServicePrincipalProfile", + }, }, addonProfiles: { serializedName: "properties.addonProfiles", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ManagedClusterAddonProfile" } - } - } + type: { + name: "Composite", + className: "ManagedClusterAddonProfile", + }, + }, + }, }, podIdentityProfile: { serializedName: "properties.podIdentityProfile", type: { name: "Composite", - className: "ManagedClusterPodIdentityProfile" - } + className: "ManagedClusterPodIdentityProfile", + }, }, oidcIssuerProfile: { serializedName: "properties.oidcIssuerProfile", type: { name: "Composite", - className: "ManagedClusterOidcIssuerProfile" - } + className: "ManagedClusterOidcIssuerProfile", + }, }, nodeResourceGroup: { serializedName: "properties.nodeResourceGroup", type: { - name: "String" - } + name: "String", + }, }, enableRbac: { serializedName: "properties.enableRBAC", type: { - name: "Boolean" - } + name: "Boolean", + }, }, supportPlan: { serializedName: "properties.supportPlan", type: { - name: "String" - } + name: "String", + }, }, enablePodSecurityPolicy: { serializedName: "properties.enablePodSecurityPolicy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "ContainerServiceNetworkProfile" - } + className: "ContainerServiceNetworkProfile", + }, }, aadProfile: { serializedName: "properties.aadProfile", type: { name: "Composite", - className: "ManagedClusterAADProfile" - } + className: "ManagedClusterAADProfile", + }, }, autoUpgradeProfile: { serializedName: "properties.autoUpgradeProfile", type: { name: "Composite", - className: "ManagedClusterAutoUpgradeProfile" - } + className: "ManagedClusterAutoUpgradeProfile", + }, }, upgradeSettings: { serializedName: "properties.upgradeSettings", type: { name: "Composite", - className: "ClusterUpgradeSettings" - } + className: "ClusterUpgradeSettings", + }, }, autoScalerProfile: { serializedName: "properties.autoScalerProfile", type: { name: "Composite", - className: "ManagedClusterPropertiesAutoScalerProfile" - } + className: "ManagedClusterPropertiesAutoScalerProfile", + }, }, apiServerAccessProfile: { serializedName: "properties.apiServerAccessProfile", type: { name: "Composite", - className: "ManagedClusterAPIServerAccessProfile" - } + className: "ManagedClusterAPIServerAccessProfile", + }, }, diskEncryptionSetID: { serializedName: "properties.diskEncryptionSetID", type: { - name: "String" - } + name: "String", + }, }, identityProfile: { serializedName: "properties.identityProfile", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, }, privateLinkResources: { serializedName: "properties.privateLinkResources", @@ -5168,74 +5213,74 @@ export const ManagedCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, disableLocalAccounts: { serializedName: "properties.disableLocalAccounts", type: { - name: "Boolean" - } + name: "Boolean", + }, }, httpProxyConfig: { serializedName: "properties.httpProxyConfig", type: { name: "Composite", - className: "ManagedClusterHttpProxyConfig" - } + className: "ManagedClusterHttpProxyConfig", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "ManagedClusterSecurityProfile" - } + className: "ManagedClusterSecurityProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ManagedClusterStorageProfile" - } + className: "ManagedClusterStorageProfile", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, workloadAutoScalerProfile: { serializedName: "properties.workloadAutoScalerProfile", type: { name: "Composite", - className: "ManagedClusterWorkloadAutoScalerProfile" - } + className: "ManagedClusterWorkloadAutoScalerProfile", + }, }, azureMonitorProfile: { serializedName: "properties.azureMonitorProfile", type: { name: "Composite", - className: "ManagedClusterAzureMonitorProfile" - } + className: "ManagedClusterAzureMonitorProfile", + }, }, serviceMeshProfile: { serializedName: "properties.serviceMeshProfile", type: { name: "Composite", - className: "ServiceMeshProfile" - } + className: "ServiceMeshProfile", + }, }, resourceUID: { serializedName: "properties.resourceUID", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClusterAccessProfile: coreClient.CompositeMapper = { @@ -5247,11 +5292,11 @@ export const ManagedClusterAccessProfile: coreClient.CompositeMapper = { kubeConfig: { serializedName: "properties.kubeConfig", type: { - name: "ByteArray" - } - } - } - } + name: "ByteArray", + }, + }, + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -5264,61 +5309,61 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, snapshotType: { defaultValue: "NodePool", serializedName: "properties.snapshotType", type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodeImageVersion: { serializedName: "properties.nodeImageVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osType: { defaultValue: "Linux", serializedName: "properties.osType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osSku: { serializedName: "properties.osSku", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, vmSize: { serializedName: "properties.vmSize", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enableFips: { serializedName: "properties.enableFIPS", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const MeshRevisionProfile: coreClient.CompositeMapper = { @@ -5331,11 +5376,11 @@ export const MeshRevisionProfile: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "MeshRevisionProfileProperties" - } - } - } - } + className: "MeshRevisionProfileProperties", + }, + }, + }, + }, }; export const MeshUpgradeProfile: coreClient.CompositeMapper = { @@ -5348,11 +5393,11 @@ export const MeshUpgradeProfile: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "MeshUpgradeProfileProperties" - } - } - } - } + className: "MeshUpgradeProfileProperties", + }, + }, + }, + }, }; export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { @@ -5363,93 +5408,98 @@ export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const ManagedClustersResetServicePrincipalProfileHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClustersResetServicePrincipalProfileHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClustersResetAADProfileHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClustersResetAADProfileHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClustersRotateClusterCertificatesHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClustersAbortLatestOperationHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedClustersRotateServiceAccountSigningKeysHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClustersRotateServiceAccountSigningKeysHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClustersResetServicePrincipalProfileHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersResetServicePrincipalProfileHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ManagedClustersResetAADProfileHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersResetAADProfileHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ManagedClustersRotateClusterCertificatesHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersRotateClusterCertificatesHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ManagedClustersAbortLatestOperationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersAbortLatestOperationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ManagedClustersRotateServiceAccountSigningKeysHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersRotateServiceAccountSigningKeysHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const ManagedClustersStopHeaders: coreClient.CompositeMapper = { type: { @@ -5459,11 +5509,11 @@ export const ManagedClustersStopHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClustersStartHeaders: coreClient.CompositeMapper = { @@ -5474,11 +5524,11 @@ export const ManagedClustersStartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedClustersRunCommandHeaders: coreClient.CompositeMapper = { @@ -5489,48 +5539,50 @@ export const ManagedClustersRunCommandHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const ManagedClustersGetCommandResultHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedClustersGetCommandResultHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AgentPoolsAbortLatestOperationHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolsAbortLatestOperationHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ManagedClustersGetCommandResultHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersGetCommandResultHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AgentPoolsAbortLatestOperationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AgentPoolsAbortLatestOperationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -5540,39 +5592,41 @@ export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const AgentPoolsUpgradeNodeImageVersionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolsUpgradeNodeImageVersionHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const TrustedAccessRoleBindingsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrustedAccessRoleBindingsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AgentPoolsUpgradeNodeImageVersionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AgentPoolsUpgradeNodeImageVersionHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const TrustedAccessRoleBindingsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TrustedAccessRoleBindingsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 061872fa5152..097850b51fb2 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ManagedCluster as ManagedClusterMapper, @@ -22,7 +22,7 @@ import { PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateLinkResource as PrivateLinkResourceMapper, Snapshot as SnapshotMapper, - TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper + TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -32,9 +32,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -43,22 +43,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-10-01", + defaultValue: "2023-11-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -67,23 +67,23 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceType: OperationQueryParameter = { @@ -91,9 +91,9 @@ export const resourceType: OperationQueryParameter = { mapper: { serializedName: "resource-type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -101,14 +101,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName: OperationURLParameter = { @@ -116,17 +116,17 @@ export const resourceName: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp( - "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$" + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), MaxLength: 63, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleName: OperationURLParameter = { @@ -135,9 +135,9 @@ export const roleName: OperationURLParameter = { serializedName: "roleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const serverFqdn: OperationQueryParameter = { @@ -145,9 +145,9 @@ export const serverFqdn: OperationQueryParameter = { mapper: { serializedName: "server-fqdn", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format: OperationQueryParameter = { @@ -155,9 +155,9 @@ export const format: OperationQueryParameter = { mapper: { serializedName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -167,34 +167,34 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ManagedClusterMapper + mapper: ManagedClusterMapper, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: TagsObjectMapper + mapper: TagsObjectMapper, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ManagedClusterServicePrincipalProfileMapper + mapper: ManagedClusterServicePrincipalProfileMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ManagedClusterAADProfileMapper + mapper: ManagedClusterAADProfileMapper, }; export const requestPayload: OperationParameter = { parameterPath: "requestPayload", - mapper: RunCommandRequestMapper + mapper: RunCommandRequestMapper, }; export const commandId: OperationURLParameter = { @@ -203,9 +203,9 @@ export const commandId: OperationURLParameter = { serializedName: "commandId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const mode: OperationURLParameter = { @@ -213,17 +213,17 @@ export const mode: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp( - "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$" + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$", ), MaxLength: 24, - MinLength: 1 + MinLength: 1, }, serializedName: "mode", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -232,10 +232,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const configName: OperationURLParameter = { @@ -244,14 +244,14 @@ export const configName: OperationURLParameter = { serializedName: "configName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: MaintenanceConfigurationMapper + mapper: MaintenanceConfigurationMapper, }; export const agentPoolName: OperationURLParameter = { @@ -260,19 +260,19 @@ export const agentPoolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-z][a-z0-9]{0,11}$"), MaxLength: 12, - MinLength: 1 + MinLength: 1, }, serializedName: "agentPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: AgentPoolMapper + mapper: AgentPoolMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -281,24 +281,24 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: PrivateLinkResourceMapper + mapper: PrivateLinkResourceMapper, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; export const trustedAccessRoleBindingName: OperationURLParameter = { @@ -307,17 +307,17 @@ export const trustedAccessRoleBindingName: OperationURLParameter = { constraints: { Pattern: new RegExp("^([A-Za-z0-9-])+$"), MaxLength: 24, - MinLength: 1 + MinLength: 1, }, serializedName: "trustedAccessRoleBindingName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const trustedAccessRoleBinding: OperationParameter = { parameterPath: "trustedAccessRoleBinding", - mapper: TrustedAccessRoleBindingMapper + mapper: TrustedAccessRoleBindingMapper, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index 93a09ecc6cf9..d74719a3fc8a 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -16,7 +16,7 @@ import { ContainerServiceClient } from "../containerServiceClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -37,7 +37,7 @@ import { AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams, - AgentPoolsListNextResponse + AgentPoolsListNextResponse, } from "../models"; /// @@ -62,7 +62,7 @@ export class AgentPoolsImpl implements AgentPools { public list( resourceGroupName: string, resourceName: string, - options?: AgentPoolsListOptionalParams + options?: AgentPoolsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -80,9 +80,9 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, options?: AgentPoolsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AgentPoolsListResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +106,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class AgentPoolsImpl implements AgentPools { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: AgentPoolsListOptionalParams + options?: AgentPoolsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsAbortLatestOperationOptionalParams + options?: AgentPoolsAbortLatestOperationOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -151,21 +151,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -174,8 +173,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -183,15 +182,15 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, agentPoolName, options }, - spec: abortLatestOperationOperationSpec + spec: abortLatestOperationOperationSpec, }); const poller = await createHttpPoller< AgentPoolsAbortLatestOperationResponse, @@ -199,7 +198,7 @@ export class AgentPoolsImpl implements AgentPools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -218,13 +217,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsAbortLatestOperationOptionalParams + options?: AgentPoolsAbortLatestOperationOptionalParams, ): Promise { const poller = await this.beginAbortLatestOperation( resourceGroupName, resourceName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -238,11 +237,11 @@ export class AgentPoolsImpl implements AgentPools { private _list( resourceGroupName: string, resourceName: string, - options?: AgentPoolsListOptionalParams + options?: AgentPoolsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -257,11 +256,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsGetOptionalParams + options?: AgentPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, agentPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -278,7 +277,7 @@ export class AgentPoolsImpl implements AgentPools { resourceName: string, agentPoolName: string, parameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -287,21 +286,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -310,8 +308,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -319,8 +317,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -331,16 +329,16 @@ export class AgentPoolsImpl implements AgentPools { resourceName, agentPoolName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AgentPoolsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -359,14 +357,14 @@ export class AgentPoolsImpl implements AgentPools { resourceName: string, agentPoolName: string, parameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, agentPoolName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -382,7 +380,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams + options?: AgentPoolsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -391,21 +389,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -414,8 +411,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -423,22 +420,22 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, agentPoolName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< AgentPoolsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams + options?: AgentPoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -477,11 +474,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsGetUpgradeProfileOptionalParams + options?: AgentPoolsGetUpgradeProfileOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, agentPoolName, options }, - getUpgradeProfileOperationSpec + getUpgradeProfileOperationSpec, ); } @@ -496,11 +493,11 @@ export class AgentPoolsImpl implements AgentPools { getAvailableAgentPoolVersions( resourceGroupName: string, resourceName: string, - options?: AgentPoolsGetAvailableAgentPoolVersionsOptionalParams + options?: AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getAvailableAgentPoolVersionsOperationSpec + getAvailableAgentPoolVersionsOperationSpec, ); } @@ -517,25 +514,24 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsUpgradeNodeImageVersionOptionalParams + options?: AgentPoolsUpgradeNodeImageVersionOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -544,8 +540,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -553,20 +549,20 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, agentPoolName, options }, - spec: upgradeNodeImageVersionOperationSpec + spec: upgradeNodeImageVersionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -585,13 +581,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsUpgradeNodeImageVersionOptionalParams + options?: AgentPoolsUpgradeNodeImageVersionOptionalParams, ): Promise { const poller = await this.beginUpgradeNodeImageVersion( resourceGroupName, resourceName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -607,11 +603,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, resourceName: string, nextLink: string, - options?: AgentPoolsListNextOptionalParams + options?: AgentPoolsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -619,25 +615,24 @@ export class AgentPoolsImpl implements AgentPools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const abortLatestOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/agentPools/{agentPoolName}/abort", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders + headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders, }, 201: { - headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders + headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders, }, 202: { - headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders + headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders, }, 204: { - headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders + headersMapper: Mappers.AgentPoolsAbortLatestOperationHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -645,44 +640,42 @@ const abortLatestOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolListResult + bodyMapper: Mappers.AgentPoolListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -690,31 +683,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 201: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 202: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 204: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -723,32 +715,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.AgentPoolsDeleteHeaders + headersMapper: Mappers.AgentPoolsDeleteHeaders, }, 201: { - headersMapper: Mappers.AgentPoolsDeleteHeaders + headersMapper: Mappers.AgentPoolsDeleteHeaders, }, 202: { - headersMapper: Mappers.AgentPoolsDeleteHeaders + headersMapper: Mappers.AgentPoolsDeleteHeaders, }, 204: { - headersMapper: Mappers.AgentPoolsDeleteHeaders + headersMapper: Mappers.AgentPoolsDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -756,22 +747,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getUpgradeProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolUpgradeProfile + bodyMapper: Mappers.AgentPoolUpgradeProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -779,36 +769,34 @@ const getUpgradeProfileOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAvailableAgentPoolVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolAvailableVersions + bodyMapper: Mappers.AgentPoolAvailableVersions, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const upgradeNodeImageVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion", httpMethod: "POST", responses: { 200: {}, @@ -816,8 +804,8 @@ const upgradeNodeImageVersionOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -825,29 +813,29 @@ const upgradeNodeImageVersionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolListResult + bodyMapper: Mappers.AgentPoolListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts b/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts index bd6ef33158a6..ce0c73cbf52c 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts @@ -23,13 +23,14 @@ import { MaintenanceConfigurationsCreateOrUpdateOptionalParams, MaintenanceConfigurationsCreateOrUpdateResponse, MaintenanceConfigurationsDeleteOptionalParams, - MaintenanceConfigurationsListByManagedClusterNextResponse + MaintenanceConfigurationsListByManagedClusterNextResponse, } from "../models"; /// /** Class containing MaintenanceConfigurations operations. */ export class MaintenanceConfigurationsImpl - implements MaintenanceConfigurations { + implements MaintenanceConfigurations +{ private readonly client: ContainerServiceClient; /** @@ -49,12 +50,12 @@ export class MaintenanceConfigurationsImpl public listByManagedCluster( resourceGroupName: string, resourceName: string, - options?: MaintenanceConfigurationsListByManagedClusterOptionalParams + options?: MaintenanceConfigurationsListByManagedClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByManagedClusterPagingAll( resourceGroupName, resourceName, - options + options, ); return { next() { @@ -71,9 +72,9 @@ export class MaintenanceConfigurationsImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +82,7 @@ export class MaintenanceConfigurationsImpl resourceGroupName: string, resourceName: string, options?: MaintenanceConfigurationsListByManagedClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MaintenanceConfigurationsListByManagedClusterResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +90,7 @@ export class MaintenanceConfigurationsImpl result = await this._listByManagedCluster( resourceGroupName, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +102,7 @@ export class MaintenanceConfigurationsImpl resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +114,12 @@ export class MaintenanceConfigurationsImpl private async *listByManagedClusterPagingAll( resourceGroupName: string, resourceName: string, - options?: MaintenanceConfigurationsListByManagedClusterOptionalParams + options?: MaintenanceConfigurationsListByManagedClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByManagedClusterPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -133,11 +134,11 @@ export class MaintenanceConfigurationsImpl private _listByManagedCluster( resourceGroupName: string, resourceName: string, - options?: MaintenanceConfigurationsListByManagedClusterOptionalParams + options?: MaintenanceConfigurationsListByManagedClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listByManagedClusterOperationSpec + listByManagedClusterOperationSpec, ); } @@ -152,11 +153,11 @@ export class MaintenanceConfigurationsImpl resourceGroupName: string, resourceName: string, configName: string, - options?: MaintenanceConfigurationsGetOptionalParams + options?: MaintenanceConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, configName, options }, - getOperationSpec + getOperationSpec, ); } @@ -173,11 +174,11 @@ export class MaintenanceConfigurationsImpl resourceName: string, configName: string, parameters: MaintenanceConfiguration, - options?: MaintenanceConfigurationsCreateOrUpdateOptionalParams + options?: MaintenanceConfigurationsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, configName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -192,11 +193,11 @@ export class MaintenanceConfigurationsImpl resourceGroupName: string, resourceName: string, configName: string, - options?: MaintenanceConfigurationsDeleteOptionalParams + options?: MaintenanceConfigurationsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, configName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -211,11 +212,11 @@ export class MaintenanceConfigurationsImpl resourceGroupName: string, resourceName: string, nextLink: string, - options?: MaintenanceConfigurationsListByManagedClusterNextOptionalParams + options?: MaintenanceConfigurationsListByManagedClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listByManagedClusterNextOperationSpec + listByManagedClusterNextOperationSpec, ); } } @@ -223,38 +224,36 @@ export class MaintenanceConfigurationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByManagedClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MaintenanceConfigurationListResult + bodyMapper: Mappers.MaintenanceConfigurationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MaintenanceConfiguration + bodyMapper: Mappers.MaintenanceConfiguration, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -262,25 +261,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.configName + Parameters.configName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.MaintenanceConfiguration + bodyMapper: Mappers.MaintenanceConfiguration, }, 201: { - bodyMapper: Mappers.MaintenanceConfiguration + bodyMapper: Mappers.MaintenanceConfiguration, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -289,22 +287,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.configName + Parameters.configName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/maintenanceConfigurations/{configName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -312,29 +309,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.configName + Parameters.configName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByManagedClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MaintenanceConfigurationListResult + bodyMapper: Mappers.MaintenanceConfigurationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index 77b621d7d4a8..165ece62430a 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -16,7 +16,7 @@ import { ContainerServiceClient } from "../containerServiceClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -89,7 +89,7 @@ import { ManagedClustersListByResourceGroupNextResponse, ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse, ManagedClustersListMeshRevisionProfilesNextResponse, - ManagedClustersListMeshUpgradeProfilesNextResponse + ManagedClustersListMeshUpgradeProfilesNextResponse, } from "../models"; /// @@ -110,7 +110,7 @@ export class ManagedClustersImpl implements ManagedClusters { * @param options The options parameters. */ public list( - options?: ManagedClustersListOptionalParams + options?: ManagedClustersListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -125,13 +125,13 @@ export class ManagedClustersImpl implements ManagedClusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ManagedClustersListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedClustersListResponse; let continuationToken = settings?.continuationToken; @@ -152,7 +152,7 @@ export class ManagedClustersImpl implements ManagedClusters { } private async *listPagingAll( - options?: ManagedClustersListOptionalParams + options?: ManagedClustersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -166,7 +166,7 @@ export class ManagedClustersImpl implements ManagedClusters { */ public listByResourceGroup( resourceGroupName: string, - options?: ManagedClustersListByResourceGroupOptionalParams + options?: ManagedClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -183,16 +183,16 @@ export class ManagedClustersImpl implements ManagedClusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -207,7 +207,7 @@ export class ManagedClustersImpl implements ManagedClusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -218,11 +218,11 @@ export class ManagedClustersImpl implements ManagedClusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ManagedClustersListByResourceGroupOptionalParams + options?: ManagedClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -238,12 +238,12 @@ export class ManagedClustersImpl implements ManagedClusters { public listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams + options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName, resourceName, - options + options, ); return { next() { @@ -260,9 +260,9 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -270,7 +270,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedClustersListOutboundNetworkDependenciesEndpointsResponse; let continuationToken = settings?.continuationToken; @@ -278,7 +278,7 @@ export class ManagedClustersImpl implements ManagedClusters { result = await this._listOutboundNetworkDependenciesEndpoints( resourceGroupName, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -290,7 +290,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -302,12 +302,12 @@ export class ManagedClustersImpl implements ManagedClusters { private async *listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams + options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -321,7 +321,7 @@ export class ManagedClustersImpl implements ManagedClusters { */ public listMeshRevisionProfiles( location: string, - options?: ManagedClustersListMeshRevisionProfilesOptionalParams + options?: ManagedClustersListMeshRevisionProfilesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listMeshRevisionProfilesPagingAll(location, options); return { @@ -338,16 +338,16 @@ export class ManagedClustersImpl implements ManagedClusters { return this.listMeshRevisionProfilesPagingPage( location, options, - settings + settings, ); - } + }, }; } private async *listMeshRevisionProfilesPagingPage( location: string, options?: ManagedClustersListMeshRevisionProfilesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedClustersListMeshRevisionProfilesResponse; let continuationToken = settings?.continuationToken; @@ -362,7 +362,7 @@ export class ManagedClustersImpl implements ManagedClusters { result = await this._listMeshRevisionProfilesNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -373,11 +373,11 @@ export class ManagedClustersImpl implements ManagedClusters { private async *listMeshRevisionProfilesPagingAll( location: string, - options?: ManagedClustersListMeshRevisionProfilesOptionalParams + options?: ManagedClustersListMeshRevisionProfilesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listMeshRevisionProfilesPagingPage( location, - options + options, )) { yield* page; } @@ -392,12 +392,12 @@ export class ManagedClustersImpl implements ManagedClusters { public listMeshUpgradeProfiles( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListMeshUpgradeProfilesOptionalParams + options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listMeshUpgradeProfilesPagingAll( resourceGroupName, resourceName, - options + options, ); return { next() { @@ -414,9 +414,9 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -424,7 +424,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedClustersListMeshUpgradeProfilesResponse; let continuationToken = settings?.continuationToken; @@ -432,7 +432,7 @@ export class ManagedClustersImpl implements ManagedClusters { result = await this._listMeshUpgradeProfiles( resourceGroupName, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -444,7 +444,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -456,12 +456,12 @@ export class ManagedClustersImpl implements ManagedClusters { private async *listMeshUpgradeProfilesPagingAll( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListMeshUpgradeProfilesOptionalParams + options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listMeshUpgradeProfilesPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -474,11 +474,11 @@ export class ManagedClustersImpl implements ManagedClusters { */ getOSOptions( location: string, - options?: ManagedClustersGetOSOptionsOptionalParams + options?: ManagedClustersGetOSOptionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - getOSOptionsOperationSpec + getOSOptionsOperationSpec, ); } @@ -490,11 +490,11 @@ export class ManagedClustersImpl implements ManagedClusters { */ listKubernetesVersions( location: string, - options?: ManagedClustersListKubernetesVersionsOptionalParams + options?: ManagedClustersListKubernetesVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listKubernetesVersionsOperationSpec + listKubernetesVersionsOperationSpec, ); } @@ -503,7 +503,7 @@ export class ManagedClustersImpl implements ManagedClusters { * @param options The options parameters. */ private _list( - options?: ManagedClustersListOptionalParams + options?: ManagedClustersListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -515,11 +515,11 @@ export class ManagedClustersImpl implements ManagedClusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: ManagedClustersListByResourceGroupOptionalParams + options?: ManagedClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -532,11 +532,11 @@ export class ManagedClustersImpl implements ManagedClusters { getUpgradeProfile( resourceGroupName: string, resourceName: string, - options?: ManagedClustersGetUpgradeProfileOptionalParams + options?: ManagedClustersGetUpgradeProfileOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getUpgradeProfileOperationSpec + getUpgradeProfileOperationSpec, ); } @@ -555,11 +555,11 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, roleName: string, - options?: ManagedClustersGetAccessProfileOptionalParams + options?: ManagedClustersGetAccessProfileOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, roleName, options }, - getAccessProfileOperationSpec + getAccessProfileOperationSpec, ); } @@ -572,11 +572,11 @@ export class ManagedClustersImpl implements ManagedClusters { listClusterAdminCredentials( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListClusterAdminCredentialsOptionalParams + options?: ManagedClustersListClusterAdminCredentialsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listClusterAdminCredentialsOperationSpec + listClusterAdminCredentialsOperationSpec, ); } @@ -589,11 +589,11 @@ export class ManagedClustersImpl implements ManagedClusters { listClusterUserCredentials( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListClusterUserCredentialsOptionalParams + options?: ManagedClustersListClusterUserCredentialsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listClusterUserCredentialsOperationSpec + listClusterUserCredentialsOperationSpec, ); } @@ -606,11 +606,11 @@ export class ManagedClustersImpl implements ManagedClusters { listClusterMonitoringUserCredentials( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListClusterMonitoringUserCredentialsOptionalParams + options?: ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listClusterMonitoringUserCredentialsOperationSpec + listClusterMonitoringUserCredentialsOperationSpec, ); } @@ -623,11 +623,11 @@ export class ManagedClustersImpl implements ManagedClusters { get( resourceGroupName: string, resourceName: string, - options?: ManagedClustersGetOptionalParams + options?: ManagedClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -642,7 +642,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedCluster, - options?: ManagedClustersCreateOrUpdateOptionalParams + options?: ManagedClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -651,21 +651,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -674,8 +673,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -683,22 +682,22 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ManagedClustersCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -715,13 +714,13 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedCluster, - options?: ManagedClustersCreateOrUpdateOptionalParams + options?: ManagedClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -737,7 +736,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: TagsObject, - options?: ManagedClustersUpdateTagsOptionalParams + options?: ManagedClustersUpdateTagsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -746,21 +745,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -769,8 +767,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -778,22 +776,22 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: updateTagsOperationSpec + spec: updateTagsOperationSpec, }); const poller = await createHttpPoller< ManagedClustersUpdateTagsResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -810,13 +808,13 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: TagsObject, - options?: ManagedClustersUpdateTagsOptionalParams + options?: ManagedClustersUpdateTagsOptionalParams, ): Promise { const poller = await this.beginUpdateTags( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -830,7 +828,7 @@ export class ManagedClustersImpl implements ManagedClusters { async beginDelete( resourceGroupName: string, resourceName: string, - options?: ManagedClustersDeleteOptionalParams + options?: ManagedClustersDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -839,21 +837,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -862,8 +859,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -871,22 +868,22 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< ManagedClustersDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -901,12 +898,12 @@ export class ManagedClustersImpl implements ManagedClusters { async beginDeleteAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersDeleteOptionalParams + options?: ManagedClustersDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -922,25 +919,24 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterServicePrincipalProfile, - options?: ManagedClustersResetServicePrincipalProfileOptionalParams + options?: ManagedClustersResetServicePrincipalProfileOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -949,8 +945,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -958,20 +954,20 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: resetServicePrincipalProfileOperationSpec + spec: resetServicePrincipalProfileOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -988,13 +984,13 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterServicePrincipalProfile, - options?: ManagedClustersResetServicePrincipalProfileOptionalParams + options?: ManagedClustersResetServicePrincipalProfileOptionalParams, ): Promise { const poller = await this.beginResetServicePrincipalProfile( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1011,25 +1007,24 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterAADProfile, - options?: ManagedClustersResetAADProfileOptionalParams + options?: ManagedClustersResetAADProfileOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1038,8 +1033,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1047,20 +1042,20 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, parameters, options }, - spec: resetAADProfileOperationSpec + spec: resetAADProfileOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1078,13 +1073,13 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterAADProfile, - options?: ManagedClustersResetAADProfileOptionalParams + options?: ManagedClustersResetAADProfileOptionalParams, ): Promise { const poller = await this.beginResetAADProfile( resourceGroupName, resourceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1099,7 +1094,7 @@ export class ManagedClustersImpl implements ManagedClusters { async beginRotateClusterCertificates( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams + options?: ManagedClustersRotateClusterCertificatesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1108,21 +1103,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1131,8 +1125,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1140,15 +1134,15 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: rotateClusterCertificatesOperationSpec + spec: rotateClusterCertificatesOperationSpec, }); const poller = await createHttpPoller< ManagedClustersRotateClusterCertificatesResponse, @@ -1156,7 +1150,7 @@ export class ManagedClustersImpl implements ManagedClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1172,12 +1166,12 @@ export class ManagedClustersImpl implements ManagedClusters { async beginRotateClusterCertificatesAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams + options?: ManagedClustersRotateClusterCertificatesOptionalParams, ): Promise { const poller = await this.beginRotateClusterCertificates( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -1193,7 +1187,7 @@ export class ManagedClustersImpl implements ManagedClusters { async beginAbortLatestOperation( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams + options?: ManagedClustersAbortLatestOperationOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1202,21 +1196,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1225,8 +1218,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1234,15 +1227,15 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: abortLatestOperationOperationSpec + spec: abortLatestOperationOperationSpec, }); const poller = await createHttpPoller< ManagedClustersAbortLatestOperationResponse, @@ -1250,7 +1243,7 @@ export class ManagedClustersImpl implements ManagedClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1267,12 +1260,12 @@ export class ManagedClustersImpl implements ManagedClusters { async beginAbortLatestOperationAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams + options?: ManagedClustersAbortLatestOperationOptionalParams, ): Promise { const poller = await this.beginAbortLatestOperation( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -1286,7 +1279,7 @@ export class ManagedClustersImpl implements ManagedClusters { async beginRotateServiceAccountSigningKeys( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams + options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1295,21 +1288,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1318,8 +1310,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1327,15 +1319,15 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: rotateServiceAccountSigningKeysOperationSpec + spec: rotateServiceAccountSigningKeysOperationSpec, }); const poller = await createHttpPoller< ManagedClustersRotateServiceAccountSigningKeysResponse, @@ -1343,7 +1335,7 @@ export class ManagedClustersImpl implements ManagedClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1358,12 +1350,12 @@ export class ManagedClustersImpl implements ManagedClusters { async beginRotateServiceAccountSigningKeysAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams + options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ): Promise { const poller = await this.beginRotateServiceAccountSigningKeys( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -1381,7 +1373,7 @@ export class ManagedClustersImpl implements ManagedClusters { async beginStop( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStopOptionalParams + options?: ManagedClustersStopOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1390,21 +1382,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1413,8 +1404,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1422,15 +1413,15 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: stopOperationSpec + spec: stopOperationSpec, }); const poller = await createHttpPoller< ManagedClustersStopResponse, @@ -1438,7 +1429,7 @@ export class ManagedClustersImpl implements ManagedClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1457,12 +1448,12 @@ export class ManagedClustersImpl implements ManagedClusters { async beginStopAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStopOptionalParams + options?: ManagedClustersStopOptionalParams, ): Promise { const poller = await this.beginStop( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -1477,7 +1468,7 @@ export class ManagedClustersImpl implements ManagedClusters { async beginStart( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStartOptionalParams + options?: ManagedClustersStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1486,21 +1477,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1509,8 +1499,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1518,15 +1508,15 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller< ManagedClustersStartResponse, @@ -1534,7 +1524,7 @@ export class ManagedClustersImpl implements ManagedClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1550,12 +1540,12 @@ export class ManagedClustersImpl implements ManagedClusters { async beginStartAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStartOptionalParams + options?: ManagedClustersStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, resourceName, - options + options, ); return poller.pollUntilDone(); } @@ -1573,7 +1563,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, requestPayload: RunCommandRequest, - options?: ManagedClustersRunCommandOptionalParams + options?: ManagedClustersRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1582,21 +1572,20 @@ export class ManagedClustersImpl implements ManagedClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1605,8 +1594,8 @@ export class ManagedClustersImpl implements ManagedClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1614,15 +1603,15 @@ export class ManagedClustersImpl implements ManagedClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, resourceName, requestPayload, options }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< ManagedClustersRunCommandResponse, @@ -1630,7 +1619,7 @@ export class ManagedClustersImpl implements ManagedClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1649,13 +1638,13 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, requestPayload: RunCommandRequest, - options?: ManagedClustersRunCommandOptionalParams + options?: ManagedClustersRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, resourceName, requestPayload, - options + options, ); return poller.pollUntilDone(); } @@ -1671,11 +1660,11 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, commandId: string, - options?: ManagedClustersGetCommandResultOptionalParams + options?: ManagedClustersGetCommandResultOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, commandId, options }, - getCommandResultOperationSpec + getCommandResultOperationSpec, ); } @@ -1689,11 +1678,11 @@ export class ManagedClustersImpl implements ManagedClusters { private _listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams + options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec, ); } @@ -1705,11 +1694,11 @@ export class ManagedClustersImpl implements ManagedClusters { */ private _listMeshRevisionProfiles( location: string, - options?: ManagedClustersListMeshRevisionProfilesOptionalParams + options?: ManagedClustersListMeshRevisionProfilesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listMeshRevisionProfilesOperationSpec + listMeshRevisionProfilesOperationSpec, ); } @@ -1723,11 +1712,11 @@ export class ManagedClustersImpl implements ManagedClusters { getMeshRevisionProfile( location: string, mode: string, - options?: ManagedClustersGetMeshRevisionProfileOptionalParams + options?: ManagedClustersGetMeshRevisionProfileOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, mode, options }, - getMeshRevisionProfileOperationSpec + getMeshRevisionProfileOperationSpec, ); } @@ -1740,11 +1729,11 @@ export class ManagedClustersImpl implements ManagedClusters { private _listMeshUpgradeProfiles( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListMeshUpgradeProfilesOptionalParams + options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listMeshUpgradeProfilesOperationSpec + listMeshUpgradeProfilesOperationSpec, ); } @@ -1759,11 +1748,11 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, mode: string, - options?: ManagedClustersGetMeshUpgradeProfileOptionalParams + options?: ManagedClustersGetMeshUpgradeProfileOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, mode, options }, - getMeshUpgradeProfileOperationSpec + getMeshUpgradeProfileOperationSpec, ); } @@ -1774,11 +1763,11 @@ export class ManagedClustersImpl implements ManagedClusters { */ private _listNext( nextLink: string, - options?: ManagedClustersListNextOptionalParams + options?: ManagedClustersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1791,11 +1780,11 @@ export class ManagedClustersImpl implements ManagedClusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ManagedClustersListByResourceGroupNextOptionalParams + options?: ManagedClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -1811,13 +1800,11 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, nextLink: string, - options?: ManagedClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams - ): Promise< - ManagedClustersListOutboundNetworkDependenciesEndpointsNextResponse - > { + options?: ManagedClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listOutboundNetworkDependenciesEndpointsNextOperationSpec + listOutboundNetworkDependenciesEndpointsNextOperationSpec, ); } @@ -1831,11 +1818,11 @@ export class ManagedClustersImpl implements ManagedClusters { private _listMeshRevisionProfilesNext( location: string, nextLink: string, - options?: ManagedClustersListMeshRevisionProfilesNextOptionalParams + options?: ManagedClustersListMeshRevisionProfilesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listMeshRevisionProfilesNextOperationSpec + listMeshRevisionProfilesNextOperationSpec, ); } @@ -1851,11 +1838,11 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, resourceName: string, nextLink: string, - options?: ManagedClustersListMeshUpgradeProfilesNextOptionalParams + options?: ManagedClustersListMeshUpgradeProfilesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listMeshUpgradeProfilesNextOperationSpec + listMeshUpgradeProfilesNextOperationSpec, ); } } @@ -1863,118 +1850,112 @@ export class ManagedClustersImpl implements ManagedClusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOSOptionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSOptionProfile + bodyMapper: Mappers.OSOptionProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.resourceType], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKubernetesVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesVersionListResult + bodyMapper: Mappers.KubernetesVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedClusterListResult + bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedClusterListResult + bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getUpgradeProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedClusterUpgradeProfile + bodyMapper: Mappers.ManagedClusterUpgradeProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAccessProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ManagedClusterAccessProfile + bodyMapper: Mappers.ManagedClusterAccessProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1982,123 +1963,119 @@ const getAccessProfileOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.roleName + Parameters.roleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listClusterAdminCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CredentialResults + bodyMapper: Mappers.CredentialResults, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.serverFqdn], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listClusterUserCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CredentialResults + bodyMapper: Mappers.CredentialResults, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.serverFqdn, - Parameters.format + Parameters.format, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listClusterMonitoringUserCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CredentialResults +const listClusterMonitoringUserCredentialsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CredentialResults, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion, Parameters.serverFqdn], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion, Parameters.serverFqdn], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, 201: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, 202: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, 204: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -2106,32 +2083,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, 201: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, 202: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, 204: { - bodyMapper: Mappers.ManagedCluster + bodyMapper: Mappers.ManagedCluster, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -2139,46 +2115,44 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.ManagedClustersDeleteHeaders + headersMapper: Mappers.ManagedClustersDeleteHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersDeleteHeaders + headersMapper: Mappers.ManagedClustersDeleteHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersDeleteHeaders + headersMapper: Mappers.ManagedClustersDeleteHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersDeleteHeaders + headersMapper: Mappers.ManagedClustersDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resetServicePrincipalProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", httpMethod: "POST", responses: { 200: {}, @@ -2186,8 +2160,8 @@ const resetServicePrincipalProfileOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -2195,15 +2169,14 @@ const resetServicePrincipalProfileOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const resetAADProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", httpMethod: "POST", responses: { 200: {}, @@ -2211,8 +2184,8 @@ const resetAADProfileOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -2220,191 +2193,185 @@ const resetAADProfileOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const rotateClusterCertificatesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders + headersMapper: Mappers.ManagedClustersRotateClusterCertificatesHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const abortLatestOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclusters/{resourceName}/abort", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders + headersMapper: Mappers.ManagedClustersAbortLatestOperationHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const rotateServiceAccountSigningKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys", httpMethod: "POST", responses: { 200: { headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders + Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, 201: { headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders + Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, 202: { headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders + Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, 204: { headersMapper: - Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders + Mappers.ManagedClustersRotateServiceAccountSigningKeysHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedClustersStopHeaders + headersMapper: Mappers.ManagedClustersStopHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersStopHeaders + headersMapper: Mappers.ManagedClustersStopHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersStopHeaders + headersMapper: Mappers.ManagedClustersStopHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersStopHeaders + headersMapper: Mappers.ManagedClustersStopHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedClustersStartHeaders + headersMapper: Mappers.ManagedClustersStartHeaders, }, 201: { - headersMapper: Mappers.ManagedClustersStartHeaders + headersMapper: Mappers.ManagedClustersStartHeaders, }, 202: { - headersMapper: Mappers.ManagedClustersStartHeaders + headersMapper: Mappers.ManagedClustersStartHeaders, }, 204: { - headersMapper: Mappers.ManagedClustersStartHeaders + headersMapper: Mappers.ManagedClustersStartHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.requestPayload, queryParameters: [Parameters.apiVersion], @@ -2412,26 +2379,25 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getCommandResultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - headersMapper: Mappers.ManagedClustersGetCommandResultHeaders + headersMapper: Mappers.ManagedClustersGetCommandResultHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2439,109 +2405,105 @@ const getCommandResultOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.commandId + Parameters.commandId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listMeshRevisionProfilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MeshRevisionProfileList + bodyMapper: Mappers.MeshRevisionProfileList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getMeshRevisionProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MeshRevisionProfile + bodyMapper: Mappers.MeshRevisionProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.mode + Parameters.mode, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listMeshUpgradeProfilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MeshUpgradeProfileList + bodyMapper: Mappers.MeshUpgradeProfileList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getMeshUpgradeProfileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles/{mode}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles/{mode}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MeshUpgradeProfile + bodyMapper: Mappers.MeshUpgradeProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2549,109 +2511,110 @@ const getMeshUpgradeProfileOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.mode + Parameters.mode, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedClusterListResult + bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedClusterListResult + bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listMeshRevisionProfilesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MeshRevisionProfileList + bodyMapper: Mappers.MeshRevisionProfileList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listMeshUpgradeProfilesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MeshUpgradeProfileList + bodyMapper: Mappers.MeshUpgradeProfileList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/operations.ts b/sdk/containerservice/arm-containerservice/src/operations/operations.ts index 91d06c477e95..294871c993ae 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/operations.ts @@ -15,7 +15,7 @@ import { ContainerServiceClient } from "../containerServiceClient"; import { OperationValue, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts index 756c2e8b547a..e022b354a4af 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts @@ -14,7 +14,7 @@ import { ContainerServiceClient } from "../containerServiceClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -25,12 +25,13 @@ import { PrivateEndpointConnection, PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: ContainerServiceClient; /** @@ -50,11 +51,11 @@ export class PrivateEndpointConnectionsImpl list( resourceGroupName: string, resourceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -69,16 +70,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -95,7 +96,7 @@ export class PrivateEndpointConnectionsImpl resourceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateOptionalParams + options?: PrivateEndpointConnectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -103,9 +104,9 @@ export class PrivateEndpointConnectionsImpl resourceName, privateEndpointConnectionName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -120,25 +121,24 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -147,8 +147,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -156,8 +156,8 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -167,13 +167,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, resourceName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -190,13 +190,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -205,38 +205,36 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -244,25 +242,24 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -271,15 +268,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -287,8 +283,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -296,8 +292,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts index 4ab432060b63..77e701f07d28 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ContainerServiceClient } from "../containerServiceClient"; import { PrivateLinkResourcesListOptionalParams, - PrivateLinkResourcesListResponse + PrivateLinkResourcesListResponse, } from "../models"; /** Class containing PrivateLinkResources operations. */ @@ -37,11 +37,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { list( resourceGroupName: string, resourceName: string, - options?: PrivateLinkResourcesListOptionalParams + options?: PrivateLinkResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourcesListResult + bodyMapper: Mappers.PrivateLinkResourcesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts index acf373660e42..f7bb489fbe84 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts @@ -14,12 +14,13 @@ import { ContainerServiceClient } from "../containerServiceClient"; import { PrivateLinkResource, ResolvePrivateLinkServiceIdPostOptionalParams, - ResolvePrivateLinkServiceIdPostResponse + ResolvePrivateLinkServiceIdPostResponse, } from "../models"; /** Class containing ResolvePrivateLinkServiceId operations. */ export class ResolvePrivateLinkServiceIdImpl - implements ResolvePrivateLinkServiceId { + implements ResolvePrivateLinkServiceId +{ private readonly client: ContainerServiceClient; /** @@ -41,11 +42,11 @@ export class ResolvePrivateLinkServiceIdImpl resourceGroupName: string, resourceName: string, parameters: PrivateLinkResource, - options?: ResolvePrivateLinkServiceIdPostOptionalParams + options?: ResolvePrivateLinkServiceIdPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, parameters, options }, - postOperationSpec + postOperationSpec, ); } } @@ -53,16 +54,15 @@ export class ResolvePrivateLinkServiceIdImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const postOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resolvePrivateLinkServiceId", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resolvePrivateLinkServiceId", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -70,9 +70,9 @@ const postOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts b/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts index 5183a2494e41..23a4396858bb 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts @@ -30,7 +30,7 @@ import { SnapshotsUpdateTagsResponse, SnapshotsDeleteOptionalParams, SnapshotsListNextResponse, - SnapshotsListByResourceGroupNextResponse + SnapshotsListByResourceGroupNextResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ public list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -66,13 +66,13 @@ export class SnapshotsImpl implements Snapshots { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: SnapshotsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class SnapshotsImpl implements Snapshots { } private async *listPagingAll( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -107,7 +107,7 @@ export class SnapshotsImpl implements Snapshots { */ public listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -124,16 +124,16 @@ export class SnapshotsImpl implements Snapshots { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -148,7 +148,7 @@ export class SnapshotsImpl implements Snapshots { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,11 +159,11 @@ export class SnapshotsImpl implements Snapshots { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -174,7 +174,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ private _list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -186,11 +186,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -203,11 +203,11 @@ export class SnapshotsImpl implements Snapshots { get( resourceGroupName: string, resourceName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -222,11 +222,11 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, resourceName: string, parameters: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -241,11 +241,11 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, resourceName: string, parameters: TagsObject, - options?: SnapshotsUpdateTagsOptionalParams + options?: SnapshotsUpdateTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, parameters, options }, - updateTagsOperationSpec + updateTagsOperationSpec, ); } @@ -258,11 +258,11 @@ export class SnapshotsImpl implements Snapshots { delete( resourceGroupName: string, resourceName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listNext( nextLink: string, - options?: SnapshotsListNextOptionalParams + options?: SnapshotsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -290,11 +290,11 @@ export class SnapshotsImpl implements Snapshots { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SnapshotsListByResourceGroupNextOptionalParams + options?: SnapshotsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -302,79 +302,75 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotListResult + bodyMapper: Mappers.SnapshotListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotListResult + bodyMapper: Mappers.SnapshotListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -382,23 +378,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -406,69 +401,68 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotListResult + bodyMapper: Mappers.SnapshotListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotListResult + bodyMapper: Mappers.SnapshotListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts index 4ca27f58aebc..556469714997 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts @@ -16,7 +16,7 @@ import { ContainerServiceClient } from "../containerServiceClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { TrustedAccessRoleBindingsCreateOrUpdateResponse, TrustedAccessRoleBindingsDeleteOptionalParams, TrustedAccessRoleBindingsDeleteResponse, - TrustedAccessRoleBindingsListNextResponse + TrustedAccessRoleBindingsListNextResponse, } from "../models"; /// /** Class containing TrustedAccessRoleBindings operations. */ export class TrustedAccessRoleBindingsImpl - implements TrustedAccessRoleBindings { + implements TrustedAccessRoleBindings +{ private readonly client: ContainerServiceClient; /** @@ -56,7 +57,7 @@ export class TrustedAccessRoleBindingsImpl public list( resourceGroupName: string, resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams + options?: TrustedAccessRoleBindingsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -74,9 +75,9 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName: string, resourceName: string, options?: TrustedAccessRoleBindingsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TrustedAccessRoleBindingsListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +101,7 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +113,12 @@ export class TrustedAccessRoleBindingsImpl private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams + options?: TrustedAccessRoleBindingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -132,11 +133,11 @@ export class TrustedAccessRoleBindingsImpl private _list( resourceGroupName: string, resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams + options?: TrustedAccessRoleBindingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -151,16 +152,16 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsGetOptionalParams + options?: TrustedAccessRoleBindingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, trustedAccessRoleBindingName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -177,7 +178,7 @@ export class TrustedAccessRoleBindingsImpl resourceName: string, trustedAccessRoleBindingName: string, trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams + options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -186,21 +187,20 @@ export class TrustedAccessRoleBindingsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -209,8 +209,8 @@ export class TrustedAccessRoleBindingsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -218,8 +218,8 @@ export class TrustedAccessRoleBindingsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -230,16 +230,16 @@ export class TrustedAccessRoleBindingsImpl resourceName, trustedAccessRoleBindingName, trustedAccessRoleBinding, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< TrustedAccessRoleBindingsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -258,14 +258,14 @@ export class TrustedAccessRoleBindingsImpl resourceName: string, trustedAccessRoleBindingName: string, trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams + options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, resourceName, trustedAccessRoleBindingName, trustedAccessRoleBinding, - options + options, ); return poller.pollUntilDone(); } @@ -281,7 +281,7 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams + options?: TrustedAccessRoleBindingsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -290,21 +290,20 @@ export class TrustedAccessRoleBindingsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -313,8 +312,8 @@ export class TrustedAccessRoleBindingsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -322,8 +321,8 @@ export class TrustedAccessRoleBindingsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -333,16 +332,16 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName, resourceName, trustedAccessRoleBindingName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< TrustedAccessRoleBindingsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -359,13 +358,13 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams + options?: TrustedAccessRoleBindingsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, resourceName, trustedAccessRoleBindingName, - options + options, ); return poller.pollUntilDone(); } @@ -381,11 +380,11 @@ export class TrustedAccessRoleBindingsImpl resourceGroupName: string, resourceName: string, nextLink: string, - options?: TrustedAccessRoleBindingsListNextOptionalParams + options?: TrustedAccessRoleBindingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -393,38 +392,36 @@ export class TrustedAccessRoleBindingsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrustedAccessRoleBindingListResult + bodyMapper: Mappers.TrustedAccessRoleBindingListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrustedAccessRoleBinding + bodyMapper: Mappers.TrustedAccessRoleBinding, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -432,31 +429,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.trustedAccessRoleBindingName + Parameters.trustedAccessRoleBindingName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TrustedAccessRoleBinding + bodyMapper: Mappers.TrustedAccessRoleBinding, }, 201: { - bodyMapper: Mappers.TrustedAccessRoleBinding + bodyMapper: Mappers.TrustedAccessRoleBinding, }, 202: { - bodyMapper: Mappers.TrustedAccessRoleBinding + bodyMapper: Mappers.TrustedAccessRoleBinding, }, 204: { - bodyMapper: Mappers.TrustedAccessRoleBinding + bodyMapper: Mappers.TrustedAccessRoleBinding, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.trustedAccessRoleBinding, queryParameters: [Parameters.apiVersion], @@ -465,32 +461,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.trustedAccessRoleBindingName + Parameters.trustedAccessRoleBindingName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders + headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders, }, 201: { - headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders + headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders, }, 202: { - headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders + headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders, }, 204: { - headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders + headersMapper: Mappers.TrustedAccessRoleBindingsDeleteHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -498,29 +493,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.trustedAccessRoleBindingName + Parameters.trustedAccessRoleBindingName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrustedAccessRoleBindingListResult + bodyMapper: Mappers.TrustedAccessRoleBindingListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts index e9c174c32a18..bf0853edc83e 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts @@ -18,7 +18,7 @@ import { TrustedAccessRolesListNextOptionalParams, TrustedAccessRolesListOptionalParams, TrustedAccessRolesListResponse, - TrustedAccessRolesListNextResponse + TrustedAccessRolesListNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { */ public list( location: string, - options?: TrustedAccessRolesListOptionalParams + options?: TrustedAccessRolesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -56,14 +56,14 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: TrustedAccessRolesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TrustedAccessRolesListResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { private async *listPagingAll( location: string, - options?: TrustedAccessRolesListOptionalParams + options?: TrustedAccessRolesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -99,11 +99,11 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { */ private _list( location: string, - options?: TrustedAccessRolesListOptionalParams + options?: TrustedAccessRolesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -116,11 +116,11 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { private _listNext( location: string, nextLink: string, - options?: TrustedAccessRolesListNextOptionalParams + options?: TrustedAccessRolesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -128,43 +128,42 @@ export class TrustedAccessRolesImpl implements TrustedAccessRoles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/trustedAccessRoles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrustedAccessRoleListResult + bodyMapper: Mappers.TrustedAccessRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrustedAccessRoleListResult + bodyMapper: Mappers.TrustedAccessRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts index 23803fbd6c74..aba7242cfed5 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts @@ -23,7 +23,7 @@ import { AgentPoolsGetUpgradeProfileResponse, AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, - AgentPoolsUpgradeNodeImageVersionOptionalParams + AgentPoolsUpgradeNodeImageVersionOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface AgentPools { list( resourceGroupName: string, resourceName: string, - options?: AgentPoolsListOptionalParams + options?: AgentPoolsListOptionalParams, ): PagedAsyncIterableIterator; /** * Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a @@ -53,7 +53,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsAbortLatestOperationOptionalParams + options?: AgentPoolsAbortLatestOperationOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -73,7 +73,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsAbortLatestOperationOptionalParams + options?: AgentPoolsAbortLatestOperationOptionalParams, ): Promise; /** * Gets the specified managed cluster agent pool. @@ -86,7 +86,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsGetOptionalParams + options?: AgentPoolsGetOptionalParams, ): Promise; /** * Creates or updates an agent pool in the specified managed cluster. @@ -101,7 +101,7 @@ export interface AgentPools { resourceName: string, agentPoolName: string, parameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -121,7 +121,7 @@ export interface AgentPools { resourceName: string, agentPoolName: string, parameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an agent pool in the specified managed cluster. @@ -134,7 +134,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams + options?: AgentPoolsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -152,7 +152,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams + options?: AgentPoolsDeleteOptionalParams, ): Promise; /** * Gets the upgrade profile for an agent pool. @@ -165,7 +165,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsGetUpgradeProfileOptionalParams + options?: AgentPoolsGetUpgradeProfileOptionalParams, ): Promise; /** * See [supported Kubernetes @@ -178,7 +178,7 @@ export interface AgentPools { getAvailableAgentPoolVersions( resourceGroupName: string, resourceName: string, - options?: AgentPoolsGetAvailableAgentPoolVersionsOptionalParams + options?: AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, ): Promise; /** * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the @@ -193,7 +193,7 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsUpgradeNodeImageVersionOptionalParams + options?: AgentPoolsUpgradeNodeImageVersionOptionalParams, ): Promise, void>>; /** * Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the @@ -208,6 +208,6 @@ export interface AgentPools { resourceGroupName: string, resourceName: string, agentPoolName: string, - options?: AgentPoolsUpgradeNodeImageVersionOptionalParams + options?: AgentPoolsUpgradeNodeImageVersionOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts index 19374d823d3d..ec723f04f1bf 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts @@ -14,7 +14,7 @@ import { MaintenanceConfigurationsGetResponse, MaintenanceConfigurationsCreateOrUpdateOptionalParams, MaintenanceConfigurationsCreateOrUpdateResponse, - MaintenanceConfigurationsDeleteOptionalParams + MaintenanceConfigurationsDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface MaintenanceConfigurations { listByManagedCluster( resourceGroupName: string, resourceName: string, - options?: MaintenanceConfigurationsListByManagedClusterOptionalParams + options?: MaintenanceConfigurationsListByManagedClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified maintenance configuration of a managed cluster. @@ -42,7 +42,7 @@ export interface MaintenanceConfigurations { resourceGroupName: string, resourceName: string, configName: string, - options?: MaintenanceConfigurationsGetOptionalParams + options?: MaintenanceConfigurationsGetOptionalParams, ): Promise; /** * Creates or updates a maintenance configuration in the specified managed cluster. @@ -57,7 +57,7 @@ export interface MaintenanceConfigurations { resourceName: string, configName: string, parameters: MaintenanceConfiguration, - options?: MaintenanceConfigurationsCreateOrUpdateOptionalParams + options?: MaintenanceConfigurationsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a maintenance configuration. @@ -70,6 +70,6 @@ export interface MaintenanceConfigurations { resourceGroupName: string, resourceName: string, configName: string, - options?: MaintenanceConfigurationsDeleteOptionalParams + options?: MaintenanceConfigurationsDeleteOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts index 532578092db8..a64630f29071 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -63,7 +63,7 @@ import { ManagedClustersGetMeshRevisionProfileOptionalParams, ManagedClustersGetMeshRevisionProfileResponse, ManagedClustersGetMeshUpgradeProfileOptionalParams, - ManagedClustersGetMeshUpgradeProfileResponse + ManagedClustersGetMeshUpgradeProfileResponse, } from "../models"; /// @@ -74,7 +74,7 @@ export interface ManagedClusters { * @param options The options parameters. */ list( - options?: ManagedClustersListOptionalParams + options?: ManagedClustersListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists managed clusters in the specified subscription and resource group. @@ -83,7 +83,7 @@ export interface ManagedClusters { */ listByResourceGroup( resourceGroupName: string, - options?: ManagedClustersListByResourceGroupOptionalParams + options?: ManagedClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified @@ -95,7 +95,7 @@ export interface ManagedClusters { listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams + options?: ManagedClustersListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator; /** * Contains extra metadata on each revision, including supported revisions, cluster compatibility and @@ -105,7 +105,7 @@ export interface ManagedClusters { */ listMeshRevisionProfiles( location: string, - options?: ManagedClustersListMeshRevisionProfilesOptionalParams + options?: ManagedClustersListMeshRevisionProfilesOptionalParams, ): PagedAsyncIterableIterator; /** * Lists available upgrades for all service meshes in a specific cluster. @@ -116,7 +116,7 @@ export interface ManagedClusters { listMeshUpgradeProfiles( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListMeshUpgradeProfilesOptionalParams + options?: ManagedClustersListMeshUpgradeProfilesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets supported OS options in the specified subscription. @@ -125,7 +125,7 @@ export interface ManagedClusters { */ getOSOptions( location: string, - options?: ManagedClustersGetOSOptionsOptionalParams + options?: ManagedClustersGetOSOptionsOptionalParams, ): Promise; /** * Contains extra metadata on the version, including supported patch versions, capabilities, available @@ -135,7 +135,7 @@ export interface ManagedClusters { */ listKubernetesVersions( location: string, - options?: ManagedClustersListKubernetesVersionsOptionalParams + options?: ManagedClustersListKubernetesVersionsOptionalParams, ): Promise; /** * Gets the upgrade profile of a managed cluster. @@ -146,7 +146,7 @@ export interface ManagedClusters { getUpgradeProfile( resourceGroupName: string, resourceName: string, - options?: ManagedClustersGetUpgradeProfileOptionalParams + options?: ManagedClustersGetUpgradeProfileOptionalParams, ): Promise; /** * **WARNING**: This API will be deprecated. Instead use @@ -163,7 +163,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, roleName: string, - options?: ManagedClustersGetAccessProfileOptionalParams + options?: ManagedClustersGetAccessProfileOptionalParams, ): Promise; /** * Lists the admin credentials of a managed cluster. @@ -174,7 +174,7 @@ export interface ManagedClusters { listClusterAdminCredentials( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListClusterAdminCredentialsOptionalParams + options?: ManagedClustersListClusterAdminCredentialsOptionalParams, ): Promise; /** * Lists the user credentials of a managed cluster. @@ -185,7 +185,7 @@ export interface ManagedClusters { listClusterUserCredentials( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListClusterUserCredentialsOptionalParams + options?: ManagedClustersListClusterUserCredentialsOptionalParams, ): Promise; /** * Lists the cluster monitoring user credentials of a managed cluster. @@ -196,7 +196,7 @@ export interface ManagedClusters { listClusterMonitoringUserCredentials( resourceGroupName: string, resourceName: string, - options?: ManagedClustersListClusterMonitoringUserCredentialsOptionalParams + options?: ManagedClustersListClusterMonitoringUserCredentialsOptionalParams, ): Promise; /** * Gets a managed cluster. @@ -207,7 +207,7 @@ export interface ManagedClusters { get( resourceGroupName: string, resourceName: string, - options?: ManagedClustersGetOptionalParams + options?: ManagedClustersGetOptionalParams, ): Promise; /** * Creates or updates a managed cluster. @@ -220,7 +220,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedCluster, - options?: ManagedClustersCreateOrUpdateOptionalParams + options?: ManagedClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -238,7 +238,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedCluster, - options?: ManagedClustersCreateOrUpdateOptionalParams + options?: ManagedClustersCreateOrUpdateOptionalParams, ): Promise; /** * Updates tags on a managed cluster. @@ -251,7 +251,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: TagsObject, - options?: ManagedClustersUpdateTagsOptionalParams + options?: ManagedClustersUpdateTagsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -269,7 +269,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: TagsObject, - options?: ManagedClustersUpdateTagsOptionalParams + options?: ManagedClustersUpdateTagsOptionalParams, ): Promise; /** * Deletes a managed cluster. @@ -280,7 +280,7 @@ export interface ManagedClusters { beginDelete( resourceGroupName: string, resourceName: string, - options?: ManagedClustersDeleteOptionalParams + options?: ManagedClustersDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -296,7 +296,7 @@ export interface ManagedClusters { beginDeleteAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersDeleteOptionalParams + options?: ManagedClustersDeleteOptionalParams, ): Promise; /** * This action cannot be performed on a cluster that is not using a service principal @@ -309,7 +309,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterServicePrincipalProfile, - options?: ManagedClustersResetServicePrincipalProfileOptionalParams + options?: ManagedClustersResetServicePrincipalProfileOptionalParams, ): Promise, void>>; /** * This action cannot be performed on a cluster that is not using a service principal @@ -322,7 +322,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterServicePrincipalProfile, - options?: ManagedClustersResetServicePrincipalProfileOptionalParams + options?: ManagedClustersResetServicePrincipalProfileOptionalParams, ): Promise; /** * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory @@ -336,7 +336,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterAADProfile, - options?: ManagedClustersResetAADProfileOptionalParams + options?: ManagedClustersResetAADProfileOptionalParams, ): Promise, void>>; /** * **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory @@ -350,7 +350,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, parameters: ManagedClusterAADProfile, - options?: ManagedClustersResetAADProfileOptionalParams + options?: ManagedClustersResetAADProfileOptionalParams, ): Promise; /** * See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more @@ -362,7 +362,7 @@ export interface ManagedClusters { beginRotateClusterCertificates( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams + options?: ManagedClustersRotateClusterCertificatesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -379,7 +379,7 @@ export interface ManagedClusters { beginRotateClusterCertificatesAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateClusterCertificatesOptionalParams + options?: ManagedClustersRotateClusterCertificatesOptionalParams, ): Promise; /** * Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to @@ -392,7 +392,7 @@ export interface ManagedClusters { beginAbortLatestOperation( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams + options?: ManagedClustersAbortLatestOperationOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,7 +410,7 @@ export interface ManagedClusters { beginAbortLatestOperationAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersAbortLatestOperationOptionalParams + options?: ManagedClustersAbortLatestOperationOptionalParams, ): Promise; /** * Rotates the service account signing keys of a managed cluster. @@ -421,7 +421,7 @@ export interface ManagedClusters { beginRotateServiceAccountSigningKeys( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams + options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -437,7 +437,7 @@ export interface ManagedClusters { beginRotateServiceAccountSigningKeysAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams + options?: ManagedClustersRotateServiceAccountSigningKeysOptionalParams, ): Promise; /** * This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster @@ -452,7 +452,7 @@ export interface ManagedClusters { beginStop( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStopOptionalParams + options?: ManagedClustersStopOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -472,7 +472,7 @@ export interface ManagedClusters { beginStopAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStopOptionalParams + options?: ManagedClustersStopOptionalParams, ): Promise; /** * See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details @@ -484,7 +484,7 @@ export interface ManagedClusters { beginStart( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStartOptionalParams + options?: ManagedClustersStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -501,7 +501,7 @@ export interface ManagedClusters { beginStartAndWait( resourceGroupName: string, resourceName: string, - options?: ManagedClustersStartOptionalParams + options?: ManagedClustersStartOptionalParams, ): Promise; /** * AKS will create a pod to run the command. This is primarily useful for private clusters. For more @@ -516,7 +516,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, requestPayload: RunCommandRequest, - options?: ManagedClustersRunCommandOptionalParams + options?: ManagedClustersRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -536,7 +536,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, requestPayload: RunCommandRequest, - options?: ManagedClustersRunCommandOptionalParams + options?: ManagedClustersRunCommandOptionalParams, ): Promise; /** * Gets the results of a command which has been run on the Managed Cluster. @@ -549,7 +549,7 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, commandId: string, - options?: ManagedClustersGetCommandResultOptionalParams + options?: ManagedClustersGetCommandResultOptionalParams, ): Promise; /** * Contains extra metadata on the revision, including supported revisions, cluster compatibility and @@ -561,7 +561,7 @@ export interface ManagedClusters { getMeshRevisionProfile( location: string, mode: string, - options?: ManagedClustersGetMeshRevisionProfileOptionalParams + options?: ManagedClustersGetMeshRevisionProfileOptionalParams, ): Promise; /** * Gets available upgrades for a service mesh in a cluster. @@ -574,6 +574,6 @@ export interface ManagedClusters { resourceGroupName: string, resourceName: string, mode: string, - options?: ManagedClustersGetMeshUpgradeProfileOptionalParams + options?: ManagedClustersGetMeshUpgradeProfileOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts index abf12272e585..f029e334e169 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts index f2c0e6ba668f..ab0893503fd4 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts @@ -15,7 +15,7 @@ import { PrivateEndpointConnection, PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /** Interface representing a PrivateEndpointConnections. */ @@ -29,7 +29,7 @@ export interface PrivateEndpointConnections { list( resourceGroupName: string, resourceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): Promise; /** * To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters @@ -42,7 +42,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Updates a private endpoint connection. @@ -57,7 +57,7 @@ export interface PrivateEndpointConnections { resourceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateOptionalParams + options?: PrivateEndpointConnectionsUpdateOptionalParams, ): Promise; /** * Deletes a private endpoint connection. @@ -70,7 +70,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a private endpoint connection. @@ -83,6 +83,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts index b2412c048a1f..ac80e2b1cb40 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts @@ -8,7 +8,7 @@ import { PrivateLinkResourcesListOptionalParams, - PrivateLinkResourcesListResponse + PrivateLinkResourcesListResponse, } from "../models"; /** Interface representing a PrivateLinkResources. */ @@ -22,6 +22,6 @@ export interface PrivateLinkResources { list( resourceGroupName: string, resourceName: string, - options?: PrivateLinkResourcesListOptionalParams + options?: PrivateLinkResourcesListOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts index cad325dd5630..9ca373d32fbc 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts @@ -9,7 +9,7 @@ import { PrivateLinkResource, ResolvePrivateLinkServiceIdPostOptionalParams, - ResolvePrivateLinkServiceIdPostResponse + ResolvePrivateLinkServiceIdPostResponse, } from "../models"; /** Interface representing a ResolvePrivateLinkServiceId. */ @@ -25,6 +25,6 @@ export interface ResolvePrivateLinkServiceId { resourceGroupName: string, resourceName: string, parameters: PrivateLinkResource, - options?: ResolvePrivateLinkServiceIdPostOptionalParams + options?: ResolvePrivateLinkServiceIdPostOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts index 1240edf93e3e..23f95090a64d 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts @@ -18,7 +18,7 @@ import { TagsObject, SnapshotsUpdateTagsOptionalParams, SnapshotsUpdateTagsResponse, - SnapshotsDeleteOptionalParams + SnapshotsDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface Snapshots { * @param options The options parameters. */ list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists snapshots in the specified subscription and resource group. @@ -38,7 +38,7 @@ export interface Snapshots { */ listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a snapshot. @@ -49,7 +49,7 @@ export interface Snapshots { get( resourceGroupName: string, resourceName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Creates or updates a snapshot. @@ -62,7 +62,7 @@ export interface Snapshots { resourceGroupName: string, resourceName: string, parameters: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise; /** * Updates tags on a snapshot. @@ -75,7 +75,7 @@ export interface Snapshots { resourceGroupName: string, resourceName: string, parameters: TagsObject, - options?: SnapshotsUpdateTagsOptionalParams + options?: SnapshotsUpdateTagsOptionalParams, ): Promise; /** * Deletes a snapshot. @@ -86,6 +86,6 @@ export interface Snapshots { delete( resourceGroupName: string, resourceName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts index 7144598f35f8..2a94884b7bf9 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts @@ -16,7 +16,7 @@ import { TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, TrustedAccessRoleBindingsCreateOrUpdateResponse, TrustedAccessRoleBindingsDeleteOptionalParams, - TrustedAccessRoleBindingsDeleteResponse + TrustedAccessRoleBindingsDeleteResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface TrustedAccessRoleBindings { list( resourceGroupName: string, resourceName: string, - options?: TrustedAccessRoleBindingsListOptionalParams + options?: TrustedAccessRoleBindingsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a trusted access role binding. @@ -44,7 +44,7 @@ export interface TrustedAccessRoleBindings { resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsGetOptionalParams + options?: TrustedAccessRoleBindingsGetOptionalParams, ): Promise; /** * Create or update a trusted access role binding @@ -59,7 +59,7 @@ export interface TrustedAccessRoleBindings { resourceName: string, trustedAccessRoleBindingName: string, trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams + options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -79,7 +79,7 @@ export interface TrustedAccessRoleBindings { resourceName: string, trustedAccessRoleBindingName: string, trustedAccessRoleBinding: TrustedAccessRoleBinding, - options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams + options?: TrustedAccessRoleBindingsCreateOrUpdateOptionalParams, ): Promise; /** * Delete a trusted access role binding. @@ -92,7 +92,7 @@ export interface TrustedAccessRoleBindings { resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams + options?: TrustedAccessRoleBindingsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -110,6 +110,6 @@ export interface TrustedAccessRoleBindings { resourceGroupName: string, resourceName: string, trustedAccessRoleBindingName: string, - options?: TrustedAccessRoleBindingsDeleteOptionalParams + options?: TrustedAccessRoleBindingsDeleteOptionalParams, ): Promise; } diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts index 6186e604d8c9..433d485af540 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TrustedAccessRole, - TrustedAccessRolesListOptionalParams + TrustedAccessRolesListOptionalParams, } from "../models"; /// @@ -22,6 +22,6 @@ export interface TrustedAccessRoles { */ list( location: string, - options?: TrustedAccessRolesListOptionalParams + options?: TrustedAccessRolesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/containerservice/arm-containerservice/src/pagingHelper.ts b/sdk/containerservice/arm-containerservice/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/containerservice/arm-containerservice/src/pagingHelper.ts +++ b/sdk/containerservice/arm-containerservice/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/containerservice/arm-containerservice/test/sampleTest.ts b/sdk/containerservice/arm-containerservice/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/test/sampleTest.ts @@ -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. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index 5bad5556bbfd..3e6ae96443f3 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-containerservice": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"