Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR track2_azure-mgmt-attestation] Create "2021-06-01-preview" api-version for Azure Attestation service (private endpoint required changes) #17357

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@
from ._configuration import AttestationManagementClientConfiguration
from .operations import Operations
from .operations import AttestationProvidersOperations
from .operations import PrivateEndpointConnectionsOperations
from . import models


class AttestationManagementClient(object):
"""Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management.
"""Various APIs for managing resources in attestation service. This primarily encompasses per-provider management.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.attestation.operations.Operations
:ivar attestation_providers: AttestationProvidersOperations operations
:vartype attestation_providers: azure.mgmt.attestation.operations.AttestationProvidersOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.attestation.operations.PrivateEndpointConnectionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand All @@ -52,13 +55,14 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.attestation_providers = AttestationProvidersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2018-09-01-preview"
self.api_version = "2020-10-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-attestation/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"chosen_version": "2020-10-01",
"total_api_version_list": ["2020-10-01"],
"client": {
"name": "AttestationManagementClient",
"filename": "_attestation_management_client",
"description": "Various APIs for managing resources in attestation service. This primarily encompasses per-provider management.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": false,
"client_side_validation": true
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential, # type: \"AsyncTokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id"
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null
},
"operation_groups": {
"operations": "Operations",
"attestation_providers": "AttestationProvidersOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations"
},
"operation_mixins": {
},
"sync_imports": "None",
"async_imports": "None"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"

VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@
from ._configuration import AttestationManagementClientConfiguration
from .operations import Operations
from .operations import AttestationProvidersOperations
from .operations import PrivateEndpointConnectionsOperations
from .. import models


class AttestationManagementClient(object):
"""Various APIs for managing resources in attestation service. This primarily encompasses per-tenant instance management.
"""Various APIs for managing resources in attestation service. This primarily encompasses per-provider management.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.attestation.aio.operations.Operations
:ivar attestation_providers: AttestationProvidersOperations operations
:vartype attestation_providers: azure.mgmt.attestation.aio.operations.AttestationProvidersOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.attestation.aio.operations.PrivateEndpointConnectionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
Expand All @@ -49,13 +52,14 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.attestation_providers = AttestationProvidersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2018-09-01-preview"
self.api_version = "2020-10-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-attestation/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

from ._operations import Operations
from ._attestation_providers_operations import AttestationProvidersOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations

__all__ = [
'Operations',
'AttestationProvidersOperations',
'PrivateEndpointConnectionsOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def get(

:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param provider_name: Name of the attestation service instance.
:param provider_name: Name of the attestation provider.
:type provider_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AttestationProvider, or the result of cls(response)
Expand All @@ -62,7 +62,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -105,11 +105,11 @@ async def create(
creation_params: "_models.AttestationServiceCreationParams",
**kwargs
) -> "_models.AttestationProvider":
"""Creates or updates the Attestation Provider.
"""Creates a new Attestation Provider.

:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param provider_name: Name of the attestation service instance.
:param provider_name: Name of the attestation provider.
:type provider_name: str
:param creation_params: Client supplied parameters.
:type creation_params: ~azure.mgmt.attestation.models.AttestationServiceCreationParams
Expand All @@ -123,7 +123,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -179,7 +179,7 @@ async def update(

:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param provider_name: Name of the attestation service instance.
:param provider_name: Name of the attestation provider.
:type provider_name: str
:param update_params: Client supplied parameters.
:type update_params: ~azure.mgmt.attestation.models.AttestationServicePatchParams
Expand All @@ -193,7 +193,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -256,7 +256,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -305,7 +305,7 @@ async def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -358,7 +358,7 @@ async def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -409,7 +409,7 @@ async def list_default(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -462,7 +462,7 @@ async def get_default_by_location(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-09-01-preview"
api_version = "2020-10-01"
accept = "application/json"

# Construct URL
Expand Down
Loading