Skip to content
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
16 changes: 9 additions & 7 deletions sdk/datadog/azure-mgmt-datadog/azure/mgmt/datadog/_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,33 @@
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true
"has_lro_operations": true,
"client_side_validation": true
},
"global_parameters": {
"sync_method": {
"sync": {
"credential": {
"method_signature": "credential, # type: \"TokenCredential\"",
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"method_signature": "subscription_id, # type: str",
"signature": "subscription_id, # type: str",
"description": "The Microsoft Azure subscription ID.",
"docstring_type": "str",
"required": true
}
},
"async_method": {
"async": {
"credential": {
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
"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": {
"method_signature": "subscription_id, # type: str",
"signature": "subscription_id, # type: str",
"description": "The Microsoft Azure subscription ID.",
"docstring_type": "str",
"required": true
Expand All @@ -51,6 +52,7 @@
"credential_key_header_name": null
},
"operation_groups": {
"marketplace_agreements": "MarketplaceAgreementsOperations",
"api_keys": "ApiKeysOperations",
"hosts": "HostsOperations",
"linked_resources": "LinkedResourcesOperations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ 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.marketplace_agreements = MarketplaceAgreementsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b2"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ 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.marketplace_agreements = MarketplaceAgreementsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-02-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand All @@ -75,6 +76,7 @@ def prepare_request(next_link=None):
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

request = self._client.get(url, query_parameters, header_parameters)
else:
Expand Down Expand Up @@ -129,6 +131,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-02-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand All @@ -141,6 +144,7 @@ async def create(

# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

# Construct headers
header_parameters = {} # type: Dict[str, Any]
Expand Down
38 changes: 26 additions & 12 deletions sdk/datadog/azure-mgmt-datadog/azure/mgmt/datadog/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,21 @@ def __init__(
class DatadogSingleSignOnProperties(msrest.serialization.Model):
"""DatadogSingleSignOnProperties.

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

:param single_sign_on_state: Various states of the SSO resource. Possible values include:
"Initial", "Enable", "Disable", "Existing".
:type single_sign_on_state: str or ~microsoft_datadog_client.models.SingleSignOnStates
:param enterprise_app_id: The Id of the Enterprise App used for Single sign-on.
:type enterprise_app_id: str
:param single_sign_on_url: The login URL specific to this Datadog Organization.
:type single_sign_on_url: str
:ivar single_sign_on_url: The login URL specific to this Datadog Organization.
:vartype single_sign_on_url: str
"""

_validation = {
'single_sign_on_url': {'readonly': True},
}

_attribute_map = {
'single_sign_on_state': {'key': 'singleSignOnState', 'type': 'str'},
'enterprise_app_id': {'key': 'enterpriseAppId', 'type': 'str'},
Expand All @@ -499,7 +505,7 @@ def __init__(
super(DatadogSingleSignOnProperties, self).__init__(**kwargs)
self.single_sign_on_state = kwargs.get('single_sign_on_state', None)
self.enterprise_app_id = kwargs.get('enterprise_app_id', None)
self.single_sign_on_url = kwargs.get('single_sign_on_url', None)
self.single_sign_on_url = None


class DatadogSingleSignOnResource(msrest.serialization.Model):
Expand Down Expand Up @@ -910,13 +916,13 @@ class MonitorProperties(msrest.serialization.Model):
:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
:ivar monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Possible values include: "Enabled", "Disabled".
:type monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
:param marketplace_subscription_status: Flag specifying the Marketplace Subscription Status of
:vartype monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
:ivar marketplace_subscription_status: Flag specifying the Marketplace Subscription Status of
the resource. If payment is not made in time, the resource will go in Suspended state. Possible
values include: "Active", "Suspended".
:type marketplace_subscription_status: str or
:vartype marketplace_subscription_status: str or
~microsoft_datadog_client.models.MarketplaceSubscriptionStatus
:param datadog_organization_properties: Datadog organization properties.
:type datadog_organization_properties:
Expand All @@ -931,6 +937,8 @@ class MonitorProperties(msrest.serialization.Model):
"""

_validation = {
'monitoring_status': {'readonly': True},
'marketplace_subscription_status': {'readonly': True},
'liftr_resource_category': {'readonly': True},
'liftr_resource_preference': {'readonly': True},
}
Expand All @@ -951,8 +959,8 @@ def __init__(
):
super(MonitorProperties, self).__init__(**kwargs)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.monitoring_status = kwargs.get('monitoring_status', None)
self.marketplace_subscription_status = kwargs.get('marketplace_subscription_status', None)
self.monitoring_status = None
self.marketplace_subscription_status = None
self.datadog_organization_properties = kwargs.get('datadog_organization_properties', None)
self.user_info = kwargs.get('user_info', None)
self.liftr_resource_category = None
Expand All @@ -962,11 +970,17 @@ def __init__(
class MonitorUpdateProperties(msrest.serialization.Model):
"""The set of properties that can be update in a PATCH request to a monitor resource.

:param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Variables are only populated by the server, and will be ignored when sending a request.

:ivar monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Possible values include: "Enabled", "Disabled".
:type monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
:vartype monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
"""

_validation = {
'monitoring_status': {'readonly': True},
}

_attribute_map = {
'monitoring_status': {'key': 'monitoringStatus', 'type': 'str'},
}
Expand All @@ -976,7 +990,7 @@ def __init__(
**kwargs
):
super(MonitorUpdateProperties, self).__init__(**kwargs)
self.monitoring_status = kwargs.get('monitoring_status', None)
self.monitoring_status = None


class OperationDisplay(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,15 +540,21 @@ def __init__(
class DatadogSingleSignOnProperties(msrest.serialization.Model):
"""DatadogSingleSignOnProperties.

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

:param single_sign_on_state: Various states of the SSO resource. Possible values include:
"Initial", "Enable", "Disable", "Existing".
:type single_sign_on_state: str or ~microsoft_datadog_client.models.SingleSignOnStates
:param enterprise_app_id: The Id of the Enterprise App used for Single sign-on.
:type enterprise_app_id: str
:param single_sign_on_url: The login URL specific to this Datadog Organization.
:type single_sign_on_url: str
:ivar single_sign_on_url: The login URL specific to this Datadog Organization.
:vartype single_sign_on_url: str
"""

_validation = {
'single_sign_on_url': {'readonly': True},
}

_attribute_map = {
'single_sign_on_state': {'key': 'singleSignOnState', 'type': 'str'},
'enterprise_app_id': {'key': 'enterpriseAppId', 'type': 'str'},
Expand All @@ -560,13 +566,12 @@ def __init__(
*,
single_sign_on_state: Optional[Union[str, "SingleSignOnStates"]] = None,
enterprise_app_id: Optional[str] = None,
single_sign_on_url: Optional[str] = None,
**kwargs
):
super(DatadogSingleSignOnProperties, self).__init__(**kwargs)
self.single_sign_on_state = single_sign_on_state
self.enterprise_app_id = enterprise_app_id
self.single_sign_on_url = single_sign_on_url
self.single_sign_on_url = None


class DatadogSingleSignOnResource(msrest.serialization.Model):
Expand Down Expand Up @@ -1022,13 +1027,13 @@ class MonitorProperties(msrest.serialization.Model):
:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
:ivar monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Possible values include: "Enabled", "Disabled".
:type monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
:param marketplace_subscription_status: Flag specifying the Marketplace Subscription Status of
:vartype monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
:ivar marketplace_subscription_status: Flag specifying the Marketplace Subscription Status of
the resource. If payment is not made in time, the resource will go in Suspended state. Possible
values include: "Active", "Suspended".
:type marketplace_subscription_status: str or
:vartype marketplace_subscription_status: str or
~microsoft_datadog_client.models.MarketplaceSubscriptionStatus
:param datadog_organization_properties: Datadog organization properties.
:type datadog_organization_properties:
Expand All @@ -1043,6 +1048,8 @@ class MonitorProperties(msrest.serialization.Model):
"""

_validation = {
'monitoring_status': {'readonly': True},
'marketplace_subscription_status': {'readonly': True},
'liftr_resource_category': {'readonly': True},
'liftr_resource_preference': {'readonly': True},
}
Expand All @@ -1061,16 +1068,14 @@ def __init__(
self,
*,
provisioning_state: Optional[Union[str, "ProvisioningState"]] = None,
monitoring_status: Optional[Union[str, "MonitoringStatus"]] = None,
marketplace_subscription_status: Optional[Union[str, "MarketplaceSubscriptionStatus"]] = None,
datadog_organization_properties: Optional["DatadogOrganizationProperties"] = None,
user_info: Optional["UserInfo"] = None,
**kwargs
):
super(MonitorProperties, self).__init__(**kwargs)
self.provisioning_state = provisioning_state
self.monitoring_status = monitoring_status
self.marketplace_subscription_status = marketplace_subscription_status
self.monitoring_status = None
self.marketplace_subscription_status = None
self.datadog_organization_properties = datadog_organization_properties
self.user_info = user_info
self.liftr_resource_category = None
Expand All @@ -1080,23 +1085,27 @@ def __init__(
class MonitorUpdateProperties(msrest.serialization.Model):
"""The set of properties that can be update in a PATCH request to a monitor resource.

:param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Variables are only populated by the server, and will be ignored when sending a request.

:ivar monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Possible values include: "Enabled", "Disabled".
:type monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
:vartype monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
"""

_validation = {
'monitoring_status': {'readonly': True},
}

_attribute_map = {
'monitoring_status': {'key': 'monitoringStatus', 'type': 'str'},
}

def __init__(
self,
*,
monitoring_status: Optional[Union[str, "MonitoringStatus"]] = None,
**kwargs
):
super(MonitorUpdateProperties, self).__init__(**kwargs)
self.monitoring_status = monitoring_status
self.monitoring_status = None


class OperationDisplay(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-02-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand All @@ -80,6 +81,7 @@ def prepare_request(next_link=None):
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

request = self._client.get(url, query_parameters, header_parameters)
else:
Expand Down Expand Up @@ -135,6 +137,7 @@ def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-02-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand All @@ -147,6 +150,7 @@ def create(

# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

# Construct headers
header_parameters = {} # type: Dict[str, Any]
Expand Down