Skip to content

[StorageAction] First GA release, updated per latest swagger #27928

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageAction")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]




4 changes: 2 additions & 2 deletions src/StorageAction/StorageAction.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For information on how to develop for `Az.StorageAction`, see [how-to.md](how-to

```yaml
# pin the swagger version by using the commit id instead of branch name
commit: 8f196886782fc5b48b75322944dc60d1cafaf7fa
commit: 2219e4e4e0409bcb88a2b82e8febe1a3baecaf18
tag: package-2023-01-01
require:
# readme.azure.noprofile.md is the common configuration file
Expand All @@ -46,7 +46,7 @@ try-require:
# nested-object-to-string: true

# For new RP, the version is 0.1.0
module-version: 0.1.0
module-version: 1.0.0
# Normally, title is the service name
title: StorageAction
subject-prefix: $(service-name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskOperation
https://learn.microsoft.com/powershell/module/Az.StorageAction/new-azstorageactiontaskoperationobject
#>
function New-AzStorageActionTaskOperationObject {
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskOperation')]
[CmdletBinding(PositionalBinding=$false)]
Param(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskPreviewBlobPr
https://learn.microsoft.com/powershell/module/Az.StorageAction/new-azstorageactiontaskpreviewblobpropertiesobject
#>
function New-AzStorageActionTaskPreviewBlobPropertiesObject {
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskPreviewBlobProperties')]
[CmdletBinding(PositionalBinding=$false)]
Param(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskPreviewKeyVal
https://learn.microsoft.com/powershell/module/Az.StorageAction/new-azstorageactiontaskpreviewkeyvaluepropertiesobject
#>
function New-AzStorageActionTaskPreviewKeyValuePropertiesObject {
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskPreviewKeyValueProperties')]
[CmdletBinding(PositionalBinding=$false)]
Param(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.StorageAction
Module Guid: cc1d1de1-1601-4440-82c6-76c6673d8aba
Module Guid: 78dad367-40fa-497c-afc0-831ee12e5038
Download Help Link: https://learn.microsoft.com/powershell/module/az.storageaction
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -24,9 +24,9 @@ Fetch the storage tasks run report summary for each assignment.
Runs the input conditions against input object metadata properties and designates matched objects in response.

### [New-AzStorageActionTask](New-AzStorageActionTask.md)
Asynchronously creates a new storage task resource with the specified parameters.
Asynchronously create a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed.

### [New-AzStorageActionTaskOperationObject](New-AzStorageActionTaskOperationObject.md)
Create an in-memory object for StorageTaskOperation.
Expand All @@ -41,7 +41,7 @@ Create an in-memory object for StorageTaskPreviewKeyValueProperties.
Delete the storage task resource.

### [Update-AzStorageActionTask](Update-AzStorageActionTask.md)
Asynchronously creates a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
Asynchronously update a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent update request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent update request is issued with the exact same set of properties, the request will succeed.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Lists Resource IDs of the Storage Task Assignments associated with this Storage

```
Get-AzStorageActionTaskAssignment -ResourceGroupName <String> -StorageTaskName <String>
[-SubscriptionId <String[]>] [-Maxpagesize <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
[-SubscriptionId <String[]>] [-Maxpagesize <Int32>] [-DefaultProfile <PSObject>] [<CommonParameters>]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to use MaxPageSize to follow the naming convention?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is autogen code.
Would you please check with Xiaogang if this is correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blueww You can leverage directives to rename the parameter. Please refer to https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#Parameter-Rename.

```

## DESCRIPTION
Expand Down Expand Up @@ -57,7 +57,7 @@ Accept wildcard characters: False
Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response.

```yaml
Type: System.String
Type: System.Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Fetch the storage tasks run report summary for each assignment.

```
Get-AzStorageActionTasksReport -ResourceGroupName <String> -StorageTaskName <String>
[-SubscriptionId <String[]>] [-Filter <String>] [-Maxpagesize <String>] [-DefaultProfile <PSObject>]
[-SubscriptionId <String[]>] [-Filter <String>] [-Maxpagesize <Int32>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

Expand Down Expand Up @@ -118,7 +118,7 @@ Accept wildcard characters: False
Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response.

```yaml
Type: System.String
Type: System.Int32
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ schema: 2.0.0
# New-AzStorageActionTask

## SYNOPSIS
Asynchronously creates a new storage task resource with the specified parameters.
Asynchronously create a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed.

## SYNTAX

Expand Down Expand Up @@ -38,9 +38,9 @@ New-AzStorageActionTask -Name <String> -ResourceGroupName <String> -JsonString <
```

## DESCRIPTION
Asynchronously creates a new storage task resource with the specified parameters.
Asynchronously create a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed.

## EXAMPLES

Expand Down Expand Up @@ -274,7 +274,7 @@ Accept wildcard characters: False
```

### -EnableSystemAssignedIdentity
Decides if enable a system assigned identity for the resource.
Determines whether to enable a system-assigned identity for the resource.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ schema: 2.0.0
# Update-AzStorageActionTask

## SYNOPSIS
Asynchronously creates a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
Asynchronously update a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent update request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent update request is issued with the exact same set of properties, the request will succeed.

## SYNTAX

Expand All @@ -33,9 +33,9 @@ Update-AzStorageActionTask -InputObject <IStorageActionIdentity> [-Description <
```

## DESCRIPTION
Asynchronously creates a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
Asynchronously update a new storage task resource with the specified parameters.
If a storage task is already created and a subsequent update request is issued with different properties, the storage task properties will be updated.
If a storage task is already created and a subsequent update request is issued with the exact same set of properties, the request will succeed.

## EXAMPLES

Expand Down Expand Up @@ -258,10 +258,10 @@ Accept wildcard characters: False
```

### -EnableSystemAssignedIdentity
Decides if enable a system assigned identity for the resource.
Determines whether to enable a system-assigned identity for the resource.

```yaml
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameter Sets: (All)
Aliases:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "07b1da6f-d367-45f4-8e8f-05e38bf27f1a"
"generate_Id": "3f2c49f4-d751-4192-8f46-6a62b3c249c4"
}
11 changes: 11 additions & 0 deletions src/StorageAction/StorageAction.Autorest/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Resources
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.

## Info
- Modifiable: yes
- Generated: no
- Committed: yes
- Packaged: no

## Purpose
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"Get-AzStorageActionTaskAssignment+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/joyer-test/providers/Microsoft.StorageActions/storageTasks/mytask1/storageTaskAssignments?api-version=2023-01-01+1": {
"Get-AzStorageActionTaskAssignment+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.StorageActions/storageTasks/mytask1/storageTaskAssignments?api-version=2023-01-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/joyer-test/providers/Microsoft.StorageActions/storageTasks/mytask1/storageTaskAssignments?api-version=2023-01-01",
"RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.StorageActions/storageTasks/mytask1/storageTaskAssignments?api-version=2023-01-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "9" ],
"x-ms-client-request-id": [ "488f7a38-9c56-4287-8996-e233c589bb02" ],
"x-ms-client-request-id": [ "24e6a25f-a17a-42d2-800a-891117882ab3" ],
"CommandName": [ "Get-AzStorageActionTaskAssignment" ],
"FullCommandName": [ "Get-AzStorageActionTaskAssignment_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.2", "Az.StorageAction/0.1.0" ],
"User-Agent": [ "AzurePowershell/v14.1.0", "PSVersion/v7.5.1", "Az.StorageAction/0.1.2" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
Expand All @@ -22,23 +22,25 @@
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-request-id": [ "e77e5bde-e091-41f0-b461-f4ad671a0d91" ],
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=c2bdc6ca-a59c-411c-bf1a-a97ceade71ea/southeastasia/788ff4d5-0d83-4fc6-baae-860bbed52cb1" ],
"x-ms-providerhub-traffic": [ "True" ],
"x-ms-request-id": [ "7b5407dc-8329-4540-879f-b265ac6cc58d" ],
"x-ms-correlation-request-id": [ "2c9d4014-ff51-49b5-9676-5c217f133bc0" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "1099" ],
"x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ],
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20250611T080509Z:2c9d4014-ff51-49b5-9676-5c217f133bc0" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"x-ms-throttling-version": [ "v1" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
"x-ms-correlation-request-id": [ "f1283ae9-d1ab-4882-8d7c-238d2533758e" ],
"x-ms-routing-request-id": [ "SOUTHEASTASIA:20240506T083709Z:f1283ae9-d1ab-4882-8d7c-238d2533758e" ],
"X-Content-Type-Options": [ "nosniff" ],
"X-Cache": [ "CONFIG_NOCACHE" ],
"X-MSEdge-Ref": [ "Ref A: F95C1331CA09450C86CBC1506889EE1F Ref B: MAA201060513051 Ref C: 2024-05-06T08:37:07Z" ],
"Date": [ "Mon, 06 May 2024 08:37:08 GMT" ]
"X-MSEdge-Ref": [ "Ref A: F634B7981969495CB122ADDD694E95E2 Ref B: MAA201060515023 Ref C: 2025-06-11T08:05:08Z" ],
"Date": [ "Wed, 11 Jun 2025 08:05:09 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "391" ],
"Content-Type": [ "application/json" ],
"Content-Length": [ "406" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/joyer-test/providers/microsoft.storage/storageaccounts/storagetasktest202402281/storagetaskassignments/testassign1\"},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/joyer-test/providers/microsoft.storage/storageaccounts/storagetasktest202402281/storagetaskassignments/testassign2\"}]}",
"Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.Storage/storageAccounts/weiors3/storageTaskAssignments/weitaskassignementtest\",\"properties\":{}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.Storage/storageAccounts/weiors3/storageTaskAssignments/weitaskassignementtest2\",\"properties\":{}}]}",
"isContentBase64": false
}
}
Expand Down
Loading