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 track2_azure-mgmt-datadog] [Datadog] Update swagger #4877

Closed
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
3 changes: 0 additions & 3 deletions sdk/datadog/azure-mgmt-datadog/azure/mgmt/datadog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# --------------------------------------------------------------------------

from ._microsoft_datadog_client import MicrosoftDatadogClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['MicrosoftDatadogClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class MicrosoftDatadogClientConfiguration(Configuration):
"""Configuration for MicrosoftDatadogClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": true
"client_side_validation": false
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ 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 @@ -12,12 +12,11 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class MicrosoftDatadogClientConfiguration(Configuration):
"""Configuration for MicrosoftDatadogClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ 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 @@ -501,9 +501,9 @@ class DatadogSingleSignOnProperties(msrest.serialization.Model):

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

:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
:ivar provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:vartype provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
: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
Expand All @@ -514,6 +514,7 @@ class DatadogSingleSignOnProperties(msrest.serialization.Model):
"""

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

Expand All @@ -529,7 +530,7 @@ def __init__(
**kwargs
):
super(DatadogSingleSignOnProperties, self).__init__(**kwargs)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.provisioning_state = None
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 = None
Expand Down Expand Up @@ -988,15 +989,21 @@ def __init__(
class MonitoringTagRulesProperties(msrest.serialization.Model):
"""Definition of the properties for a TagRules resource.

:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
Variables are only populated by the server, and will be ignored when sending a request.

:ivar provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:vartype provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:param log_rules: Set of rules for sending logs for the Monitor resource.
:type log_rules: ~microsoft_datadog_client.models.LogRules
:param metric_rules: Set of rules for sending metrics for the Monitor resource.
:type metric_rules: ~microsoft_datadog_client.models.MetricRules
"""

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

_attribute_map = {
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'log_rules': {'key': 'logRules', 'type': 'LogRules'},
Expand All @@ -1008,7 +1015,7 @@ def __init__(
**kwargs
):
super(MonitoringTagRulesProperties, self).__init__(**kwargs)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.provisioning_state = None
self.log_rules = kwargs.get('log_rules', None)
self.metric_rules = kwargs.get('metric_rules', None)

Expand All @@ -1018,9 +1025,9 @@ class MonitorProperties(msrest.serialization.Model):

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

:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
:ivar provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:vartype provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Possible values include: "Enabled", "Disabled". Default value: "Enabled".
:type monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
Expand All @@ -1042,6 +1049,7 @@ class MonitorProperties(msrest.serialization.Model):
"""

_validation = {
'provisioning_state': {'readonly': True},
'marketplace_subscription_status': {'readonly': True},
'liftr_resource_category': {'readonly': True},
'liftr_resource_preference': {'readonly': True},
Expand All @@ -1062,7 +1070,7 @@ def __init__(
**kwargs
):
super(MonitorProperties, self).__init__(**kwargs)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.provisioning_state = None
self.monitoring_status = kwargs.get('monitoring_status', "Enabled")
self.marketplace_subscription_status = None
self.datadog_organization_properties = kwargs.get('datadog_organization_properties', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ class DatadogSingleSignOnProperties(msrest.serialization.Model):

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

:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
:ivar provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:vartype provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
: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
Expand All @@ -580,6 +580,7 @@ class DatadogSingleSignOnProperties(msrest.serialization.Model):
"""

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

Expand All @@ -593,13 +594,12 @@ class DatadogSingleSignOnProperties(msrest.serialization.Model):
def __init__(
self,
*,
provisioning_state: Optional[Union[str, "ProvisioningState"]] = None,
single_sign_on_state: Optional[Union[str, "SingleSignOnStates"]] = None,
enterprise_app_id: Optional[str] = None,
**kwargs
):
super(DatadogSingleSignOnProperties, self).__init__(**kwargs)
self.provisioning_state = provisioning_state
self.provisioning_state = None
self.single_sign_on_state = single_sign_on_state
self.enterprise_app_id = enterprise_app_id
self.single_sign_on_url = None
Expand Down Expand Up @@ -1097,15 +1097,21 @@ def __init__(
class MonitoringTagRulesProperties(msrest.serialization.Model):
"""Definition of the properties for a TagRules resource.

:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
Variables are only populated by the server, and will be ignored when sending a request.

:ivar provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:vartype provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:param log_rules: Set of rules for sending logs for the Monitor resource.
:type log_rules: ~microsoft_datadog_client.models.LogRules
:param metric_rules: Set of rules for sending metrics for the Monitor resource.
:type metric_rules: ~microsoft_datadog_client.models.MetricRules
"""

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

_attribute_map = {
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'log_rules': {'key': 'logRules', 'type': 'LogRules'},
Expand All @@ -1115,13 +1121,12 @@ class MonitoringTagRulesProperties(msrest.serialization.Model):
def __init__(
self,
*,
provisioning_state: Optional[Union[str, "ProvisioningState"]] = None,
log_rules: Optional["LogRules"] = None,
metric_rules: Optional["MetricRules"] = None,
**kwargs
):
super(MonitoringTagRulesProperties, self).__init__(**kwargs)
self.provisioning_state = provisioning_state
self.provisioning_state = None
self.log_rules = log_rules
self.metric_rules = metric_rules

Expand All @@ -1131,9 +1136,9 @@ class MonitorProperties(msrest.serialization.Model):

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

:param provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
:ivar provisioning_state: Possible values include: "Accepted", "Creating", "Updating",
"Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified".
:type provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:vartype provisioning_state: str or ~microsoft_datadog_client.models.ProvisioningState
:param monitoring_status: Flag specifying if the resource monitoring is enabled or disabled.
Possible values include: "Enabled", "Disabled". Default value: "Enabled".
:type monitoring_status: str or ~microsoft_datadog_client.models.MonitoringStatus
Expand All @@ -1155,6 +1160,7 @@ class MonitorProperties(msrest.serialization.Model):
"""

_validation = {
'provisioning_state': {'readonly': True},
'marketplace_subscription_status': {'readonly': True},
'liftr_resource_category': {'readonly': True},
'liftr_resource_preference': {'readonly': True},
Expand All @@ -1173,14 +1179,13 @@ class MonitorProperties(msrest.serialization.Model):
def __init__(
self,
*,
provisioning_state: Optional[Union[str, "ProvisioningState"]] = None,
monitoring_status: Optional[Union[str, "MonitoringStatus"]] = "Enabled",
datadog_organization_properties: Optional["DatadogOrganizationProperties"] = None,
user_info: Optional["UserInfo"] = None,
**kwargs
):
super(MonitorProperties, self).__init__(**kwargs)
self.provisioning_state = provisioning_state
self.provisioning_state = None
self.monitoring_status = monitoring_status
self.marketplace_subscription_status = None
self.datadog_organization_properties = datadog_organization_properties
Expand Down