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 azure-mgmt-datadog] [Datadog] Add 2021-03-01 stable version #15301

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
19 changes: 19 additions & 0 deletions sdk/datadog/azure-mgmt-datadog/azure/mgmt/datadog/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 ._configuration import MicrosoftDatadogClientConfiguration
from ._microsoft_datadog_client import MicrosoftDatadogClient
__all__ = ['MicrosoftDatadogClient', 'MicrosoftDatadogClientConfiguration']

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 MicrosoftDatadogClientConfiguration(AzureConfiguration):
"""Configuration for MicrosoftDatadogClient
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: The Microsoft 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(MicrosoftDatadogClientConfiguration, 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-datadog/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# 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 msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import MicrosoftDatadogClientConfiguration
from .operations import MarketplaceAgreementsOperations
from .operations import ApiKeysOperations
from .operations import HostsOperations
from .operations import LinkedResourcesOperations
from .operations import MonitoredResourcesOperations
from .operations import Operations
from .operations import MonitorsOperations
from .operations import RefreshSetPasswordOperations
from .operations import TagRulesOperations
from .operations import SingleSignOnConfigurationsOperations
from . import models


class MicrosoftDatadogClient(SDKClient):
"""MicrosoftDatadogClient

:ivar config: Configuration for client.
:vartype config: MicrosoftDatadogClientConfiguration

:ivar marketplace_agreements: MarketplaceAgreements operations
:vartype marketplace_agreements: azure.mgmt.datadog.operations.MarketplaceAgreementsOperations
:ivar api_keys: ApiKeys operations
:vartype api_keys: azure.mgmt.datadog.operations.ApiKeysOperations
:ivar hosts: Hosts operations
:vartype hosts: azure.mgmt.datadog.operations.HostsOperations
:ivar linked_resources: LinkedResources operations
:vartype linked_resources: azure.mgmt.datadog.operations.LinkedResourcesOperations
:ivar monitored_resources: MonitoredResources operations
:vartype monitored_resources: azure.mgmt.datadog.operations.MonitoredResourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.datadog.operations.Operations
:ivar monitors: Monitors operations
:vartype monitors: azure.mgmt.datadog.operations.MonitorsOperations
:ivar refresh_set_password: RefreshSetPassword operations
:vartype refresh_set_password: azure.mgmt.datadog.operations.RefreshSetPasswordOperations
:ivar tag_rules: TagRules operations
:vartype tag_rules: azure.mgmt.datadog.operations.TagRulesOperations
:ivar single_sign_on_configurations: SingleSignOnConfigurations operations
:vartype single_sign_on_configurations: azure.mgmt.datadog.operations.SingleSignOnConfigurationsOperations

: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: The Microsoft Azure subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

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

self.config = MicrosoftDatadogClientConfiguration(credentials, subscription_id, base_url)
super(MicrosoftDatadogClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-02-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.marketplace_agreements = MarketplaceAgreementsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_keys = ApiKeysOperations(
self._client, self.config, self._serialize, self._deserialize)
self.hosts = HostsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_resources = LinkedResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.monitored_resources = MonitoredResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.monitors = MonitorsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.refresh_set_password = RefreshSetPasswordOperations(
self._client, self.config, self._serialize, self._deserialize)
self.tag_rules = TagRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.single_sign_on_configurations = SingleSignOnConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
137 changes: 137 additions & 0 deletions sdk/datadog/azure-mgmt-datadog/azure/mgmt/datadog/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# 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.
# --------------------------------------------------------------------------

try:
from ._models_py3 import DatadogAgreementProperties
from ._models_py3 import DatadogAgreementResource
from ._models_py3 import DatadogApiKey
from ._models_py3 import DatadogHost
from ._models_py3 import DatadogHostMetadata
from ._models_py3 import DatadogInstallMethod
from ._models_py3 import DatadogLogsAgent
from ._models_py3 import DatadogMonitorResource
from ._models_py3 import DatadogMonitorResourceUpdateParameters
from ._models_py3 import DatadogOrganizationProperties
from ._models_py3 import DatadogSetPasswordLink
from ._models_py3 import DatadogSingleSignOnProperties
from ._models_py3 import DatadogSingleSignOnResource
from ._models_py3 import ErrorResponseBody
from ._models_py3 import FilteringTag
from ._models_py3 import IdentityProperties
from ._models_py3 import LinkedResource
from ._models_py3 import LogRules
from ._models_py3 import MetricRules
from ._models_py3 import MonitoredResource
from ._models_py3 import MonitoringTagRules
from ._models_py3 import MonitoringTagRulesProperties
from ._models_py3 import MonitorProperties
from ._models_py3 import MonitorUpdateProperties
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationResult
from ._models_py3 import ResourceProviderDefaultErrorResponse, ResourceProviderDefaultErrorResponseException
from ._models_py3 import ResourceSku
from ._models_py3 import UserInfo
except (SyntaxError, ImportError):
from ._models import DatadogAgreementProperties
from ._models import DatadogAgreementResource
from ._models import DatadogApiKey
from ._models import DatadogHost
from ._models import DatadogHostMetadata
from ._models import DatadogInstallMethod
from ._models import DatadogLogsAgent
from ._models import DatadogMonitorResource
from ._models import DatadogMonitorResourceUpdateParameters
from ._models import DatadogOrganizationProperties
from ._models import DatadogSetPasswordLink
from ._models import DatadogSingleSignOnProperties
from ._models import DatadogSingleSignOnResource
from ._models import ErrorResponseBody
from ._models import FilteringTag
from ._models import IdentityProperties
from ._models import LinkedResource
from ._models import LogRules
from ._models import MetricRules
from ._models import MonitoredResource
from ._models import MonitoringTagRules
from ._models import MonitoringTagRulesProperties
from ._models import MonitorProperties
from ._models import MonitorUpdateProperties
from ._models import OperationDisplay
from ._models import OperationResult
from ._models import ResourceProviderDefaultErrorResponse, ResourceProviderDefaultErrorResponseException
from ._models import ResourceSku
from ._models import UserInfo
from ._paged_models import DatadogAgreementResourcePaged
from ._paged_models import DatadogApiKeyPaged
from ._paged_models import DatadogHostPaged
from ._paged_models import DatadogMonitorResourcePaged
from ._paged_models import DatadogSingleSignOnResourcePaged
from ._paged_models import LinkedResourcePaged
from ._paged_models import MonitoredResourcePaged
from ._paged_models import MonitoringTagRulesPaged
from ._paged_models import OperationResultPaged
from ._microsoft_datadog_client_enums import (
ProvisioningState,
MonitoringStatus,
MarketplaceSubscriptionStatus,
LiftrResourceCategories,
ManagedIdentityTypes,
TagAction,
SingleSignOnStates,
)

__all__ = [
'DatadogAgreementProperties',
'DatadogAgreementResource',
'DatadogApiKey',
'DatadogHost',
'DatadogHostMetadata',
'DatadogInstallMethod',
'DatadogLogsAgent',
'DatadogMonitorResource',
'DatadogMonitorResourceUpdateParameters',
'DatadogOrganizationProperties',
'DatadogSetPasswordLink',
'DatadogSingleSignOnProperties',
'DatadogSingleSignOnResource',
'ErrorResponseBody',
'FilteringTag',
'IdentityProperties',
'LinkedResource',
'LogRules',
'MetricRules',
'MonitoredResource',
'MonitoringTagRules',
'MonitoringTagRulesProperties',
'MonitorProperties',
'MonitorUpdateProperties',
'OperationDisplay',
'OperationResult',
'ResourceProviderDefaultErrorResponse', 'ResourceProviderDefaultErrorResponseException',
'ResourceSku',
'UserInfo',
'DatadogAgreementResourcePaged',
'DatadogApiKeyPaged',
'DatadogHostPaged',
'LinkedResourcePaged',
'MonitoredResourcePaged',
'OperationResultPaged',
'DatadogMonitorResourcePaged',
'MonitoringTagRulesPaged',
'DatadogSingleSignOnResourcePaged',
'ProvisioningState',
'MonitoringStatus',
'MarketplaceSubscriptionStatus',
'LiftrResourceCategories',
'ManagedIdentityTypes',
'TagAction',
'SingleSignOnStates',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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 enum import Enum


class ProvisioningState(str, Enum):

accepted = "Accepted"
creating = "Creating"
updating = "Updating"
deleting = "Deleting"
succeeded = "Succeeded"
failed = "Failed"
canceled = "Canceled"
deleted = "Deleted"
not_specified = "NotSpecified"


class MonitoringStatus(str, Enum):

enabled = "Enabled"
disabled = "Disabled"


class MarketplaceSubscriptionStatus(str, Enum):

active = "Active"
suspended = "Suspended"


class LiftrResourceCategories(str, Enum):

unknown = "Unknown"
monitor_logs = "MonitorLogs"


class ManagedIdentityTypes(str, Enum):

system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"


class TagAction(str, Enum):

include = "Include"
exclude = "Exclude"


class SingleSignOnStates(str, Enum):

initial = "Initial"
enable = "Enable"
disable = "Disable"
existing = "Existing"
Loading