Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'InbalZim-storagemover-Microso…
Browse files Browse the repository at this point in the history
…ft.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
InbalZim authored and harryli0108 committed Jul 28, 2023
1 parent efe335c commit 59e62a5
Show file tree
Hide file tree
Showing 42 changed files with 4,377 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"agentName": "examples-agentName",
"agent": {
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
"description": "Example Agent Description",
"arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName",
"name": "examples-agentName",
"type": "Microsoft.StorageMover/storageMovers/agents",
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
"description": "Example Agent Description",
"agentVersion": "1.0.0",
"agentStatus": "Registering",
"arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
"lastStatusUpdate": null,
"localIPAddress": null,
"memoryInMB": null,
"numberOfCores": null,
"uptimeInSeconds": null,
"errorDetails": null
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"agentName": "examples-agentName"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/providers/Microsoft.StorageMover/operationResults/delete0",
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.StorageMover/operationStatuses/delete0"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"agentName": "examples-agentName"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName",
"name": "examples-agentName",
"type": "Microsoft.StorageMover/storageMovers/agents",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-07-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
},
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
"description": "Example Agent Description",
"agentVersion": "1.0.0",
"agentStatus": "Online",
"arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
"lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
"localIPAddress": "192.168.0.0",
"memoryInMB": 100024,
"numberOfCores": 32,
"uptimeInSeconds": 522,
"errorDetails": null
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"parameters": {
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName1",
"name": "examples-agentName1",
"type": "Microsoft.StorageMover/storageMovers/agents",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-07-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
},
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName1",
"description": "Example Agent 1 Description",
"agentVersion": "1.0.0",
"agentStatus": "Online",
"arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
"lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
"localIPAddress": "192.168.0.0",
"memoryInMB": 100024,
"numberOfCores": 32,
"uptimeInSeconds": 522,
"errorDetails": null
}
},
{
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName2",
"name": "examples-agentName2",
"type": "Microsoft.StorageMover/storageMovers/agents",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-07-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
},
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName2",
"description": "Example Agent 2 Description",
"agentVersion": "1.0.0",
"agentStatus": "Online",
"arcVmUuid": "147a1f84-7bbf-4e99-9a6a-a1735a91dfd5",
"lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
"localIPAddress": "192.168.0.0",
"memoryInMB": 100024,
"numberOfCores": 32,
"uptimeInSeconds": 522,
"errorDetails": null
}
},
{
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName3",
"name": "examples-agentName3",
"type": "Microsoft.StorageMover/storageMovers/agents",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-07-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
},
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName3",
"description": "Example Agent 3 Description",
"agentVersion": "1.0.0",
"agentStatus": "Online",
"arcVmUuid": "648a7958-f99e-4268-b20e-94c96558dc0d",
"lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
"localIPAddress": "192.168.0.0",
"memoryInMB": 100024,
"numberOfCores": 32,
"uptimeInSeconds": 522,
"errorDetails": {
"code": "SampleErrorCode",
"message": "Detailed sample error message."
}
}
}
],
"nextLink": "https://management.azure.com/providers/Microsoft.StorageMover/storageMovers?$skiptoken={token}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"agentName": "examples-agentName",
"agent": {
"properties": {
"description": "Updated Agent Description"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName",
"name": "examples-agentName",
"type": "Microsoft.StorageMover/storageMovers/agents",
"properties": {
"arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName",
"description": "Updated Agent Description",
"agentVersion": "1.0.0",
"agentStatus": "Online",
"arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
"lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
"localIPAddress": "192.168.0.0",
"memoryInMB": 100024,
"numberOfCores": 32,
"uptimeInSeconds": 522,
"errorDetails": null
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Endpoints_CreateOrUpdate_AzureStorageBlobContainer",
"operationId": "Endpoints_CreateOrUpdate",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"endpointName": "examples-endpointName",
"endpoint": {
"properties": {
"endpointType": "AzureStorageBlobContainer",
"storageAccountResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examplesa",
"blobContainerName": "examples-blobcontainer",
"description": "Example Storage Blob Container Endpoint Description"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName",
"name": "examples-endpointName",
"type": "Microsoft.StorageMover/storageMovers/endpoints",
"properties": {
"endpointType": "AzureStorageBlobContainer",
"storageAccountResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examplesa",
"blobContainerName": "examples-blobcontainer",
"description": "Example Storage Blob Container Endpoint Description",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Endpoints_CreateOrUpdate_AzureStorageSmbFileShare",
"operationId": "Endpoints_CreateOrUpdate",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"endpointName": "examples-endpointName",
"endpoint": {
"properties": {
"endpointType": "AzureStorageSmbFileShare",
"storageAccountResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examplesa",
"fileShareName": "examples-fileshare",
"description": "Example Storage File Share Endpoint Description"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName",
"name": "examples-endpointName",
"type": "Microsoft.StorageMover/storageMovers/endpoints",
"properties": {
"endpointType": "AzureStorageSmbFileShare",
"storageAccountResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examplesa",
"fileShareName": "examples-fileshare",
"description": "Example Storage File Share Endpoint Description",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "Endpoints_CreateOrUpdate_NfsMount",
"operationId": "Endpoints_CreateOrUpdate",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"endpointName": "examples-endpointName",
"endpoint": {
"properties": {
"endpointType": "NfsMount",
"host": "0.0.0.0",
"export": "examples-exportName",
"description": "Example NFS Mount Endpoint Description"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName",
"name": "examples-endpointName",
"type": "Microsoft.StorageMover/storageMovers/endpoints",
"properties": {
"endpointType": "NfsMount",
"host": "0.0.0.0",
"export": "examples-exportName",
"nfsVersion": "NFSauto",
"description": "Example NFS Mount Endpoint Description",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"title": "Endpoints_CreateOrUpdate_SmbMount",
"operationId": "Endpoints_CreateOrUpdate",
"parameters": {
"api-version": "2023-07-01-preview",
"subscriptionId": "60bcfc77-6589-4da2-b7fd-f9ec9322cf95",
"resourceGroupName": "examples-rg",
"storageMoverName": "examples-storageMoverName",
"endpointName": "examples-endpointName",
"endpoint": {
"properties": {
"endpointType": "SmbMount",
"host": "0.0.0.0",
"shareName": "examples-shareName",
"credentials": {
"type": "AzureKeyVaultSmb",
"usernameUri": "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username",
"passwordUri": "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password"
},
"description": "Example SMB Mount Endpoint Description"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName",
"name": "examples-endpointName",
"type": "Microsoft.StorageMover/storageMovers/endpoints",
"properties": {
"endpointType": "SmbMount",
"host": "0.0.0.0",
"shareName": "examples-shareName",
"credentials": {
"type": "AzureKeyVaultSmb",
"usernameUri": "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username",
"passwordUri": "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password"
},
"description": "Example SMB Mount Endpoint Description",
"provisioningState": "Succeeded"
}
}
}
}
}
Loading

0 comments on commit 59e62a5

Please sign in to comment.