Skip to content

Commit

Permalink
Adding new changes to the september swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
sakreter committed Sep 4, 2018
1 parent fc69acf commit 5e3cbec
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
}
},
"summary": "Restarts all containers in a container group.",
"description": "Restarts all containers in a contaienr group in place. If container image has updates, new image will be downloaded.",
"description": "Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -300,7 +300,7 @@
}
},
"summary": "Stops all containers in a container group.",
"description": "Stops all containers in a contaienr group. Compute resources will be deallocated and billing will stop.",
"description": "Stops all containers in a container group. Compute resources will be deallocated and billing will stop.",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -975,6 +975,10 @@
"diagnostics": {
"description": "The diagnostic information for a container group.",
"$ref": "#/definitions/ContainerGroupDiagnostics"
},
"networkProfile": {
"description": "The network profile information for a container group.",
"$ref": "#/definitions/ContainerGroupNetworkProfile"
}
},
"required": [
Expand Down Expand Up @@ -1029,13 +1033,45 @@
"workspaceKey": {
"description": "The workspace key for log analytics",
"type": "string"
},
"logType": {
"type": "string",
"description": "The log type to be used.",
"enum": [
"ContainerInsights",
"ContainerInstanceLogs"
],
"x-ms-enum": {
"name": "LogAnalyticsLogType",
"modelAsString": true
}
},
"metadata": {
"type": "object",
"description": "Metadata for log analytics.",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"workspaceId",
"workspaceKey"
]
},
"ContainerGroupNetworkProfile": {
"description": "Container group network profile information.",
"type": "object",
"properties": {
"id": {
"description": "The identifier for a network profile.",
"type": "string"
}
},
"required": [
"id"
]
},
"IpAddress": {
"description": "IP address for the container group.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@
"diagnostics": {
"logAnalytics": {
"workspaceId": "workspaceid",
"workspaceKey": "workspaceKey"
"workspaceKey": "workspaceKey",
"logType": "ContainerInsights",
"metadata": {
"test-key": "test-metadata-value"
}
}
},
"networkProfile": {
"id": "test-network-profile-id"
},
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
Expand Down
10 changes: 10 additions & 0 deletions specification/containerinstance/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-09
- tag: package-2018-06
- tag: package-2018-04
- tag: package-2018-02-preview
Expand All @@ -21,6 +22,15 @@ batch:
- tag: package-2017-08-preview
```
### Tag: package-2018-09 and go
These settings apply only when `--tag=package-2018-09 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-09' && $(go)
output-folder: $(go-sdk-folder)/services/containerinstance/mgmt/2018-09-01/containerinstance
```

### Tag: package-2018-06 and go

These settings apply only when `--tag=package-2018-06 --go` is specified on the command line.
Expand Down
11 changes: 10 additions & 1 deletion specification/containerinstance/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ These are the global settings for the ContainerInstance API.

``` yaml
openapi-type: arm
tag: package-2018-06
tag: package-2018-09
```
### Tag: package-2018-09
These settings apply only when `--tag=package-2018-09` is specified on the command line.

``` yaml $(tag) == 'package-2018-09'
input-file:
- Microsoft.ContainerInstance/stable/2018-09-01/containerInstance.json
```

### Tag: package-2018-06
Expand Down
33 changes: 33 additions & 0 deletions specification/containerinstance/resource-manager/readme.ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,45 @@ azure-arm: true
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2018-09
- tag: package-2018-06
- tag: package-2018-04
- tag: package-2018-02-preview
- tag: package-2017-12-preview
- tag: package-2017-10-preview
- tag: package-2017-08-preview
```
### Tag: package-2018-09 and ruby
These settings apply only when `--tag=package-2018-09 --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2018-09' && $(ruby)
namespace: "Azure::ContainerInstance::Mgmt::V2018_02_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_container_instance/lib
```

### Tag: package-2018-06 and ruby

These settings apply only when `--tag=package-2018-06 --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2018-06' && $(ruby)
namespace: "Azure::ContainerInstance::Mgmt::V2018_02_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_container_instance/lib
```

### Tag: package-2018-04 and ruby

These settings apply only when `--tag=package-2018-04 --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`.

``` yaml $(tag) == 'package-2018-04' && $(ruby)
namespace: "Azure::ContainerInstance::Mgmt::V2018_02_01_preview"
output-folder: $(ruby-sdks-folder)/management/azure_mgmt_container_instance/lib
```

### Tag: package-2018-02-preview and ruby

These settings apply only when `--tag=package-2018-02-preview --ruby` is specified on the command line.
Expand Down

0 comments on commit 5e3cbec

Please sign in to comment.