Skip to content

Commit

Permalink
Rechen batch microsoft.batch 2024 07 01 (#29957)
Browse files Browse the repository at this point in the history
* Copy files from stable/2024-02-01

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to stable/2024-07-01

Updated the API version from stable/2024-02-01 to stable/2024-07-01.

* Added tag for 2024-07-01 in readme file

* 2024-07-01 updates

* Update with NetworkSecurityPerimeter

* Fix errors and remove cloudserviceskus

* Replace cloudserviceconfig with vmconfig in examples

* Prettier fixes

* Prettier fixes

* Final prettier fix

* Create sdk-suppressions.yaml

* Update sdk-suppressions.yaml

* update sdk-suppressions.yaml

* Update sdk-suppressions.yaml

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Co-authored-by: Alancere <804873052@qq.com>
  • Loading branch information
4 people authored Aug 21, 2024
1 parent e8a00d5 commit 29a580f
Show file tree
Hide file tree
Showing 85 changed files with 12,706 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
{
"swagger": "2.0",
"info": {
"title": "BatchManagementClient",
"description": "The Batch Management Client.",
"version": "2024-07-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Microsoft Entra OAuth 2.0 auth code flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/networkSecurityPerimeterConfigurations": {
"get": {
"tags": [
"NetworkSecurityPerimeter"
],
"operationId": "NetworkSecurityPerimeter_ListConfigurations",
"description": "Lists all of the NSP configurations in the specified account.",
"x-ms-examples": {
"ListNspConfigurations": {
"$ref": "./examples/NspConfigurationsList.json"
}
},
"parameters": [
{
"$ref": "./BatchManagement.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/AccountNameParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "The operation was successful. The response contains a list of NSP configurations associated with the account.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/networksecurityperimeter.json#/definitions/NetworkSecurityPerimeterConfigurationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./BatchManagement.json#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}": {
"get": {
"tags": [
"NetworkSecurityPerimeter"
],
"operationId": "NetworkSecurityPerimeter_GetConfiguration",
"description": "Gets information about the specified NSP configuration.",
"x-ms-examples": {
"GetNspConfiguration": {
"$ref": "./examples/NspConfigurationGet.json"
}
},
"parameters": [
{
"$ref": "./BatchManagement.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/AccountNameParameter"
},
{
"$ref": "#/parameters/networkSecurityPerimeterConfigurationName"
},
{
"$ref": "./BatchManagement.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "The operation was successful. The response contains the NSP configuration.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/networksecurityperimeter.json#/definitions/NetworkSecurityPerimeterConfiguration"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./BatchManagement.json#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile": {
"post": {
"tags": [
"NetworkSecurityPerimeter"
],
"operationId": "NetworkSecurityPerimeter_ReconcileConfiguration",
"description": "Reconciles the specified NSP configuration.",
"x-ms-examples": {
"ReconcileNspConfiguration": {
"$ref": "./examples/NspConfigurationReconcile.json"
}
},
"parameters": [
{
"$ref": "./BatchManagement.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./BatchManagement.json#/parameters/AccountNameParameter"
},
{
"$ref": "#/parameters/networkSecurityPerimeterConfigurationName"
},
{
"$ref": "./BatchManagement.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"202": {
"description": "The operation was accepted and will be performed in the background.",
"headers": {
"Location": {
"description": "The URL of the resource used to check the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that specifies the delay in seconds.",
"type": "integer",
"format": "int32"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"x-ms-error-response": true,
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
"parameters": {
"networkSecurityPerimeterConfigurationName": {
"name": "networkSecurityPerimeterConfigurationName",
"in": "path",
"required": true,
"type": "string",
"pattern": "^.*$",
"description": "The name for Network Security Perimeter configuration",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid",
"applicationName": "app1",
"parameters": {
"properties": {
"allowUpdates": false,
"displayName": "myAppName"
}
}
},
"responses": {
"200": {
"headers": {
"ETag": "W/\"0x8D64F8EBB3DC411\""
},
"body": {
"type": "Microsoft.Batch/batchAccounts/applications",
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
"name": "app1",
"etag": "W/\"0x8D64F8EBB3DC411\"",
"properties": {
"allowUpdates": false,
"displayName": "myAppName"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid",
"applicationName": "app1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid",
"applicationName": "app1"
},
"responses": {
"200": {
"headers": {
"ETag": "W/\"0x8D64F915BDF7F00\""
},
"body": {
"type": "Microsoft.Batch/batchAccounts/applications",
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
"name": "app1",
"etag": "W/\"0x8D64F915BDF7F00\"",
"properties": {
"allowUpdates": true,
"displayName": "Sample Application"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"type": "Microsoft.Batch/batchAccounts/applications",
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
"name": "app1",
"etag": "W/\"0x8D64F91A9089879\"",
"properties": {
"allowUpdates": false,
"defaultVersion": "1"
}
},
{
"type": "Microsoft.Batch/batchAccounts/applications",
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app2",
"name": "app1",
"etag": "W/\"0x8D64F91A9089879\"",
"properties": {
"allowUpdates": false,
"defaultVersion": "2.0",
"displayName": "myAppName"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid",
"applicationName": "app1",
"versionName": "1",
"parameters": {
"format": "zip"
}
},
"responses": {
"200": {
"headers": {
"ETag": "W/\"0x8D64FEC83A3B436\""
},
"body": {
"type": "Microsoft.Batch/batchAccounts/applications/versions",
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1",
"name": "1",
"etag": "W/\"0x8D64FEC83A3B436\"",
"properties": {
"state": "Active",
"format": "zip",
"lastActivationTime": "2017-06-27T18:48:09.9330991Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid",
"applicationName": "app1",
"versionName": "1"
},
"responses": {
"200": {
"headers": {
"ETag": "W/\"0x8D64FEC83A3B436\""
},
"body": {
"type": "Microsoft.Batch/batchAccounts/applications/versions",
"id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1",
"name": "1",
"etag": "W/\"0x8D64FEC83A3B436\"",
"properties": {
"storageUrl": "http://mystorage1.blob.core.windows.net/myapp?mysas",
"storageUrlExpiry": "2017-06-27T18:48:09.9330991Z",
"state": "Pending"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"accountName": "sampleacct",
"resourceGroupName": "default-azurebatch-japaneast",
"api-version": "2024-07-01",
"subscriptionId": "subid",
"applicationName": "app1",
"versionName": "1"
},
"responses": {
"200": {},
"204": {}
}
}
Loading

0 comments on commit 29a580f

Please sign in to comment.