Skip to content

Commit 79d43f0

Browse files
authored
add 2026-04-01-preview api (#42060)
* add 2026-04-01-preview api * remove zone identifier files * add tspconfig.yaml and tsp files * modify readme * add record<string> suppression * set suppressions * fix readme * address pr comments * add examples * revert calico change * add hybridaks to v1 suppression * add suppressions.yaml in hybridaks * edit suppressions.yaml * add ts sdk * ts suppression * update reason for v2 suppression
1 parent c1a002d commit 79d43f0

140 files changed

Lines changed: 12835 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
import "./ProvisionedCluster.tsp";
7+
8+
using TypeSpec.Rest;
9+
using Azure.ResourceManager;
10+
using TypeSpec.Http;
11+
using TypeSpec.OpenAPI;
12+
13+
namespace Microsoft.HybridContainerService;
14+
/**
15+
* The agentPool resource definition
16+
*/
17+
@parentResource(ProvisionedCluster)
18+
model AgentPool is ProxyResource<AgentPoolProperties> {
19+
/**
20+
* Parameter for the name of the agent pool in the provisioned cluster.
21+
*/
22+
@maxLength(12)
23+
@minLength(3)
24+
@pattern("^[a-z][a-z0-9]{2,11}$")
25+
@path
26+
@key("agentPoolName")
27+
@segment("agentPools")
28+
@visibility(Lifecycle.Read)
29+
name: string;
30+
31+
/**
32+
* Extended location pointing to the underlying infrastructure
33+
*/
34+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Well-known envelope property"
35+
extendedLocation?: ExtendedLocation;
36+
}
37+
38+
@armResourceOperations
39+
interface AgentPools {
40+
/**
41+
* Gets the specified agent pool in the provisioned cluster
42+
*/
43+
get is ArmResourceRead<
44+
AgentPool,
45+
BaseParameters = ConnectedClusterResourceUriParameters
46+
>;
47+
48+
/**
49+
* Creates or updates the agent pool in the provisioned cluster
50+
*/
51+
createOrUpdate is ArmResourceCreateOrReplaceAsync<
52+
AgentPool,
53+
BaseParameters = ConnectedClusterResourceUriParameters
54+
>;
55+
56+
/**
57+
* Deletes the specified agent pool in the provisioned cluster
58+
*/
59+
delete is ArmResourceDeleteWithoutOkAsync<
60+
AgentPool,
61+
BaseParameters = ConnectedClusterResourceUriParameters
62+
>;
63+
64+
/**
65+
* Gets the list of agent pools in the specified provisioned cluster
66+
*/
67+
listByProvisionedCluster is ArmResourceListByParent<
68+
AgentPool,
69+
BaseParameters = ConnectedClusterResourceUriParameters
70+
>;
71+
}
72+
73+
@@doc(AgentPools.createOrUpdate::parameters.resource,
74+
"Agent Pool resource definition"
75+
);
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
import "./ProvisionedCluster.tsp";
7+
8+
using TypeSpec.Rest;
9+
using Azure.ResourceManager;
10+
using TypeSpec.Http;
11+
using TypeSpec.OpenAPI;
12+
13+
namespace Microsoft.HybridContainerService;
14+
/**
15+
* Defines the hybridIdentityMetadata.
16+
*/
17+
@singleton("default")
18+
@parentResource(ProvisionedCluster)
19+
model HybridIdentityMetadata
20+
is ProxyResource<HybridIdentityMetadataProperties> {
21+
...ResourceNameParameter<
22+
HybridIdentityMetadata,
23+
"hybridIdentityMetadatum",
24+
"hybridIdentityMetadata"
25+
>;
26+
}
27+
28+
@armResourceOperations
29+
interface HybridIdentityMetadataOperationGroup {
30+
/**
31+
* Get the hybrid identity metadata proxy resource.
32+
*/
33+
get is ArmResourceRead<
34+
HybridIdentityMetadata,
35+
BaseParameters = ConnectedClusterResourceUriParameters
36+
>;
37+
38+
/**
39+
* Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning.
40+
*/
41+
create is ArmResourceCreateOrReplaceSync<
42+
HybridIdentityMetadata,
43+
BaseParameters = ConnectedClusterResourceUriParameters
44+
>;
45+
46+
/**
47+
* Deletes the hybrid identity metadata proxy resource.
48+
*/
49+
delete is ArmResourceDeleteWithoutOkAsync<
50+
HybridIdentityMetadata,
51+
BaseParameters = ConnectedClusterResourceUriParameters
52+
>;
53+
54+
/**
55+
* Lists the hybrid identity metadata proxy resource in a provisioned cluster instance.
56+
*/
57+
listByCluster is ArmResourceListByParent<
58+
HybridIdentityMetadata,
59+
BaseParameters = ConnectedClusterResourceUriParameters
60+
>;
61+
}
62+
63+
@@doc(HybridIdentityMetadataOperationGroup.create::parameters.resource,
64+
"Hybrid Identity Metadata resource definition"
65+
);
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
using TypeSpec.OpenAPI;
11+
12+
namespace Microsoft.HybridContainerService;
13+
/**
14+
* The supported kubernetes versions.
15+
*/
16+
@singleton("default")
17+
model KubernetesVersionProfile
18+
is ExtensionResource<KubernetesVersionProfileProperties> {
19+
...ResourceNameParameter<
20+
KubernetesVersionProfile,
21+
"kubernetesVersion",
22+
"kubernetesVersions"
23+
>;
24+
25+
/**
26+
* Extended location pointing to the underlying infrastructure
27+
*/
28+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Well-known envelope property"
29+
extendedLocation?: ExtendedLocation;
30+
}
31+
32+
@armResourceOperations
33+
interface KubernetesVersionProfiles {
34+
/**
35+
* Lists the supported kubernetes versions for the specified custom location
36+
*/
37+
getKubernetesVersions is ArmResourceRead<
38+
KubernetesVersionProfile,
39+
BaseParameters = CustomLocationResourceUriParameters
40+
>;
41+
42+
/**
43+
* Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions)
44+
*/
45+
createKubernetesVersions is ArmResourceCreateOrReplaceAsync<
46+
KubernetesVersionProfile,
47+
BaseParameters = CustomLocationResourceUriParameters
48+
>;
49+
50+
/**
51+
* Delete the default kubernetes versions resource type
52+
*/
53+
deleteKubernetesVersions is ArmResourceDeleteWithoutOkAsync<
54+
KubernetesVersionProfile,
55+
BaseParameters = CustomLocationResourceUriParameters
56+
>;
57+
58+
/**
59+
* Lists the supported kubernetes versions for the specified custom location
60+
*/
61+
list is ArmResourceListByParent<
62+
KubernetesVersionProfile,
63+
BaseParameters = CustomLocationResourceUriParameters
64+
>;
65+
}
66+
67+
@@doc(KubernetesVersionProfiles.createKubernetesVersions::parameters.resource,
68+
"Kubernetes Versions resource definition"
69+
);
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
using TypeSpec.OpenAPI;
11+
12+
namespace Microsoft.HybridContainerService;
13+
/**
14+
* The provisioned cluster resource definition.
15+
*/
16+
@singleton("default")
17+
model ProvisionedCluster is ExtensionResource<ProvisionedClusterProperties> {
18+
...ResourceNameParameter<
19+
ProvisionedCluster,
20+
"provisionedClusterInstance",
21+
"provisionedClusterInstances"
22+
>;
23+
24+
/**
25+
* Extended location pointing to the underlying infrastructure
26+
*/
27+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" ""
28+
extendedLocation?: ExtendedLocation;
29+
}
30+
31+
@armResourceOperations
32+
interface ProvisionedClusters {
33+
/**
34+
* Gets the provisioned cluster instance
35+
*/
36+
get is ArmResourceRead<
37+
ProvisionedCluster,
38+
BaseParameters = ConnectedClusterResourceUriParameters
39+
>;
40+
41+
/**
42+
* Creates or updates the provisioned cluster instance
43+
*/
44+
createOrUpdate is ArmResourceCreateOrReplaceAsync<
45+
ProvisionedCluster,
46+
BaseParameters = ConnectedClusterResourceUriParameters
47+
>;
48+
49+
/**
50+
* Deletes the provisioned cluster instance
51+
*/
52+
delete is ArmResourceDeleteWithoutOkAsync<
53+
ProvisionedCluster,
54+
BaseParameters = ConnectedClusterResourceUriParameters
55+
>;
56+
57+
/**
58+
* Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster
59+
*/
60+
list is ArmResourceListByParent<
61+
ProvisionedCluster,
62+
BaseParameters = ConnectedClusterResourceUriParameters
63+
>;
64+
65+
/**
66+
* Lists the user credentials of the provisioned cluster (can only be used within private network)
67+
*/
68+
listUserKubeconfig is ArmResourceActionAsync<
69+
ProvisionedCluster,
70+
void,
71+
ListCredentialResponse,
72+
BaseParameters = ConnectedClusterResourceUriParameters
73+
>;
74+
75+
/**
76+
* Lists the admin credentials of the provisioned cluster (can only be used within private network)
77+
*/
78+
listAdminKubeconfig is ArmResourceActionAsync<
79+
ProvisionedCluster,
80+
void,
81+
ListCredentialResponse,
82+
BaseParameters = ConnectedClusterResourceUriParameters
83+
>;
84+
}
85+
86+
@@doc(ProvisionedClusters.createOrUpdate::parameters.resource,
87+
"Provisioned Cluster resource definition"
88+
);
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
import "./ProvisionedCluster.tsp";
7+
8+
using TypeSpec.Rest;
9+
using Azure.ResourceManager;
10+
using TypeSpec.Http;
11+
using TypeSpec.OpenAPI;
12+
13+
namespace Microsoft.HybridContainerService;
14+
/**
15+
* The list of available kubernetes version upgrades for the provisioned cluster.
16+
*/
17+
@singleton("default")
18+
@parentResource(ProvisionedCluster)
19+
model ProvisionedClusterUpgradeProfile
20+
is ProxyResource<ProvisionedClusterUpgradeProfileProperties> {
21+
...ResourceNameParameter<
22+
ProvisionedClusterUpgradeProfile,
23+
"upgradeProfile",
24+
"upgradeProfiles"
25+
>;
26+
}
27+
28+
@armResourceOperations
29+
interface ProvisionedClusterUpgradeProfiles {
30+
/**
31+
* Gets the upgrade profile of a provisioned cluster
32+
*/
33+
getUpgradeProfile is ArmResourceRead<
34+
ProvisionedClusterUpgradeProfile,
35+
BaseParameters = ConnectedClusterResourceUriParameters
36+
>;
37+
38+
/**
39+
* Lists the upgrade profiles of a ProvisionedCluster resource associated with the ConnectedCluster
40+
*/
41+
listUpgradeProfile is ArmResourceListByParent<
42+
ProvisionedClusterUpgradeProfile,
43+
BaseParameters = ConnectedClusterResourceUriParameters
44+
>;
45+
}

0 commit comments

Comments
 (0)