Skip to content

Commit 89c63ed

Browse files
authored
[Automation] Generate SDK based on TypeSpec 0.31.5 (Azure#45845)
1 parent a022fbe commit 89c63ed

14 files changed

+472
-16
lines changed

eng/emitter-package-lock.json

Lines changed: 26 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/emitter-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"main": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-java": "0.31.4"
4+
"@azure-tools/typespec-java": "0.31.5"
55
},
66
"devDependencies": {
77
"@azure-tools/typespec-autorest": "0.57.0",
88
"@azure-tools/typespec-azure-core": "0.57.0",
99
"@azure-tools/typespec-azure-resource-manager": "0.57.0",
1010
"@azure-tools/typespec-azure-rulesets": "0.57.0",
11-
"@azure-tools/typespec-client-generator-core": "0.57.1",
11+
"@azure-tools/typespec-client-generator-core": "0.57.2",
1212
"@azure-tools/typespec-liftr-base": "0.8.0",
1313
"@typespec/compiler": "1.1.0",
1414
"@typespec/http": "1.1.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent;
8+
9+
/**
10+
* Samples for ManagedClusters GetFaultSimulation.
11+
*/
12+
public final class ManagedClustersGetFaultSimulationSamples {
13+
/*
14+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json
15+
*/
16+
/**
17+
* Sample code: Get Managed Cluster Fault Simulation.
18+
*
19+
* @param manager Entry point to ServiceFabricManagedClustersManager.
20+
*/
21+
public static void getManagedClusterFaultSimulation(
22+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
23+
manager.managedClusters()
24+
.getFaultSimulationWithResponse("resRg", "myCluster",
25+
new FaultSimulationIdContent().withSimulationId("aec13cc2-1d39-4ba6-a1a8-2fc35b00643c"),
26+
com.azure.core.util.Context.NONE);
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
/**
8+
* Samples for ManagedClusters ListFaultSimulation.
9+
*/
10+
public final class ManagedClustersListFaultSimulationSamples {
11+
/*
12+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json
13+
*/
14+
/**
15+
* Sample code: List Managed Cluster Fault Simulation.
16+
*
17+
* @param manager Entry point to ServiceFabricManagedClustersManager.
18+
*/
19+
public static void listManagedClusterFaultSimulation(
20+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
21+
manager.managedClusters().listFaultSimulation("resRg", "myCluster", com.azure.core.util.Context.NONE);
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationContentWrapper;
8+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.ZoneFaultSimulationContent;
9+
import java.util.Arrays;
10+
11+
/**
12+
* Samples for ManagedClusters StartFaultSimulation.
13+
*/
14+
public final class ManagedClustersStartFaultSimulationSamples {
15+
/*
16+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json
17+
*/
18+
/**
19+
* Sample code: Start Managed Cluster Fault Simulation.
20+
*
21+
* @param manager Entry point to ServiceFabricManagedClustersManager.
22+
*/
23+
public static void startManagedClusterFaultSimulation(
24+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
25+
manager.managedClusters()
26+
.startFaultSimulation("resRg", "myCluster", new FaultSimulationContentWrapper().withParameters(
27+
new ZoneFaultSimulationContent().withZones(Arrays.asList("2"))), com.azure.core.util.Context.NONE);
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent;
8+
9+
/**
10+
* Samples for ManagedClusters StopFaultSimulation.
11+
*/
12+
public final class ManagedClustersStopFaultSimulationSamples {
13+
/*
14+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json
15+
*/
16+
/**
17+
* Sample code: Stop Managed Cluster Fault Simulation.
18+
*
19+
* @param manager Entry point to ServiceFabricManagedClustersManager.
20+
*/
21+
public static void stopManagedClusterFaultSimulation(
22+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
23+
manager.managedClusters()
24+
.stopFaultSimulation("resRg", "myCluster",
25+
new FaultSimulationIdContent().withSimulationId("1bb61ba9-8a41-4d73-b5f0-7fc93b1edfe3"),
26+
com.azure.core.util.Context.NONE);
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent;
8+
9+
/**
10+
* Samples for NodeTypes GetFaultSimulation.
11+
*/
12+
public final class NodeTypesGetFaultSimulationSamples {
13+
/*
14+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json
15+
*/
16+
/**
17+
* Sample code: Get Node Type Fault Simulation.
18+
*
19+
* @param manager Entry point to ServiceFabricManagedClustersManager.
20+
*/
21+
public static void getNodeTypeFaultSimulation(
22+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
23+
manager.nodeTypes()
24+
.getFaultSimulationWithResponse("resRg", "myCluster", "BE",
25+
new FaultSimulationIdContent().withSimulationId("aec13cc2-1d39-4ba6-a1a8-2fc35b00643c"),
26+
com.azure.core.util.Context.NONE);
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
/**
8+
* Samples for NodeTypes ListFaultSimulation.
9+
*/
10+
public final class NodeTypesListFaultSimulationSamples {
11+
/*
12+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json
13+
*/
14+
/**
15+
* Sample code: List Node Type Fault Simulation.
16+
*
17+
* @param manager Entry point to ServiceFabricManagedClustersManager.
18+
*/
19+
public static void listNodeTypeFaultSimulation(
20+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
21+
manager.nodeTypes().listFaultSimulation("resRg", "myCluster", "BE", com.azure.core.util.Context.NONE);
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationContentWrapper;
8+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.ZoneFaultSimulationContent;
9+
import java.util.Arrays;
10+
11+
/**
12+
* Samples for NodeTypes StartFaultSimulation.
13+
*/
14+
public final class NodeTypesStartFaultSimulationSamples {
15+
/*
16+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json
17+
*/
18+
/**
19+
* Sample code: Start Node Type Fault Simulation.
20+
*
21+
* @param manager Entry point to ServiceFabricManagedClustersManager.
22+
*/
23+
public static void startNodeTypeFaultSimulation(
24+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
25+
manager.nodeTypes()
26+
.startFaultSimulation("resRg", "myCluster", "BE", new FaultSimulationContentWrapper().withParameters(
27+
new ZoneFaultSimulationContent().withZones(Arrays.asList("2"))), com.azure.core.util.Context.NONE);
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
4+
5+
package com.azure.resourcemanager.servicefabricmanagedclusters.generated;
6+
7+
import com.azure.resourcemanager.servicefabricmanagedclusters.models.FaultSimulationIdContent;
8+
9+
/**
10+
* Samples for NodeTypes StopFaultSimulation.
11+
*/
12+
public final class NodeTypesStopFaultSimulationSamples {
13+
/*
14+
* x-ms-original-file: 2025-03-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json
15+
*/
16+
/**
17+
* Sample code: Stop Node Type Fault Simulation.
18+
*
19+
* @param manager Entry point to ServiceFabricManagedClustersManager.
20+
*/
21+
public static void stopNodeTypeFaultSimulation(
22+
com.azure.resourcemanager.servicefabricmanagedclusters.ServiceFabricManagedClustersManager manager) {
23+
manager.nodeTypes()
24+
.stopFaultSimulation("resRg", "myCluster", "BE",
25+
new FaultSimulationIdContent().withSimulationId("1bb61ba9-8a41-4d73-b5f0-7fc93b1edfe3"),
26+
com.azure.core.util.Context.NONE);
27+
}
28+
}

0 commit comments

Comments
 (0)