azure-mgmt-agricultureplatform 1.0.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/mgmt/agricultureplatform/__init__.py +32 -0
- azure/mgmt/agricultureplatform/_client.py +137 -0
- azure/mgmt/agricultureplatform/_configuration.py +80 -0
- azure/mgmt/agricultureplatform/_patch.py +21 -0
- azure/mgmt/agricultureplatform/_utils/__init__.py +6 -0
- azure/mgmt/agricultureplatform/_utils/model_base.py +1337 -0
- azure/mgmt/agricultureplatform/_utils/serialization.py +2041 -0
- azure/mgmt/agricultureplatform/_version.py +9 -0
- azure/mgmt/agricultureplatform/aio/__init__.py +29 -0
- azure/mgmt/agricultureplatform/aio/_client.py +141 -0
- azure/mgmt/agricultureplatform/aio/_configuration.py +80 -0
- azure/mgmt/agricultureplatform/aio/_patch.py +21 -0
- azure/mgmt/agricultureplatform/aio/operations/__init__.py +27 -0
- azure/mgmt/agricultureplatform/aio/operations/_operations.py +1102 -0
- azure/mgmt/agricultureplatform/aio/operations/_patch.py +21 -0
- azure/mgmt/agricultureplatform/models/__init__.py +92 -0
- azure/mgmt/agricultureplatform/models/_enums.py +103 -0
- azure/mgmt/agricultureplatform/models/_models.py +1037 -0
- azure/mgmt/agricultureplatform/models/_patch.py +21 -0
- azure/mgmt/agricultureplatform/operations/__init__.py +27 -0
- azure/mgmt/agricultureplatform/operations/_operations.py +1303 -0
- azure/mgmt/agricultureplatform/operations/_patch.py +21 -0
- azure/mgmt/agricultureplatform/py.typed +1 -0
- azure_mgmt_agricultureplatform-1.0.0b1.dist-info/METADATA +94 -0
- azure_mgmt_agricultureplatform-1.0.0b1.dist-info/RECORD +28 -0
- azure_mgmt_agricultureplatform-1.0.0b1.dist-info/WHEEL +5 -0
- azure_mgmt_agricultureplatform-1.0.0b1.dist-info/licenses/LICENSE +21 -0
- azure_mgmt_agricultureplatform-1.0.0b1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
|
|
2
|
+
# coding=utf-8
|
|
3
|
+
# --------------------------------------------------------------------------
|
|
4
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
6
|
+
# Code generated by Microsoft (R) Python Code Generator.
|
|
7
|
+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
# --------------------------------------------------------------------------
|
|
9
|
+
# pylint: disable=useless-super-delegation
|
|
10
|
+
|
|
11
|
+
import datetime
|
|
12
|
+
from typing import Any, Mapping, Optional, TYPE_CHECKING, Union, overload
|
|
13
|
+
|
|
14
|
+
from .._utils.model_base import Model as _Model, rest_field
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from .. import models as _models
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AgriServiceConfig(_Model):
|
|
21
|
+
"""Config of the AgriService resource instance.
|
|
22
|
+
|
|
23
|
+
:ivar instance_uri: Instance URI of the AgriService instance.
|
|
24
|
+
:vartype instance_uri: str
|
|
25
|
+
:ivar version: Version of AgriService instance.
|
|
26
|
+
:vartype version: str
|
|
27
|
+
:ivar app_service_resource_id: App service resource Id.
|
|
28
|
+
:vartype app_service_resource_id: str
|
|
29
|
+
:ivar cosmos_db_resource_id: Cosmos Db resource Id.
|
|
30
|
+
:vartype cosmos_db_resource_id: str
|
|
31
|
+
:ivar storage_account_resource_id: Storage account resource Id.
|
|
32
|
+
:vartype storage_account_resource_id: str
|
|
33
|
+
:ivar key_vault_resource_id: Key vault resource Id.
|
|
34
|
+
:vartype key_vault_resource_id: str
|
|
35
|
+
:ivar redis_cache_resource_id: Redis cache resource Id.
|
|
36
|
+
:vartype redis_cache_resource_id: str
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
instance_uri: Optional[str] = rest_field(name="instanceUri", visibility=["read"])
|
|
40
|
+
"""Instance URI of the AgriService instance."""
|
|
41
|
+
version: Optional[str] = rest_field(visibility=["read"])
|
|
42
|
+
"""Version of AgriService instance."""
|
|
43
|
+
app_service_resource_id: Optional[str] = rest_field(name="appServiceResourceId", visibility=["read"])
|
|
44
|
+
"""App service resource Id."""
|
|
45
|
+
cosmos_db_resource_id: Optional[str] = rest_field(name="cosmosDbResourceId", visibility=["read"])
|
|
46
|
+
"""Cosmos Db resource Id."""
|
|
47
|
+
storage_account_resource_id: Optional[str] = rest_field(name="storageAccountResourceId", visibility=["read"])
|
|
48
|
+
"""Storage account resource Id."""
|
|
49
|
+
key_vault_resource_id: Optional[str] = rest_field(name="keyVaultResourceId", visibility=["read"])
|
|
50
|
+
"""Key vault resource Id."""
|
|
51
|
+
redis_cache_resource_id: Optional[str] = rest_field(name="redisCacheResourceId", visibility=["read"])
|
|
52
|
+
"""Redis cache resource Id."""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class Resource(_Model):
|
|
56
|
+
"""Resource.
|
|
57
|
+
|
|
58
|
+
:ivar id: Fully qualified resource ID for the resource. Ex -
|
|
59
|
+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
|
|
60
|
+
:vartype id: str
|
|
61
|
+
:ivar name: The name of the resource.
|
|
62
|
+
:vartype name: str
|
|
63
|
+
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
|
|
64
|
+
"Microsoft.Storage/storageAccounts".
|
|
65
|
+
:vartype type: str
|
|
66
|
+
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
|
|
67
|
+
information.
|
|
68
|
+
:vartype system_data: ~azure.mgmt.agricultureplatform.models.SystemData
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
id: Optional[str] = rest_field(visibility=["read"])
|
|
72
|
+
"""Fully qualified resource ID for the resource. Ex -
|
|
73
|
+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}."""
|
|
74
|
+
name: Optional[str] = rest_field(visibility=["read"])
|
|
75
|
+
"""The name of the resource."""
|
|
76
|
+
type: Optional[str] = rest_field(visibility=["read"])
|
|
77
|
+
"""The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or
|
|
78
|
+
\"Microsoft.Storage/storageAccounts\"."""
|
|
79
|
+
system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"])
|
|
80
|
+
"""Azure Resource Manager metadata containing createdBy and modifiedBy information."""
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class TrackedResource(Resource):
|
|
84
|
+
"""Tracked Resource.
|
|
85
|
+
|
|
86
|
+
:ivar id: Fully qualified resource ID for the resource. Ex -
|
|
87
|
+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
|
|
88
|
+
:vartype id: str
|
|
89
|
+
:ivar name: The name of the resource.
|
|
90
|
+
:vartype name: str
|
|
91
|
+
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
|
|
92
|
+
"Microsoft.Storage/storageAccounts".
|
|
93
|
+
:vartype type: str
|
|
94
|
+
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
|
|
95
|
+
information.
|
|
96
|
+
:vartype system_data: ~azure.mgmt.agricultureplatform.models.SystemData
|
|
97
|
+
:ivar tags: Resource tags.
|
|
98
|
+
:vartype tags: dict[str, str]
|
|
99
|
+
:ivar location: The geo-location where the resource lives. Required.
|
|
100
|
+
:vartype location: str
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
104
|
+
"""Resource tags."""
|
|
105
|
+
location: str = rest_field(visibility=["read", "create"])
|
|
106
|
+
"""The geo-location where the resource lives. Required."""
|
|
107
|
+
|
|
108
|
+
@overload
|
|
109
|
+
def __init__(
|
|
110
|
+
self,
|
|
111
|
+
*,
|
|
112
|
+
location: str,
|
|
113
|
+
tags: Optional[dict[str, str]] = None,
|
|
114
|
+
) -> None: ...
|
|
115
|
+
|
|
116
|
+
@overload
|
|
117
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
118
|
+
"""
|
|
119
|
+
:param mapping: raw JSON to initialize the model.
|
|
120
|
+
:type mapping: Mapping[str, Any]
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
124
|
+
super().__init__(*args, **kwargs)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class AgriServiceResource(TrackedResource):
|
|
128
|
+
"""Schema of the AgriService resource from Microsoft.AgriculturePlatform resource provider.
|
|
129
|
+
|
|
130
|
+
:ivar id: Fully qualified resource ID for the resource. Ex -
|
|
131
|
+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
|
|
132
|
+
:vartype id: str
|
|
133
|
+
:ivar name: The name of the resource.
|
|
134
|
+
:vartype name: str
|
|
135
|
+
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
|
|
136
|
+
"Microsoft.Storage/storageAccounts".
|
|
137
|
+
:vartype type: str
|
|
138
|
+
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
|
|
139
|
+
information.
|
|
140
|
+
:vartype system_data: ~azure.mgmt.agricultureplatform.models.SystemData
|
|
141
|
+
:ivar tags: Resource tags.
|
|
142
|
+
:vartype tags: dict[str, str]
|
|
143
|
+
:ivar location: The geo-location where the resource lives. Required.
|
|
144
|
+
:vartype location: str
|
|
145
|
+
:ivar properties: The resource-specific properties for this resource.
|
|
146
|
+
:vartype properties: ~azure.mgmt.agricultureplatform.models.AgriServiceResourceProperties
|
|
147
|
+
:ivar identity: The managed service identities assigned to this resource.
|
|
148
|
+
:vartype identity: ~azure.mgmt.agricultureplatform.models.ManagedServiceIdentity
|
|
149
|
+
:ivar sku: The SKU (Stock Keeping Unit) assigned to this resource.
|
|
150
|
+
:vartype sku: ~azure.mgmt.agricultureplatform.models.Sku
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
properties: Optional["_models.AgriServiceResourceProperties"] = rest_field(
|
|
154
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
155
|
+
)
|
|
156
|
+
"""The resource-specific properties for this resource."""
|
|
157
|
+
identity: Optional["_models.ManagedServiceIdentity"] = rest_field(
|
|
158
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
159
|
+
)
|
|
160
|
+
"""The managed service identities assigned to this resource."""
|
|
161
|
+
sku: Optional["_models.Sku"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
162
|
+
"""The SKU (Stock Keeping Unit) assigned to this resource."""
|
|
163
|
+
|
|
164
|
+
@overload
|
|
165
|
+
def __init__(
|
|
166
|
+
self,
|
|
167
|
+
*,
|
|
168
|
+
location: str,
|
|
169
|
+
tags: Optional[dict[str, str]] = None,
|
|
170
|
+
properties: Optional["_models.AgriServiceResourceProperties"] = None,
|
|
171
|
+
identity: Optional["_models.ManagedServiceIdentity"] = None,
|
|
172
|
+
sku: Optional["_models.Sku"] = None,
|
|
173
|
+
) -> None: ...
|
|
174
|
+
|
|
175
|
+
@overload
|
|
176
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
177
|
+
"""
|
|
178
|
+
:param mapping: raw JSON to initialize the model.
|
|
179
|
+
:type mapping: Mapping[str, Any]
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
183
|
+
super().__init__(*args, **kwargs)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
class AgriServiceResourceProperties(_Model):
|
|
187
|
+
"""Details of the Agriculture AgriDataManager.
|
|
188
|
+
|
|
189
|
+
:ivar provisioning_state: The status of the last operation. Known values are: "Succeeded",
|
|
190
|
+
"Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted".
|
|
191
|
+
:vartype provisioning_state: str or ~azure.mgmt.agricultureplatform.models.ProvisioningState
|
|
192
|
+
:ivar config: Config of the AgriService instance.
|
|
193
|
+
:vartype config: ~azure.mgmt.agricultureplatform.models.AgriServiceConfig
|
|
194
|
+
:ivar managed_on_behalf_of_configuration: Managed On Behalf Of Configuration.
|
|
195
|
+
:vartype managed_on_behalf_of_configuration:
|
|
196
|
+
~azure.mgmt.agricultureplatform.models.ManagedOnBehalfOfConfiguration
|
|
197
|
+
:ivar data_connector_credentials: Data connector credentials of AgriService instance.
|
|
198
|
+
:vartype data_connector_credentials:
|
|
199
|
+
list[~azure.mgmt.agricultureplatform.models.DataConnectorCredentialMap]
|
|
200
|
+
:ivar installed_solutions: AgriService installed solutions.
|
|
201
|
+
:vartype installed_solutions: list[~azure.mgmt.agricultureplatform.models.InstalledSolutionMap]
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
|
|
205
|
+
name="provisioningState", visibility=["read"]
|
|
206
|
+
)
|
|
207
|
+
"""The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\",
|
|
208
|
+
\"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\"."""
|
|
209
|
+
config: Optional["_models.AgriServiceConfig"] = rest_field(visibility=["read", "create", "update"])
|
|
210
|
+
"""Config of the AgriService instance."""
|
|
211
|
+
managed_on_behalf_of_configuration: Optional["_models.ManagedOnBehalfOfConfiguration"] = rest_field(
|
|
212
|
+
name="managedOnBehalfOfConfiguration", visibility=["read"]
|
|
213
|
+
)
|
|
214
|
+
"""Managed On Behalf Of Configuration."""
|
|
215
|
+
data_connector_credentials: Optional[list["_models.DataConnectorCredentialMap"]] = rest_field(
|
|
216
|
+
name="dataConnectorCredentials", visibility=["read", "create", "update"]
|
|
217
|
+
)
|
|
218
|
+
"""Data connector credentials of AgriService instance."""
|
|
219
|
+
installed_solutions: Optional[list["_models.InstalledSolutionMap"]] = rest_field(
|
|
220
|
+
name="installedSolutions", visibility=["read", "create", "update"]
|
|
221
|
+
)
|
|
222
|
+
"""AgriService installed solutions."""
|
|
223
|
+
|
|
224
|
+
@overload
|
|
225
|
+
def __init__(
|
|
226
|
+
self,
|
|
227
|
+
*,
|
|
228
|
+
config: Optional["_models.AgriServiceConfig"] = None,
|
|
229
|
+
data_connector_credentials: Optional[list["_models.DataConnectorCredentialMap"]] = None,
|
|
230
|
+
installed_solutions: Optional[list["_models.InstalledSolutionMap"]] = None,
|
|
231
|
+
) -> None: ...
|
|
232
|
+
|
|
233
|
+
@overload
|
|
234
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
235
|
+
"""
|
|
236
|
+
:param mapping: raw JSON to initialize the model.
|
|
237
|
+
:type mapping: Mapping[str, Any]
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
241
|
+
super().__init__(*args, **kwargs)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
class AgriServiceResourceUpdate(_Model):
|
|
245
|
+
"""The type used for update operations of the AgriServiceResource.
|
|
246
|
+
|
|
247
|
+
:ivar identity: The managed service identities assigned to this resource.
|
|
248
|
+
:vartype identity: ~azure.mgmt.agricultureplatform.models.ManagedServiceIdentity
|
|
249
|
+
:ivar sku: The SKU (Stock Keeping Unit) assigned to this resource.
|
|
250
|
+
:vartype sku: ~azure.mgmt.agricultureplatform.models.Sku
|
|
251
|
+
:ivar tags: Resource tags.
|
|
252
|
+
:vartype tags: dict[str, str]
|
|
253
|
+
:ivar properties: The resource-specific properties for this resource.
|
|
254
|
+
:vartype properties: ~azure.mgmt.agricultureplatform.models.AgriServiceResourceUpdateProperties
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
identity: Optional["_models.ManagedServiceIdentity"] = rest_field(
|
|
258
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
259
|
+
)
|
|
260
|
+
"""The managed service identities assigned to this resource."""
|
|
261
|
+
sku: Optional["_models.Sku"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
262
|
+
"""The SKU (Stock Keeping Unit) assigned to this resource."""
|
|
263
|
+
tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
264
|
+
"""Resource tags."""
|
|
265
|
+
properties: Optional["_models.AgriServiceResourceUpdateProperties"] = rest_field(
|
|
266
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
267
|
+
)
|
|
268
|
+
"""The resource-specific properties for this resource."""
|
|
269
|
+
|
|
270
|
+
@overload
|
|
271
|
+
def __init__(
|
|
272
|
+
self,
|
|
273
|
+
*,
|
|
274
|
+
identity: Optional["_models.ManagedServiceIdentity"] = None,
|
|
275
|
+
sku: Optional["_models.Sku"] = None,
|
|
276
|
+
tags: Optional[dict[str, str]] = None,
|
|
277
|
+
properties: Optional["_models.AgriServiceResourceUpdateProperties"] = None,
|
|
278
|
+
) -> None: ...
|
|
279
|
+
|
|
280
|
+
@overload
|
|
281
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
282
|
+
"""
|
|
283
|
+
:param mapping: raw JSON to initialize the model.
|
|
284
|
+
:type mapping: Mapping[str, Any]
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
288
|
+
super().__init__(*args, **kwargs)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
class AgriServiceResourceUpdateProperties(_Model):
|
|
292
|
+
"""The updatable properties of the AgriServiceResource.
|
|
293
|
+
|
|
294
|
+
:ivar config: Config of the AgriService instance.
|
|
295
|
+
:vartype config: ~azure.mgmt.agricultureplatform.models.AgriServiceConfig
|
|
296
|
+
:ivar data_connector_credentials: Data connector credentials of AgriService instance.
|
|
297
|
+
:vartype data_connector_credentials:
|
|
298
|
+
list[~azure.mgmt.agricultureplatform.models.DataConnectorCredentialMap]
|
|
299
|
+
:ivar installed_solutions: AgriService installed solutions.
|
|
300
|
+
:vartype installed_solutions: list[~azure.mgmt.agricultureplatform.models.InstalledSolutionMap]
|
|
301
|
+
"""
|
|
302
|
+
|
|
303
|
+
config: Optional["_models.AgriServiceConfig"] = rest_field(visibility=["read", "create", "update"])
|
|
304
|
+
"""Config of the AgriService instance."""
|
|
305
|
+
data_connector_credentials: Optional[list["_models.DataConnectorCredentialMap"]] = rest_field(
|
|
306
|
+
name="dataConnectorCredentials", visibility=["read", "create", "update"]
|
|
307
|
+
)
|
|
308
|
+
"""Data connector credentials of AgriService instance."""
|
|
309
|
+
installed_solutions: Optional[list["_models.InstalledSolutionMap"]] = rest_field(
|
|
310
|
+
name="installedSolutions", visibility=["read", "create", "update"]
|
|
311
|
+
)
|
|
312
|
+
"""AgriService installed solutions."""
|
|
313
|
+
|
|
314
|
+
@overload
|
|
315
|
+
def __init__(
|
|
316
|
+
self,
|
|
317
|
+
*,
|
|
318
|
+
config: Optional["_models.AgriServiceConfig"] = None,
|
|
319
|
+
data_connector_credentials: Optional[list["_models.DataConnectorCredentialMap"]] = None,
|
|
320
|
+
installed_solutions: Optional[list["_models.InstalledSolutionMap"]] = None,
|
|
321
|
+
) -> None: ...
|
|
322
|
+
|
|
323
|
+
@overload
|
|
324
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
325
|
+
"""
|
|
326
|
+
:param mapping: raw JSON to initialize the model.
|
|
327
|
+
:type mapping: Mapping[str, Any]
|
|
328
|
+
"""
|
|
329
|
+
|
|
330
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
331
|
+
super().__init__(*args, **kwargs)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
class AvailableAgriSolutionListResult(_Model):
|
|
335
|
+
"""The list of available agri solutions.
|
|
336
|
+
|
|
337
|
+
:ivar solutions: Agri solutions list. Required.
|
|
338
|
+
:vartype solutions:
|
|
339
|
+
list[~azure.mgmt.agricultureplatform.models.DataManagerForAgricultureSolution]
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
solutions: list["_models.DataManagerForAgricultureSolution"] = rest_field(
|
|
343
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
344
|
+
)
|
|
345
|
+
"""Agri solutions list. Required."""
|
|
346
|
+
|
|
347
|
+
@overload
|
|
348
|
+
def __init__(
|
|
349
|
+
self,
|
|
350
|
+
*,
|
|
351
|
+
solutions: list["_models.DataManagerForAgricultureSolution"],
|
|
352
|
+
) -> None: ...
|
|
353
|
+
|
|
354
|
+
@overload
|
|
355
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
356
|
+
"""
|
|
357
|
+
:param mapping: raw JSON to initialize the model.
|
|
358
|
+
:type mapping: Mapping[str, Any]
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
362
|
+
super().__init__(*args, **kwargs)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class DataConnectorCredentialMap(_Model):
|
|
366
|
+
"""Mapping of data connector credentials.
|
|
367
|
+
|
|
368
|
+
:ivar key: The key representing the credential. Required.
|
|
369
|
+
:vartype key: str
|
|
370
|
+
:ivar value: The data connector credential value. Required.
|
|
371
|
+
:vartype value: ~azure.mgmt.agricultureplatform.models.DataConnectorCredentials
|
|
372
|
+
"""
|
|
373
|
+
|
|
374
|
+
key: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
375
|
+
"""The key representing the credential. Required."""
|
|
376
|
+
value: "_models.DataConnectorCredentials" = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
377
|
+
"""The data connector credential value. Required."""
|
|
378
|
+
|
|
379
|
+
@overload
|
|
380
|
+
def __init__(
|
|
381
|
+
self,
|
|
382
|
+
*,
|
|
383
|
+
key: str,
|
|
384
|
+
value: "_models.DataConnectorCredentials",
|
|
385
|
+
) -> None: ...
|
|
386
|
+
|
|
387
|
+
@overload
|
|
388
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
389
|
+
"""
|
|
390
|
+
:param mapping: raw JSON to initialize the model.
|
|
391
|
+
:type mapping: Mapping[str, Any]
|
|
392
|
+
"""
|
|
393
|
+
|
|
394
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
395
|
+
super().__init__(*args, **kwargs)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
class DataConnectorCredentials(_Model):
|
|
399
|
+
"""The properties related to an AgriService data connector.
|
|
400
|
+
|
|
401
|
+
:ivar kind: Type of credential. Known values are: "OAuthClientCredentials" and
|
|
402
|
+
"ApiKeyAuthCredentials".
|
|
403
|
+
:vartype kind: str or ~azure.mgmt.agricultureplatform.models.AuthCredentialsKind
|
|
404
|
+
:ivar client_id: Client Id associated with the provider, if type of credentials is
|
|
405
|
+
OAuthClientCredentials.
|
|
406
|
+
:vartype client_id: str
|
|
407
|
+
:ivar key_vault_uri: Uri of the key vault.
|
|
408
|
+
:vartype key_vault_uri: str
|
|
409
|
+
:ivar key_name: Name of the key vault key.
|
|
410
|
+
:vartype key_name: str
|
|
411
|
+
:ivar key_version: Version of the key vault key.
|
|
412
|
+
:vartype key_version: str
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
kind: Optional[Union[str, "_models.AuthCredentialsKind"]] = rest_field(visibility=["read", "create", "update"])
|
|
416
|
+
"""Type of credential. Known values are: \"OAuthClientCredentials\" and \"ApiKeyAuthCredentials\"."""
|
|
417
|
+
client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update"])
|
|
418
|
+
"""Client Id associated with the provider, if type of credentials is OAuthClientCredentials."""
|
|
419
|
+
key_vault_uri: Optional[str] = rest_field(name="keyVaultUri", visibility=["read", "create", "update"])
|
|
420
|
+
"""Uri of the key vault."""
|
|
421
|
+
key_name: Optional[str] = rest_field(name="keyName", visibility=["read", "create", "update"])
|
|
422
|
+
"""Name of the key vault key."""
|
|
423
|
+
key_version: Optional[str] = rest_field(name="keyVersion", visibility=["read", "create", "update"])
|
|
424
|
+
"""Version of the key vault key."""
|
|
425
|
+
|
|
426
|
+
@overload
|
|
427
|
+
def __init__(
|
|
428
|
+
self,
|
|
429
|
+
*,
|
|
430
|
+
kind: Optional[Union[str, "_models.AuthCredentialsKind"]] = None,
|
|
431
|
+
client_id: Optional[str] = None,
|
|
432
|
+
key_vault_uri: Optional[str] = None,
|
|
433
|
+
key_name: Optional[str] = None,
|
|
434
|
+
key_version: Optional[str] = None,
|
|
435
|
+
) -> None: ...
|
|
436
|
+
|
|
437
|
+
@overload
|
|
438
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
439
|
+
"""
|
|
440
|
+
:param mapping: raw JSON to initialize the model.
|
|
441
|
+
:type mapping: Mapping[str, Any]
|
|
442
|
+
"""
|
|
443
|
+
|
|
444
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
445
|
+
super().__init__(*args, **kwargs)
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
class DataManagerForAgricultureSolution(_Model):
|
|
449
|
+
"""Data Manager for Agriculture solution.
|
|
450
|
+
|
|
451
|
+
:ivar partner_id: Partner Id. Required.
|
|
452
|
+
:vartype partner_id: str
|
|
453
|
+
:ivar solution_id: Solution Id. Required.
|
|
454
|
+
:vartype solution_id: str
|
|
455
|
+
:ivar partner_tenant_id: Partner tenant Id. Required.
|
|
456
|
+
:vartype partner_tenant_id: str
|
|
457
|
+
:ivar data_access_scopes: Data access scopes. Required.
|
|
458
|
+
:vartype data_access_scopes: list[str]
|
|
459
|
+
:ivar market_place_offer_details: Marketplace offer details. Required.
|
|
460
|
+
:vartype market_place_offer_details:
|
|
461
|
+
~azure.mgmt.agricultureplatform.models.MarketPlaceOfferDetails
|
|
462
|
+
:ivar saas_application_id: Saas application Id. Required.
|
|
463
|
+
:vartype saas_application_id: str
|
|
464
|
+
:ivar access_azure_data_manager_for_agriculture_application_id: Entra application Id used to
|
|
465
|
+
access azure data manager for agriculture instance. Required.
|
|
466
|
+
:vartype access_azure_data_manager_for_agriculture_application_id: str
|
|
467
|
+
:ivar access_azure_data_manager_for_agriculture_application_name: Entra application name used
|
|
468
|
+
to access azure data manager for agriculture instance. Required.
|
|
469
|
+
:vartype access_azure_data_manager_for_agriculture_application_name: str
|
|
470
|
+
:ivar is_validate_input: Whether solution inference will validate input. Required.
|
|
471
|
+
:vartype is_validate_input: bool
|
|
472
|
+
"""
|
|
473
|
+
|
|
474
|
+
partner_id: str = rest_field(name="partnerId", visibility=["read", "create", "update", "delete", "query"])
|
|
475
|
+
"""Partner Id. Required."""
|
|
476
|
+
solution_id: str = rest_field(name="solutionId", visibility=["read", "create", "update", "delete", "query"])
|
|
477
|
+
"""Solution Id. Required."""
|
|
478
|
+
partner_tenant_id: str = rest_field(
|
|
479
|
+
name="partnerTenantId", visibility=["read", "create", "update", "delete", "query"]
|
|
480
|
+
)
|
|
481
|
+
"""Partner tenant Id. Required."""
|
|
482
|
+
data_access_scopes: list[str] = rest_field(
|
|
483
|
+
name="dataAccessScopes", visibility=["read", "create", "update", "delete", "query"]
|
|
484
|
+
)
|
|
485
|
+
"""Data access scopes. Required."""
|
|
486
|
+
market_place_offer_details: "_models.MarketPlaceOfferDetails" = rest_field(
|
|
487
|
+
name="marketPlaceOfferDetails", visibility=["read", "create", "update", "delete", "query"]
|
|
488
|
+
)
|
|
489
|
+
"""Marketplace offer details. Required."""
|
|
490
|
+
saas_application_id: str = rest_field(
|
|
491
|
+
name="saasApplicationId", visibility=["read", "create", "update", "delete", "query"]
|
|
492
|
+
)
|
|
493
|
+
"""Saas application Id. Required."""
|
|
494
|
+
access_azure_data_manager_for_agriculture_application_id: str = rest_field(
|
|
495
|
+
name="accessAzureDataManagerForAgricultureApplicationId",
|
|
496
|
+
visibility=["read", "create", "update", "delete", "query"],
|
|
497
|
+
)
|
|
498
|
+
"""Entra application Id used to access azure data manager for agriculture instance. Required."""
|
|
499
|
+
access_azure_data_manager_for_agriculture_application_name: str = rest_field(
|
|
500
|
+
name="accessAzureDataManagerForAgricultureApplicationName",
|
|
501
|
+
visibility=["read", "create", "update", "delete", "query"],
|
|
502
|
+
)
|
|
503
|
+
"""Entra application name used to access azure data manager for agriculture instance. Required."""
|
|
504
|
+
is_validate_input: bool = rest_field(
|
|
505
|
+
name="isValidateInput", visibility=["read", "create", "update", "delete", "query"]
|
|
506
|
+
)
|
|
507
|
+
"""Whether solution inference will validate input. Required."""
|
|
508
|
+
|
|
509
|
+
@overload
|
|
510
|
+
def __init__(
|
|
511
|
+
self,
|
|
512
|
+
*,
|
|
513
|
+
partner_id: str,
|
|
514
|
+
solution_id: str,
|
|
515
|
+
partner_tenant_id: str,
|
|
516
|
+
data_access_scopes: list[str],
|
|
517
|
+
market_place_offer_details: "_models.MarketPlaceOfferDetails",
|
|
518
|
+
saas_application_id: str,
|
|
519
|
+
access_azure_data_manager_for_agriculture_application_id: str,
|
|
520
|
+
access_azure_data_manager_for_agriculture_application_name: str,
|
|
521
|
+
is_validate_input: bool,
|
|
522
|
+
) -> None: ...
|
|
523
|
+
|
|
524
|
+
@overload
|
|
525
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
526
|
+
"""
|
|
527
|
+
:param mapping: raw JSON to initialize the model.
|
|
528
|
+
:type mapping: Mapping[str, Any]
|
|
529
|
+
"""
|
|
530
|
+
|
|
531
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
532
|
+
super().__init__(*args, **kwargs)
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
class ErrorAdditionalInfo(_Model):
|
|
536
|
+
"""The resource management error additional info.
|
|
537
|
+
|
|
538
|
+
:ivar type: The additional info type.
|
|
539
|
+
:vartype type: str
|
|
540
|
+
:ivar info: The additional info.
|
|
541
|
+
:vartype info: any
|
|
542
|
+
"""
|
|
543
|
+
|
|
544
|
+
type: Optional[str] = rest_field(visibility=["read"])
|
|
545
|
+
"""The additional info type."""
|
|
546
|
+
info: Optional[Any] = rest_field(visibility=["read"])
|
|
547
|
+
"""The additional info."""
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
class ErrorDetail(_Model):
|
|
551
|
+
"""The error detail.
|
|
552
|
+
|
|
553
|
+
:ivar code: The error code.
|
|
554
|
+
:vartype code: str
|
|
555
|
+
:ivar message: The error message.
|
|
556
|
+
:vartype message: str
|
|
557
|
+
:ivar target: The error target.
|
|
558
|
+
:vartype target: str
|
|
559
|
+
:ivar details: The error details.
|
|
560
|
+
:vartype details: list[~azure.mgmt.agricultureplatform.models.ErrorDetail]
|
|
561
|
+
:ivar additional_info: The error additional info.
|
|
562
|
+
:vartype additional_info: list[~azure.mgmt.agricultureplatform.models.ErrorAdditionalInfo]
|
|
563
|
+
"""
|
|
564
|
+
|
|
565
|
+
code: Optional[str] = rest_field(visibility=["read"])
|
|
566
|
+
"""The error code."""
|
|
567
|
+
message: Optional[str] = rest_field(visibility=["read"])
|
|
568
|
+
"""The error message."""
|
|
569
|
+
target: Optional[str] = rest_field(visibility=["read"])
|
|
570
|
+
"""The error target."""
|
|
571
|
+
details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"])
|
|
572
|
+
"""The error details."""
|
|
573
|
+
additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field(
|
|
574
|
+
name="additionalInfo", visibility=["read"]
|
|
575
|
+
)
|
|
576
|
+
"""The error additional info."""
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
class ErrorResponse(_Model):
|
|
580
|
+
"""Error response.
|
|
581
|
+
|
|
582
|
+
:ivar error: The error object.
|
|
583
|
+
:vartype error: ~azure.mgmt.agricultureplatform.models.ErrorDetail
|
|
584
|
+
"""
|
|
585
|
+
|
|
586
|
+
error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
587
|
+
"""The error object."""
|
|
588
|
+
|
|
589
|
+
@overload
|
|
590
|
+
def __init__(
|
|
591
|
+
self,
|
|
592
|
+
*,
|
|
593
|
+
error: Optional["_models.ErrorDetail"] = None,
|
|
594
|
+
) -> None: ...
|
|
595
|
+
|
|
596
|
+
@overload
|
|
597
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
598
|
+
"""
|
|
599
|
+
:param mapping: raw JSON to initialize the model.
|
|
600
|
+
:type mapping: Mapping[str, Any]
|
|
601
|
+
"""
|
|
602
|
+
|
|
603
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
604
|
+
super().__init__(*args, **kwargs)
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
class InstalledSolutionMap(_Model):
|
|
608
|
+
"""Mapping of installed solutions.
|
|
609
|
+
|
|
610
|
+
:ivar key: The key representing the installed solution. Required.
|
|
611
|
+
:vartype key: str
|
|
612
|
+
:ivar value: The installed solution value. Required.
|
|
613
|
+
:vartype value: ~azure.mgmt.agricultureplatform.models.Solution
|
|
614
|
+
"""
|
|
615
|
+
|
|
616
|
+
key: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
617
|
+
"""The key representing the installed solution. Required."""
|
|
618
|
+
value: "_models.Solution" = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
619
|
+
"""The installed solution value. Required."""
|
|
620
|
+
|
|
621
|
+
@overload
|
|
622
|
+
def __init__(
|
|
623
|
+
self,
|
|
624
|
+
*,
|
|
625
|
+
key: str,
|
|
626
|
+
value: "_models.Solution",
|
|
627
|
+
) -> None: ...
|
|
628
|
+
|
|
629
|
+
@overload
|
|
630
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
631
|
+
"""
|
|
632
|
+
:param mapping: raw JSON to initialize the model.
|
|
633
|
+
:type mapping: Mapping[str, Any]
|
|
634
|
+
"""
|
|
635
|
+
|
|
636
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
637
|
+
super().__init__(*args, **kwargs)
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
class ManagedOnBehalfOfConfiguration(_Model):
|
|
641
|
+
"""Configuration of the managed on behalf of resource.
|
|
642
|
+
|
|
643
|
+
:ivar mobo_broker_resources: Associated MoboBrokerResources. Required.
|
|
644
|
+
:vartype mobo_broker_resources: list[~azure.mgmt.agricultureplatform.models.MoboBrokerResource]
|
|
645
|
+
"""
|
|
646
|
+
|
|
647
|
+
mobo_broker_resources: list["_models.MoboBrokerResource"] = rest_field(
|
|
648
|
+
name="moboBrokerResources", visibility=["read"]
|
|
649
|
+
)
|
|
650
|
+
"""Associated MoboBrokerResources. Required."""
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
class ManagedServiceIdentity(_Model):
|
|
654
|
+
"""Managed service identity (system assigned and/or user assigned identities).
|
|
655
|
+
|
|
656
|
+
:ivar principal_id: The service principal ID of the system assigned identity. This property
|
|
657
|
+
will only be provided for a system assigned identity.
|
|
658
|
+
:vartype principal_id: str
|
|
659
|
+
:ivar tenant_id: The tenant ID of the system assigned identity. This property will only be
|
|
660
|
+
provided for a system assigned identity.
|
|
661
|
+
:vartype tenant_id: str
|
|
662
|
+
:ivar type: The type of managed identity assigned to this resource. Required. Known values are:
|
|
663
|
+
"None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned".
|
|
664
|
+
:vartype type: str or ~azure.mgmt.agricultureplatform.models.ManagedServiceIdentityType
|
|
665
|
+
:ivar user_assigned_identities: The identities assigned to this resource by the user.
|
|
666
|
+
:vartype user_assigned_identities: dict[str,
|
|
667
|
+
~azure.mgmt.agricultureplatform.models.UserAssignedIdentity]
|
|
668
|
+
"""
|
|
669
|
+
|
|
670
|
+
principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"])
|
|
671
|
+
"""The service principal ID of the system assigned identity. This property will only be provided
|
|
672
|
+
for a system assigned identity."""
|
|
673
|
+
tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"])
|
|
674
|
+
"""The tenant ID of the system assigned identity. This property will only be provided for a system
|
|
675
|
+
assigned identity."""
|
|
676
|
+
type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field(
|
|
677
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
678
|
+
)
|
|
679
|
+
"""The type of managed identity assigned to this resource. Required. Known values are: \"None\",
|
|
680
|
+
\"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\"."""
|
|
681
|
+
user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = rest_field(
|
|
682
|
+
name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"]
|
|
683
|
+
)
|
|
684
|
+
"""The identities assigned to this resource by the user."""
|
|
685
|
+
|
|
686
|
+
@overload
|
|
687
|
+
def __init__(
|
|
688
|
+
self,
|
|
689
|
+
*,
|
|
690
|
+
type: Union[str, "_models.ManagedServiceIdentityType"],
|
|
691
|
+
user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None,
|
|
692
|
+
) -> None: ...
|
|
693
|
+
|
|
694
|
+
@overload
|
|
695
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
696
|
+
"""
|
|
697
|
+
:param mapping: raw JSON to initialize the model.
|
|
698
|
+
:type mapping: Mapping[str, Any]
|
|
699
|
+
"""
|
|
700
|
+
|
|
701
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
702
|
+
super().__init__(*args, **kwargs)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
class MarketPlaceOfferDetails(_Model):
|
|
706
|
+
"""Marketplace offer details of Agri solution.
|
|
707
|
+
|
|
708
|
+
:ivar saas_offer_id: Saas offer Id. Required.
|
|
709
|
+
:vartype saas_offer_id: str
|
|
710
|
+
:ivar publisher_id: Publisher Id. Required.
|
|
711
|
+
:vartype publisher_id: str
|
|
712
|
+
"""
|
|
713
|
+
|
|
714
|
+
saas_offer_id: str = rest_field(name="saasOfferId", visibility=["read", "create", "update", "delete", "query"])
|
|
715
|
+
"""Saas offer Id. Required."""
|
|
716
|
+
publisher_id: str = rest_field(name="publisherId", visibility=["read", "create", "update", "delete", "query"])
|
|
717
|
+
"""Publisher Id. Required."""
|
|
718
|
+
|
|
719
|
+
@overload
|
|
720
|
+
def __init__(
|
|
721
|
+
self,
|
|
722
|
+
*,
|
|
723
|
+
saas_offer_id: str,
|
|
724
|
+
publisher_id: str,
|
|
725
|
+
) -> None: ...
|
|
726
|
+
|
|
727
|
+
@overload
|
|
728
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
729
|
+
"""
|
|
730
|
+
:param mapping: raw JSON to initialize the model.
|
|
731
|
+
:type mapping: Mapping[str, Any]
|
|
732
|
+
"""
|
|
733
|
+
|
|
734
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
735
|
+
super().__init__(*args, **kwargs)
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
class MoboBrokerResource(_Model):
|
|
739
|
+
"""MoboBroker resource.
|
|
740
|
+
|
|
741
|
+
:ivar id: The fully qualified resource ID of the MoboBroker resource. Example:
|
|
742
|
+
``/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}``.
|
|
743
|
+
Required.
|
|
744
|
+
:vartype id: str
|
|
745
|
+
"""
|
|
746
|
+
|
|
747
|
+
id: str = rest_field(visibility=["read"])
|
|
748
|
+
"""The fully qualified resource ID of the MoboBroker resource. Example:
|
|
749
|
+
``/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}``.
|
|
750
|
+
Required."""
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
class Operation(_Model):
|
|
754
|
+
"""REST API Operation.
|
|
755
|
+
|
|
756
|
+
:ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
|
|
757
|
+
"Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
|
|
758
|
+
:vartype name: str
|
|
759
|
+
:ivar is_data_action: Whether the operation applies to data-plane. This is "true" for
|
|
760
|
+
data-plane operations and "false" for Azure Resource Manager/control-plane operations.
|
|
761
|
+
:vartype is_data_action: bool
|
|
762
|
+
:ivar display: Localized display information for this particular operation.
|
|
763
|
+
:vartype display: ~azure.mgmt.agricultureplatform.models.OperationDisplay
|
|
764
|
+
:ivar origin: The intended executor of the operation; as in Resource Based Access Control
|
|
765
|
+
(RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system",
|
|
766
|
+
and "user,system".
|
|
767
|
+
:vartype origin: str or ~azure.mgmt.agricultureplatform.models.Origin
|
|
768
|
+
:ivar action_type: Extensible enum. Indicates the action type. "Internal" refers to actions
|
|
769
|
+
that are for internal only APIs. "Internal"
|
|
770
|
+
:vartype action_type: str or ~azure.mgmt.agricultureplatform.models.ActionType
|
|
771
|
+
"""
|
|
772
|
+
|
|
773
|
+
name: Optional[str] = rest_field(visibility=["read"])
|
|
774
|
+
"""The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
|
|
775
|
+
\"Microsoft.Compute/virtualMachines/write\",
|
|
776
|
+
\"Microsoft.Compute/virtualMachines/capture/action\"."""
|
|
777
|
+
is_data_action: Optional[bool] = rest_field(name="isDataAction", visibility=["read"])
|
|
778
|
+
"""Whether the operation applies to data-plane. This is \"true\" for data-plane operations and
|
|
779
|
+
\"false\" for Azure Resource Manager/control-plane operations."""
|
|
780
|
+
display: Optional["_models.OperationDisplay"] = rest_field(
|
|
781
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
782
|
+
)
|
|
783
|
+
"""Localized display information for this particular operation."""
|
|
784
|
+
origin: Optional[Union[str, "_models.Origin"]] = rest_field(visibility=["read"])
|
|
785
|
+
"""The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit
|
|
786
|
+
logs UX. Default value is \"user,system\". Known values are: \"user\", \"system\", and
|
|
787
|
+
\"user,system\"."""
|
|
788
|
+
action_type: Optional[Union[str, "_models.ActionType"]] = rest_field(name="actionType", visibility=["read"])
|
|
789
|
+
"""Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for
|
|
790
|
+
internal only APIs. \"Internal\""""
|
|
791
|
+
|
|
792
|
+
@overload
|
|
793
|
+
def __init__(
|
|
794
|
+
self,
|
|
795
|
+
*,
|
|
796
|
+
display: Optional["_models.OperationDisplay"] = None,
|
|
797
|
+
) -> None: ...
|
|
798
|
+
|
|
799
|
+
@overload
|
|
800
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
801
|
+
"""
|
|
802
|
+
:param mapping: raw JSON to initialize the model.
|
|
803
|
+
:type mapping: Mapping[str, Any]
|
|
804
|
+
"""
|
|
805
|
+
|
|
806
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
807
|
+
super().__init__(*args, **kwargs)
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
class OperationDisplay(_Model):
|
|
811
|
+
"""Localized display information for an operation.
|
|
812
|
+
|
|
813
|
+
:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
|
|
814
|
+
Monitoring Insights" or "Microsoft Compute".
|
|
815
|
+
:vartype provider: str
|
|
816
|
+
:ivar resource: The localized friendly name of the resource type related to this operation.
|
|
817
|
+
E.g. "Virtual Machines" or "Job Schedule Collections".
|
|
818
|
+
:vartype resource: str
|
|
819
|
+
:ivar operation: The concise, localized friendly name for the operation; suitable for
|
|
820
|
+
dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
|
|
821
|
+
:vartype operation: str
|
|
822
|
+
:ivar description: The short, localized friendly description of the operation; suitable for
|
|
823
|
+
tool tips and detailed views.
|
|
824
|
+
:vartype description: str
|
|
825
|
+
"""
|
|
826
|
+
|
|
827
|
+
provider: Optional[str] = rest_field(visibility=["read"])
|
|
828
|
+
"""The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring
|
|
829
|
+
Insights\" or \"Microsoft Compute\"."""
|
|
830
|
+
resource: Optional[str] = rest_field(visibility=["read"])
|
|
831
|
+
"""The localized friendly name of the resource type related to this operation. E.g. \"Virtual
|
|
832
|
+
Machines\" or \"Job Schedule Collections\"."""
|
|
833
|
+
operation: Optional[str] = rest_field(visibility=["read"])
|
|
834
|
+
"""The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create
|
|
835
|
+
or Update Virtual Machine\", \"Restart Virtual Machine\"."""
|
|
836
|
+
description: Optional[str] = rest_field(visibility=["read"])
|
|
837
|
+
"""The short, localized friendly description of the operation; suitable for tool tips and detailed
|
|
838
|
+
views."""
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
class Sku(_Model):
|
|
842
|
+
"""The resource model definition representing SKU.
|
|
843
|
+
|
|
844
|
+
:ivar name: The name of the SKU. Ex - P3. It is typically a letter+number code. Required.
|
|
845
|
+
:vartype name: str
|
|
846
|
+
:ivar tier: This field is required to be implemented by the Resource Provider if the service
|
|
847
|
+
has more than one tier, but is not required on a PUT. Known values are: "Free", "Basic",
|
|
848
|
+
"Standard", and "Premium".
|
|
849
|
+
:vartype tier: str or ~azure.mgmt.agricultureplatform.models.SkuTier
|
|
850
|
+
:ivar size: The SKU size. When the name field is the combination of tier and some other value,
|
|
851
|
+
this would be the standalone code.
|
|
852
|
+
:vartype size: str
|
|
853
|
+
:ivar family: If the service has different generations of hardware, for the same SKU, then that
|
|
854
|
+
can be captured here.
|
|
855
|
+
:vartype family: str
|
|
856
|
+
:ivar capacity: If the SKU supports scale out/in then the capacity integer should be included.
|
|
857
|
+
If scale out/in is not possible for the resource this may be omitted.
|
|
858
|
+
:vartype capacity: int
|
|
859
|
+
"""
|
|
860
|
+
|
|
861
|
+
name: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
862
|
+
"""The name of the SKU. Ex - P3. It is typically a letter+number code. Required."""
|
|
863
|
+
tier: Optional[Union[str, "_models.SkuTier"]] = rest_field(
|
|
864
|
+
visibility=["read", "create", "update", "delete", "query"]
|
|
865
|
+
)
|
|
866
|
+
"""This field is required to be implemented by the Resource Provider if the service has more than
|
|
867
|
+
one tier, but is not required on a PUT. Known values are: \"Free\", \"Basic\", \"Standard\",
|
|
868
|
+
and \"Premium\"."""
|
|
869
|
+
size: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
870
|
+
"""The SKU size. When the name field is the combination of tier and some other value, this would
|
|
871
|
+
be the standalone code."""
|
|
872
|
+
family: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
873
|
+
"""If the service has different generations of hardware, for the same SKU, then that can be
|
|
874
|
+
captured here."""
|
|
875
|
+
capacity: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"])
|
|
876
|
+
"""If the SKU supports scale out/in then the capacity integer should be included. If scale out/in
|
|
877
|
+
is not possible for the resource this may be omitted."""
|
|
878
|
+
|
|
879
|
+
@overload
|
|
880
|
+
def __init__(
|
|
881
|
+
self,
|
|
882
|
+
*,
|
|
883
|
+
name: str,
|
|
884
|
+
tier: Optional[Union[str, "_models.SkuTier"]] = None,
|
|
885
|
+
size: Optional[str] = None,
|
|
886
|
+
family: Optional[str] = None,
|
|
887
|
+
capacity: Optional[int] = None,
|
|
888
|
+
) -> None: ...
|
|
889
|
+
|
|
890
|
+
@overload
|
|
891
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
892
|
+
"""
|
|
893
|
+
:param mapping: raw JSON to initialize the model.
|
|
894
|
+
:type mapping: Mapping[str, Any]
|
|
895
|
+
"""
|
|
896
|
+
|
|
897
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
898
|
+
super().__init__(*args, **kwargs)
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
class Solution(_Model):
|
|
902
|
+
"""Installed data manager for Agriculture solution detail.
|
|
903
|
+
|
|
904
|
+
:ivar application_name: Application name of the solution.
|
|
905
|
+
:vartype application_name: str
|
|
906
|
+
:ivar partner_id: Partner Id.
|
|
907
|
+
:vartype partner_id: str
|
|
908
|
+
:ivar market_place_publisher_id: Marketplace publisher Id.
|
|
909
|
+
:vartype market_place_publisher_id: str
|
|
910
|
+
:ivar saas_subscription_id: Saas subscription Id.
|
|
911
|
+
:vartype saas_subscription_id: str
|
|
912
|
+
:ivar saas_subscription_name: Saas subscription name.
|
|
913
|
+
:vartype saas_subscription_name: str
|
|
914
|
+
:ivar plan_id: Plan Id.
|
|
915
|
+
:vartype plan_id: str
|
|
916
|
+
"""
|
|
917
|
+
|
|
918
|
+
application_name: Optional[str] = rest_field(name="applicationName", visibility=["read", "create", "update"])
|
|
919
|
+
"""Application name of the solution."""
|
|
920
|
+
partner_id: Optional[str] = rest_field(name="partnerId", visibility=["read", "create", "update"])
|
|
921
|
+
"""Partner Id."""
|
|
922
|
+
market_place_publisher_id: Optional[str] = rest_field(
|
|
923
|
+
name="marketPlacePublisherId", visibility=["read", "create", "update"]
|
|
924
|
+
)
|
|
925
|
+
"""Marketplace publisher Id."""
|
|
926
|
+
saas_subscription_id: Optional[str] = rest_field(name="saasSubscriptionId", visibility=["read", "create", "update"])
|
|
927
|
+
"""Saas subscription Id."""
|
|
928
|
+
saas_subscription_name: Optional[str] = rest_field(
|
|
929
|
+
name="saasSubscriptionName", visibility=["read", "create", "update"]
|
|
930
|
+
)
|
|
931
|
+
"""Saas subscription name."""
|
|
932
|
+
plan_id: Optional[str] = rest_field(name="planId", visibility=["read", "create", "update"])
|
|
933
|
+
"""Plan Id."""
|
|
934
|
+
|
|
935
|
+
@overload
|
|
936
|
+
def __init__(
|
|
937
|
+
self,
|
|
938
|
+
*,
|
|
939
|
+
application_name: Optional[str] = None,
|
|
940
|
+
partner_id: Optional[str] = None,
|
|
941
|
+
market_place_publisher_id: Optional[str] = None,
|
|
942
|
+
saas_subscription_id: Optional[str] = None,
|
|
943
|
+
saas_subscription_name: Optional[str] = None,
|
|
944
|
+
plan_id: Optional[str] = None,
|
|
945
|
+
) -> None: ...
|
|
946
|
+
|
|
947
|
+
@overload
|
|
948
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
949
|
+
"""
|
|
950
|
+
:param mapping: raw JSON to initialize the model.
|
|
951
|
+
:type mapping: Mapping[str, Any]
|
|
952
|
+
"""
|
|
953
|
+
|
|
954
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
955
|
+
super().__init__(*args, **kwargs)
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
class SystemData(_Model):
|
|
959
|
+
"""Metadata pertaining to creation and last modification of the resource.
|
|
960
|
+
|
|
961
|
+
:ivar created_by: The identity that created the resource.
|
|
962
|
+
:vartype created_by: str
|
|
963
|
+
:ivar created_by_type: The type of identity that created the resource. Known values are:
|
|
964
|
+
"User", "Application", "ManagedIdentity", and "Key".
|
|
965
|
+
:vartype created_by_type: str or ~azure.mgmt.agricultureplatform.models.CreatedByType
|
|
966
|
+
:ivar created_at: The timestamp of resource creation (UTC).
|
|
967
|
+
:vartype created_at: ~datetime.datetime
|
|
968
|
+
:ivar last_modified_by: The identity that last modified the resource.
|
|
969
|
+
:vartype last_modified_by: str
|
|
970
|
+
:ivar last_modified_by_type: The type of identity that last modified the resource. Known values
|
|
971
|
+
are: "User", "Application", "ManagedIdentity", and "Key".
|
|
972
|
+
:vartype last_modified_by_type: str or ~azure.mgmt.agricultureplatform.models.CreatedByType
|
|
973
|
+
:ivar last_modified_at: The timestamp of resource last modification (UTC).
|
|
974
|
+
:vartype last_modified_at: ~datetime.datetime
|
|
975
|
+
"""
|
|
976
|
+
|
|
977
|
+
created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"])
|
|
978
|
+
"""The identity that created the resource."""
|
|
979
|
+
created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(
|
|
980
|
+
name="createdByType", visibility=["read", "create", "update", "delete", "query"]
|
|
981
|
+
)
|
|
982
|
+
"""The type of identity that created the resource. Known values are: \"User\", \"Application\",
|
|
983
|
+
\"ManagedIdentity\", and \"Key\"."""
|
|
984
|
+
created_at: Optional[datetime.datetime] = rest_field(
|
|
985
|
+
name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
|
|
986
|
+
)
|
|
987
|
+
"""The timestamp of resource creation (UTC)."""
|
|
988
|
+
last_modified_by: Optional[str] = rest_field(
|
|
989
|
+
name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"]
|
|
990
|
+
)
|
|
991
|
+
"""The identity that last modified the resource."""
|
|
992
|
+
last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(
|
|
993
|
+
name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"]
|
|
994
|
+
)
|
|
995
|
+
"""The type of identity that last modified the resource. Known values are: \"User\",
|
|
996
|
+
\"Application\", \"ManagedIdentity\", and \"Key\"."""
|
|
997
|
+
last_modified_at: Optional[datetime.datetime] = rest_field(
|
|
998
|
+
name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
|
|
999
|
+
)
|
|
1000
|
+
"""The timestamp of resource last modification (UTC)."""
|
|
1001
|
+
|
|
1002
|
+
@overload
|
|
1003
|
+
def __init__(
|
|
1004
|
+
self,
|
|
1005
|
+
*,
|
|
1006
|
+
created_by: Optional[str] = None,
|
|
1007
|
+
created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
|
|
1008
|
+
created_at: Optional[datetime.datetime] = None,
|
|
1009
|
+
last_modified_by: Optional[str] = None,
|
|
1010
|
+
last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
|
|
1011
|
+
last_modified_at: Optional[datetime.datetime] = None,
|
|
1012
|
+
) -> None: ...
|
|
1013
|
+
|
|
1014
|
+
@overload
|
|
1015
|
+
def __init__(self, mapping: Mapping[str, Any]) -> None:
|
|
1016
|
+
"""
|
|
1017
|
+
:param mapping: raw JSON to initialize the model.
|
|
1018
|
+
:type mapping: Mapping[str, Any]
|
|
1019
|
+
"""
|
|
1020
|
+
|
|
1021
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
1022
|
+
super().__init__(*args, **kwargs)
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
class UserAssignedIdentity(_Model):
|
|
1026
|
+
"""User assigned identity properties.
|
|
1027
|
+
|
|
1028
|
+
:ivar principal_id: The principal ID of the assigned identity.
|
|
1029
|
+
:vartype principal_id: str
|
|
1030
|
+
:ivar client_id: The client ID of the assigned identity.
|
|
1031
|
+
:vartype client_id: str
|
|
1032
|
+
"""
|
|
1033
|
+
|
|
1034
|
+
principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"])
|
|
1035
|
+
"""The principal ID of the assigned identity."""
|
|
1036
|
+
client_id: Optional[str] = rest_field(name="clientId", visibility=["read"])
|
|
1037
|
+
"""The client ID of the assigned identity."""
|