Skip to content

Commit 22c5319

Browse files
AbyssknightSDK AutomationShixun Guan
authored
release for mgmt containerinstance (Azure#12178)
* Generated from 26e10fdf6dd53c10883de3fa638d82e833ef1143 updated readme files * update version * fix * update test Co-authored-by: SDK Automation <[email protected]> Co-authored-by: Shixun Guan <[email protected]>
1 parent a7de136 commit 22c5319

File tree

112 files changed

+4393
-4914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+4393
-4914
lines changed

sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Release History
22

3+
## 2.0.0 (2020-06-24)
4+
5+
**Features**
6+
7+
- Model ContainerGroup has a new parameter init_containers
8+
- Model ContainerGroup has a new parameter sku
9+
- Model ContainerGroup has a new parameter encryption_properties
10+
- Added operation group ContainersOperations
11+
- Added operation group LocationOperations
12+
13+
**Breaking changes**
14+
15+
- Model CachedImages no longer has parameter id
16+
- Removed operation group ContainerGroupUsageOperations
17+
- Removed operation group ServiceAssociationLinkOperations
18+
- Removed operation group ContainerOperations
19+
320
## 1.5.0 (2019-05-22)
421

522
**Features**
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Container Instance Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
46

5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
77

8-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
8+
# Usage
99

10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
12-
library.
13-
14-
For a more complete set of Azure libraries, see the
15-
[azure](https://pypi.python.org/pypi/azure) bundle package.
16-
17-
## Usage
18-
19-
For code examples, see [Container
20-
Instance](https://docs.microsoft.com/python/api/overview/azure/containerinstance)
10+
For code examples, see [Container Instance](https://docs.microsoft.com/python/api/overview/azure/containerinstance)
2111
on docs.microsoft.com.
2212

23-
## Provide Feedback
2413

25-
If you encounter any bugs or have suggestions, please file an issue in
26-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2718
section of the project.
2819

29-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-containerinstance%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-containerinstance%2FREADME.png)

sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .container_instance_management_client import ContainerInstanceManagementClient
13-
from .version import VERSION
12+
from ._configuration import ContainerInstanceManagementClientConfiguration
13+
from ._container_instance_management_client import ContainerInstanceManagementClient
14+
__all__ = ['ContainerInstanceManagementClient', 'ContainerInstanceManagementClientConfiguration']
1415

15-
__all__ = ['ContainerInstanceManagementClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ContainerInstanceManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for ContainerInstanceManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Subscription credentials which uniquely identify
25+
Microsoft Azure subscription. The subscription ID forms part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(ContainerInstanceManagementClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-containerinstance/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import ContainerInstanceManagementClientConfiguration
16+
from .operations import ContainerGroupsOperations
17+
from .operations import Operations
18+
from .operations import LocationOperations
19+
from .operations import ContainersOperations
20+
from . import models
21+
22+
23+
class ContainerInstanceManagementClient(SDKClient):
24+
"""ContainerInstanceManagementClient
25+
26+
:ivar config: Configuration for client.
27+
:vartype config: ContainerInstanceManagementClientConfiguration
28+
29+
:ivar container_groups: ContainerGroups operations
30+
:vartype container_groups: azure.mgmt.containerinstance.operations.ContainerGroupsOperations
31+
:ivar operations: Operations operations
32+
:vartype operations: azure.mgmt.containerinstance.operations.Operations
33+
:ivar location: Location operations
34+
:vartype location: azure.mgmt.containerinstance.operations.LocationOperations
35+
:ivar containers: Containers operations
36+
:vartype containers: azure.mgmt.containerinstance.operations.ContainersOperations
37+
38+
:param credentials: Credentials needed for the client to connect to Azure.
39+
:type credentials: :mod:`A msrestazure Credentials
40+
object<msrestazure.azure_active_directory>`
41+
:param subscription_id: Subscription credentials which uniquely identify
42+
Microsoft Azure subscription. The subscription ID forms part of the URI
43+
for every service call.
44+
:type subscription_id: str
45+
:param str base_url: Service URL
46+
"""
47+
48+
def __init__(
49+
self, credentials, subscription_id, base_url=None):
50+
51+
self.config = ContainerInstanceManagementClientConfiguration(credentials, subscription_id, base_url)
52+
super(ContainerInstanceManagementClient, self).__init__(self.config.credentials, self.config)
53+
54+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
55+
self.api_version = '2019-12-01'
56+
self._serialize = Serializer(client_models)
57+
self._deserialize = Deserializer(client_models)
58+
59+
self.container_groups = ContainerGroupsOperations(
60+
self._client, self.config, self._serialize, self._deserialize)
61+
self.operations = Operations(
62+
self._client, self.config, self._serialize, self._deserialize)
63+
self.location = LocationOperations(
64+
self._client, self.config, self._serialize, self._deserialize)
65+
self.containers = ContainersOperations(
66+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)