Skip to content

Commit

Permalink
CodeGen from PR 23744 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e043d850eb9654cb2e9c671f1f19b338144237c8 into 4f6418dca8c15697489bbe6f855558bb79ca5bf5
  • Loading branch information
SDKAuto committed May 4, 2023
1 parent 8e681bd commit 11f091e
Show file tree
Hide file tree
Showing 13 changed files with 494 additions and 126 deletions.
10 changes: 5 additions & 5 deletions common/config/rush/pnpm-lock.yaml

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

37 changes: 27 additions & 10 deletions sdk/chaos/arm-chaos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
# Release History

## 1.0.0-beta.4 (2023-05-04)

**Features**

## 1.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation Experiments.update
- Added Interface ExperimentsUpdateOptionalParams
- Added Interface ExperimentUpdate
- Added Interface ListSelector
- Added Interface QuerySelector
- Added Interface UserAssignedIdentity
- Added Type Alias ExperimentsUpdateResponse
- Added Type Alias SelectorUnion
- Added Type Alias TargetReferenceType
- Interface CapabilityType has a new optional parameter azureRbacActions
- Interface CapabilityType has a new optional parameter azureRbacDataActions
- Interface ResourceIdentity has a new optional parameter userAssignedIdentities
- Added Enum KnownSelectorType
- Added Enum KnownTargetReferenceType

**Breaking Changes**

- Interface Selector no longer has parameter targets
- Type of parameter selectors of interface Experiment is changed from Selector[] to SelectorUnion[]
- Type of parameter type of interface Selector is changed from SelectorType to "List" | "Query"
- Type of parameter type of interface TargetReference is changed from "ChaosTarget" to TargetReferenceType


## 1.0.0-beta.3 (2023-01-12)

**Features**
Expand Down
10 changes: 5 additions & 5 deletions sdk/chaos/arm-chaos/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "5263f0b2ead74031fa567da2700411743da26e7f",
"readme": "specification\\chaos\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\chaos\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true",
"commit": "fb7189f9634df290e506122e6e0f875f6c6b4551",
"readme": "specification/chaos/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --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/chaos/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.4",
"use": "@autorest/typescript@6.0.0-rc.5.20221215.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.0-rc.10"
}
23 changes: 7 additions & 16 deletions sdk/chaos/arm-chaos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -31,13 +31,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^8.2.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -46,8 +46,7 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-cosmosdb": "^15.2.0"
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -110,13 +109,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/chaos/arm-chaos",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-chaos?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/chaos/arm-chaos"
}
66 changes: 60 additions & 6 deletions sdk/chaos/arm-chaos/review/arm-chaos.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export interface CapabilityListResult {

// @public
export interface CapabilityType extends Resource {
azureRbacActions?: string[];
azureRbacDataActions?: string[];
readonly description?: string;
readonly displayName?: string;
readonly kind?: string;
Expand Down Expand Up @@ -231,7 +233,7 @@ export interface ErrorResponse {
// @public
export interface Experiment extends TrackedResource {
identity?: ResourceIdentity;
selectors: Selector[];
selectors: SelectorUnion[];
startOnCreation?: boolean;
steps: Step[];
readonly systemData?: SystemData;
Expand Down Expand Up @@ -303,6 +305,7 @@ export interface Experiments {
listAllStatuses(resourceGroupName: string, experimentName: string, options?: ExperimentsListAllStatusesOptionalParams): PagedAsyncIterableIterator<ExperimentStatus>;
listExecutionDetails(resourceGroupName: string, experimentName: string, options?: ExperimentsListExecutionDetailsOptionalParams): PagedAsyncIterableIterator<ExperimentExecutionDetails>;
start(resourceGroupName: string, experimentName: string, options?: ExperimentsStartOptionalParams): Promise<ExperimentsStartResponse>;
update(resourceGroupName: string, experimentName: string, experiment: ExperimentUpdate, options?: ExperimentsUpdateOptionalParams): Promise<ExperimentsUpdateResponse>;
}

// @public
Expand Down Expand Up @@ -433,6 +436,18 @@ export interface ExperimentStatusListResult {
readonly value?: ExperimentStatus[];
}

// @public
export interface ExperimentsUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ExperimentsUpdateResponse = Experiment;

// @public
export interface ExperimentUpdate {
identity?: ResourceIdentity;
}

// @public
export interface Filter {
type: "Simple";
Expand Down Expand Up @@ -478,6 +493,23 @@ export enum KnownOrigin {
UserSystem = "user,system"
}

// @public
export enum KnownSelectorType {
List = "List",
Query = "Query"
}

// @public
export enum KnownTargetReferenceType {
ChaosTarget = "ChaosTarget"
}

// @public
export interface ListSelector extends Selector {
targets: TargetReference[];
type: "List";
}

// @public
export interface Operation {
readonly actionType?: ActionType;
Expand Down Expand Up @@ -523,6 +555,13 @@ export type OperationsListAllResponse = OperationListResult;
// @public
export type Origin = string;

// @public
export interface QuerySelector extends Selector {
queryString: string;
subscriptionIds: string[];
type: "Query";
}

// @public
export interface Resource {
readonly id?: string;
Expand All @@ -535,21 +574,27 @@ export interface ResourceIdentity {
readonly principalId?: string;
readonly tenantId?: string;
type: ResourceIdentityType;
userAssignedIdentities?: {
[propertyName: string]: UserAssignedIdentity;
};
}

// @public
export type ResourceIdentityType = "None" | "SystemAssigned";
export type ResourceIdentityType = "None" | "SystemAssigned" | "UserAssigned";

// @public
export interface Selector {
[property: string]: any;
filter?: FilterUnion;
id: string;
targets: TargetReference[];
type: SelectorType;
type: "List" | "Query";
}

// @public
export type SelectorType = "Percent" | "Random" | "Tag" | "List";
export type SelectorType = string;

// @public (undocumented)
export type SelectorUnion = Selector | ListSelector | QuerySelector;

// @public
export interface SimpleFilter extends Filter {
Expand Down Expand Up @@ -604,9 +649,12 @@ export interface TargetListResult {
// @public
export interface TargetReference {
id: string;
type: "ChaosTarget";
type: TargetReferenceType;
}

// @public
export type TargetReferenceType = string;

// @public
export interface Targets {
createOrUpdate(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, target: Target, options?: TargetsCreateOrUpdateOptionalParams): Promise<TargetsCreateOrUpdateResponse>;
Expand Down Expand Up @@ -700,6 +748,12 @@ export interface TrackedResource extends Resource {
};
}

// @public
export interface UserAssignedIdentity {
readonly clientId?: string;
readonly principalId?: string;
}

// (No @packageDocumentation comment for this package)

```
2 changes: 1 addition & 1 deletion sdk/chaos/arm-chaos/src/chaosManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class ChaosManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-10-01-preview";
this.apiVersion = options.apiVersion || "2023-04-15-preview";
this.capabilities = new CapabilitiesImpl(this);
this.capabilityTypes = new CapabilityTypesImpl(this);
this.experiments = new ExperimentsImpl(this);
Expand Down
Loading

0 comments on commit 11f091e

Please sign in to comment.