Skip to content

Commit

Permalink
CodeGen from PR 24390 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Publish private branch 'InbalZim-storagemover-Microsoft.StorageMover-RPSaaSMaster-2023-07-01-preview' (Azure#24390)

* add or modify files

* Updated `credentials` models according to PR Azure#24318 + reverted unwanted changes to `readme.md`

* Removed URI format from SMB credentials to support it receiving empty string in order to clean-up their value

* Removed extra hierarchy of `AzureStorageFileShareEndpointBaseProperties`
  • Loading branch information
SDKAuto committed Jul 11, 2023
1 parent 7803376 commit 82680f4
Show file tree
Hide file tree
Showing 113 changed files with 493 additions and 5,022 deletions.
39 changes: 31 additions & 8 deletions sdk/storagemover/arm-storagemover/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
# Release History

## 2.0.0-beta.1 (2023-07-11)

**Features**

## 1.0.1 (Unreleased)
- Added Interface AzureKeyVaultSmbCredentials
- Added Interface AzureStorageSmbFileShareEndpointProperties
- Added Interface AzureStorageSmbFileShareEndpointUpdateProperties
- Added Interface Credentials
- Added Interface SmbMountEndpointProperties
- Added Interface SmbMountEndpointUpdateProperties
- Added Type Alias CredentialsUnion
- Added Type Alias CredentialType
- Added Type Alias EndpointBaseUpdatePropertiesUnion
- Interface Resource has a new optional parameter systemData
- Type of parameter endpointType of interface EndpointBaseProperties is changed from "AzureStorageBlobContainer" | "NfsMount" to "AzureStorageBlobContainer" | "NfsMount" | "AzureStorageSmbFileShare" | "SmbMount"
- Added Enum KnownCredentialType
- Enum KnownEndpointType has a new value AzureStorageSmbFileShare
- Enum KnownEndpointType has a new value SmbMount

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
**Breaking Changes**

- Interface Agent no longer has parameter systemData
- Interface Endpoint no longer has parameter systemData
- Interface JobDefinition no longer has parameter systemData
- Interface JobRun no longer has parameter systemData
- Interface Project no longer has parameter systemData
- Interface StorageMover no longer has parameter systemData
- Interface AzureStorageBlobContainerEndpointUpdateProperties has a new required parameter endpointType
- Interface EndpointBaseUpdateProperties has a new required parameter endpointType
- Interface NfsMountEndpointUpdateProperties has a new required parameter endpointType
- Type of parameter properties of interface EndpointBaseUpdateParameters is changed from EndpointBaseUpdateProperties to EndpointBaseUpdatePropertiesUnion


## 1.0.0 (2023-03-07)

The package of @azure/arm-storagemover is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
2 changes: 1 addition & 1 deletion sdk/storagemover/arm-storagemover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Azure Storage Mover REST API.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagemover/arm-storagemover) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-storagemover) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagemover) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagemover?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/storagemover/arm-storagemover/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "80d422bdf9d305b5403c1540fffbcb981269791e",
"commit": "c53808ba54beef57059371708f1fa6949a11a280",
"readme": "specification/storagemover/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\\storagemover\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --generate-sample=true",
"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/storagemover/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.9"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
6 changes: 0 additions & 6 deletions sdk/storagemover/arm-storagemover/assets.json

This file was deleted.

16 changes: 4 additions & 12 deletions sdk/storagemover/arm-storagemover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for StorageMoverClient.",
"version": "1.0.1",
"version": "2.0.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.3",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
Expand Down Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagemover/arm-storagemover",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagemover?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagemover/arm-storagemover"
}
76 changes: 64 additions & 12 deletions sdk/storagemover/arm-storagemover/review/arm-storagemover.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export interface Agent extends ProxyResource {
readonly memoryInMB?: number;
readonly numberOfCores?: number;
readonly provisioningState?: ProvisioningState;
readonly systemData?: SystemData;
readonly uptimeInSeconds?: number;
}

Expand Down Expand Up @@ -101,7 +100,14 @@ export interface AgentUpdateParameters {
description?: string;
}

// @public (undocumented)
// @public
export interface AzureKeyVaultSmbCredentials extends Credentials {
passwordUri?: string;
type: "AzureKeyVaultSmb";
usernameUri?: string;
}

// @public
export interface AzureStorageBlobContainerEndpointProperties extends EndpointBaseProperties {
blobContainerName: string;
endpointType: "AzureStorageBlobContainer";
Expand All @@ -110,6 +116,19 @@ export interface AzureStorageBlobContainerEndpointProperties extends EndpointBas

// @public (undocumented)
export interface AzureStorageBlobContainerEndpointUpdateProperties extends EndpointBaseUpdateProperties {
endpointType: "AzureStorageBlobContainer";
}

// @public
export interface AzureStorageSmbFileShareEndpointProperties extends EndpointBaseProperties {
endpointType: "AzureStorageSmbFileShare";
fileShareName: string;
storageAccountResourceId: string;
}

// @public
export interface AzureStorageSmbFileShareEndpointUpdateProperties extends EndpointBaseUpdateProperties {
endpointType: "AzureStorageSmbFileShare";
}

// @public
Expand All @@ -118,32 +137,46 @@ export type CopyMode = string;
// @public
export type CreatedByType = string;

// @public
export interface Credentials {
type: "AzureKeyVaultSmb";
}

// @public (undocumented)
export type CredentialsUnion = Credentials | AzureKeyVaultSmbCredentials;

// @public
export type CredentialType = string;

// @public
export interface Endpoint extends ProxyResource {
properties: EndpointBasePropertiesUnion;
readonly systemData?: SystemData;
}

// @public
export interface EndpointBaseProperties {
description?: string;
endpointType: "AzureStorageBlobContainer" | "NfsMount";
endpointType: "AzureStorageBlobContainer" | "NfsMount" | "AzureStorageSmbFileShare" | "SmbMount";
readonly provisioningState?: ProvisioningState;
}

// @public (undocumented)
export type EndpointBasePropertiesUnion = EndpointBaseProperties | AzureStorageBlobContainerEndpointProperties | NfsMountEndpointProperties;
export type EndpointBasePropertiesUnion = EndpointBaseProperties | AzureStorageBlobContainerEndpointProperties | NfsMountEndpointProperties | AzureStorageSmbFileShareEndpointProperties | SmbMountEndpointProperties;

// @public
export interface EndpointBaseUpdateParameters {
properties?: EndpointBaseUpdateProperties;
properties?: EndpointBaseUpdatePropertiesUnion;
}

// @public
export interface EndpointBaseUpdateProperties {
description?: string;
endpointType: "AzureStorageBlobContainer" | "NfsMount" | "AzureStorageSmbFileShare" | "SmbMount";
}

// @public (undocumented)
export type EndpointBaseUpdatePropertiesUnion = EndpointBaseUpdateProperties | AzureStorageBlobContainerEndpointUpdateProperties | NfsMountEndpointUpdateProperties | AzureStorageSmbFileShareEndpointUpdateProperties | SmbMountEndpointUpdateProperties;

// @public
export interface EndpointList {
readonly nextLink?: string;
Expand Down Expand Up @@ -240,7 +273,6 @@ export interface JobDefinition extends ProxyResource {
sourceName: string;
readonly sourceResourceId?: string;
sourceSubpath?: string;
readonly systemData?: SystemData;
targetName: string;
readonly targetResourceId?: string;
targetSubpath?: string;
Expand Down Expand Up @@ -353,7 +385,6 @@ export interface JobRun extends ProxyResource {
readonly sourceProperties?: Record<string, unknown>;
readonly sourceResourceId?: string;
readonly status?: JobRunStatus;
readonly systemData?: SystemData;
readonly targetName?: string;
readonly targetProperties?: Record<string, unknown>;
readonly targetResourceId?: string;
Expand Down Expand Up @@ -439,10 +470,17 @@ export enum KnownCreatedByType {
User = "User"
}

// @public
export enum KnownCredentialType {
AzureKeyVaultSmb = "AzureKeyVaultSmb"
}

// @public
export enum KnownEndpointType {
AzureStorageBlobContainer = "AzureStorageBlobContainer",
NfsMount = "NfsMount"
AzureStorageSmbFileShare = "AzureStorageSmbFileShare",
NfsMount = "NfsMount",
SmbMount = "SmbMount"
}

// @public
Expand Down Expand Up @@ -483,7 +521,7 @@ export enum KnownProvisioningState {
Succeeded = "Succeeded"
}

// @public (undocumented)
// @public
export interface NfsMountEndpointProperties extends EndpointBaseProperties {
endpointType: "NfsMount";
export: string;
Expand All @@ -493,6 +531,7 @@ export interface NfsMountEndpointProperties extends EndpointBaseProperties {

// @public (undocumented)
export interface NfsMountEndpointUpdateProperties extends EndpointBaseUpdateProperties {
endpointType: "NfsMount";
}

// @public
Expand Down Expand Up @@ -547,7 +586,6 @@ export type Origin = string;
export interface Project extends ProxyResource {
description?: string;
readonly provisioningState?: ProvisioningState;
readonly systemData?: SystemData;
}

// @public
Expand Down Expand Up @@ -623,14 +661,28 @@ export interface ProxyResource extends Resource {
export interface Resource {
readonly id?: string;
readonly name?: string;
readonly systemData?: SystemData;
readonly type?: string;
}

// @public
export interface SmbMountEndpointProperties extends EndpointBaseProperties {
credentials?: AzureKeyVaultSmbCredentials;
endpointType: "SmbMount";
host: string;
shareName: string;
}

// @public
export interface SmbMountEndpointUpdateProperties extends EndpointBaseUpdateProperties {
credentials?: AzureKeyVaultSmbCredentials;
endpointType: "SmbMount";
}

// @public
export interface StorageMover extends TrackedResource {
description?: string;
readonly provisioningState?: ProvisioningState;
readonly systemData?: SystemData;
}

// @public (undocumented)
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 82680f4

Please sign in to comment.