Skip to content

Commit 505bf11

Browse files
AutorestCIZim Kalinowski
authored and
Zim Kalinowski
committed
[AutoPR attestation/resource-manager] adding readme for attestation service (#7033)
* Generated from ba2bfe74bad69d5419a8966d712ebb7fbee44941 removed pageable * Packaging update of azure-mgmt-attestation * updated history and readme * added rc1 as it's preview version * Packaging update of azure-mgmt-attestation
1 parent 12383af commit 505bf11

19 files changed

+1512
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0rc1 (2019-09-03)
7+
+++++++++++++++++++++
8+
9+
* Initial Release
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.rst
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Microsoft Azure SDK for Python
2+
==============================
3+
4+
This is the Microsoft Azure MyService Management Client Library.
5+
6+
Azure Resource Manager (ARM) is the next generation of management APIs that
7+
replace the old Azure Service Management (ASM).
8+
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
10+
11+
For the older Azure Service Management (ASM) libraries, see
12+
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
13+
14+
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
15+
16+
17+
Usage
18+
=====
19+
20+
For code examples, see `MyService Management
21+
<https://docs.microsoft.com/python/api/overview/azure/>`__
22+
on docs.microsoft.com.
23+
24+
25+
Provide Feedback
26+
================
27+
28+
If you encounter any bugs or have suggestions, please file an issue in the
29+
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
30+
section of the project.
31+
32+
33+
.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-attestation%2FREADME.png
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import AttestationManagementClientConfiguration
13+
from ._attestation_management_client import AttestationManagementClient
14+
__all__ = ['AttestationManagementClient', 'AttestationManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import AttestationManagementClientConfiguration
16+
from .operations import Operations
17+
from .operations import AttestationProvidersOperations
18+
from . import models
19+
20+
21+
class AttestationManagementClient(SDKClient):
22+
"""Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management.
23+
24+
:ivar config: Configuration for client.
25+
:vartype config: AttestationManagementClientConfiguration
26+
27+
:ivar operations: Operations operations
28+
:vartype operations: azure.mgmt.attestation.operations.Operations
29+
:ivar attestation_providers: AttestationProviders operations
30+
:vartype attestation_providers: azure.mgmt.attestation.operations.AttestationProvidersOperations
31+
32+
:param credentials: Credentials needed for the client to connect to Azure.
33+
:type credentials: :mod:`A msrestazure Credentials
34+
object<msrestazure.azure_active_directory>`
35+
:param subscription_id: The ID of the target subscription.
36+
:type subscription_id: str
37+
:param str base_url: Service URL
38+
"""
39+
40+
def __init__(
41+
self, credentials, subscription_id, base_url=None):
42+
43+
self.config = AttestationManagementClientConfiguration(credentials, subscription_id, base_url)
44+
super(AttestationManagementClient, self).__init__(self.config.credentials, self.config)
45+
46+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
47+
self.api_version = '2018-09-01-preview'
48+
self._serialize = Serializer(client_models)
49+
self._deserialize = Deserializer(client_models)
50+
51+
self.operations = Operations(
52+
self._client, self.config, self._serialize, self._deserialize)
53+
self.attestation_providers = AttestationProvidersOperations(
54+
self._client, self.config, self._serialize, self._deserialize)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class AttestationManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for AttestationManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The ID of the target subscription.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(AttestationManagementClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-attestation/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from ._models_py3 import AttestationProvider
14+
from ._models_py3 import AttestationProviderListResult
15+
from ._models_py3 import AttestationServiceCreationParams
16+
from ._models_py3 import AzureEntityResource
17+
from ._models_py3 import OperationList
18+
from ._models_py3 import OperationsDefinition
19+
from ._models_py3 import OperationsDisplayDefinition
20+
from ._models_py3 import ProxyResource
21+
from ._models_py3 import Resource
22+
from ._models_py3 import TrackedResource
23+
except (SyntaxError, ImportError):
24+
from ._models import AttestationProvider
25+
from ._models import AttestationProviderListResult
26+
from ._models import AttestationServiceCreationParams
27+
from ._models import AzureEntityResource
28+
from ._models import OperationList
29+
from ._models import OperationsDefinition
30+
from ._models import OperationsDisplayDefinition
31+
from ._models import ProxyResource
32+
from ._models import Resource
33+
from ._models import TrackedResource
34+
from ._attestation_management_client_enums import (
35+
AttestationServiceStatus,
36+
)
37+
38+
__all__ = [
39+
'AttestationProvider',
40+
'AttestationProviderListResult',
41+
'AttestationServiceCreationParams',
42+
'AzureEntityResource',
43+
'OperationList',
44+
'OperationsDefinition',
45+
'OperationsDisplayDefinition',
46+
'ProxyResource',
47+
'Resource',
48+
'TrackedResource',
49+
'AttestationServiceStatus',
50+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from enum import Enum
13+
14+
15+
class AttestationServiceStatus(str, Enum):
16+
17+
ready = "Ready"
18+
not_ready = "NotReady"
19+
error = "Error"

0 commit comments

Comments
 (0)