Skip to content

Commit

Permalink
CodeGen from PR 21073 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 7142c5d4daa534f943faa24c4154923f1aefe6ae into 42820a586f2bbe3c356e1bc23610ba93693532e4
  • Loading branch information
SDKAuto committed Oct 12, 2022
1 parent cd42543 commit 81e2a9d
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 67 deletions.
12 changes: 6 additions & 6 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 9 additions & 12 deletions sdk/containerservice/arm-containerservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Release History

## 18.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 18.0.0-beta.2 (2022-09-29)

## 18.0.0-beta.3 (2022-10-12)

**Features**

Expand Down Expand Up @@ -83,6 +73,7 @@
- Added Interface ManagedClusterWorkloadAutoScalerProfileKeda
- Added Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
- Added Interface NetworkProfileForSnapshot
- Added Interface PortRange
- Added Interface TrustedAccessRole
- Added Interface TrustedAccessRoleBinding
- Added Interface TrustedAccessRoleBindingListResult
Expand All @@ -97,6 +88,7 @@
- Added Interface TrustedAccessRolesListOptionalParams
- Added Type Alias BackendPoolType
- Added Type Alias ControlledValues
- Added Type Alias EbpfDataplane
- Added Type Alias FleetMemberProvisioningState
- Added Type Alias FleetMembersCreateOrUpdateResponse
- Added Type Alias FleetMembersGetResponse
Expand All @@ -122,6 +114,7 @@
- Added Type Alias ManagedClusterSnapshotsUpdateTagsResponse
- Added Type Alias Mode
- Added Type Alias NetworkPluginMode
- Added Type Alias Protocol
- Added Type Alias TrustedAccessRoleBindingProvisioningState
- Added Type Alias TrustedAccessRoleBindingsCreateOrUpdateResponse
- Added Type Alias TrustedAccessRoleBindingsGetResponse
Expand All @@ -136,6 +129,7 @@
- Interface AgentPool has a new optional parameter networkProfile
- Interface AgentPool has a new optional parameter windowsProfile
- Interface AgentPoolsDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget
- Interface ContainerServiceNetworkProfile has a new optional parameter ebpfDataplane
- Interface ContainerServiceNetworkProfile has a new optional parameter kubeProxyConfig
- Interface ContainerServiceNetworkProfile has a new optional parameter networkPluginMode
- Interface ManagedCluster has a new optional parameter azureMonitorProfile
Expand All @@ -155,6 +149,7 @@
- Interface ManagedClusterHttpProxyConfig has a new optional parameter effectiveNoProxy
- Interface ManagedClusterLoadBalancerProfile has a new optional parameter backendPoolType
- Interface ManagedClustersDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget
- Interface ManagedClusterSecurityProfile has a new optional parameter customCATrustCertificates
- Interface ManagedClusterSecurityProfile has a new optional parameter imageCleaner
- Interface ManagedClusterSecurityProfile has a new optional parameter nodeRestriction
- Interface ManagedClusterSecurityProfile has a new optional parameter workloadIdentity
Expand All @@ -167,12 +162,14 @@
- Class ContainerServiceClient has a new parameter trustedAccessRoles
- Added Enum KnownBackendPoolType
- Added Enum KnownControlledValues
- Added Enum KnownEbpfDataplane
- Added Enum KnownFleetMemberProvisioningState
- Added Enum KnownFleetProvisioningState
- Added Enum KnownIpvsScheduler
- Added Enum KnownLevel
- Added Enum KnownMode
- Added Enum KnownNetworkPluginMode
- Added Enum KnownProtocol
- Added Enum KnownTrustedAccessRoleBindingProvisioningState
- Added Enum KnownUpdateMode
- Enum KnownOssku has a new value Mariner
Expand Down
8 changes: 4 additions & 4 deletions sdk/containerservice/arm-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "065b070773ed6fa98ede768ad602f4c4d2edf739",
"commit": "9d27c64811d8c6b953dfab8d2ddc26f96269f990",
"readme": "specification/containerservice/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --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\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.3",
"use": "@autorest/typescript@6.0.0-rc.1"
}
16 changes: 4 additions & 12 deletions sdk/containerservice/arm-containerservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-containerservice.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.6.0",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
Expand Down Expand Up @@ -109,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export type AgentPoolMode = string;

// @public
export interface AgentPoolNetworkProfile {
allowedHostPorts?: PortRange[];
applicationSecurityGroups?: string[];
nodePublicIPTags?: IPTag[];
}

Expand Down Expand Up @@ -307,6 +309,7 @@ export interface ContainerServiceMasterProfile {
export interface ContainerServiceNetworkProfile {
dnsServiceIP?: string;
dockerBridgeCidr?: string;
ebpfDataplane?: EbpfDataplane;
ipFamilies?: IpFamily[];
kubeProxyConfig?: ContainerServiceNetworkProfileKubeProxyConfig;
loadBalancerProfile?: ManagedClusterLoadBalancerProfile;
Expand Down Expand Up @@ -385,6 +388,9 @@ export interface CredentialResults {
readonly kubeconfigs?: CredentialResult[];
}

// @public
export type EbpfDataplane = string;

// @public
export interface EndpointDependency {
domainName?: string;
Expand Down Expand Up @@ -877,6 +883,11 @@ export enum KnownCreatedByType {
User = "User"
}

// @public
export enum KnownEbpfDataplane {
Cilium = "cilium"
}

// @public
export enum KnownExpander {
LeastWaste = "least-waste",
Expand Down Expand Up @@ -1054,6 +1065,12 @@ export enum KnownPrivateEndpointConnectionProvisioningState {
Succeeded = "Succeeded"
}

// @public
export enum KnownProtocol {
TCP = "TCP",
UDP = "UDP"
}

// @public
export enum KnownPublicNetworkAccess {
Disabled = "Disabled",
Expand Down Expand Up @@ -1618,6 +1635,7 @@ export interface ManagedClustersDeleteOptionalParams extends coreClient.Operatio
// @public
export interface ManagedClusterSecurityProfile {
azureKeyVaultKms?: AzureKeyVaultKms;
customCATrustCertificates?: Uint8Array[];
defender?: ManagedClusterSecurityProfileDefender;
imageCleaner?: ManagedClusterSecurityProfileImageCleaner;
nodeRestriction?: ManagedClusterSecurityProfileNodeRestriction;
Expand Down Expand Up @@ -2063,6 +2081,13 @@ export interface OutboundEnvironmentEndpointCollection {
// @public
export type OutboundType = string;

// @public
export interface PortRange {
portEnd?: number;
portStart?: number;
protocol?: Protocol;
}

// @public
export interface PowerState {
code?: Code;
Expand Down Expand Up @@ -2160,6 +2185,9 @@ export interface PrivateLinkServiceConnectionState {
status?: ConnectionStatus;
}

// @public
export type Protocol = string;

// @public
export type PublicNetworkAccess = string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,34 +92,27 @@ export class ContainerServiceClient extends coreClient.ServiceClient {
};
super(optionsWithDefaults);

let bearerTokenAuthenticationPolicyFound: boolean = false;
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
(pipelinePolicy) =>
pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName
);
}
if (
!options ||
!options.pipeline ||
options.pipeline.getOrderedPolicies().length == 0 ||
!bearerTokenAuthenticationPolicyFound
) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
credential: credentials,
scopes: `${optionsWithDefaults.credentialScopes}`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
if (!bearerTokenAuthenticationPolicyFound) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
scopes: `${optionsWithDefaults.baseUri}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
}
}
// Parameter assignments
this.subscriptionId = subscriptionId;
Expand Down
Loading

0 comments on commit 81e2a9d

Please sign in to comment.