-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data: regenerating based on the latest Swagger
- Loading branch information
hc-github-team-tf-azure
committed
Oct 5, 2023
1 parent
2af4fba
commit c032b77
Showing
338 changed files
with
9,037 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
data/Pandora.Definitions.ResourceManager/DataDog/v2023_01_01/Agreements/Definition.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
using Pandora.Definitions.Interfaces; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.Agreements; | ||
|
||
internal class Definition : ResourceDefinition | ||
{ | ||
public string Name => "Agreements"; | ||
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation> | ||
{ | ||
new MarketplaceAgreementsCreateOrUpdateOperation(), | ||
new MarketplaceAgreementsListOperation(), | ||
}; | ||
public IEnumerable<System.Type> Constants => new List<System.Type> | ||
{ | ||
|
||
}; | ||
public IEnumerable<System.Type> Models => new List<System.Type> | ||
{ | ||
typeof(DatadogAgreementPropertiesModel), | ||
typeof(DatadogAgreementResourceModel), | ||
}; | ||
} |
42 changes: 42 additions & 0 deletions
42
...itions.ResourceManager/DataDog/v2023_01_01/Agreements/Model-DatadogAgreementProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.Agreements; | ||
|
||
|
||
internal class DatadogAgreementPropertiesModel | ||
{ | ||
[JsonPropertyName("accepted")] | ||
public bool? Accepted { get; set; } | ||
|
||
[JsonPropertyName("licenseTextLink")] | ||
public string? LicenseTextLink { get; set; } | ||
|
||
[JsonPropertyName("plan")] | ||
public string? Plan { get; set; } | ||
|
||
[JsonPropertyName("privacyPolicyLink")] | ||
public string? PrivacyPolicyLink { get; set; } | ||
|
||
[JsonPropertyName("product")] | ||
public string? Product { get; set; } | ||
|
||
[JsonPropertyName("publisher")] | ||
public string? Publisher { get; set; } | ||
|
||
[DateFormat(DateFormatAttribute.DateFormat.RFC3339)] | ||
[JsonPropertyName("retrieveDatetime")] | ||
public DateTime? RetrieveDatetime { get; set; } | ||
|
||
[JsonPropertyName("signature")] | ||
public string? Signature { get; set; } | ||
} |
32 changes: 32 additions & 0 deletions
32
...initions.ResourceManager/DataDog/v2023_01_01/Agreements/Model-DatadogAgreementResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.Agreements; | ||
|
||
|
||
internal class DatadogAgreementResourceModel | ||
{ | ||
[JsonPropertyName("id")] | ||
public string? Id { get; set; } | ||
|
||
[JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
[JsonPropertyName("properties")] | ||
public DatadogAgreementPropertiesModel? Properties { get; set; } | ||
|
||
[JsonPropertyName("systemData")] | ||
public CustomTypes.SystemData? SystemData { get; set; } | ||
|
||
[JsonPropertyName("type")] | ||
public string? Type { get; set; } | ||
} |
31 changes: 31 additions & 0 deletions
31
...ceManager/DataDog/v2023_01_01/Agreements/Operation-MarketplaceAgreementsCreateOrUpdate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.CustomTypes; | ||
using Pandora.Definitions.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.Agreements; | ||
|
||
internal class MarketplaceAgreementsCreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation | ||
{ | ||
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode> | ||
{ | ||
HttpStatusCode.OK, | ||
}; | ||
|
||
public override Type? RequestObject() => typeof(DatadogAgreementResourceModel); | ||
|
||
public override ResourceID? ResourceId() => new SubscriptionId(); | ||
|
||
public override Type? ResponseObject() => typeof(DatadogAgreementResourceModel); | ||
|
||
public override string? UriSuffix() => "/providers/Microsoft.Datadog/agreements/default"; | ||
|
||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...ons.ResourceManager/DataDog/v2023_01_01/Agreements/Operation-MarketplaceAgreementsList.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.CustomTypes; | ||
using Pandora.Definitions.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.Agreements; | ||
|
||
internal class MarketplaceAgreementsListOperation : Pandora.Definitions.Operations.ListOperation | ||
{ | ||
public override string? FieldContainingPaginationDetails() => "nextLink"; | ||
|
||
public override ResourceID? ResourceId() => new SubscriptionId(); | ||
|
||
public override Type NestedItemType() => typeof(DatadogAgreementResourceModel); | ||
|
||
public override string? UriSuffix() => "/providers/Microsoft.Datadog/agreements"; | ||
|
||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...a.Definitions.ResourceManager/DataDog/v2023_01_01/Agreements/ResourceId-SubscriptionId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using Pandora.Definitions.Interfaces; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.Agreements; | ||
|
||
internal class SubscriptionId : ResourceID | ||
{ | ||
public string? CommonAlias => "Subscription"; | ||
|
||
public string ID => "/subscriptions/{subscriptionId}"; | ||
|
||
public List<ResourceIDSegment> Segments => new List<ResourceIDSegment> | ||
{ | ||
ResourceIDSegment.Static("subscriptions", "subscriptions"), | ||
ResourceIDSegment.SubscriptionId("subscriptionId"), | ||
}; | ||
} |
28 changes: 28 additions & 0 deletions
28
data/Pandora.Definitions.ResourceManager/DataDog/v2023_01_01/ApiKey/Definition.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
using Pandora.Definitions.Interfaces; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.ApiKey; | ||
|
||
internal class Definition : ResourceDefinition | ||
{ | ||
public string Name => "ApiKey"; | ||
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation> | ||
{ | ||
new MonitorsGetDefaultKeyOperation(), | ||
new MonitorsListApiKeysOperation(), | ||
new MonitorsSetDefaultKeyOperation(), | ||
}; | ||
public IEnumerable<System.Type> Constants => new List<System.Type> | ||
{ | ||
|
||
}; | ||
public IEnumerable<System.Type> Models => new List<System.Type> | ||
{ | ||
typeof(DatadogApiKeyModel), | ||
}; | ||
} |
30 changes: 30 additions & 0 deletions
30
data/Pandora.Definitions.ResourceManager/DataDog/v2023_01_01/ApiKey/Model-DatadogApiKey.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.ApiKey; | ||
|
||
|
||
internal class DatadogApiKeyModel | ||
{ | ||
[JsonPropertyName("created")] | ||
public string? Created { get; set; } | ||
|
||
[JsonPropertyName("createdBy")] | ||
public string? CreatedBy { get; set; } | ||
|
||
[JsonPropertyName("key")] | ||
[Required] | ||
public string Key { get; set; } | ||
|
||
[JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
} |
31 changes: 31 additions & 0 deletions
31
...Definitions.ResourceManager/DataDog/v2023_01_01/ApiKey/Operation-MonitorsGetDefaultKey.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.CustomTypes; | ||
using Pandora.Definitions.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.ApiKey; | ||
|
||
internal class MonitorsGetDefaultKeyOperation : Pandora.Definitions.Operations.PostOperation | ||
{ | ||
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode> | ||
{ | ||
HttpStatusCode.OK, | ||
}; | ||
|
||
public override Type? RequestObject() => null; | ||
|
||
public override ResourceID? ResourceId() => new MonitorId(); | ||
|
||
public override Type? ResponseObject() => typeof(DatadogApiKeyModel); | ||
|
||
public override string? UriSuffix() => "/getDefaultKey"; | ||
|
||
|
||
} |
35 changes: 35 additions & 0 deletions
35
...a.Definitions.ResourceManager/DataDog/v2023_01_01/ApiKey/Operation-MonitorsListApiKeys.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.CustomTypes; | ||
using Pandora.Definitions.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.ApiKey; | ||
|
||
internal class MonitorsListApiKeysOperation : Pandora.Definitions.Operations.ListOperation | ||
{ | ||
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode> | ||
{ | ||
HttpStatusCode.OK, | ||
}; | ||
|
||
public override string? FieldContainingPaginationDetails() => "nextLink"; | ||
|
||
public override Type? RequestObject() => null; | ||
|
||
public override ResourceID? ResourceId() => new MonitorId(); | ||
|
||
public override Type NestedItemType() => typeof(DatadogApiKeyModel); | ||
|
||
public override string? UriSuffix() => "/listApiKeys"; | ||
|
||
public override System.Net.Http.HttpMethod Method() => System.Net.Http.HttpMethod.Post; | ||
|
||
|
||
} |
29 changes: 29 additions & 0 deletions
29
...Definitions.ResourceManager/DataDog/v2023_01_01/ApiKey/Operation-MonitorsSetDefaultKey.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.CustomTypes; | ||
using Pandora.Definitions.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.ApiKey; | ||
|
||
internal class MonitorsSetDefaultKeyOperation : Pandora.Definitions.Operations.PostOperation | ||
{ | ||
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode> | ||
{ | ||
HttpStatusCode.OK, | ||
}; | ||
|
||
public override Type? RequestObject() => typeof(DatadogApiKeyModel); | ||
|
||
public override ResourceID? ResourceId() => new MonitorId(); | ||
|
||
public override string? UriSuffix() => "/setDefaultKey"; | ||
|
||
|
||
} |
28 changes: 28 additions & 0 deletions
28
data/Pandora.Definitions.ResourceManager/DataDog/v2023_01_01/ApiKey/ResourceId-MonitorId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
using Pandora.Definitions.Interfaces; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01.ApiKey; | ||
|
||
internal class MonitorId : ResourceID | ||
{ | ||
public string? CommonAlias => null; | ||
|
||
public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}"; | ||
|
||
public List<ResourceIDSegment> Segments => new List<ResourceIDSegment> | ||
{ | ||
ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), | ||
ResourceIDSegment.SubscriptionId("subscriptionId"), | ||
ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), | ||
ResourceIDSegment.ResourceGroup("resourceGroupName"), | ||
ResourceIDSegment.Static("staticProviders", "providers"), | ||
ResourceIDSegment.ResourceProvider("staticMicrosoftDatadog", "Microsoft.Datadog"), | ||
ResourceIDSegment.Static("staticMonitors", "monitors"), | ||
ResourceIDSegment.UserSpecified("monitorName"), | ||
}; | ||
} |
6 changes: 6 additions & 0 deletions
6
...Definitions.ResourceManager/DataDog/v2023_01_01/ApiVersionDefinition-GenerationSetting.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Pandora.Definitions.ResourceManager.DataDog.v2023_01_01; | ||
|
||
public partial class Definition | ||
{ | ||
public bool Generate => true; | ||
} |
Oops, something went wrong.