File: _models_py3.py

package info (click to toggle)
python-azure 20251202%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 786,344 kB
  • sloc: python: 6,510,493; ansic: 804; javascript: 287; sh: 204; makefile: 198; xml: 109
file content (369 lines) | stat: -rw-r--r-- 13,104 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, List, Optional, TYPE_CHECKING, Union

from .._utils import serialization as _serialization

if TYPE_CHECKING:
    from .. import models as _models


class ErrorAdditionalInfo(_serialization.Model):
    """The resource management error additional info.

    Variables are only populated by the server, and will be ignored when sending a request.

    :ivar type: The additional info type.
    :vartype type: str
    :ivar info: The additional info.
    :vartype info: JSON
    """

    _validation = {
        "type": {"readonly": True},
        "info": {"readonly": True},
    }

    _attribute_map = {
        "type": {"key": "type", "type": "str"},
        "info": {"key": "info", "type": "object"},
    }

    def __init__(self, **kwargs: Any) -> None:
        """ """
        super().__init__(**kwargs)
        self.type: Optional[str] = None
        self.info: Optional[JSON] = None


class ErrorResponse(_serialization.Model):
    """Common error response for all Azure Resource Manager APIs to return error details for failed
    operations. (This also follows the OData error response format.).

    Variables are only populated by the server, and will be ignored when sending a request.

    :ivar code: The error code.
    :vartype code: str
    :ivar message: The error message.
    :vartype message: str
    :ivar target: The error target.
    :vartype target: str
    :ivar details: The error details.
    :vartype details: list[~azure.mgmt.resource.privatelinks.models.ErrorResponse]
    :ivar additional_info: The error additional info.
    :vartype additional_info: list[~azure.mgmt.resource.privatelinks.models.ErrorAdditionalInfo]
    """

    _validation = {
        "code": {"readonly": True},
        "message": {"readonly": True},
        "target": {"readonly": True},
        "details": {"readonly": True},
        "additional_info": {"readonly": True},
    }

    _attribute_map = {
        "code": {"key": "code", "type": "str"},
        "message": {"key": "message", "type": "str"},
        "target": {"key": "target", "type": "str"},
        "details": {"key": "details", "type": "[ErrorResponse]"},
        "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"},
    }

    def __init__(self, **kwargs: Any) -> None:
        """ """
        super().__init__(**kwargs)
        self.code: Optional[str] = None
        self.message: Optional[str] = None
        self.target: Optional[str] = None
        self.details: Optional[List["_models.ErrorResponse"]] = None
        self.additional_info: Optional[List["_models.ErrorAdditionalInfo"]] = None


class PrivateLinkAssociation(_serialization.Model):
    """PrivateLinkAssociation.

    Variables are only populated by the server, and will be ignored when sending a request.

    :ivar properties: The private link association properties.
    :vartype properties:
     ~azure.mgmt.resource.privatelinks.models.PrivateLinkAssociationPropertiesExpanded
    :ivar id: The plaResourceID.
    :vartype id: str
    :ivar type: The operation type.
    :vartype type: str
    :ivar name: The pla name.
    :vartype name: str
    """

    _validation = {
        "id": {"readonly": True},
        "type": {"readonly": True},
        "name": {"readonly": True},
    }

    _attribute_map = {
        "properties": {"key": "properties", "type": "PrivateLinkAssociationPropertiesExpanded"},
        "id": {"key": "id", "type": "str"},
        "type": {"key": "type", "type": "str"},
        "name": {"key": "name", "type": "str"},
    }

    def __init__(
        self, *, properties: Optional["_models.PrivateLinkAssociationPropertiesExpanded"] = None, **kwargs: Any
    ) -> None:
        """
        :keyword properties: The private link association properties.
        :paramtype properties:
         ~azure.mgmt.resource.privatelinks.models.PrivateLinkAssociationPropertiesExpanded
        """
        super().__init__(**kwargs)
        self.properties = properties
        self.id: Optional[str] = None
        self.type: Optional[str] = None
        self.name: Optional[str] = None


class PrivateLinkAssociationGetResult(_serialization.Model):
    """Result of the request to get PLA for a MG scope.

    :ivar value: private link association information.
    :vartype value: list[~azure.mgmt.resource.privatelinks.models.PrivateLinkAssociation]
    """

    _attribute_map = {
        "value": {"key": "value", "type": "[PrivateLinkAssociation]"},
    }

    def __init__(self, *, value: Optional[List["_models.PrivateLinkAssociation"]] = None, **kwargs: Any) -> None:
        """
        :keyword value: private link association information.
        :paramtype value: list[~azure.mgmt.resource.privatelinks.models.PrivateLinkAssociation]
        """
        super().__init__(**kwargs)
        self.value = value


class PrivateLinkAssociationObject(_serialization.Model):
    """PrivateLinkAssociationObject.

    :ivar properties: The properties of the PrivateLinkAssociation.
    :vartype properties: ~azure.mgmt.resource.privatelinks.models.PrivateLinkAssociationProperties
    """

    _attribute_map = {
        "properties": {"key": "properties", "type": "PrivateLinkAssociationProperties"},
    }

    def __init__(
        self, *, properties: Optional["_models.PrivateLinkAssociationProperties"] = None, **kwargs: Any
    ) -> None:
        """
        :keyword properties: The properties of the PrivateLinkAssociation.
        :paramtype properties:
         ~azure.mgmt.resource.privatelinks.models.PrivateLinkAssociationProperties
        """
        super().__init__(**kwargs)
        self.properties = properties


class PrivateLinkAssociationProperties(_serialization.Model):
    """PrivateLinkAssociationProperties.

    :ivar private_link: The rmpl Resource ID.
    :vartype private_link: str
    :ivar public_network_access: Known values are: "Enabled" and "Disabled".
    :vartype public_network_access: str or
     ~azure.mgmt.resource.privatelinks.models.PublicNetworkAccessOptions
    """

    _attribute_map = {
        "private_link": {"key": "privateLink", "type": "str"},
        "public_network_access": {"key": "publicNetworkAccess", "type": "str"},
    }

    def __init__(
        self,
        *,
        private_link: Optional[str] = None,
        public_network_access: Optional[Union[str, "_models.PublicNetworkAccessOptions"]] = None,
        **kwargs: Any
    ) -> None:
        """
        :keyword private_link: The rmpl Resource ID.
        :paramtype private_link: str
        :keyword public_network_access: Known values are: "Enabled" and "Disabled".
        :paramtype public_network_access: str or
         ~azure.mgmt.resource.privatelinks.models.PublicNetworkAccessOptions
        """
        super().__init__(**kwargs)
        self.private_link = private_link
        self.public_network_access = public_network_access


class PrivateLinkAssociationPropertiesExpanded(_serialization.Model):
    """Private Link Association Properties.

    :ivar private_link: The rmpl Resource ID.
    :vartype private_link: str
    :ivar public_network_access: Known values are: "Enabled" and "Disabled".
    :vartype public_network_access: str or
     ~azure.mgmt.resource.privatelinks.models.PublicNetworkAccessOptions
    :ivar tenant_id: The TenantID.
    :vartype tenant_id: str
    :ivar scope: The scope of the private link association.
    :vartype scope: str
    """

    _attribute_map = {
        "private_link": {"key": "privateLink", "type": "str"},
        "public_network_access": {"key": "publicNetworkAccess", "type": "str"},
        "tenant_id": {"key": "tenantID", "type": "str"},
        "scope": {"key": "scope", "type": "str"},
    }

    def __init__(
        self,
        *,
        private_link: Optional[str] = None,
        public_network_access: Optional[Union[str, "_models.PublicNetworkAccessOptions"]] = None,
        tenant_id: Optional[str] = None,
        scope: Optional[str] = None,
        **kwargs: Any
    ) -> None:
        """
        :keyword private_link: The rmpl Resource ID.
        :paramtype private_link: str
        :keyword public_network_access: Known values are: "Enabled" and "Disabled".
        :paramtype public_network_access: str or
         ~azure.mgmt.resource.privatelinks.models.PublicNetworkAccessOptions
        :keyword tenant_id: The TenantID.
        :paramtype tenant_id: str
        :keyword scope: The scope of the private link association.
        :paramtype scope: str
        """
        super().__init__(**kwargs)
        self.private_link = private_link
        self.public_network_access = public_network_access
        self.tenant_id = tenant_id
        self.scope = scope


class ResourceManagementPrivateLink(_serialization.Model):
    """ResourceManagementPrivateLink.

    Variables are only populated by the server, and will be ignored when sending a request.

    :ivar properties:
    :vartype properties:
     ~azure.mgmt.resource.privatelinks.models.ResourceManagementPrivateLinkEndpointConnections
    :ivar id: The rmplResourceID.
    :vartype id: str
    :ivar name: The rmpl Name.
    :vartype name: str
    :ivar type: The operation type.
    :vartype type: str
    :ivar location: the region of the rmpl.
    :vartype location: str
    """

    _validation = {
        "id": {"readonly": True},
        "name": {"readonly": True},
        "type": {"readonly": True},
    }

    _attribute_map = {
        "properties": {"key": "properties", "type": "ResourceManagementPrivateLinkEndpointConnections"},
        "id": {"key": "id", "type": "str"},
        "name": {"key": "name", "type": "str"},
        "type": {"key": "type", "type": "str"},
        "location": {"key": "location", "type": "str"},
    }

    def __init__(
        self,
        *,
        properties: Optional["_models.ResourceManagementPrivateLinkEndpointConnections"] = None,
        location: Optional[str] = None,
        **kwargs: Any
    ) -> None:
        """
        :keyword properties:
        :paramtype properties:
         ~azure.mgmt.resource.privatelinks.models.ResourceManagementPrivateLinkEndpointConnections
        :keyword location: the region of the rmpl.
        :paramtype location: str
        """
        super().__init__(**kwargs)
        self.properties = properties
        self.id: Optional[str] = None
        self.name: Optional[str] = None
        self.type: Optional[str] = None
        self.location = location


class ResourceManagementPrivateLinkEndpointConnections(_serialization.Model):  # pylint: disable=name-too-long
    """ResourceManagementPrivateLinkEndpointConnections.

    :ivar private_endpoint_connections: The private endpoint connections.
    :vartype private_endpoint_connections: list[str]
    """

    _attribute_map = {
        "private_endpoint_connections": {"key": "privateEndpointConnections", "type": "[str]"},
    }

    def __init__(self, *, private_endpoint_connections: Optional[List[str]] = None, **kwargs: Any) -> None:
        """
        :keyword private_endpoint_connections: The private endpoint connections.
        :paramtype private_endpoint_connections: list[str]
        """
        super().__init__(**kwargs)
        self.private_endpoint_connections = private_endpoint_connections


class ResourceManagementPrivateLinkListResult(_serialization.Model):
    """ResourceManagementPrivateLinkListResult.

    :ivar value: An array of resource management private links.
    :vartype value: list[~azure.mgmt.resource.privatelinks.models.ResourceManagementPrivateLink]
    """

    _attribute_map = {
        "value": {"key": "value", "type": "[ResourceManagementPrivateLink]"},
    }

    def __init__(self, *, value: Optional[List["_models.ResourceManagementPrivateLink"]] = None, **kwargs: Any) -> None:
        """
        :keyword value: An array of resource management private links.
        :paramtype value: list[~azure.mgmt.resource.privatelinks.models.ResourceManagementPrivateLink]
        """
        super().__init__(**kwargs)
        self.value = value


class ResourceManagementPrivateLinkLocation(_serialization.Model):
    """ResourceManagementPrivateLinkLocation.

    :ivar location: the region to create private link association.
    :vartype location: str
    """

    _attribute_map = {
        "location": {"key": "location", "type": "str"},
    }

    def __init__(self, *, location: Optional[str] = None, **kwargs: Any) -> None:
        """
        :keyword location: the region to create private link association.
        :paramtype location: str
        """
        super().__init__(**kwargs)
        self.location = location