Skip to content

Commit

Permalink
azure-mgmt-containerregistry 2.1.0 (#2774)
Browse files Browse the repository at this point in the history
* Generated from 94aaf65edfd82b449c0d7e8128fcfedfe6870849 (#2762)

Update default tag to 2018-02-preview

* Generated from de6b3a1607eaca8bef4a23e3323ad6352d4a9a5f (#2823)

Fix list builds odata query

* [AutoPR containerregistry/resource-manager] add Azure Container Registry policies api and update OperationDefinition (#2869)

* Generated from 56239b4cfb94bfe30a857fb0c34b6c4d0b6bbe23

add Azure Container Registry policies api and update OperationDefinition

* Generated from 56239b4cfb94bfe30a857fb0c34b6c4d0b6bbe23

add Azure Container Registry policies api and update OperationDefinition

* Generated from 56239b4cfb94bfe30a857fb0c34b6c4d0b6bbe23

add Azure Container Registry policies api and update OperationDefinition

* Revert broken hub generation

* ACR 2.1.0

* ChangeLog

* Packaging
  • Loading branch information
AutorestCI authored and lmazuel committed Jul 26, 2018
1 parent 6867dbc commit 74aa7ac
Show file tree
Hide file tree
Showing 54 changed files with 1,219 additions and 40 deletions.
12 changes: 11 additions & 1 deletion azure-mgmt-containerregistry/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Release History
===============

2.1.0 (2018-07-26)
++++++++++++++++++

**Features**

- Model OperationDefinition has a new parameter service_specification
- Model OperationDefinition has a new parameter origin
- Added operation RegistriesOperations.list_policies
- Added operation RegistriesOperations.update_policies

2.0.0 (2018-04-30)
++++++++++++++++++

Expand Down Expand Up @@ -30,7 +40,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- 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`,
- 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.
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-containerregistry/README.rst
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.3, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 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 Expand Up @@ -38,7 +38,7 @@ Usage

For code examples, see `Container Registry
<https://docs.microsoft.com/python/api/overview/azure/container-registry>`__
on readthedocs.org.
on docs.microsoft.com.


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

from .resource import Resource
from .resource_py3 import Resource


class Registry(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from .registry_name_check_request_py3 import RegistryNameCheckRequest
from .registry_name_status_py3 import RegistryNameStatus
from .operation_display_definition_py3 import OperationDisplayDefinition
from .operation_metric_specification_definition_py3 import OperationMetricSpecificationDefinition
from .operation_service_specification_definition_py3 import OperationServiceSpecificationDefinition
from .operation_definition_py3 import OperationDefinition
from .sku_py3 import Sku
from .status_py3 import Status
Expand All @@ -26,6 +28,9 @@
from .regenerate_credential_parameters_py3 import RegenerateCredentialParameters
from .registry_usage_py3 import RegistryUsage
from .registry_usage_list_result_py3 import RegistryUsageListResult
from .quarantine_policy_py3 import QuarantinePolicy
from .trust_policy_py3 import TrustPolicy
from .registry_policies_py3 import RegistryPolicies
from .replication_py3 import Replication
from .replication_update_parameters_py3 import ReplicationUpdateParameters
from .webhook_py3 import Webhook
Expand All @@ -48,6 +53,8 @@
from .registry_name_check_request import RegistryNameCheckRequest
from .registry_name_status import RegistryNameStatus
from .operation_display_definition import OperationDisplayDefinition
from .operation_metric_specification_definition import OperationMetricSpecificationDefinition
from .operation_service_specification_definition import OperationServiceSpecificationDefinition
from .operation_definition import OperationDefinition
from .sku import Sku
from .status import Status
Expand All @@ -59,6 +66,9 @@
from .regenerate_credential_parameters import RegenerateCredentialParameters
from .registry_usage import RegistryUsage
from .registry_usage_list_result import RegistryUsageListResult
from .quarantine_policy import QuarantinePolicy
from .trust_policy import TrustPolicy
from .registry_policies import RegistryPolicies
from .replication import Replication
from .replication_update_parameters import ReplicationUpdateParameters
from .webhook import Webhook
Expand Down Expand Up @@ -87,6 +97,8 @@
ProvisioningState,
PasswordName,
RegistryUsageUnit,
PolicyStatus,
TrustPolicyType,
WebhookStatus,
WebhookAction,
)
Expand All @@ -97,6 +109,8 @@
'RegistryNameCheckRequest',
'RegistryNameStatus',
'OperationDisplayDefinition',
'OperationMetricSpecificationDefinition',
'OperationServiceSpecificationDefinition',
'OperationDefinition',
'Sku',
'Status',
Expand All @@ -108,6 +122,9 @@
'RegenerateCredentialParameters',
'RegistryUsage',
'RegistryUsageListResult',
'QuarantinePolicy',
'TrustPolicy',
'RegistryPolicies',
'Replication',
'ReplicationUpdateParameters',
'Webhook',
Expand Down Expand Up @@ -135,6 +152,8 @@
'ProvisioningState',
'PasswordName',
'RegistryUsageUnit',
'PolicyStatus',
'TrustPolicyType',
'WebhookStatus',
'WebhookAction',
]
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ class RegistryUsageUnit(str, Enum):
bytes = "Bytes"


class PolicyStatus(str, Enum):

enabled = "enabled"
disabled = "disabled"


class TrustPolicyType(str, Enum):

notary = "Notary"


class WebhookStatus(str, Enum):

enabled = "enabled"
Expand All @@ -66,3 +77,4 @@ class WebhookAction(str, Enum):

push = "push"
delete = "delete"
quarantine = "quarantine"
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .event_info import EventInfo
from .event_info_py3 import EventInfo


class Event(EventInfo):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,29 @@
class OperationDefinition(Model):
"""The definition of a container registry operation.
:param origin: The origin information of the container registry operation.
:type origin: str
:param name: Operation name: {provider}/{resource}/{operation}.
:type name: str
:param display: The display information for the container registry
operation.
:type display:
~azure.mgmt.containerregistry.v2017_10_01.models.OperationDisplayDefinition
:param service_specification: The definition of Azure Monitoring service.
:type service_specification:
~azure.mgmt.containerregistry.v2017_10_01.models.OperationServiceSpecificationDefinition
"""

_attribute_map = {
'origin': {'key': 'origin', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplayDefinition'},
'service_specification': {'key': 'properties.serviceSpecification', 'type': 'OperationServiceSpecificationDefinition'},
}

def __init__(self, **kwargs):
super(OperationDefinition, self).__init__(**kwargs)
self.origin = kwargs.get('origin', None)
self.name = kwargs.get('name', None)
self.display = kwargs.get('display', None)
self.service_specification = kwargs.get('service_specification', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,29 @@
class OperationDefinition(Model):
"""The definition of a container registry operation.
:param origin: The origin information of the container registry operation.
:type origin: str
:param name: Operation name: {provider}/{resource}/{operation}.
:type name: str
:param display: The display information for the container registry
operation.
:type display:
~azure.mgmt.containerregistry.v2017_10_01.models.OperationDisplayDefinition
:param service_specification: The definition of Azure Monitoring service.
:type service_specification:
~azure.mgmt.containerregistry.v2017_10_01.models.OperationServiceSpecificationDefinition
"""

_attribute_map = {
'origin': {'key': 'origin', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplayDefinition'},
'service_specification': {'key': 'properties.serviceSpecification', 'type': 'OperationServiceSpecificationDefinition'},
}

def __init__(self, *, name: str=None, display=None, **kwargs) -> None:
def __init__(self, *, origin: str=None, name: str=None, display=None, service_specification=None, **kwargs) -> None:
super(OperationDefinition, self).__init__(**kwargs)
self.origin = origin
self.name = name
self.display = display
self.service_specification = service_specification
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 msrest.serialization import Model


class OperationMetricSpecificationDefinition(Model):
"""The definition of Azure Monitoring metric.
:param name: Metric name.
:type name: str
:param display_name: Metric display name.
:type display_name: str
:param display_description: Metric description.
:type display_description: str
:param unit: Metric unit.
:type unit: str
:param aggregation_type: Metric aggregation type.
:type aggregation_type: str
:param internal_metric_name: Internal metric name.
:type internal_metric_name: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'display_description': {'key': 'displayDescription', 'type': 'str'},
'unit': {'key': 'unit', 'type': 'str'},
'aggregation_type': {'key': 'aggregationType', 'type': 'str'},
'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OperationMetricSpecificationDefinition, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display_name = kwargs.get('display_name', None)
self.display_description = kwargs.get('display_description', None)
self.unit = kwargs.get('unit', None)
self.aggregation_type = kwargs.get('aggregation_type', None)
self.internal_metric_name = kwargs.get('internal_metric_name', None)
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 msrest.serialization import Model


class OperationMetricSpecificationDefinition(Model):
"""The definition of Azure Monitoring metric.
:param name: Metric name.
:type name: str
:param display_name: Metric display name.
:type display_name: str
:param display_description: Metric description.
:type display_description: str
:param unit: Metric unit.
:type unit: str
:param aggregation_type: Metric aggregation type.
:type aggregation_type: str
:param internal_metric_name: Internal metric name.
:type internal_metric_name: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'display_description': {'key': 'displayDescription', 'type': 'str'},
'unit': {'key': 'unit', 'type': 'str'},
'aggregation_type': {'key': 'aggregationType', 'type': 'str'},
'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'},
}

def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, internal_metric_name: str=None, **kwargs) -> None:
super(OperationMetricSpecificationDefinition, self).__init__(**kwargs)
self.name = name
self.display_name = display_name
self.display_description = display_description
self.unit = unit
self.aggregation_type = aggregation_type
self.internal_metric_name = internal_metric_name
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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.serialization import Model


class OperationServiceSpecificationDefinition(Model):
"""The definition of Azure Monitoring metrics list.
:param metric_specifications: A list of Azure Monitoring metrics
definition.
:type metric_specifications:
list[~azure.mgmt.containerregistry.v2017_10_01.models.OperationMetricSpecificationDefinition]
"""

_attribute_map = {
'metric_specifications': {'key': 'metricSpecifications', 'type': '[OperationMetricSpecificationDefinition]'},
}

def __init__(self, **kwargs):
super(OperationServiceSpecificationDefinition, self).__init__(**kwargs)
self.metric_specifications = kwargs.get('metric_specifications', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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.serialization import Model


class OperationServiceSpecificationDefinition(Model):
"""The definition of Azure Monitoring metrics list.
:param metric_specifications: A list of Azure Monitoring metrics
definition.
:type metric_specifications:
list[~azure.mgmt.containerregistry.v2017_10_01.models.OperationMetricSpecificationDefinition]
"""

_attribute_map = {
'metric_specifications': {'key': 'metricSpecifications', 'type': '[OperationMetricSpecificationDefinition]'},
}

def __init__(self, *, metric_specifications=None, **kwargs) -> None:
super(OperationServiceSpecificationDefinition, self).__init__(**kwargs)
self.metric_specifications = metric_specifications
Loading

0 comments on commit 74aa7ac

Please sign in to comment.