Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containerregistry release 2019 12 01 #11268

Merged
merged 3 commits into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 3.0.0rc12(2020-05-06)

**Features**

- Model Registry has a new parameter public_network_access
- Model ErrorResponseBody has a new parameter details
- Model ErrorResponseBody has a new parameter target
- Model RegistryUpdateParameters has a new parameter public_network_access
- Added operation group PipelineRunsOperations
- Added operation group ImportPipelinesOperations
- Added operation group ExportPipelinesOperations

## 3.0.0rc11 (2020-03-25)

**Breaking changes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,32 @@ def builds(self):
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)))

@property
def export_pipelines(self):
"""Instance depends on the API version:

* 2019-12-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.ExportPipelinesOperations>`
"""
api_version = self._get_api_version('export_pipelines')
if api_version == '2019-12-01-preview':
from .v2019_12_01_preview.operations import ExportPipelinesOperations 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)))

@property
def import_pipelines(self):
"""Instance depends on the API version:

* 2019-12-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.ImportPipelinesOperations>`
"""
api_version = self._get_api_version('import_pipelines')
if api_version == '2019-12-01-preview':
from .v2019_12_01_preview.operations import ImportPipelinesOperations 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)))

@property
def operations(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -206,6 +232,19 @@ def operations(self):
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)))

@property
def pipeline_runs(self):
"""Instance depends on the API version:

* 2019-12-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.PipelineRunsOperations>`
"""
api_version = self._get_api_version('pipeline_runs')
if api_version == '2019-12-01-preview':
from .v2019_12_01_preview.operations import PipelineRunsOperations 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)))

@property
def private_endpoint_connections(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from ._models_py3 import ImportImageParameters
from ._models_py3 import ImportSource
from ._models_py3 import ImportSourceCredentials
from ._models_py3 import InnerErrorDescription
from ._models_py3 import IPRule
from ._models_py3 import NetworkRuleSet
from ._models_py3 import OperationDefinition
Expand Down Expand Up @@ -159,6 +160,7 @@
from ._models import ImportImageParameters
from ._models import ImportSource
from ._models import ImportSourceCredentials
from ._models import InnerErrorDescription
from ._models import IPRule
from ._models import NetworkRuleSet
from ._models import OperationDefinition
Expand Down Expand Up @@ -314,6 +316,7 @@
'ImportImageParameters',
'ImportSource',
'ImportSourceCredentials',
'InnerErrorDescription',
'IPRule',
'NetworkRuleSet',
'OperationDefinition',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,12 @@ class ErrorResponseBody(Model):
:type code: str
:param message: Required. error message.
:type message: str
:param target: target of the particular error.
:type target: str
:param details: an array of additional nested error response info objects,
as described by this contract.
:type details:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.InnerErrorDescription
"""

_validation = {
Expand All @@ -1128,12 +1134,16 @@ class ErrorResponseBody(Model):
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': 'InnerErrorDescription'},
}

def __init__(self, **kwargs):
super(ErrorResponseBody, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.target = kwargs.get('target', None)
self.details = kwargs.get('details', None)


class EventInfo(Model):
Expand Down Expand Up @@ -1717,6 +1727,37 @@ def __init__(self, **kwargs):
self.password = kwargs.get('password', None)


class InnerErrorDescription(Model):
"""inner error.

All required parameters must be populated in order to send to Azure.

:param code: Required. error code.
:type code: str
:param message: Required. error message.
:type message: str
:param target: target of the particular error.
:type target: str
"""

_validation = {
'code': {'required': True},
'message': {'required': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
}

def __init__(self, **kwargs):
super(InnerErrorDescription, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.target = kwargs.get('target', None)


class IPRule(Model):
"""IP rule with specific IP or IP range in CIDR format.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,12 @@ class ErrorResponseBody(Model):
:type code: str
:param message: Required. error message.
:type message: str
:param target: target of the particular error.
:type target: str
:param details: an array of additional nested error response info objects,
as described by this contract.
:type details:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.InnerErrorDescription
"""

_validation = {
Expand All @@ -1128,12 +1134,16 @@ class ErrorResponseBody(Model):
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': 'InnerErrorDescription'},
}

def __init__(self, *, code: str, message: str, **kwargs) -> None:
def __init__(self, *, code: str, message: str, target: str=None, details=None, **kwargs) -> None:
super(ErrorResponseBody, self).__init__(**kwargs)
self.code = code
self.message = message
self.target = target
self.details = details


class EventInfo(Model):
Expand Down Expand Up @@ -1717,6 +1727,37 @@ def __init__(self, *, password: str, username: str=None, **kwargs) -> None:
self.password = password


class InnerErrorDescription(Model):
"""inner error.

All required parameters must be populated in order to send to Azure.

:param code: Required. error code.
:type code: str
:param message: Required. error message.
:type message: str
:param target: target of the particular error.
:type target: str
"""

_validation = {
'code': {'required': True},
'message': {'required': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
}

def __init__(self, *, code: str, message: str, target: str=None, **kwargs) -> None:
super(InnerErrorDescription, self).__init__(**kwargs)
self.code = code
self.message = message
self.target = target


class IPRule(Model):
"""IP rule with specific IP or IP range in CIDR format.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
from msrest import Serializer, Deserializer

from ._configuration import ContainerRegistryManagementClientConfiguration
from .operations import ExportPipelinesOperations
from .operations import RegistriesOperations
from .operations import ImportPipelinesOperations
from .operations import Operations
from .operations import PipelineRunsOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import ReplicationsOperations
from .operations import WebhooksOperations
Expand All @@ -33,10 +36,16 @@ class ContainerRegistryManagementClient(SDKClient):
:ivar config: Configuration for client.
:vartype config: ContainerRegistryManagementClientConfiguration

:ivar export_pipelines: ExportPipelines operations
:vartype export_pipelines: azure.mgmt.containerregistry.v2019_12_01_preview.operations.ExportPipelinesOperations
:ivar registries: Registries operations
:vartype registries: azure.mgmt.containerregistry.v2019_12_01_preview.operations.RegistriesOperations
:ivar import_pipelines: ImportPipelines operations
:vartype import_pipelines: azure.mgmt.containerregistry.v2019_12_01_preview.operations.ImportPipelinesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.containerregistry.v2019_12_01_preview.operations.Operations
:ivar pipeline_runs: PipelineRuns operations
:vartype pipeline_runs: azure.mgmt.containerregistry.v2019_12_01_preview.operations.PipelineRunsOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.containerregistry.v2019_12_01_preview.operations.PrivateEndpointConnectionsOperations
:ivar replications: Replications operations
Expand Down Expand Up @@ -74,10 +83,16 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.export_pipelines = ExportPipelinesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.registries = RegistriesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.import_pipelines = ImportPipelinesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.pipeline_runs = PipelineRunsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.replications = ReplicationsOperations(
Expand Down
Loading