Skip to content

Commit

Permalink
CodeGen from PR 2639 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge pull request #2639 from test-repo-billy/restConfig2

add restlerConfig for 2020-06 version
  • Loading branch information
SDKAuto committed Aug 29, 2022
1 parent d8a7b3e commit 6515beb
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 82 deletions.
20 changes: 9 additions & 11 deletions sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Release History

## 3.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 3.1.0 (2022-08-29)

**Features**

- Added Interface ConfigurationStore
- Added Interface TrackedResource


## 3.0.0 (2022-06-10)

The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0, which contains breaking changes.
Expand Down
10 changes: 5 additions & 5 deletions sdk/appconfiguration/arm-appconfiguration/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "60cd4dbca5214118b763d1edc835a44c8386283a",
"commit": "ae4a675e7100ebd7aaf9baf6b4a4a371335f6182",
"readme": "specification/appconfiguration/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-beta.20"
"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/appconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1"
}
17 changes: 4 additions & 13 deletions sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AppConfigurationManagementClient.",
"version": "3.0.1",
"version": "3.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -98,8 +98,7 @@
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -110,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@ export interface CheckNameAvailabilityParameters {
export type ConfigurationResourceType = string;

// @public
export type ConfigurationStore = TrackedResource & {
identity?: ResourceIdentity;
sku: Sku;
readonly systemData?: SystemData;
readonly provisioningState?: ProvisioningState;
export interface ConfigurationStore extends TrackedResource {
createMode?: CreateMode;
readonly creationDate?: Date;
readonly endpoint?: string;
disableLocalAuth?: boolean;
enablePurgeProtection?: boolean;
encryption?: EncryptionProperties;
readonly endpoint?: string;
identity?: ResourceIdentity;
readonly privateEndpointConnections?: PrivateEndpointConnectionReference[];
readonly provisioningState?: ProvisioningState;
publicNetworkAccess?: PublicNetworkAccess;
disableLocalAuth?: boolean;
sku: Sku;
softDeleteRetentionInDays?: number;
enablePurgeProtection?: boolean;
createMode?: CreateMode;
};
readonly systemData?: SystemData;
}

// @public
export interface ConfigurationStoreListResult {
Expand Down Expand Up @@ -367,75 +367,52 @@ export interface KeyVaultProperties {

// @public
export enum KnownActionsRequired {
// (undocumented)
None = "None",
// (undocumented)
Recreate = "Recreate"
}

// @public
export enum KnownConfigurationResourceType {
// (undocumented)
MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores"
}

// @public
export enum KnownConnectionStatus {
// (undocumented)
Approved = "Approved",
// (undocumented)
Disconnected = "Disconnected",
// (undocumented)
Pending = "Pending",
// (undocumented)
Rejected = "Rejected"
}

// @public
export enum KnownCreatedByType {
// (undocumented)
Application = "Application",
// (undocumented)
Key = "Key",
// (undocumented)
ManagedIdentity = "ManagedIdentity",
// (undocumented)
User = "User"
}

// @public
export enum KnownIdentityType {
// (undocumented)
None = "None",
// (undocumented)
SystemAssigned = "SystemAssigned",
// (undocumented)
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
// (undocumented)
UserAssigned = "UserAssigned"
}

// @public
export enum KnownProvisioningState {
// (undocumented)
Canceled = "Canceled",
// (undocumented)
Creating = "Creating",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
}

// @public
export enum KnownPublicNetworkAccess {
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Enabled = "Enabled"
}

Expand Down Expand Up @@ -714,12 +691,12 @@ export interface SystemData {
}

// @public
export type TrackedResource = Resource & {
export interface TrackedResource extends Resource {
location: string;
tags?: {
[propertyName: string]: string;
};
location: string;
};
}

// @public
export interface UserIdentity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-appconfiguration/3.0.1`;
const packageDetails = `azsdk-js-arm-appconfiguration/3.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -133,7 +133,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
if (param.length > 1) {
const newParams = param[1].split("&").map((item) => {
if (item.indexOf("api-version") > -1) {
return item.replace(/(?<==).*$/, apiVersion);
return "api-version=" + apiVersion;
} else {
return item;
}
Expand Down
31 changes: 27 additions & 4 deletions sdk/appconfiguration/arm-appconfiguration/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,15 +573,15 @@ export interface DeletedConfigurationStore {
}

/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
export type TrackedResource = Resource & {
export interface TrackedResource extends Resource {
/** Resource tags. */
tags?: { [propertyName: string]: string };
/** The geo-location where the resource lives */
location: string;
};
}

/** The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. */
export type ConfigurationStore = TrackedResource & {
export interface ConfigurationStore extends TrackedResource {
/** The managed identity information, if configured. */
identity?: ResourceIdentity;
/** The sku of the configuration store. */
Expand Down Expand Up @@ -623,13 +623,17 @@ export type ConfigurationStore = TrackedResource & {
enablePurgeProtection?: boolean;
/** Indicates whether the configuration store need to be recovered. */
createMode?: CreateMode;
};
}

/** Known values of {@link IdentityType} that the service accepts. */
export enum KnownIdentityType {
/** None */
None = "None",
/** SystemAssigned */
SystemAssigned = "SystemAssigned",
/** UserAssigned */
UserAssigned = "UserAssigned",
/** SystemAssignedUserAssigned */
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
}

Expand All @@ -647,11 +651,17 @@ export type IdentityType = string;

/** Known values of {@link ProvisioningState} that the service accepts. */
export enum KnownProvisioningState {
/** Creating */
Creating = "Creating",
/** Updating */
Updating = "Updating",
/** Deleting */
Deleting = "Deleting",
/** Succeeded */
Succeeded = "Succeeded",
/** Failed */
Failed = "Failed",
/** Canceled */
Canceled = "Canceled"
}

Expand All @@ -671,9 +681,13 @@ export type ProvisioningState = string;

/** Known values of {@link ConnectionStatus} that the service accepts. */
export enum KnownConnectionStatus {
/** Pending */
Pending = "Pending",
/** Approved */
Approved = "Approved",
/** Rejected */
Rejected = "Rejected",
/** Disconnected */
Disconnected = "Disconnected"
}

Expand All @@ -691,7 +705,9 @@ export type ConnectionStatus = string;

/** Known values of {@link ActionsRequired} that the service accepts. */
export enum KnownActionsRequired {
/** None */
None = "None",
/** Recreate */
Recreate = "Recreate"
}

Expand All @@ -707,7 +723,9 @@ export type ActionsRequired = string;

/** Known values of {@link PublicNetworkAccess} that the service accepts. */
export enum KnownPublicNetworkAccess {
/** Enabled */
Enabled = "Enabled",
/** Disabled */
Disabled = "Disabled"
}

Expand All @@ -723,9 +741,13 @@ export type PublicNetworkAccess = string;

/** Known values of {@link CreatedByType} that the service accepts. */
export enum KnownCreatedByType {
/** User */
User = "User",
/** Application */
Application = "Application",
/** ManagedIdentity */
ManagedIdentity = "ManagedIdentity",
/** Key */
Key = "Key"
}

Expand All @@ -743,6 +765,7 @@ export type CreatedByType = string;

/** Known values of {@link ConfigurationResourceType} that the service accepts. */
export enum KnownConfigurationResourceType {
/** MicrosoftAppConfigurationConfigurationStores */
MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores {
}

/**
* Lists the configuration stores for a given subscription.
* Lists the configuration stores for a given subscription.
* @param options The options parameters.
*/
public list(
Expand Down Expand Up @@ -272,7 +272,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores {
}

/**
* Lists the configuration stores for a given subscription.
* Lists the configuration stores for a given subscription.
* @param options The options parameters.
*/
private _list(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
/** Interface representing a ConfigurationStores. */
export interface ConfigurationStores {
/**
* Lists the configuration stores for a given subscription.
* Lists the configuration stores for a given subscription.
* @param options The options parameters.
*/
list(
Expand Down
10 changes: 2 additions & 8 deletions sdk/appconfiguration/arm-appconfiguration/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-appconfiguration": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 6515beb

Please sign in to comment.