Skip to content

Commit c0dc3a3

Browse files
Azure CLI BotSDKAutoYan Zhang (WICRESOFT NORTH AMERICA LTD)RAY-316
authored
[AutoRelease] t2-databoxedge-2021-04-22-84277(wave4) (Azure#18223)
* CodeGen from PR 14063 in Azure/azure-rest-api-specs databoxedge readme modification (Azure#14063) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) <v-yanzhang@microsoft.com> * version,CHANGELOG * test * modify version Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) <v-yanzhang@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com>
1 parent 9585622 commit c0dc3a3

File tree

350 files changed

+109897
-2112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+109897
-2112
lines changed

sdk/databoxedge/azure-mgmt-databoxedge/CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
# Release History
22

3+
## 1.0.0 (2021-04-22)
4+
5+
**Features**
6+
7+
- Model Share has a new parameter system_data
8+
- Model NodeList has a new parameter next_link
9+
- Model Operation has a new parameter is_data_action
10+
- Model IoTRole has a new parameter system_data
11+
- Model IoTRole has a new parameter compute_resource
12+
- Model Order has a new parameter shipment_type
13+
- Model Order has a new parameter system_data
14+
- Model Role has a new parameter system_data
15+
- Model DataBoxEdgeDevice has a new parameter kind
16+
- Model DataBoxEdgeDevice has a new parameter edge_profile
17+
- Model DataBoxEdgeDevice has a new parameter identity
18+
- Model DataBoxEdgeDevice has a new parameter resource_move_details
19+
- Model DataBoxEdgeDevice has a new parameter system_data
20+
- Model StorageAccountCredential has a new parameter system_data
21+
- Model UpdateSummary has a new parameter last_download_job_status
22+
- Model UpdateSummary has a new parameter last_completed_install_job_id
23+
- Model UpdateSummary has a new parameter total_time_in_minutes
24+
- Model UpdateSummary has a new parameter last_completed_download_job_id
25+
- Model UpdateSummary has a new parameter last_install_job_status
26+
- Model UpdateSummary has a new parameter updates
27+
- Model UpdateSummary has a new parameter system_data
28+
- Model DataBoxEdgeDeviceExtendedInfo has a new parameter channel_integrity_key_name
29+
- Model DataBoxEdgeDeviceExtendedInfo has a new parameter channel_integrity_key_version
30+
- Model DataBoxEdgeDeviceExtendedInfo has a new parameter key_vault_sync_status
31+
- Model DataBoxEdgeDeviceExtendedInfo has a new parameter client_secret_store_id
32+
- Model DataBoxEdgeDeviceExtendedInfo has a new parameter device_secrets
33+
- Model DataBoxEdgeDeviceExtendedInfo has a new parameter client_secret_store_url
34+
- Model FileEventTrigger has a new parameter system_data
35+
- Model DataBoxEdgeSku has a new parameter shipment_types
36+
- Model Alert has a new parameter system_data
37+
- Model Container has a new parameter system_data
38+
- Model User has a new parameter system_data
39+
- Model Trigger has a new parameter system_data
40+
- Model NetworkSettings has a new parameter system_data
41+
- Model PeriodicTimerEventTrigger has a new parameter system_data
42+
- Model BandwidthSchedule has a new parameter system_data
43+
- Model OrderStatus has a new parameter tracking_information
44+
- Model StorageAccount has a new parameter system_data
45+
- Model DataBoxEdgeDevicePatch has a new parameter identity
46+
- Model DataBoxEdgeDevicePatch has a new parameter edge_profile
47+
- Added operation DevicesOperations.generate_certificate
48+
- Added operation DevicesOperations.update_extended_information
49+
- Added operation OrdersOperations.list_dc_access_code
50+
- Added operation group AddonsOperations
51+
- Added operation group MonitoringConfigOperations
52+
53+
**Breaking changes**
54+
55+
- Operation UsersOperations.list_by_data_box_edge_device has a new signature
56+
- Parameter data_policy of model StorageAccount is now required
57+
- Model SkuInformation no longer has parameter resource_type
58+
- Model SkuInformation no longer has parameter capabilities
59+
- Model SkuInformation no longer has parameter size
60+
- Model DataBoxEdgeSku no longer has parameter restrictions
61+
- Model ResourceTypeSku has a new signature
62+
363
## 1.0.0b1 (2020-12-08)
464

565
This is beta preview version.

sdk/databoxedge/azure-mgmt-databoxedge/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py

sdk/databoxedge/azure-mgmt-databoxedge/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Microsoft Azure SDK for Python
22

3-
This is the Microsoft Azure MyService Management Client Library.
3+
This is the Microsoft Azure Databoxedge Management Client Library.
44

55
Azure Resource Manager (ARM) is the next generation of management APIs
66
that replace the old Azure Service Management (ASM).
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.3.0",
3+
"use": "@autorest/python@5.6.6",
4+
"commit": "cc247b28bd6dc94786fb18e691d6331a168985f6",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/databoxedge/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
7+
"readme": "specification/databoxedge/resource-manager/readme.md"
8+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from ._data_box_edge_management_client import DataBoxEdgeManagementClient
10+
__all__ = ['DataBoxEdgeManagementClient']
11+
12+
try:
13+
from ._patch import patch_sdk # type: ignore
14+
patch_sdk()
15+
except ImportError:
16+
pass
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import TYPE_CHECKING
10+
11+
from azure.core.configuration import Configuration
12+
from azure.core.pipeline import policies
13+
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
14+
15+
if TYPE_CHECKING:
16+
# pylint: disable=unused-import,ungrouped-imports
17+
from typing import Any
18+
19+
from azure.core.credentials import TokenCredential
20+
21+
VERSION = "unknown"
22+
23+
class DataBoxEdgeManagementClientConfiguration(Configuration):
24+
"""Configuration for DataBoxEdgeManagementClient.
25+
26+
Note that all parameters used to create this instance are saved as instance
27+
attributes.
28+
29+
:param credential: Credential needed for the client to connect to Azure.
30+
:type credential: ~azure.core.credentials.TokenCredential
31+
:param subscription_id: The subscription ID.
32+
:type subscription_id: str
33+
"""
34+
35+
def __init__(
36+
self,
37+
credential, # type: "TokenCredential"
38+
subscription_id, # type: str
39+
**kwargs # type: Any
40+
):
41+
# type: (...) -> None
42+
if credential is None:
43+
raise ValueError("Parameter 'credential' must not be None.")
44+
if subscription_id is None:
45+
raise ValueError("Parameter 'subscription_id' must not be None.")
46+
super(DataBoxEdgeManagementClientConfiguration, self).__init__(**kwargs)
47+
48+
self.credential = credential
49+
self.subscription_id = subscription_id
50+
self.api_version = "2020-12-01"
51+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
52+
kwargs.setdefault('sdk_moniker', 'mgmt-databoxedge/{}'.format(VERSION))
53+
self._configure(**kwargs)
54+
55+
def _configure(
56+
self,
57+
**kwargs # type: Any
58+
):
59+
# type: (...) -> None
60+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
61+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
62+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
63+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
64+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
65+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
66+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
67+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
68+
self.authentication_policy = kwargs.get('authentication_policy')
69+
if self.credential and not self.authentication_policy:
70+
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import TYPE_CHECKING
10+
11+
from azure.mgmt.core import ARMPipelineClient
12+
from msrest import Deserializer, Serializer
13+
14+
if TYPE_CHECKING:
15+
# pylint: disable=unused-import,ungrouped-imports
16+
from typing import Any, Optional
17+
18+
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
20+
21+
from ._configuration import DataBoxEdgeManagementClientConfiguration
22+
from .operations import Operations
23+
from .operations import AvailableSkusOperations
24+
from .operations import DevicesOperations
25+
from .operations import AlertsOperations
26+
from .operations import BandwidthSchedulesOperations
27+
from .operations import JobsOperations
28+
from .operations import NodesOperations
29+
from .operations import OperationsStatusOperations
30+
from .operations import OrdersOperations
31+
from .operations import RolesOperations
32+
from .operations import AddonsOperations
33+
from .operations import MonitoringConfigOperations
34+
from .operations import SharesOperations
35+
from .operations import StorageAccountCredentialsOperations
36+
from .operations import StorageAccountsOperations
37+
from .operations import ContainersOperations
38+
from .operations import TriggersOperations
39+
from .operations import UsersOperations
40+
from . import models
41+
42+
43+
class DataBoxEdgeManagementClient(object):
44+
"""The DataBoxEdge Client.
45+
46+
:ivar operations: Operations operations
47+
:vartype operations: azure.mgmt.databoxedge.v2020_12_01.operations.Operations
48+
:ivar available_skus: AvailableSkusOperations operations
49+
:vartype available_skus: azure.mgmt.databoxedge.v2020_12_01.operations.AvailableSkusOperations
50+
:ivar devices: DevicesOperations operations
51+
:vartype devices: azure.mgmt.databoxedge.v2020_12_01.operations.DevicesOperations
52+
:ivar alerts: AlertsOperations operations
53+
:vartype alerts: azure.mgmt.databoxedge.v2020_12_01.operations.AlertsOperations
54+
:ivar bandwidth_schedules: BandwidthSchedulesOperations operations
55+
:vartype bandwidth_schedules: azure.mgmt.databoxedge.v2020_12_01.operations.BandwidthSchedulesOperations
56+
:ivar jobs: JobsOperations operations
57+
:vartype jobs: azure.mgmt.databoxedge.v2020_12_01.operations.JobsOperations
58+
:ivar nodes: NodesOperations operations
59+
:vartype nodes: azure.mgmt.databoxedge.v2020_12_01.operations.NodesOperations
60+
:ivar operations_status: OperationsStatusOperations operations
61+
:vartype operations_status: azure.mgmt.databoxedge.v2020_12_01.operations.OperationsStatusOperations
62+
:ivar orders: OrdersOperations operations
63+
:vartype orders: azure.mgmt.databoxedge.v2020_12_01.operations.OrdersOperations
64+
:ivar roles: RolesOperations operations
65+
:vartype roles: azure.mgmt.databoxedge.v2020_12_01.operations.RolesOperations
66+
:ivar addons: AddonsOperations operations
67+
:vartype addons: azure.mgmt.databoxedge.v2020_12_01.operations.AddonsOperations
68+
:ivar monitoring_config: MonitoringConfigOperations operations
69+
:vartype monitoring_config: azure.mgmt.databoxedge.v2020_12_01.operations.MonitoringConfigOperations
70+
:ivar shares: SharesOperations operations
71+
:vartype shares: azure.mgmt.databoxedge.v2020_12_01.operations.SharesOperations
72+
:ivar storage_account_credentials: StorageAccountCredentialsOperations operations
73+
:vartype storage_account_credentials: azure.mgmt.databoxedge.v2020_12_01.operations.StorageAccountCredentialsOperations
74+
:ivar storage_accounts: StorageAccountsOperations operations
75+
:vartype storage_accounts: azure.mgmt.databoxedge.v2020_12_01.operations.StorageAccountsOperations
76+
:ivar containers: ContainersOperations operations
77+
:vartype containers: azure.mgmt.databoxedge.v2020_12_01.operations.ContainersOperations
78+
:ivar triggers: TriggersOperations operations
79+
:vartype triggers: azure.mgmt.databoxedge.v2020_12_01.operations.TriggersOperations
80+
:ivar users: UsersOperations operations
81+
:vartype users: azure.mgmt.databoxedge.v2020_12_01.operations.UsersOperations
82+
:param credential: Credential needed for the client to connect to Azure.
83+
:type credential: ~azure.core.credentials.TokenCredential
84+
:param subscription_id: The subscription ID.
85+
:type subscription_id: str
86+
:param str base_url: Service URL
87+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
88+
"""
89+
90+
def __init__(
91+
self,
92+
credential, # type: "TokenCredential"
93+
subscription_id, # type: str
94+
base_url=None, # type: Optional[str]
95+
**kwargs # type: Any
96+
):
97+
# type: (...) -> None
98+
if not base_url:
99+
base_url = 'https://management.azure.com'
100+
self._config = DataBoxEdgeManagementClientConfiguration(credential, subscription_id, **kwargs)
101+
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
102+
103+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
104+
self._serialize = Serializer(client_models)
105+
self._serialize.client_side_validation = False
106+
self._deserialize = Deserializer(client_models)
107+
108+
self.operations = Operations(
109+
self._client, self._config, self._serialize, self._deserialize)
110+
self.available_skus = AvailableSkusOperations(
111+
self._client, self._config, self._serialize, self._deserialize)
112+
self.devices = DevicesOperations(
113+
self._client, self._config, self._serialize, self._deserialize)
114+
self.alerts = AlertsOperations(
115+
self._client, self._config, self._serialize, self._deserialize)
116+
self.bandwidth_schedules = BandwidthSchedulesOperations(
117+
self._client, self._config, self._serialize, self._deserialize)
118+
self.jobs = JobsOperations(
119+
self._client, self._config, self._serialize, self._deserialize)
120+
self.nodes = NodesOperations(
121+
self._client, self._config, self._serialize, self._deserialize)
122+
self.operations_status = OperationsStatusOperations(
123+
self._client, self._config, self._serialize, self._deserialize)
124+
self.orders = OrdersOperations(
125+
self._client, self._config, self._serialize, self._deserialize)
126+
self.roles = RolesOperations(
127+
self._client, self._config, self._serialize, self._deserialize)
128+
self.addons = AddonsOperations(
129+
self._client, self._config, self._serialize, self._deserialize)
130+
self.monitoring_config = MonitoringConfigOperations(
131+
self._client, self._config, self._serialize, self._deserialize)
132+
self.shares = SharesOperations(
133+
self._client, self._config, self._serialize, self._deserialize)
134+
self.storage_account_credentials = StorageAccountCredentialsOperations(
135+
self._client, self._config, self._serialize, self._deserialize)
136+
self.storage_accounts = StorageAccountsOperations(
137+
self._client, self._config, self._serialize, self._deserialize)
138+
self.containers = ContainersOperations(
139+
self._client, self._config, self._serialize, self._deserialize)
140+
self.triggers = TriggersOperations(
141+
self._client, self._config, self._serialize, self._deserialize)
142+
self.users = UsersOperations(
143+
self._client, self._config, self._serialize, self._deserialize)
144+
145+
def _send_request(self, http_request, **kwargs):
146+
# type: (HttpRequest, Any) -> HttpResponse
147+
"""Runs the network request through the client's chained policies.
148+
149+
:param http_request: The network request you want to make. Required.
150+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
151+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
152+
:return: The response of your network call. Does not do error handling on your response.
153+
:rtype: ~azure.core.pipeline.transport.HttpResponse
154+
"""
155+
path_format_arguments = {
156+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
157+
}
158+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
159+
stream = kwargs.pop("stream", True)
160+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
161+
return pipeline_response.http_response
162+
163+
def close(self):
164+
# type: () -> None
165+
self._client.close()
166+
167+
def __enter__(self):
168+
# type: () -> DataBoxEdgeManagementClient
169+
self._client.__enter__()
170+
return self
171+
172+
def __exit__(self, *exc_details):
173+
# type: (Any) -> None
174+
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)