Skip to content
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
9 changes: 9 additions & 0 deletions sdk/containerregistry/azure-containerregistry/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (1970-01-01)
++++++++++++++++++

* Initial Release
4 changes: 4 additions & 0 deletions sdk/containerregistry/azure-containerregistry/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py

33 changes: 33 additions & 0 deletions sdk/containerregistry/azure-containerregistry/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService 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.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.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-containerregistry%2FREADME.png
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
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 AzureContainerRegistryConfiguration
from ._azure_container_registry import AzureContainerRegistry
__all__ = ['AzureContainerRegistry', 'AzureContainerRegistryConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# 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 AzureContainerRegistryConfiguration
from msrest.exceptions import HttpOperationError
from .operations import V2SupportOperations
from .operations import ManifestsOperations
from .operations import BlobOperations
from .operations import RepositoryOperations
from .operations import TagOperations
from .operations import RefreshTokensOperations
from .operations import AccessTokensOperations
from . import models


class AzureContainerRegistry(SDKClient):
"""Metadata API definition for the Azure Container Registry runtime

:ivar config: Configuration for client.
:vartype config: AzureContainerRegistryConfiguration

:ivar v2_support: V2Support operations
:vartype v2_support: azure.containerregistry.operations.V2SupportOperations
:ivar manifests: Manifests operations
:vartype manifests: azure.containerregistry.operations.ManifestsOperations
:ivar blob: Blob operations
:vartype blob: azure.containerregistry.operations.BlobOperations
:ivar repository: Repository operations
:vartype repository: azure.containerregistry.operations.RepositoryOperations
:ivar tag: Tag operations
:vartype tag: azure.containerregistry.operations.TagOperations
:ivar refresh_tokens: RefreshTokens operations
:vartype refresh_tokens: azure.containerregistry.operations.RefreshTokensOperations
:ivar access_tokens: AccessTokens operations
:vartype access_tokens: azure.containerregistry.operations.AccessTokensOperations

:param login_uri: Registry login URL
:type login_uri: str
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
"""

def __init__(
self, login_uri, credentials):

self.config = AzureContainerRegistryConfiguration(login_uri, credentials)
super(AzureContainerRegistry, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-08-15-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.v2_support = V2SupportOperations(
self._client, self.config, self._serialize, self._deserialize)
self.manifests = ManifestsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.blob = BlobOperations(
self._client, self.config, self._serialize, self._deserialize)
self.repository = RepositoryOperations(
self._client, self.config, self._serialize, self._deserialize)
self.tag = TagOperations(
self._client, self.config, self._serialize, self._deserialize)
self.refresh_tokens = RefreshTokensOperations(
self._client, self.config, self._serialize, self._deserialize)
self.access_tokens = AccessTokensOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 import Configuration

from .version import VERSION


class AzureContainerRegistryConfiguration(Configuration):
"""Configuration for AzureContainerRegistry
Note that all parameters used to create this instance are saved as instance
attributes.

:param login_uri: Registry login URL
:type login_uri: str
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
"""

def __init__(
self, login_uri, credentials):

if login_uri is None:
raise ValueError("Parameter 'login_uri' must not be None.")
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
base_url = '{url}'

super(AzureContainerRegistryConfiguration, 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-containerregistry/{}'.format(VERSION))

self.login_uri = login_uri
self.credentials = credentials
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# 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.
# --------------------------------------------------------------------------

try:
from ._models_py3 import AccessToken
from ._models_py3 import AcrErrorInfo
from ._models_py3 import AcrErrors, AcrErrorsException
from ._models_py3 import AcrManifests
from ._models_py3 import Annotations
from ._models_py3 import ChangeableAttributes
from ._models_py3 import DeletedRepository
from ._models_py3 import Descriptor
from ._models_py3 import FsLayer
from ._models_py3 import History
from ._models_py3 import ImageSignature
from ._models_py3 import JWK
from ._models_py3 import JWKHeader
from ._models_py3 import Manifest
from ._models_py3 import ManifestAttributes
from ._models_py3 import ManifestAttributesBase
from ._models_py3 import ManifestAttributesManifest
from ._models_py3 import ManifestAttributesManifestReferences
from ._models_py3 import ManifestChangeableAttributes
from ._models_py3 import ManifestList
from ._models_py3 import ManifestListAttributes
from ._models_py3 import ManifestWrapper
from ._models_py3 import OCIIndex
from ._models_py3 import OCIManifest
from ._models_py3 import Platform
from ._models_py3 import RefreshToken
from ._models_py3 import Repositories
from ._models_py3 import RepositoryAttributes
from ._models_py3 import RepositoryTags
from ._models_py3 import TagAttributes
from ._models_py3 import TagAttributesBase
from ._models_py3 import TagAttributesTag
from ._models_py3 import TagList
from ._models_py3 import V1Manifest
from ._models_py3 import V2Manifest
except (SyntaxError, ImportError):
from ._models import AccessToken
from ._models import AcrErrorInfo
from ._models import AcrErrors, AcrErrorsException
from ._models import AcrManifests
from ._models import Annotations
from ._models import ChangeableAttributes
from ._models import DeletedRepository
from ._models import Descriptor
from ._models import FsLayer
from ._models import History
from ._models import ImageSignature
from ._models import JWK
from ._models import JWKHeader
from ._models import Manifest
from ._models import ManifestAttributes
from ._models import ManifestAttributesBase
from ._models import ManifestAttributesManifest
from ._models import ManifestAttributesManifestReferences
from ._models import ManifestChangeableAttributes
from ._models import ManifestList
from ._models import ManifestListAttributes
from ._models import ManifestWrapper
from ._models import OCIIndex
from ._models import OCIManifest
from ._models import Platform
from ._models import RefreshToken
from ._models import Repositories
from ._models import RepositoryAttributes
from ._models import RepositoryTags
from ._models import TagAttributes
from ._models import TagAttributesBase
from ._models import TagAttributesTag
from ._models import TagList
from ._models import V1Manifest
from ._models import V2Manifest

__all__ = [
'AccessToken',
'AcrErrorInfo',
'AcrErrors', 'AcrErrorsException',
'AcrManifests',
'Annotations',
'ChangeableAttributes',
'DeletedRepository',
'Descriptor',
'FsLayer',
'History',
'ImageSignature',
'JWK',
'JWKHeader',
'Manifest',
'ManifestAttributes',
'ManifestAttributesBase',
'ManifestAttributesManifest',
'ManifestAttributesManifestReferences',
'ManifestChangeableAttributes',
'ManifestList',
'ManifestListAttributes',
'ManifestWrapper',
'OCIIndex',
'OCIManifest',
'Platform',
'RefreshToken',
'Repositories',
'RepositoryAttributes',
'RepositoryTags',
'TagAttributes',
'TagAttributesBase',
'TagAttributesTag',
'TagList',
'V1Manifest',
'V2Manifest',
]
Loading