Skip to content

Commit a5b0fb1

Browse files
author
SDKAuto
committed
CodeGen from PR 16847 in Azure/azure-rest-api-specs
Merge 00eb338b0fb5d1e0e07a3e1fff50f1f7137a36d8 into 47b551f
1 parent 3a14782 commit a5b0fb1

26 files changed

+3790
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (1970-01-01)
4+
5+
* Initial Release
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include _meta.json
2+
recursive-include tests *.py *.yaml
3+
include *.md
4+
include azure/__init__.py
5+
include azure/mgmt/__init__.py
6+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure MyService Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
8+
# Usage
9+
10+
11+
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
12+
13+
14+
15+
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
16+
Code samples for this package can be found at [MyService Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
17+
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
18+
19+
20+
# Provide Feedback
21+
22+
If you encounter any bugs or have suggestions, please file an issue in the
23+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
24+
section of the project.
25+
26+
27+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-blockchain%2FREADME.png)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "342d36417c0c2c4aff9227ad1925f971966a9181",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/blockchain/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/blockchain/resource-manager/readme.md"
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
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 BlockchainManagementClientConfiguration
13+
from ._blockchain_management_client import BlockchainManagementClient
14+
__all__ = ['BlockchainManagementClient', 'BlockchainManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 BlockchainManagementClientConfiguration
16+
from .operations import BlockchainMembersOperations
17+
from .operations import BlockchainMemberOperationResultsOperations
18+
from .operations import LocationsOperations
19+
from .operations import Operations
20+
from .operations import SkusOperations
21+
from .operations import TransactionNodesOperations
22+
from . import models
23+
24+
25+
class BlockchainManagementClient(SDKClient):
26+
"""REST API for Azure Blockchain Service
27+
28+
:ivar config: Configuration for client.
29+
:vartype config: BlockchainManagementClientConfiguration
30+
31+
:ivar blockchain_members: BlockchainMembers operations
32+
:vartype blockchain_members: azure.mgmt.blockchain.operations.BlockchainMembersOperations
33+
:ivar blockchain_member_operation_results: BlockchainMemberOperationResults operations
34+
:vartype blockchain_member_operation_results: azure.mgmt.blockchain.operations.BlockchainMemberOperationResultsOperations
35+
:ivar locations: Locations operations
36+
:vartype locations: azure.mgmt.blockchain.operations.LocationsOperations
37+
:ivar operations: Operations operations
38+
:vartype operations: azure.mgmt.blockchain.operations.Operations
39+
:ivar skus: Skus operations
40+
:vartype skus: azure.mgmt.blockchain.operations.SkusOperations
41+
:ivar transaction_nodes: TransactionNodes operations
42+
:vartype transaction_nodes: azure.mgmt.blockchain.operations.TransactionNodesOperations
43+
44+
:param credentials: Credentials needed for the client to connect to Azure.
45+
:type credentials: :mod:`A msrestazure Credentials
46+
object<msrestazure.azure_active_directory>`
47+
:param subscription_id: Gets the subscription Id which uniquely identifies
48+
the Microsoft Azure subscription. The subscription ID is part of the URI
49+
for every service call.
50+
:type subscription_id: str
51+
:param str base_url: Service URL
52+
"""
53+
54+
def __init__(
55+
self, credentials, subscription_id, base_url=None):
56+
57+
self.config = BlockchainManagementClientConfiguration(credentials, subscription_id, base_url)
58+
super(BlockchainManagementClient, self).__init__(self.config.credentials, self.config)
59+
60+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
61+
self.api_version = '2018-06-01-preview'
62+
self._serialize = Serializer(client_models)
63+
self._deserialize = Deserializer(client_models)
64+
65+
self.blockchain_members = BlockchainMembersOperations(
66+
self._client, self.config, self._serialize, self._deserialize)
67+
self.blockchain_member_operation_results = BlockchainMemberOperationResultsOperations(
68+
self._client, self.config, self._serialize, self._deserialize)
69+
self.locations = LocationsOperations(
70+
self._client, self.config, self._serialize, self._deserialize)
71+
self.operations = Operations(
72+
self._client, self.config, self._serialize, self._deserialize)
73+
self.skus = SkusOperations(
74+
self._client, self.config, self._serialize, self._deserialize)
75+
self.transaction_nodes = TransactionNodesOperations(
76+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 50 additions & 0 deletions
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class BlockchainManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for BlockchainManagementClient
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: Gets the subscription Id which uniquely identifies
25+
the Microsoft Azure subscription. The subscription ID is part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(BlockchainManagementClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-blockchain/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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 ApiKey
14+
from ._models_py3 import ApiKeyCollection
15+
from ._models_py3 import BlockchainMember
16+
from ._models_py3 import BlockchainMemberNodesSku
17+
from ._models_py3 import BlockchainMemberUpdate
18+
from ._models_py3 import Consortium
19+
from ._models_py3 import ConsortiumCollection
20+
from ._models_py3 import ConsortiumMember
21+
from ._models_py3 import FirewallRule
22+
from ._models_py3 import NameAvailability
23+
from ._models_py3 import NameAvailabilityRequest
24+
from ._models_py3 import OperationResult
25+
from ._models_py3 import Resource
26+
from ._models_py3 import ResourceProviderOperation
27+
from ._models_py3 import ResourceProviderOperationDisplay
28+
from ._models_py3 import ResourceTypeSku
29+
from ._models_py3 import ResourceTypeSkuCollection
30+
from ._models_py3 import Sku
31+
from ._models_py3 import SkuSetting
32+
from ._models_py3 import TrackedResource
33+
from ._models_py3 import TransactionNode
34+
from ._models_py3 import TransactionNodeUpdate
35+
except (SyntaxError, ImportError):
36+
from ._models import ApiKey
37+
from ._models import ApiKeyCollection
38+
from ._models import BlockchainMember
39+
from ._models import BlockchainMemberNodesSku
40+
from ._models import BlockchainMemberUpdate
41+
from ._models import Consortium
42+
from ._models import ConsortiumCollection
43+
from ._models import ConsortiumMember
44+
from ._models import FirewallRule
45+
from ._models import NameAvailability
46+
from ._models import NameAvailabilityRequest
47+
from ._models import OperationResult
48+
from ._models import Resource
49+
from ._models import ResourceProviderOperation
50+
from ._models import ResourceProviderOperationDisplay
51+
from ._models import ResourceTypeSku
52+
from ._models import ResourceTypeSkuCollection
53+
from ._models import Sku
54+
from ._models import SkuSetting
55+
from ._models import TrackedResource
56+
from ._models import TransactionNode
57+
from ._models import TransactionNodeUpdate
58+
from ._paged_models import BlockchainMemberPaged
59+
from ._paged_models import ConsortiumMemberPaged
60+
from ._paged_models import ResourceProviderOperationPaged
61+
from ._paged_models import TransactionNodePaged
62+
from ._blockchain_management_client_enums import (
63+
BlockchainProtocol,
64+
BlockchainMemberProvisioningState,
65+
NameAvailabilityReason,
66+
NodeProvisioningState,
67+
)
68+
69+
__all__ = [
70+
'ApiKey',
71+
'ApiKeyCollection',
72+
'BlockchainMember',
73+
'BlockchainMemberNodesSku',
74+
'BlockchainMemberUpdate',
75+
'Consortium',
76+
'ConsortiumCollection',
77+
'ConsortiumMember',
78+
'FirewallRule',
79+
'NameAvailability',
80+
'NameAvailabilityRequest',
81+
'OperationResult',
82+
'Resource',
83+
'ResourceProviderOperation',
84+
'ResourceProviderOperationDisplay',
85+
'ResourceTypeSku',
86+
'ResourceTypeSkuCollection',
87+
'Sku',
88+
'SkuSetting',
89+
'TrackedResource',
90+
'TransactionNode',
91+
'TransactionNodeUpdate',
92+
'BlockchainMemberPaged',
93+
'ConsortiumMemberPaged',
94+
'ResourceProviderOperationPaged',
95+
'TransactionNodePaged',
96+
'BlockchainProtocol',
97+
'BlockchainMemberProvisioningState',
98+
'NameAvailabilityReason',
99+
'NodeProvisioningState',
100+
]

0 commit comments

Comments
 (0)