Skip to content

Commit 599d3b8

Browse files
00Kai0SDKAuto
and
SDKAuto
authored
T1 attestation 2021 01 28 (Azure#16396)
* CodeGen from PR 12692 in Azure/azure-rest-api-specs update attestation to 2020-10-01 (Azure#12692) * test,version,CHANGELOG Co-authored-by: SDKAuto <[email protected]>
1 parent 8d513b2 commit 599d3b8

12 files changed

+977
-76
lines changed

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

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

3+
## 0.3.0 (2021-01-28)
4+
5+
**Features**
6+
7+
- Model AttestationProvider has a new parameter private_endpoint_connections
8+
- Added operation group PrivateEndpointConnectionsOperations
9+
310
## 0.2.0 (2020-11-17)
411

512
**Features**

sdk/attestation/azure-mgmt-attestation/azure/mgmt/attestation/_attestation_management_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
from ._configuration import AttestationManagementClientConfiguration
1616
from .operations import Operations
1717
from .operations import AttestationProvidersOperations
18+
from .operations import PrivateEndpointConnectionsOperations
1819
from . import models
1920

2021

2122
class AttestationManagementClient(SDKClient):
22-
"""Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management.
23+
"""Various APIs for managing resources in attestation service. This primarily encompasses per-provider management.
2324
2425
:ivar config: Configuration for client.
2526
:vartype config: AttestationManagementClientConfiguration
@@ -28,6 +29,8 @@ class AttestationManagementClient(SDKClient):
2829
:vartype operations: azure.mgmt.attestation.operations.Operations
2930
:ivar attestation_providers: AttestationProviders operations
3031
:vartype attestation_providers: azure.mgmt.attestation.operations.AttestationProvidersOperations
32+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
33+
:vartype private_endpoint_connections: azure.mgmt.attestation.operations.PrivateEndpointConnectionsOperations
3134
3235
:param credentials: Credentials needed for the client to connect to Azure.
3336
:type credentials: :mod:`A msrestazure Credentials
@@ -52,3 +55,5 @@ def __init__(
5255
self._client, self.config, self._serialize, self._deserialize)
5356
self.attestation_providers = AttestationProvidersOperations(
5457
self._client, self.config, self._serialize, self._deserialize)
58+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
59+
self._client, self.config, self._serialize, self._deserialize)

sdk/attestation/azure-mgmt-attestation/azure/mgmt/attestation/models/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from ._models_py3 import OperationList
2222
from ._models_py3 import OperationsDefinition
2323
from ._models_py3 import OperationsDisplayDefinition
24+
from ._models_py3 import PrivateEndpointConnection
2425
from ._models_py3 import ProxyResource
2526
from ._models_py3 import Resource
2627
from ._models_py3 import SystemData
@@ -37,13 +38,16 @@
3738
from ._models import OperationList
3839
from ._models import OperationsDefinition
3940
from ._models import OperationsDisplayDefinition
41+
from ._models import PrivateEndpointConnection
4042
from ._models import ProxyResource
4143
from ._models import Resource
4244
from ._models import SystemData
4345
from ._models import TrackedResource
46+
from ._paged_models import PrivateEndpointConnectionPaged
4447
from ._attestation_management_client_enums import (
4548
CreatedByType,
4649
AttestationServiceStatus,
50+
PrivateEndpointConnectionProvisioningState,
4751
)
4852

4953
__all__ = [
@@ -58,10 +62,13 @@
5862
'OperationList',
5963
'OperationsDefinition',
6064
'OperationsDisplayDefinition',
65+
'PrivateEndpointConnection',
6166
'ProxyResource',
6267
'Resource',
6368
'SystemData',
6469
'TrackedResource',
70+
'PrivateEndpointConnectionPaged',
6571
'CreatedByType',
6672
'AttestationServiceStatus',
73+
'PrivateEndpointConnectionProvisioningState',
6774
]

sdk/attestation/azure-mgmt-attestation/azure/mgmt/attestation/models/_attestation_management_client_enums.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ class AttestationServiceStatus(str, Enum):
2525
ready = "Ready"
2626
not_ready = "NotReady"
2727
error = "Error"
28+
29+
30+
class PrivateEndpointConnectionProvisioningState(str, Enum):
31+
32+
succeeded = "Succeeded"
33+
creating = "Creating"
34+
deleting = "Deleting"
35+
failed = "Failed"

sdk/attestation/azure-mgmt-attestation/azure/mgmt/attestation/models/_models.py

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,18 @@ class AttestationProvider(TrackedResource):
119119
:type location: str
120120
:ivar system_data: The system metadata relating to this resource
121121
:vartype system_data: ~azure.mgmt.attestation.models.SystemData
122-
:param trust_model: Trust model for the attestation service instance.
122+
:param trust_model: Trust model for the attestation provider.
123123
:type trust_model: str
124124
:param status: Status of attestation service. Possible values include:
125125
'Ready', 'NotReady', 'Error'
126126
:type status: str or
127127
~azure.mgmt.attestation.models.AttestationServiceStatus
128128
:param attest_uri: Gets the uri of attestation service
129129
:type attest_uri: str
130+
:ivar private_endpoint_connections: List of private endpoint connections
131+
associated with the attestation provider.
132+
:vartype private_endpoint_connections:
133+
list[~azure.mgmt.attestation.models.PrivateEndpointConnection]
130134
"""
131135

132136
_validation = {
@@ -135,6 +139,7 @@ class AttestationProvider(TrackedResource):
135139
'type': {'readonly': True},
136140
'location': {'required': True},
137141
'system_data': {'readonly': True},
142+
'private_endpoint_connections': {'readonly': True},
138143
}
139144

140145
_attribute_map = {
@@ -147,6 +152,7 @@ class AttestationProvider(TrackedResource):
147152
'trust_model': {'key': 'properties.trustModel', 'type': 'str'},
148153
'status': {'key': 'properties.status', 'type': 'str'},
149154
'attest_uri': {'key': 'properties.attestUri', 'type': 'str'},
155+
'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'},
150156
}
151157

152158
def __init__(self, **kwargs):
@@ -155,6 +161,7 @@ def __init__(self, **kwargs):
155161
self.trust_model = kwargs.get('trust_model', None)
156162
self.status = kwargs.get('status', None)
157163
self.attest_uri = kwargs.get('attest_uri', None)
164+
self.private_endpoint_connections = None
158165

159166

160167
class AttestationProviderListResult(Model):
@@ -185,18 +192,16 @@ def __init__(self, **kwargs):
185192

186193

187194
class AttestationServiceCreationParams(Model):
188-
"""Parameters for creating an attestation service instance.
195+
"""Parameters for creating an attestation provider.
189196
190197
All required parameters must be populated in order to send to Azure.
191198
192199
:param location: Required. The supported Azure location where the
193-
attestation service instance should be created.
200+
attestation provider should be created.
194201
:type location: str
195-
:param tags: The tags that will be assigned to the attestation service
196-
instance.
202+
:param tags: The tags that will be assigned to the attestation provider.
197203
:type tags: dict[str, str]
198-
:param properties: Required. Properties of the attestation service
199-
instance
204+
:param properties: Required. Properties of the attestation provider
200205
:type properties:
201206
~azure.mgmt.attestation.models.AttestationServiceCreationSpecificParams
202207
"""
@@ -220,8 +225,7 @@ def __init__(self, **kwargs):
220225

221226

222227
class AttestationServiceCreationSpecificParams(Model):
223-
"""Client supplied parameters used to create a new attestation service
224-
instance.
228+
"""Client supplied parameters used to create a new attestation provider.
225229
226230
:param policy_signing_certificates: JSON Web Key Set defining a set of
227231
X.509 Certificates that will represent the parent certificate for the
@@ -240,10 +244,9 @@ def __init__(self, **kwargs):
240244

241245

242246
class AttestationServicePatchParams(Model):
243-
"""Parameters for patching an attestation service instance.
247+
"""Parameters for patching an attestation provider.
244248
245-
:param tags: The tags that will be assigned to the attestation service
246-
instance.
249+
:param tags: The tags that will be assigned to the attestation provider.
247250
:type tags: dict[str, str]
248251
"""
249252

@@ -351,8 +354,8 @@ class JSONWebKey(Model):
351354
352355
All required parameters must be populated in order to send to Azure.
353356
354-
:param alg: Required. The "alg" (algorithm) parameter identifies the
355-
algorithm intended for
357+
:param alg: The "alg" (algorithm) parameter identifies the algorithm
358+
intended for
356359
use with the key. The values used should either be registered in the
357360
IANA "JSON Web Signature and Encryption Algorithms" registry
358361
established by [JWA] or be a value that contains a Collision-
@@ -370,8 +373,8 @@ class JSONWebKey(Model):
370373
:type e: str
371374
:param k: Symmetric key
372375
:type k: str
373-
:param kid: Required. The "kid" (key ID) parameter is used to match a
374-
specific key. This
376+
:param kid: The "kid" (key ID) parameter is used to match a specific key.
377+
This
375378
is used, for instance, to choose among a set of keys within a JWK Set
376379
during key rollover. The structure of the "kid" value is
377380
unspecified. When "kid" values are used within a JWK Set, different
@@ -396,8 +399,7 @@ class JSONWebKey(Model):
396399
:type q: str
397400
:param qi: RSA Private Key Parameter
398401
:type qi: str
399-
:param use: Required. Use ("public key use") identifies the intended use
400-
of
402+
:param use: Use ("public key use") identifies the intended use of
401403
the public key. The "use" parameter is employed to indicate whether
402404
a public key is used for encrypting data or verifying the signature
403405
on data. Values are commonly "sig" (signature) or "enc" (encryption).
@@ -418,10 +420,7 @@ class JSONWebKey(Model):
418420
"""
419421

420422
_validation = {
421-
'alg': {'required': True},
422-
'kid': {'required': True},
423423
'kty': {'required': True},
424-
'use': {'required': True},
425424
}
426425

427426
_attribute_map = {
@@ -561,6 +560,45 @@ def __init__(self, **kwargs):
561560
self.description = kwargs.get('description', None)
562561

563562

563+
class PrivateEndpointConnection(Resource):
564+
"""The Private Endpoint Connection resource.
565+
566+
Variables are only populated by the server, and will be ignored when
567+
sending a request.
568+
569+
:ivar id: Fully qualified resource ID for the resource. Ex -
570+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
571+
:vartype id: str
572+
:ivar name: The name of the resource
573+
:vartype name: str
574+
:ivar type: The type of the resource. E.g.
575+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
576+
:vartype type: str
577+
:param provisioning_state: Provisioning state of the private endpoint
578+
connection. Possible values include: 'Succeeded', 'Creating', 'Deleting',
579+
'Failed'
580+
:type provisioning_state: str or
581+
~azure.mgmt.attestation.models.PrivateEndpointConnectionProvisioningState
582+
"""
583+
584+
_validation = {
585+
'id': {'readonly': True},
586+
'name': {'readonly': True},
587+
'type': {'readonly': True},
588+
}
589+
590+
_attribute_map = {
591+
'id': {'key': 'id', 'type': 'str'},
592+
'name': {'key': 'name', 'type': 'str'},
593+
'type': {'key': 'type', 'type': 'str'},
594+
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
595+
}
596+
597+
def __init__(self, **kwargs):
598+
super(PrivateEndpointConnection, self).__init__(**kwargs)
599+
self.provisioning_state = kwargs.get('provisioning_state', None)
600+
601+
564602
class ProxyResource(Resource):
565603
"""Proxy Resource.
566604

0 commit comments

Comments
 (0)