Skip to content

Commit

Permalink
[AutoPR] containerregistry/resource-manager (#5950)
Browse files Browse the repository at this point in the history
* Generated from d398318390843d123b88052f15aa1988d6463210 (#5836)

chore: jsonfmt containerregistry

Ran `jsonfmt -w "specification/containerregistry/**/*.json"`

* [AutoPR containerregistry/resource-manager] [ACR] Support Overriding Task parameters, support for ContinuationToken [NEW preview API VERSION] (#5909)

* Generated from 7282ae69d0aa3259a8a074071aab9cc48006be83

Merge branch 'shahzzam/add-2019-06-01' of https://github.com/shahzzzam/azure-rest-api-specs into shahzzam/add-2019-06-01

* Generated from 701efa178e7cc3846724dbdb9c2cdf430c7009ce

address comments

* Packaging update of azure-mgmt-containerregistry

* Remove incorrect files

* Generated from 3abc3945a00ebb1d00bc5f539aafabb7f748c015 (#6190)

Fix Swagger for ACR Python

* Multi regeneration

* ChangeLog
  • Loading branch information
AutorestCI authored and lmazuel committed Jul 2, 2019
1 parent 4133a17 commit eaf7df8
Show file tree
Hide file tree
Showing 23 changed files with 11,334 additions and 11 deletions.
28 changes: 28 additions & 0 deletions sdk/containerregistry/azure-mgmt-containerregistry/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
Release History
===============

3.0.0rc3 (2019-07-01)
+++++++++++++++++++++

New preview API version 2019-06-01-preview contains:

**Features**

- Model BaseImageTriggerUpdateParameters has a new parameter update_trigger_payload_type
- Model BaseImageTriggerUpdateParameters has a new parameter update_trigger_endpoint
- Model RegistryUpdateParameters has a new parameter policies
- Model Registry has a new parameter policies
- Model TaskRunRequest has a new parameter override_task_step_properties
- Model BaseImageTrigger has a new parameter update_trigger_payload_type
- Model BaseImageTrigger has a new parameter update_trigger_endpoint
- Model Run has a new parameter update_trigger_token
- Added operation RegistriesOperations.get_build_source_upload_url
- Added operation RegistriesOperations.schedule_run

**Breaking changes**

- Model RegistryUpdateParameters no longer has parameter storage_account
- Model TaskRunRequest no longer has parameter task_name
- Model TaskRunRequest no longer has parameter values
- Model TaskRunRequest has a new required parameter task_id
- Removed operation RegistriesOperations.list_policies
- Removed operation RegistriesOperations.generate_credentials
- Removed operation RegistriesOperations.update_policies

3.0.0rc2 (2019-06-12)
+++++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Container Registry 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.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
from .version import VERSION
from ._configuration import ContainerRegistryManagementClientConfiguration


Expand Down Expand Up @@ -55,8 +54,6 @@ class ContainerRegistryManagementClient(MultiApiClientMixin, SDKClient):
'build_steps': '2018-02-01-preview',
'build_tasks': '2018-02-01-preview',
'builds': '2018-02-01-preview',
'scope_maps': '2019-05-01-preview',
'tokens': '2019-05-01-preview',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -85,6 +82,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2019-04-01: :mod:`v2019_04_01.models<azure.mgmt.containerregistry.v2019_04_01.models>`
* 2019-05-01: :mod:`v2019_05_01.models<azure.mgmt.containerregistry.v2019_05_01.models>`
* 2019-05-01-preview: :mod:`v2019_05_01_preview.models<azure.mgmt.containerregistry.v2019_05_01_preview.models>`
* 2019-06-01-preview: :mod:`v2019_06_01_preview.models<azure.mgmt.containerregistry.v2019_06_01_preview.models>`
"""
if api_version == '2017-03-01':
from .v2017_03_01 import models
Expand All @@ -107,6 +105,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2019-05-01-preview':
from .v2019_05_01_preview import models
return models
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -159,6 +160,7 @@ def operations(self):
* 2019-04-01: :class:`Operations<azure.mgmt.containerregistry.v2019_04_01.operations.Operations>`
* 2019-05-01: :class:`Operations<azure.mgmt.containerregistry.v2019_05_01.operations.Operations>`
* 2019-05-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2019_05_01_preview.operations.Operations>`
* 2019-06-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.Operations>`
"""
api_version = self._get_api_version('operations')
if api_version == '2017-03-01':
Expand All @@ -175,6 +177,8 @@ def operations(self):
from .v2019_05_01.operations import Operations as OperationClass
elif api_version == '2019-05-01-preview':
from .v2019_05_01_preview.operations import Operations as OperationClass
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import Operations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -190,6 +194,7 @@ def registries(self):
* 2019-04-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2019_04_01.operations.RegistriesOperations>`
* 2019-05-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2019_05_01.operations.RegistriesOperations>`
* 2019-05-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2019_05_01_preview.operations.RegistriesOperations>`
* 2019-06-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.RegistriesOperations>`
"""
api_version = self._get_api_version('registries')
if api_version == '2017-03-01':
Expand All @@ -206,6 +211,8 @@ def registries(self):
from .v2019_05_01.operations import RegistriesOperations as OperationClass
elif api_version == '2019-05-01-preview':
from .v2019_05_01_preview.operations import RegistriesOperations as OperationClass
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import RegistriesOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -220,6 +227,7 @@ def replications(self):
* 2019-04-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_04_01.operations.ReplicationsOperations>`
* 2019-05-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_05_01.operations.ReplicationsOperations>`
* 2019-05-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_05_01_preview.operations.ReplicationsOperations>`
* 2019-06-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.ReplicationsOperations>`
"""
api_version = self._get_api_version('replications')
if api_version == '2017-10-01':
Expand All @@ -234,6 +242,8 @@ def replications(self):
from .v2019_05_01.operations import ReplicationsOperations as OperationClass
elif api_version == '2019-05-01-preview':
from .v2019_05_01_preview.operations import ReplicationsOperations as OperationClass
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import ReplicationsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -245,6 +255,7 @@ def runs(self):
* 2018-09-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2018_09_01.operations.RunsOperations>`
* 2019-04-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2019_04_01.operations.RunsOperations>`
* 2019-05-01: :class:`RunsOperations<azure.mgmt.containerregistry.v2019_05_01.operations.RunsOperations>`
* 2019-06-01-preview: :class:`RunsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.RunsOperations>`
"""
api_version = self._get_api_version('runs')
if api_version == '2018-09-01':
Expand All @@ -253,6 +264,8 @@ def runs(self):
from .v2019_04_01.operations import RunsOperations as OperationClass
elif api_version == '2019-05-01':
from .v2019_05_01.operations import RunsOperations as OperationClass
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import RunsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -277,6 +290,7 @@ def tasks(self):
* 2018-09-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2018_09_01.operations.TasksOperations>`
* 2019-04-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2019_04_01.operations.TasksOperations>`
* 2019-05-01: :class:`TasksOperations<azure.mgmt.containerregistry.v2019_05_01.operations.TasksOperations>`
* 2019-06-01-preview: :class:`TasksOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.TasksOperations>`
"""
api_version = self._get_api_version('tasks')
if api_version == '2018-09-01':
Expand All @@ -285,6 +299,8 @@ def tasks(self):
from .v2019_04_01.operations import TasksOperations as OperationClass
elif api_version == '2019-05-01':
from .v2019_05_01.operations import TasksOperations as OperationClass
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import TasksOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -312,6 +328,7 @@ def webhooks(self):
* 2019-04-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_04_01.operations.WebhooksOperations>`
* 2019-05-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_05_01.operations.WebhooksOperations>`
* 2019-05-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_05_01_preview.operations.WebhooksOperations>`
* 2019-06-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.WebhooksOperations>`
"""
api_version = self._get_api_version('webhooks')
if api_version == '2017-10-01':
Expand All @@ -326,6 +343,8 @@ def webhooks(self):
from .v2019_05_01.operations import WebhooksOperations as OperationClass
elif api_version == '2019-05-01-preview':
from .v2019_05_01_preview.operations import WebhooksOperations as OperationClass
elif api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import WebhooksOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from .v2017_03_01.models import *
from .v2017_10_01.models import *
from .v2018_02_01_preview.models import *
from .v2018_09_01.models import *
from .v2019_04_01.models import *
from .v2019_05_01.models import *
from .v2019_05_01_preview.models import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import ContainerRegistryManagementClientConfiguration
from ._container_registry_management_client import ContainerRegistryManagementClient
__all__ = ['ContainerRegistryManagementClient', 'ContainerRegistryManagementClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class ContainerRegistryManagementClientConfiguration(AzureConfiguration):
"""Configuration for ContainerRegistryManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The Microsoft Azure subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(ContainerRegistryManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-containerregistry/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import ContainerRegistryManagementClientConfiguration
from .operations import RegistriesOperations
from .operations import Operations
from .operations import ReplicationsOperations
from .operations import WebhooksOperations
from .operations import RunsOperations
from .operations import TasksOperations
from . import models


class ContainerRegistryManagementClient(SDKClient):
"""ContainerRegistryManagementClient
:ivar config: Configuration for client.
:vartype config: ContainerRegistryManagementClientConfiguration
:ivar registries: Registries operations
:vartype registries: azure.mgmt.containerregistry.v2019_06_01_preview.operations.RegistriesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.containerregistry.v2019_06_01_preview.operations.Operations
:ivar replications: Replications operations
:vartype replications: azure.mgmt.containerregistry.v2019_06_01_preview.operations.ReplicationsOperations
:ivar webhooks: Webhooks operations
:vartype webhooks: azure.mgmt.containerregistry.v2019_06_01_preview.operations.WebhooksOperations
:ivar runs: Runs operations
:vartype runs: azure.mgmt.containerregistry.v2019_06_01_preview.operations.RunsOperations
:ivar tasks: Tasks operations
:vartype tasks: azure.mgmt.containerregistry.v2019_06_01_preview.operations.TasksOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The Microsoft Azure subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ContainerRegistryManagementClientConfiguration(credentials, subscription_id, base_url)
super(ContainerRegistryManagementClient, 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.registries = RegistriesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.replications = ReplicationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.webhooks = WebhooksOperations(
self._client, self.config, self._serialize, self._deserialize)
self.runs = RunsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.tasks = TasksOperations(
self._client, self.config, self._serialize, self._deserialize)
Loading

0 comments on commit eaf7df8

Please sign in to comment.