Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-redisenterprisecache] Davidgrebb redisenterprise microsoft.cache 2023 08 01 preview 3 #6412

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# Release History

## 2.3.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 2.3.0-beta.1 (2023-03-27)

## 3.0.0-beta.1 (2023-08-24)

**Features**

- Added operation group Skus
- Added operation Databases.beginFlush
- Added operation Databases.beginFlushAndWait
- Added operation PrivateEndpointConnections.beginDelete
- Added operation PrivateEndpointConnections.beginDeleteAndWait
- Added operation RedisEnterprise.checkNameAvailability
- Added Interface Capability
- Added Interface CheckNameAvailabilityParameters
- Added Interface ClusterPropertiesEncryption
- Added Interface ClusterPropertiesEncryptionCustomerManagedKeyEncryption
- Added Interface ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity
Expand All @@ -26,6 +20,8 @@
- Added Interface FlushParameters
- Added Interface LocationInfo
- Added Interface ManagedServiceIdentity
- Added Interface PrivateEndpointConnectionsDeleteHeaders
- Added Interface RedisEnterpriseCheckNameAvailabilityOptionalParams
- Added Interface RegionSkuDetail
- Added Interface RegionSkuDetails
- Added Interface SkuDetail
Expand All @@ -40,10 +36,18 @@
- Interface Cluster has a new optional parameter identity
- Interface ClusterUpdate has a new optional parameter encryption
- Interface ClusterUpdate has a new optional parameter identity
- Interface PrivateEndpointConnectionsDeleteOptionalParams has a new optional parameter resumeFrom
- Interface PrivateEndpointConnectionsDeleteOptionalParams has a new optional parameter updateIntervalInMs
- Interface Resource has a new optional parameter systemData
- Added Enum KnownCmkIdentityType
- Added Enum KnownCreatedByType
- Added Enum KnownManagedServiceIdentityType
- Enum KnownResourceState has a new value Scaling
- Enum KnownResourceState has a new value ScalingFailed

**Breaking Changes**

- Removed operation PrivateEndpointConnections.delete


## 2.2.0 (2022-12-07)
Expand Down
8 changes: 4 additions & 4 deletions sdk/redisenterprise/arm-redisenterprisecache/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "72484575017c59f6eac35b75806055b76c569b19",
"commit": "436b378ccb157176819d42446967f6d515c4b214",
"readme": "specification/redisenterprise/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\redisenterprise\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --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/redisenterprise/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/typescript@6.0.0-rc.10"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}
22 changes: 7 additions & 15 deletions sdk/redisenterprise/arm-redisenterprisecache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for RedisEnterpriseManagementClient.",
"version": "2.3.0-beta.2",
"version": "3.0.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -48,8 +48,8 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -112,13 +112,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-redisenterprisecache?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export interface Capability {
value?: boolean;
}

// @public
export interface CheckNameAvailabilityParameters {
name: string;
type: string;
}

// @public
export interface Cluster extends TrackedResource {
encryption?: ClusterPropertiesEncryption;
Expand Down Expand Up @@ -408,6 +414,8 @@ export enum KnownResourceState {
EnableFailed = "EnableFailed",
Enabling = "Enabling",
Running = "Running",
Scaling = "Scaling",
ScalingFailed = "ScalingFailed",
UpdateFailed = "UpdateFailed",
Updating = "Updating"
}
Expand Down Expand Up @@ -562,15 +570,24 @@ export type PrivateEndpointConnectionProvisioningState = string;

// @public
export interface PrivateEndpointConnections {
beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
beginPut(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsPutResponse>, PrivateEndpointConnectionsPutResponse>>;
beginPutAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<PrivateEndpointConnectionsPutResponse>;
delete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
list(resourceGroupName: string, clusterName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
}

// @public
export interface PrivateEndpointConnectionsDeleteHeaders {
azureAsyncOperation?: string;
location?: string;
}

// @public
export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
Expand Down Expand Up @@ -651,11 +668,16 @@ export interface RedisEnterprise {
beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise<SimplePollerLike<OperationState<RedisEnterpriseUpdateResponse>, RedisEnterpriseUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise<RedisEnterpriseUpdateResponse>;
checkNameAvailability(parameters: CheckNameAvailabilityParameters, options?: RedisEnterpriseCheckNameAvailabilityOptionalParams): Promise<void>;
get(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseGetOptionalParams): Promise<RedisEnterpriseGetResponse>;
list(options?: RedisEnterpriseListOptionalParams): PagedAsyncIterableIterator<Cluster>;
listByResourceGroup(resourceGroupName: string, options?: RedisEnterpriseListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Cluster>;
}

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

// @public
export interface RedisEnterpriseCreateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down
41 changes: 36 additions & 5 deletions sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ export interface ForceUnlinkParameters {
ids: string[];
}

/** Parameters for a Redis Enterprise active geo-replication flush operation. */
/** Parameters for a Redis Enterprise active geo-replication flush operation */
export interface FlushParameters {
/** The resource identifiers of all the other database resources in the georeplication group to be flushed */
/** The identifiers of all the other database resources in the georeplication group to be flushed. */
ids?: string[];
}

Expand Down Expand Up @@ -485,6 +485,14 @@ export interface SkuDetail {
name?: SkuName;
}

/** Parameters body to pass for resource name availability check. */
export interface CheckNameAvailabilityParameters {
/** Resource name. */
name: string;
/** Resource type. The only legal value of this property for checking redis enterprise cache name availability is 'Microsoft.Cache/redisenterprise'. */
type: string;
}

/** The Private Endpoint Connection resource. */
export interface PrivateEndpointConnection extends Resource {
/** The resource of private end point. */
Expand Down Expand Up @@ -600,6 +608,14 @@ export interface DatabasesFlushHeaders {
azureAsyncOperation?: string;
}

/** Defines headers for PrivateEndpointConnections_delete operation. */
export interface PrivateEndpointConnectionsDeleteHeaders {
/** Location URI to poll for result */
location?: string;
/** URI to poll for the operation status */
azureAsyncOperation?: string;
}

/** Known values of {@link Origin} that the service accepts. */
export enum KnownOrigin {
/** User */
Expand Down Expand Up @@ -787,7 +803,11 @@ export enum KnownResourceState {
/** DisableFailed */
DisableFailed = "DisableFailed",
/** Disabled */
Disabled = "Disabled"
Disabled = "Disabled",
/** Scaling */
Scaling = "Scaling",
/** ScalingFailed */
ScalingFailed = "ScalingFailed"
}

/**
Expand All @@ -806,7 +826,9 @@ export enum KnownResourceState {
* **EnableFailed** \
* **Disabling** \
* **DisableFailed** \
* **Disabled**
* **Disabled** \
* **Scaling** \
* **ScalingFailed**
*/
export type ResourceState = string;

Expand Down Expand Up @@ -1094,6 +1116,10 @@ export interface RedisEnterpriseListOptionalParams
/** Contains response data for the list operation. */
export type RedisEnterpriseListResponse = ClusterList;

/** Optional parameters. */
export interface RedisEnterpriseCheckNameAvailabilityOptionalParams
extends coreClient.OperationOptions {}

/** Optional parameters. */
export interface RedisEnterpriseListByResourceGroupNextOptionalParams
extends coreClient.OperationOptions {}
Expand Down Expand Up @@ -1245,7 +1271,12 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection;

/** Optional parameters. */
export interface PrivateEndpointConnectionsDeleteOptionalParams
extends coreClient.OperationOptions {}
extends coreClient.OperationOptions {
/** Delay to wait until next poll, in milliseconds. */
updateIntervalInMs?: number;
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
resumeFrom?: string;
}

/** Optional parameters. */
export interface PrivateLinkResourcesListByClusterOptionalParams
Expand Down
44 changes: 44 additions & 0 deletions sdk/redisenterprise/arm-redisenterprisecache/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,29 @@ export const SkuDetail: coreClient.CompositeMapper = {
}
};

export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CheckNameAvailabilityParameters",
modelProperties: {
name: {
serializedName: "name",
required: true,
type: {
name: "String"
}
},
type: {
serializedName: "type",
required: true,
type: {
name: "String"
}
}
}
}
};

export const PrivateEndpointConnection: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -1415,3 +1438,24 @@ export const DatabasesFlushHeaders: coreClient.CompositeMapper = {
}
}
};

export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PrivateEndpointConnectionsDeleteHeaders",
modelProperties: {
location: {
serializedName: "location",
type: {
name: "String"
}
},
azureAsyncOperation: {
serializedName: "azure-asyncoperation",
type: {
name: "String"
}
}
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import {
Cluster as ClusterMapper,
ClusterUpdate as ClusterUpdateMapper,
CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper,
Database as DatabaseMapper,
DatabaseUpdate as DatabaseUpdateMapper,
RegenerateKeyParameters as RegenerateKeyParametersMapper,
Expand Down Expand Up @@ -51,7 +52,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-03-01-preview",
defaultValue: "2023-08-01-preview",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down Expand Up @@ -163,6 +164,11 @@ export const parameters1: OperationParameter = {
};

export const parameters2: OperationParameter = {
parameterPath: "parameters",
mapper: CheckNameAvailabilityParametersMapper
};

export const parameters3: OperationParameter = {
parameterPath: "parameters",
mapper: DatabaseMapper
};
Expand All @@ -178,32 +184,32 @@ export const databaseName: OperationURLParameter = {
}
};

export const parameters3: OperationParameter = {
export const parameters4: OperationParameter = {
parameterPath: "parameters",
mapper: DatabaseUpdateMapper
};

export const parameters4: OperationParameter = {
export const parameters5: OperationParameter = {
parameterPath: "parameters",
mapper: RegenerateKeyParametersMapper
};

export const parameters5: OperationParameter = {
export const parameters6: OperationParameter = {
parameterPath: "parameters",
mapper: ImportClusterParametersMapper
};

export const parameters6: OperationParameter = {
export const parameters7: OperationParameter = {
parameterPath: "parameters",
mapper: ExportClusterParametersMapper
};

export const parameters7: OperationParameter = {
export const parameters8: OperationParameter = {
parameterPath: "parameters",
mapper: ForceUnlinkParametersMapper
};

export const parameters8: OperationParameter = {
export const parameters9: OperationParameter = {
parameterPath: "parameters",
mapper: FlushParametersMapper
};
Expand Down
Loading