Skip to content

SRP Jan25 [2025-01-01] API Version Swagger Changes #33529

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 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f3f23bd
copy 2024-01-01 to 2025-01-01
ajashant-msft Mar 10, 2025
f0b3cc1
reset all changes and start fresh
ajashant-msft Mar 27, 2025
43f2223
Copy latest API version 2024 without any change to new API version 20…
ajashant-msft Mar 27, 2025
fff5bb2
change the API version 2024-01-01 in the new API version 2025-01-01
ajashant-msft Mar 27, 2025
dd788d5
SMB OAuth property swagger changes
ajashant-msft Mar 27, 2025
f942932
merge
ajashant-msft May 21, 2025
d55b3d2
pr comments
ajashant-msft May 17, 2025
66a1beb
validation check failures
ajashant-msft May 17, 2025
a29b799
add ref for new example file
ajashant-msft May 17, 2025
139b728
fix validation check failures
ajashant-msft May 17, 2025
feca9cd
maxime changes - [Repair item] Fix required properties in activeDirec…
ajashant-msft May 20, 2025
a9e23db
Managed Identity
ajashant-msft May 21, 2025
55dbf1b
Storage task assignment enums modelAsString true
golddove May 23, 2025
0d20628
Revert "maxime changes - [Repair item] Fix required properties in act…
ajashant-msft May 23, 2025
78620c3
Reapply "maxime changes - [Repair item] Fix required properties in ac…
ajashant-msft May 23, 2025
970d436
Merge branch 'main' into main
ajashant-msft May 23, 2025
0e6926e
Merge branch 'main' into main
ajashant-msft May 23, 2025
accc102
prettifier
ajashant-msft May 23, 2025
9d5e13e
Merge branch 'main' of https://github.com/ajashant-msft/azure-rest-ap…
ajashant-msft May 23, 2025
949917f
prettier
ajashant-msft May 23, 2025
c2a944e
Merge branch 'main' into main
ajashant-msft May 24, 2025
94c412d
Merge pull request #1 from Azure/rirajolu/srp-actions-modelasstring
ajashant-msft May 24, 2025
7051cf6
Merge branch 'main' into main
ajashant-msft May 24, 2025
bd1da6b
SmbOAuthSettings is not a required property
ajashant-msft Jun 2, 2025
81884e8
Merge branch 'main' of https://github.com/ajashant-msft/azure-rest-ap…
ajashant-msft Jun 2, 2025
84da476
add type object
ajashant-msft Jun 2, 2025
aa0c33c
add suppression
jliusan Jun 3, 2025
f7d46d4
Merge branch 'main' into main
jliusan Jun 3, 2025
a00d7dd
Merge branch 'main' of https://github.com/ajashant-msft/azure-rest-ap…
jliusan Jun 3, 2025
8234e58
Merge branch 'main' into main
jliusan Jun 3, 2025
cc4de1c
Merge branch 'main' into main
ajashant-msft Jun 4, 2025
9c09a05
Merge branch 'main' into main
ajashant-msft Jun 4, 2025
5a393ad
suppress errors
ajashant-msft Jun 5, 2025
716f9e6
Merge branch 'main' of https://github.com/ajashant-msft/azure-rest-ap…
ajashant-msft Jun 5, 2025
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,368 @@
{

Check notice on line 1 in specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/common.json

View workflow job for this annotation

GitHub Actions / TypeSpec Requirement

Brownfield services will soon be required to convert from OpenAPI to TypeSpec. See https://aka.ms/azsdk/typespec.
"swagger": "2.0",
"info": {
"title": "StorageManagementClient",
"description": "Storage Resource Provider API Common Types",
"version": "2025-01-01"
},
"paths": {},
"definitions": {
"CorsRules": {
"properties": {
"corsRules": {
"type": "array",
"items": {
"description": "Specifies a CORS rule for the Blob service. ",
"$ref": "#/definitions/CorsRule"
},
"description": "The List of CORS rules. You can include up to five CorsRule elements in the request. "
}
},
"description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. "
},
"CorsRule": {
"properties": {
"allowedOrigins": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains"
},
"allowedMethods": {
"type": "array",
"items": {
"type": "string",
"enum": [
"DELETE",
"GET",
"HEAD",
"MERGE",
"POST",
"OPTIONS",
"PUT",
"PATCH",
"CONNECT",
"TRACE"
],
"x-ms-enum": {
"name": "AllowedMethods",
"modelAsString": true
}
},
"description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin."
},
"maxAgeInSeconds": {
"type": "integer",
"description": "Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response."
},
"exposedHeaders": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required if CorsRule element is present. A list of response headers to expose to CORS clients."
},
"allowedHeaders": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request."
}
},
"required": [
"allowedOrigins",
"allowedMethods",
"maxAgeInSeconds",
"exposedHeaders",
"allowedHeaders"
],
"description": "Specifies a CORS rule for the Blob service."
},
"DeleteRetentionPolicy": {
"properties": {
"enabled": {
"type": "boolean",
"description": "Indicates whether DeleteRetentionPolicy is enabled."
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 365,
"description": "Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365."
},
"allowPermanentDelete": {
"type": "boolean",
"description": "This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share."
}
},
"description": "The service properties for soft delete."
},
"Sku": {
"properties": {
"name": {
"$ref": "#/definitions/SkuName"
},
"tier": {
"$ref": "#/definitions/Tier"
}
},
"required": [
"name"
],
"description": "The SKU of the storage account."
},
"SkuName": {
"type": "string",
"description": "The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.",
"enum": [
"Standard_LRS",
"Standard_GRS",
"Standard_RAGRS",
"Standard_ZRS",
"Premium_LRS",
"Premium_ZRS",
"Standard_GZRS",
"Standard_RAGZRS",
"StandardV2_LRS",
"StandardV2_GRS",
"StandardV2_ZRS",
"StandardV2_GZRS",
"PremiumV2_LRS",
"PremiumV2_ZRS"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
},
"Tier": {
"readOnly": true,
"type": "string",
"description": "The SKU tier. This is based on the SKU name.",
"enum": [
"Standard",
"Premium"
],
"x-ms-enum": {
"name": "SkuTier",
"modelAsString": false
}
},
"CloudError": {
"x-ms-external": true,
"properties": {
"error": {
"$ref": "#/definitions/CloudErrorBody"
}
},
"description": "An error response from the Storage service."
},
"CloudErrorBody": {
"x-ms-external": true,
"properties": {
"code": {
"type": "string",
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
},
"message": {
"type": "string",
"description": "A message describing the error, intended to be suitable for display in a user interface."
},
"target": {
"type": "string",
"description": "The target of the particular error. For example, the name of the property in error."
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/CloudErrorBody"
},
"description": "A list of additional details about the error."
}
},
"description": "An error response from the Storage service."
},
"SignedIdentifier": {
"properties": {
"id": {
"type": "string",
"description": "An unique identifier of the stored access policy."
},
"accessPolicy": {
"$ref": "#/definitions/AccessPolicy",
"description": "Access policy"
}
}
},
"AccessPolicy": {
"properties": {
"startTime": {
"type": "string",
"format": "date-time",
"description": "Start time of the access policy"
},
"expiryTime": {
"type": "string",
"format": "date-time",
"description": "Expiry time of the access policy"
},
"permission": {
"type": "string",
"description": "List of abbreviated permissions."
}
}
},
"StorageTaskReportSummary": {
"type": "object",
"properties": {
"value": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/StorageTaskReportInstance"
},
"x-ms-identifiers": [],
"description": "Gets storage tasks run result summary."
},
"nextLink": {
"type": "string",
"description": "Request URL that can be used to query next page of storage task run results summary. Returned when the number of run instances and summary reports exceed maximum page size.",
"readOnly": true
}
},
"description": "Fetch Storage Tasks Run Summary."
},
"StorageTaskReportInstance": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/StorageTaskReportProperties"
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
}
],
"description": "Storage Tasks run report instance"
},
"StorageTaskReportProperties": {
"type": "object",
"properties": {
"taskAssignmentId": {
"readOnly": true,
"type": "string",
"format": "arm-id",
"x-ms-arm-id-details": {
"allowedResources": [
{
"type": "Microsoft.Storage/storageAccounts/storageTaskAssignments"
}
]
},
"description": "Represents the Storage Task Assignment Id associated with the storage task that provided an execution context."
},
"storageAccountId": {
"readOnly": true,
"type": "string",
"format": "arm-id",
"x-ms-arm-id-details": {
"allowedResources": [
{
"type": "Microsoft.Storage/storageAccounts"
}
]
},
"description": "Represents the Storage Account Id where the storage task definition was applied and executed."
},
"startTime": {
"readOnly": true,
"type": "string",
"description": "Start time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"finishTime": {
"readOnly": true,
"type": "string",
"description": "End time of the run instance. Filter options such as startTime gt '2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for DateTime properties in https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectsTargetedCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects that meet the condition as defined in the storage task assignment execution context. Filter options such as objectsTargetedCount gt 50 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectsOperatedOnCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects that meet the storage tasks condition and were operated upon. Filter options such as objectsOperatedOnCount ge 100 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectFailedCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects where task operation failed when was attempted. Filter options such as objectFailedCount eq 0 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"objectsSucceededCount": {
"readOnly": true,
"type": "string",
"description": "Total number of objects where task operation succeeded when was attempted.Filter options such as objectsSucceededCount gt 150 and other comparison operators can be used as described for Numerical properties in https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators"
},
"runStatusError": {
"readOnly": true,
"type": "string",
"description": "Well known Azure Storage error code that represents the error encountered during execution of the run instance."
},
"runStatusEnum": {
"readOnly": true,
"type": "string",
"enum": [
"InProgress",
"Finished"
],
"x-ms-enum": {
"name": "RunStatusEnum",
"modelAsString": true
},
"description": "Represents the status of the execution."
},
"summaryReportPath": {
"readOnly": true,
"type": "string",
"description": "Full path to the verbose report stored in the reporting container as specified in the assignment execution context for the storage account. "
},
"taskId": {
"readOnly": true,
"type": "string",
"format": "arm-id",
"x-ms-arm-id-details": {
"allowedResources": [
{
"type": "Microsoft.StorageActions/storageTasks"
}
]
},
"description": "Storage Task Arm Id."
},
"taskVersion": {
"readOnly": true,
"type": "string",
"description": "Storage Task Version"
},
"runResult": {
"readOnly": true,
"type": "string",
"enum": [
"Succeeded",
"Failed"
],
"x-ms-enum": {
"name": "RunResult",
"modelAsString": true
},
"description": "Represents the overall result of the execution for the run instance"
}
},
"description": "Storage task execution report for a run instance."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res4303",
"accountName": "sto7280",
"containerName": "container8723",
"api-version": "2025-01-01",
"monitor": "true",
"LegalHold": {
"tags": [
"tag1",
"tag2",
"tag3"
]
}
},
"responses": {
"200": {
"body": {
"hasLegalHold": false,
"tags": []
}
}
}
}
Loading
Loading