Skip to content

Commit

Permalink
azure-mgmt-containerservice 4.0.0 (#2186)
Browse files Browse the repository at this point in the history
* Generated from 8a259e0b55e6b455d866afb9d3dc1fa88e032193 (#2185)

Sync up ACS VM sizes with AKS sizes

* Generated from 63832619ea68b0f3b93c37f2ac2be54a5b3dba83 (#2195)

[AKS] specify byte format for base64-encoded kubeconfig

* Generated from 8906ba9709671ec120effb24013ed55425576606 (#2551)

Sync ACS & AKS' VM sizes lists

* [AutoPR containerservices/resource-manager] [AKS] add POST endpoint for fetching accessProfiles (#2583)

* Generated from 3c1665f522ece941d8c827b3e8ee539c2cdaf846

[AKS] add POST endpoint for fetching accessProfiles

* Generated from a86af5dd1b974ecc3b58e95efc228497137d79a3

Mark GET endpoint for accessProfiles as deprecated

* Generated from 14544bfbd10b7319f64f1174b84801347ace5dc9

Bump package version

* Generated from a69eb4b470374683c3bc4e86491aa60ae0a161ea

Rename to GetAccessProfile

* ACS auto packaging

* azure-mgmt-containerservice 4.0.0

* [AutoPR containerservices/resource-manager] [AKS] add new 2018-03-31 API  (#2631)

* Generated from e365e10741ba688b8c3b39b67986e2b6e06e4ddc

Rename to ManagedClusterAgentPoolProfile.

Its fields have diverged from ContainerServiceAgentPoolProfile.

* Generated from 3047e9e632f7c44d4a88f3c768fc1de4dd9f40ec

Py version

* Generated from d61dfda40f6a7498040fee441c1b23cb6a1bc01a

Incorporated review comments

* Generated from 33469ca0e594d658a51b73dcb5e7f9526c768024 (#2684)

Rename to "Operation" from "ComputeOperation"

* Generated from 75bc2c7e14e354c5d782f6e001cf865a8d55cfdb (#2682)

[AKS] remove maxPods default
  • Loading branch information
AutorestCI authored and lmazuel committed Jun 5, 2018
1 parent 8fc953a commit ce29625
Show file tree
Hide file tree
Showing 66 changed files with 2,671 additions and 624 deletions.
38 changes: 38 additions & 0 deletions azure-mgmt-containerservice/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,44 @@
Release History
===============

4.0.0 (2018-05-25)
++++++++++++++++++

**Features**

- Added operation ManagedClustersOperations.get_access_profile
- Updated VM sizes
- Client class can be used as a context manager to keep the underlying HTTP session open for performance

**General Breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes.

- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments.
To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
While this is not a breaking change, the distinctions are important, and are documented here:
https://docs.python.org/3/library/enum.html#others
At a glance:

- "is" should not be used at all.
- "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered.

- New Long Running Operation:

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
- `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`.
- `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away.

**Bugfixes**

- Compatibility of the sdist with wheel 0.31.0

3.0.1 (2018-01-25)
++++++++++++++++++

Expand Down
10 changes: 5 additions & 5 deletions azure-mgmt-containerservice/README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure Container Service Client Library.
This is the Microsoft Azure Container Service Management Client Library.

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

This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down Expand Up @@ -36,9 +36,9 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `Container Service
<https://azure-sdk-for-python.readthedocs.org/en/latest/sample_azure-mgmt-containerservice.html>`__
on readthedocs.org.
For code examples, see `Container Service Management
<https://docs.microsoft.com/python/api/overview/azure/containerservice>`__
on docs.microsoft.com.


Provide Feedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.container_services_operations import ContainerServicesOperations
from .operations.operations import Operations
from .operations.managed_clusters_operations import ManagedClustersOperations
from . import models

Expand Down Expand Up @@ -52,14 +53,16 @@ def __init__(
self.subscription_id = subscription_id


class ContainerServiceClient(object):
class ContainerServiceClient(SDKClient):
"""The Container Service Client.
:ivar config: Configuration for client.
:vartype config: ContainerServiceClientConfiguration
:ivar container_services: ContainerServices operations
:vartype container_services: azure.mgmt.containerservice.operations.ContainerServicesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.containerservice.operations.Operations
:ivar managed_clusters: ManagedClusters operations
:vartype managed_clusters: azure.mgmt.containerservice.operations.ManagedClustersOperations
Expand All @@ -77,13 +80,15 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ContainerServiceClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.container_services = ContainerServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_clusters = ManagedClustersOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,70 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .container_service_custom_profile import ContainerServiceCustomProfile
from .key_vault_secret_ref import KeyVaultSecretRef
from .container_service_service_principal_profile import ContainerServiceServicePrincipalProfile
from .container_service_orchestrator_profile import ContainerServiceOrchestratorProfile
from .container_service_master_profile import ContainerServiceMasterProfile
from .container_service_agent_pool_profile import ContainerServiceAgentPoolProfile
from .container_service_windows_profile import ContainerServiceWindowsProfile
from .container_service_ssh_public_key import ContainerServiceSshPublicKey
from .container_service_ssh_configuration import ContainerServiceSshConfiguration
from .container_service_linux_profile import ContainerServiceLinuxProfile
from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics
from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile
from .container_service import ContainerService
from .managed_cluster import ManagedCluster
from .orchestrator_profile import OrchestratorProfile
from .managed_cluster_access_profile import ManagedClusterAccessProfile
from .managed_cluster_pool_upgrade_profile import ManagedClusterPoolUpgradeProfile
from .managed_cluster_upgrade_profile import ManagedClusterUpgradeProfile
from .orchestrator_version_profile import OrchestratorVersionProfile
from .orchestrator_version_profile_list_result import OrchestratorVersionProfileListResult
try:
from .resource_py3 import Resource
from .container_service_custom_profile_py3 import ContainerServiceCustomProfile
from .key_vault_secret_ref_py3 import KeyVaultSecretRef
from .container_service_service_principal_profile_py3 import ContainerServiceServicePrincipalProfile
from .container_service_orchestrator_profile_py3 import ContainerServiceOrchestratorProfile
from .container_service_master_profile_py3 import ContainerServiceMasterProfile
from .container_service_agent_pool_profile_py3 import ContainerServiceAgentPoolProfile
from .container_service_windows_profile_py3 import ContainerServiceWindowsProfile
from .container_service_ssh_public_key_py3 import ContainerServiceSshPublicKey
from .container_service_ssh_configuration_py3 import ContainerServiceSshConfiguration
from .container_service_linux_profile_py3 import ContainerServiceLinuxProfile
from .container_service_vm_diagnostics_py3 import ContainerServiceVMDiagnostics
from .container_service_diagnostics_profile_py3 import ContainerServiceDiagnosticsProfile
from .container_service_py3 import ContainerService
from .operation_value_py3 import OperationValue
from .managed_cluster_agent_pool_profile_py3 import ManagedClusterAgentPoolProfile
from .container_service_network_profile_py3 import ContainerServiceNetworkProfile
from .managed_cluster_addon_profile_py3 import ManagedClusterAddonProfile
from .managed_cluster_aad_profile_py3 import ManagedClusterAADProfile
from .managed_cluster_py3 import ManagedCluster
from .orchestrator_profile_py3 import OrchestratorProfile
from .managed_cluster_access_profile_py3 import ManagedClusterAccessProfile
from .managed_cluster_pool_upgrade_profile_py3 import ManagedClusterPoolUpgradeProfile
from .managed_cluster_upgrade_profile_py3 import ManagedClusterUpgradeProfile
from .orchestrator_version_profile_py3 import OrchestratorVersionProfile
from .orchestrator_version_profile_list_result_py3 import OrchestratorVersionProfileListResult
except (SyntaxError, ImportError):
from .resource import Resource
from .container_service_custom_profile import ContainerServiceCustomProfile
from .key_vault_secret_ref import KeyVaultSecretRef
from .container_service_service_principal_profile import ContainerServiceServicePrincipalProfile
from .container_service_orchestrator_profile import ContainerServiceOrchestratorProfile
from .container_service_master_profile import ContainerServiceMasterProfile
from .container_service_agent_pool_profile import ContainerServiceAgentPoolProfile
from .container_service_windows_profile import ContainerServiceWindowsProfile
from .container_service_ssh_public_key import ContainerServiceSshPublicKey
from .container_service_ssh_configuration import ContainerServiceSshConfiguration
from .container_service_linux_profile import ContainerServiceLinuxProfile
from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics
from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile
from .container_service import ContainerService
from .operation_value import OperationValue
from .managed_cluster_agent_pool_profile import ManagedClusterAgentPoolProfile
from .container_service_network_profile import ContainerServiceNetworkProfile
from .managed_cluster_addon_profile import ManagedClusterAddonProfile
from .managed_cluster_aad_profile import ManagedClusterAADProfile
from .managed_cluster import ManagedCluster
from .orchestrator_profile import OrchestratorProfile
from .managed_cluster_access_profile import ManagedClusterAccessProfile
from .managed_cluster_pool_upgrade_profile import ManagedClusterPoolUpgradeProfile
from .managed_cluster_upgrade_profile import ManagedClusterUpgradeProfile
from .orchestrator_version_profile import OrchestratorVersionProfile
from .orchestrator_version_profile_list_result import OrchestratorVersionProfileListResult
from .container_service_paged import ContainerServicePaged
from .operation_value_paged import OperationValuePaged
from .managed_cluster_paged import ManagedClusterPaged
from .container_service_client_enums import (
ContainerServiceStorageProfileTypes,
ContainerServiceVMSizeTypes,
ContainerServiceOrchestratorTypes,
OSType,
NetworkPlugin,
NetworkPolicy,
)

__all__ = [
Expand All @@ -54,6 +90,11 @@
'ContainerServiceVMDiagnostics',
'ContainerServiceDiagnosticsProfile',
'ContainerService',
'OperationValue',
'ManagedClusterAgentPoolProfile',
'ContainerServiceNetworkProfile',
'ManagedClusterAddonProfile',
'ManagedClusterAADProfile',
'ManagedCluster',
'OrchestratorProfile',
'ManagedClusterAccessProfile',
Expand All @@ -62,9 +103,12 @@
'OrchestratorVersionProfile',
'OrchestratorVersionProfileListResult',
'ContainerServicePaged',
'OperationValuePaged',
'ManagedClusterPaged',
'ContainerServiceStorageProfileTypes',
'ContainerServiceVMSizeTypes',
'ContainerServiceOrchestratorTypes',
'OSType',
'NetworkPlugin',
'NetworkPolicy',
]
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@ class ContainerService(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param location: Resource location
:param location: Required. Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
:ivar provisioning_state: The current deployment or provisioning state,
which only appears in the response.
:vartype provisioning_state: str
:param orchestrator_profile: Profile for the container service
:param orchestrator_profile: Required. Profile for the container service
orchestrator.
:type orchestrator_profile:
~azure.mgmt.containerservice.models.ContainerServiceOrchestratorProfile
Expand All @@ -44,7 +46,7 @@ class ContainerService(Resource):
secret or keyVaultSecretRef need to be specified.
:type service_principal_profile:
~azure.mgmt.containerservice.models.ContainerServiceServicePrincipalProfile
:param master_profile: Profile for the container service master.
:param master_profile: Required. Profile for the container service master.
:type master_profile:
~azure.mgmt.containerservice.models.ContainerServiceMasterProfile
:param agent_pool_profiles: Properties of the agent pool.
Expand All @@ -54,8 +56,8 @@ class ContainerService(Resource):
cluster.
:type windows_profile:
~azure.mgmt.containerservice.models.ContainerServiceWindowsProfile
:param linux_profile: Profile for Linux VMs in the container service
cluster.
:param linux_profile: Required. Profile for Linux VMs in the container
service cluster.
:type linux_profile:
~azure.mgmt.containerservice.models.ContainerServiceLinuxProfile
:param diagnostics_profile: Profile for diagnostics in the container
Expand Down Expand Up @@ -92,14 +94,14 @@ class ContainerService(Resource):
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'ContainerServiceDiagnosticsProfile'},
}

def __init__(self, location, orchestrator_profile, master_profile, linux_profile, tags=None, custom_profile=None, service_principal_profile=None, agent_pool_profiles=None, windows_profile=None, diagnostics_profile=None):
super(ContainerService, self).__init__(location=location, tags=tags)
def __init__(self, **kwargs):
super(ContainerService, self).__init__(**kwargs)
self.provisioning_state = None
self.orchestrator_profile = orchestrator_profile
self.custom_profile = custom_profile
self.service_principal_profile = service_principal_profile
self.master_profile = master_profile
self.agent_pool_profiles = agent_pool_profiles
self.windows_profile = windows_profile
self.linux_profile = linux_profile
self.diagnostics_profile = diagnostics_profile
self.orchestrator_profile = kwargs.get('orchestrator_profile', None)
self.custom_profile = kwargs.get('custom_profile', None)
self.service_principal_profile = kwargs.get('service_principal_profile', None)
self.master_profile = kwargs.get('master_profile', None)
self.agent_pool_profiles = kwargs.get('agent_pool_profiles', None)
self.windows_profile = kwargs.get('windows_profile', None)
self.linux_profile = kwargs.get('linux_profile', None)
self.diagnostics_profile = kwargs.get('diagnostics_profile', None)
Loading

0 comments on commit ce29625

Please sign in to comment.