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

[AutoPR azure-mgmt-managedservices] Fix json format by prettier #37

Open
wants to merge 9 commits into
base: sdkAutomation/azure-mgmt-managedservices
Choose a base branch
from
  •  
  •  
  •  
Binary file not shown.
Binary file not shown.
Binary file added sdk/cdn/azure-mgmt-cdn/azure-mgmt-cdn-3.1.0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
from ._models_py3 import DiskSku
from ._models_py3 import DiskUpdate
from ._models_py3 import Encryption
from ._models_py3 import EncryptionSetIdentity
from ._models_py3 import EncryptionSettingsCollection
from ._models_py3 import EncryptionSettingsElement
from ._models_py3 import Gallery
Expand Down Expand Up @@ -104,7 +105,6 @@
from ._models_py3 import ReplicationStatus
from ._models_py3 import RequestRateByIntervalInput
from ._models_py3 import Resource
from ._models_py3 import ResourceIdentity
from ._models_py3 import ResourceRange
from ._models_py3 import RollbackStatusInfo
from ._models_py3 import RollingUpgradePolicy
Expand Down Expand Up @@ -245,6 +245,7 @@
from ._models import DiskSku
from ._models import DiskUpdate
from ._models import Encryption
from ._models import EncryptionSetIdentity
from ._models import EncryptionSettingsCollection
from ._models import EncryptionSettingsElement
from ._models import Gallery
Expand Down Expand Up @@ -302,7 +303,6 @@
from ._models import ReplicationStatus
from ._models import RequestRateByIntervalInput
from ._models import Resource
from ._models import ResourceIdentity
from ._models import ResourceRange
from ._models import RollbackStatusInfo
from ._models import RollingUpgradePolicy
Expand Down Expand Up @@ -513,6 +513,7 @@
'DiskSku',
'DiskUpdate',
'Encryption',
'EncryptionSetIdentity',
'EncryptionSettingsCollection',
'EncryptionSettingsElement',
'Gallery',
Expand Down Expand Up @@ -570,7 +571,6 @@
'ReplicationStatus',
'RequestRateByIntervalInput',
'Resource',
'ResourceIdentity',
'ResourceRange',
'RollbackStatusInfo',
'RollingUpgradePolicy',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,8 @@ class DiskEncryptionSet(Resource):
:param tags: Resource tags
:type tags: dict[str, str]
:param identity:
:type identity: ~azure.mgmt.compute.v2019_07_01.models.ResourceIdentity
:type identity:
~azure.mgmt.compute.v2019_07_01.models.EncryptionSetIdentity
:param active_key: The key vault key which is currently used by this disk
encryption set.
:type active_key:
Expand Down Expand Up @@ -1390,7 +1391,7 @@ class DiskEncryptionSet(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'identity': {'key': 'identity', 'type': 'EncryptionSetIdentity'},
'active_key': {'key': 'properties.activeKey', 'type': 'KeyVaultAndKeyReference'},
'previous_keys': {'key': 'properties.previousKeys', 'type': '[KeyVaultAndKeyReference]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand Down Expand Up @@ -1627,6 +1628,46 @@ def __init__(self, **kwargs):
self.type = kwargs.get('type', None)


class EncryptionSetIdentity(Model):
"""The managed identity for the disk encryption set. It should be given
permission on the key vault before it can be used to encrypt disks.

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

:param type: The type of Managed Identity used by the DiskEncryptionSet.
Only SystemAssigned is supported. Possible values include:
'SystemAssigned'
:type type: str or
~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSetIdentityType
:ivar principal_id: The object id of the Managed Identity Resource. This
will be sent to the RP from ARM via the x-ms-identity-principal-id header
in the PUT request if the resource has a systemAssigned(implicit) identity
:vartype principal_id: str
:ivar tenant_id: The tenant id of the Managed Identity Resource. This will
be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT
request if the resource has a systemAssigned(implicit) identity
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(EncryptionSetIdentity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.principal_id = None
self.tenant_id = None


class EncryptionSettingsCollection(Model):
"""Encryption settings for disk or snapshot.

Expand Down Expand Up @@ -3953,46 +3994,6 @@ def __init__(self, **kwargs):
self.interval_length = kwargs.get('interval_length', None)


class ResourceIdentity(Model):
"""The managed identity for the disk encryption set. It should be given
permission on the key vault before it can be used to encrypt disks.

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

:param type: The type of Managed Identity used by the DiskEncryptionSet.
Only SystemAssigned is supported. Possible values include:
'SystemAssigned'
:type type: str or
~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSetIdentityType
:ivar principal_id: The object id of the Managed Identity Resource. This
will be sent to the RP from ARM via the x-ms-identity-principal-id header
in the PUT request if the resource has a systemAssigned(implicit) identity
:vartype principal_id: str
:ivar tenant_id: The tenant id of the Managed Identity Resource. This will
be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT
request if the resource has a systemAssigned(implicit) identity
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ResourceIdentity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.principal_id = None
self.tenant_id = None


class ResourceRange(Model):
"""Describes the resource range.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,8 @@ class DiskEncryptionSet(Resource):
:param tags: Resource tags
:type tags: dict[str, str]
:param identity:
:type identity: ~azure.mgmt.compute.v2019_07_01.models.ResourceIdentity
:type identity:
~azure.mgmt.compute.v2019_07_01.models.EncryptionSetIdentity
:param active_key: The key vault key which is currently used by this disk
encryption set.
:type active_key:
Expand Down Expand Up @@ -1390,7 +1391,7 @@ class DiskEncryptionSet(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'identity': {'key': 'identity', 'type': 'EncryptionSetIdentity'},
'active_key': {'key': 'properties.activeKey', 'type': 'KeyVaultAndKeyReference'},
'previous_keys': {'key': 'properties.previousKeys', 'type': '[KeyVaultAndKeyReference]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand Down Expand Up @@ -1627,6 +1628,46 @@ def __init__(self, *, type, disk_encryption_set_id: str=None, **kwargs) -> None:
self.type = type


class EncryptionSetIdentity(Model):
"""The managed identity for the disk encryption set. It should be given
permission on the key vault before it can be used to encrypt disks.

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

:param type: The type of Managed Identity used by the DiskEncryptionSet.
Only SystemAssigned is supported. Possible values include:
'SystemAssigned'
:type type: str or
~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSetIdentityType
:ivar principal_id: The object id of the Managed Identity Resource. This
will be sent to the RP from ARM via the x-ms-identity-principal-id header
in the PUT request if the resource has a systemAssigned(implicit) identity
:vartype principal_id: str
:ivar tenant_id: The tenant id of the Managed Identity Resource. This will
be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT
request if the resource has a systemAssigned(implicit) identity
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, type=None, **kwargs) -> None:
super(EncryptionSetIdentity, self).__init__(**kwargs)
self.type = type
self.principal_id = None
self.tenant_id = None


class EncryptionSettingsCollection(Model):
"""Encryption settings for disk or snapshot.

Expand Down Expand Up @@ -3953,46 +3994,6 @@ def __init__(self, *, blob_container_sas_uri: str, from_time, to_time, interval_
self.interval_length = interval_length


class ResourceIdentity(Model):
"""The managed identity for the disk encryption set. It should be given
permission on the key vault before it can be used to encrypt disks.

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

:param type: The type of Managed Identity used by the DiskEncryptionSet.
Only SystemAssigned is supported. Possible values include:
'SystemAssigned'
:type type: str or
~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSetIdentityType
:ivar principal_id: The object id of the Managed Identity Resource. This
will be sent to the RP from ARM via the x-ms-identity-principal-id header
in the PUT request if the resource has a systemAssigned(implicit) identity
:vartype principal_id: str
:ivar tenant_id: The tenant id of the Managed Identity Resource. This will
be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT
request if the resource has a systemAssigned(implicit) identity
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, type=None, **kwargs) -> None:
super(ResourceIdentity, self).__init__(**kwargs)
self.type = type
self.principal_id = None
self.tenant_id = None


class ResourceRange(Model):
"""Describes the resource range.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .consumption_management_client import ConsumptionManagementClient
from .version import VERSION
from ._configuration import ConsumptionManagementClientConfiguration
from ._consumption_management_client import ConsumptionManagementClient
__all__ = ['ConsumptionManagementClient', 'ConsumptionManagementClientConfiguration']

__all__ = ['ConsumptionManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


class ConsumptionManagementClientConfiguration(AzureConfiguration):
"""Configuration for ConsumptionManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(ConsumptionManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-consumption/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Loading