Skip to content

Commit

Permalink
data: regenerating based on the latest Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Oct 5, 2023
1 parent 2af4fba commit c032b77
Show file tree
Hide file tree
Showing 338 changed files with 9,037 additions and 0 deletions.
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),
};
}
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; }
}
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; }
}
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";


}
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";


}
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"),
};
}
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),
};
}
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; }
}
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";


}
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;


}
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";


}
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"),
};
}
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;
}
Loading

0 comments on commit c032b77

Please sign in to comment.