Skip to content

Commit

Permalink
Apply Azure Container Instance API 2017-10-01-preview (#3829)
Browse files Browse the repository at this point in the history
* Apply Azure Container Instance API 2017-10-01-preview

* run generate cmd

* added release note
  • Loading branch information
yolocs authored and shahabhijeet committed Nov 7, 2017
1 parent f5cb15c commit 29762d3
Show file tree
Hide file tree
Showing 49 changed files with 1,599 additions and 604 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageId>ContainerInstance.Tests</PackageId>
<Description>ContainerInstance.Tests Class Library</Description>
<AssemblyName>ContainerInstance.Tests</AssemblyName>
<VersionPrefix>1.0.0-preview</VersionPrefix>
<VersionPrefix>1.0.1-preview</VersionPrefix>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public static ContainerGroup CreateTestContainerGroup(string containerGroupName)
{
new Container(
name: containerGroupName,
image: "nginx:latest",
image: "alpine",
ports: new List<ContainerPort>() { new ContainerPort(80) },
command: new List<string>() { "echo", "hello" },
resources: new ResourceRequirements(requests: new ResourceRequests(memoryInGB: 1.5, cpu: 1.0)))
};

Expand All @@ -56,6 +57,7 @@ public static ContainerGroup CreateTestContainerGroup(string containerGroupName)
location: "westus",
osType: OperatingSystemTypes.Linux,
ipAddress: ipAddress,
restartPolicy: "Never",
containers: containers);

return containerGroup;
Expand All @@ -67,6 +69,7 @@ public static void VerifyContainerGroupProperties(ContainerGroup expected, Conta
Assert.Equal(expected.Name, actual.Name);
Assert.Equal(expected.Location, actual.Location);
Assert.Equal(expected.OsType, actual.OsType);
Assert.Equal(expected.RestartPolicy, actual.RestartPolicy);
Assert.NotNull(actual.Containers);
Assert.Equal(1, actual.Containers.Count);
Assert.NotNull(actual.IpAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("80C5B642-F93C-4E68-9B37-04565D3CF6AB")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/6987baff-3f62-48c9-a604-3432d813f7e6/resourcegroups/aci_rg7133?api-version=2015-11-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjk4N2JhZmYtM2Y2Mi00OGM5LWE2MDQtMzQzMmQ4MTNmN2U2L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzcxMzM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==",
"RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg2716?api-version=2015-11-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzI3MTY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"location\": \"westus\"\r\n}",
"RequestHeaders": {
Expand All @@ -13,7 +13,7 @@
"28"
],
"x-ms-client-request-id": [
"0f03cad0-3a92-4c4f-aa61-7f877e4a00b9"
"a4fff762-7d90-4acc-acae-7e307ae74aed"
],
"accept-language": [
"en-US"
Expand All @@ -23,7 +23,7 @@
"Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0"
]
},
"ResponseBody": "{\r\n \"id\": \"/subscriptions/6987baff-3f62-48c9-a604-3432d813f7e6/resourceGroups/aci_rg7133\",\r\n \"name\": \"aci_rg7133\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
"ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2716\",\r\n \"name\": \"aci_rg2716\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
"173"
Expand All @@ -38,22 +38,22 @@
"no-cache"
],
"Date": [
"Tue, 22 Aug 2017 20:50:54 GMT"
"Wed, 01 Nov 2017 01:20:14 GMT"
],
"Pragma": [
"no-cache"
],
"x-ms-ratelimit-remaining-subscription-writes": [
"1197"
"1199"
],
"x-ms-request-id": [
"49e9ad80-fe75-4b14-94a3-533597114274"
"0d7c9583-8ad9-4369-b992-ce516aea758d"
],
"x-ms-correlation-request-id": [
"49e9ad80-fe75-4b14-94a3-533597114274"
"0d7c9583-8ad9-4369-b992-ce516aea758d"
],
"x-ms-routing-request-id": [
"WESTUS:20170822T205055Z:49e9ad80-fe75-4b14-94a3-533597114274"
"WESTUS2:20171101T012014Z:0d7c9583-8ad9-4369-b992-ce516aea758d"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
Expand All @@ -62,32 +62,32 @@
"StatusCode": 201
},
{
"RequestUri": "/subscriptions/6987baff-3f62-48c9-a604-3432d813f7e6/resourceGroups/aci_rg7133/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3461?api-version=2017-08-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNjk4N2JhZmYtM2Y2Mi00OGM5LWE2MDQtMzQzMmQ4MTNmN2U2L3Jlc291cmNlR3JvdXBzL2FjaV9yZzcxMzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMzQ2MT9hcGktdmVyc2lvbj0yMDE3LTA4LTAxLXByZXZpZXc=",
"RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2716/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5920?api-version=2017-10-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzI3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTkyMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3461\",\r\n \"properties\": {\r\n \"image\": \"nginx:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}",
"RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5920\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}",
"RequestHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
"616"
"721"
],
"x-ms-client-request-id": [
"c99141ec-f9d1-4cee-90b2-6116a00f3062"
"d109dbaf-d2fc-4f68-9df4-f6e50ae44d63"
],
"accept-language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.25211.01",
"Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.2.0.0"
"Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0"
]
},
"ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3461\",\r\n \"properties\": {\r\n \"image\": \"nginx:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.64.187.73\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/6987baff-3f62-48c9-a604-3432d813f7e6/resourceGroups/aci_rg7133/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3461\",\r\n \"name\": \"acinetsdk3461\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}",
"ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5920\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.83.149.21\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2716/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5920\",\r\n \"name\": \"acinetsdk5920\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}",
"ResponseHeaders": {
"Content-Length": [
"582"
"674"
],
"Content-Type": [
"application/json; charset=utf-8"
Expand All @@ -99,22 +99,22 @@
"no-cache"
],
"Date": [
"Tue, 22 Aug 2017 20:50:55 GMT"
"Wed, 01 Nov 2017 01:20:16 GMT"
],
"Pragma": [
"no-cache"
],
"x-ms-request-id": [
"westus:d5c346f1-58e5-4c29-9a4c-e2306966df45"
"westus:d9c27895-3028-4ef5-a192-fc1776738a09"
],
"x-ms-ratelimit-remaining-subscription-writes": [
"1196"
"1198"
],
"x-ms-correlation-request-id": [
"7e8ace92-15fa-4c79-ad1e-70abf48d92fc"
"efbd9ea4-05be-46b6-8413-5b0fbc5646e2"
],
"x-ms-routing-request-id": [
"WESTUS:20170822T205055Z:7e8ace92-15fa-4c79-ad1e-70abf48d92fc"
"WESTUS2:20171101T012016Z:efbd9ea4-05be-46b6-8413-5b0fbc5646e2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
Expand All @@ -125,13 +125,13 @@
],
"Names": {
"CreateResourceGroup": [
"aci_rg7133"
"aci_rg2716"
],
"ContainerInstanceCreateTest": [
"acinetsdk3461"
"acinetsdk5920"
]
},
"Variables": {
"SubscriptionId": "6987baff-3f62-48c9-a604-3432d813f7e6"
"SubscriptionId": "ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78"
}
}
Loading

0 comments on commit 29762d3

Please sign in to comment.