-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oscar Cobles
committed
Sep 20, 2024
1 parent
fb2601c
commit 992518f
Showing
84 changed files
with
4,283 additions
and
245 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ namespace Pulumi.Equinix.Fabric | |
/// * API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#fabric-cloud-routers | ||
/// | ||
/// ## Example Usage | ||
/// ### example 1 | ||
/// ```csharp | ||
/// using System.Collections.Generic; | ||
/// using System.Linq; | ||
|
@@ -65,6 +66,56 @@ namespace Pulumi.Equinix.Fabric | |
/// | ||
/// }); | ||
/// ``` | ||
/// ### example 2 | ||
/// ```csharp | ||
/// using System.Collections.Generic; | ||
/// using System.Linq; | ||
/// using Pulumi; | ||
/// using Equinix = Pulumi.Equinix; | ||
/// | ||
/// return await Deployment.RunAsync(() => | ||
/// { | ||
/// var newCloudRouter = new Equinix.Fabric.CloudRouter("newCloudRouter", new() | ||
/// { | ||
/// Name = "Router-SV", | ||
/// Type = "XF_ROUTER", | ||
/// Notifications = new[] | ||
/// { | ||
/// new Equinix.Fabric.Inputs.CloudRouterNotificationArgs | ||
/// { | ||
/// Type = "ALL", | ||
/// Emails = new[] | ||
/// { | ||
/// "[email protected]", | ||
/// "[email protected]", | ||
/// }, | ||
/// }, | ||
/// }, | ||
/// Order = new Equinix.Fabric.Inputs.CloudRouterOrderArgs | ||
/// { | ||
/// PurchaseOrderNumber = "1-323292", | ||
/// }, | ||
/// Location = new Equinix.Fabric.Inputs.CloudRouterLocationArgs | ||
/// { | ||
/// MetroCode = "SV", | ||
/// }, | ||
/// Package = new Equinix.Fabric.Inputs.CloudRouterPackageArgs | ||
/// { | ||
/// Code = "STANDARD", | ||
/// }, | ||
/// Project = new Equinix.Fabric.Inputs.CloudRouterProjectArgs | ||
/// { | ||
/// ProjectId = "776847000642406", | ||
/// }, | ||
/// MarketplaceSubscription = new Equinix.Fabric.Inputs.CloudRouterMarketplaceSubscriptionArgs | ||
/// { | ||
/// Type = "AWS_MARKETPLACE_SUBSCRIPTION", | ||
/// Uuid = "2823b8ae07-a2a2-45b4-a658-c3542bb24e9", | ||
/// }, | ||
/// }); | ||
/// | ||
/// }); | ||
/// ``` | ||
/// </summary> | ||
[EquinixResourceType("equinix:fabric/cloudRouter:CloudRouter")] | ||
public partial class CloudRouter : global::Pulumi.CustomResource | ||
|
@@ -135,6 +186,12 @@ public partial class CloudRouter : global::Pulumi.CustomResource | |
[Output("location")] | ||
public Output<Outputs.CloudRouterLocation> Location { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Equinix Fabric Entity for Marketplace Subscription | ||
/// </summary> | ||
[Output("marketplaceSubscription")] | ||
public Output<Outputs.CloudRouterMarketplaceSubscription> MarketplaceSubscription { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores | ||
/// </summary> | ||
|
@@ -233,8 +290,8 @@ public sealed class CloudRouterArgs : global::Pulumi.ResourceArgs | |
/// <summary> | ||
/// Customer account information that is associated with this Fabric Cloud Router | ||
/// </summary> | ||
[Input("account", required: true)] | ||
public Input<Inputs.CloudRouterAccountArgs> Account { get; set; } = null!; | ||
[Input("account")] | ||
public Input<Inputs.CloudRouterAccountArgs>? Account { get; set; } | ||
|
||
/// <summary> | ||
/// Customer-provided Fabric Cloud Router description | ||
|
@@ -254,6 +311,12 @@ public sealed class CloudRouterArgs : global::Pulumi.ResourceArgs | |
[Input("location", required: true)] | ||
public Input<Inputs.CloudRouterLocationArgs> Location { get; set; } = null!; | ||
|
||
/// <summary> | ||
/// Equinix Fabric Entity for Marketplace Subscription | ||
/// </summary> | ||
[Input("marketplaceSubscription")] | ||
public Input<Inputs.CloudRouterMarketplaceSubscriptionArgs>? MarketplaceSubscription { get; set; } | ||
|
||
/// <summary> | ||
/// Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores | ||
/// </summary> | ||
|
@@ -382,6 +445,12 @@ public InputList<Inputs.CloudRouterChangeLogGetArgs> ChangeLogs | |
[Input("location")] | ||
public Input<Inputs.CloudRouterLocationGetArgs>? Location { get; set; } | ||
|
||
/// <summary> | ||
/// Equinix Fabric Entity for Marketplace Subscription | ||
/// </summary> | ||
[Input("marketplaceSubscription")] | ||
public Input<Inputs.CloudRouterMarketplaceSubscriptionGetArgs>? MarketplaceSubscription { get; set; } | ||
|
||
/// <summary> | ||
/// Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores | ||
/// </summary> | ||
|
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
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
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,180 @@ | ||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** | ||
// *** Do not edit by hand unless you're certain you know what you are doing! *** | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Immutable; | ||
using System.Threading.Tasks; | ||
using Pulumi.Serialization; | ||
|
||
namespace Pulumi.Equinix.Fabric | ||
{ | ||
public static class GetMarketplaceSubscription | ||
{ | ||
/// <summary> | ||
/// Fabric V4 API compatible data resource that allow user to fetch Marketplace Subscription detail for a given UUID | ||
/// | ||
/// ## Example Usage | ||
/// | ||
/// ```csharp | ||
/// using System.Collections.Generic; | ||
/// using System.Linq; | ||
/// using Pulumi; | ||
/// using Equinix = Pulumi.Equinix; | ||
/// | ||
/// return await Deployment.RunAsync(() => | ||
/// { | ||
/// var subscription_test = Equinix.Fabric.GetMarketplaceSubscription.Invoke(new() | ||
/// { | ||
/// Uuid = "<uuid_of_marketplace_subscription>", | ||
/// }); | ||
/// | ||
/// return new Dictionary<string, object?> | ||
/// { | ||
/// ["id"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Id)), | ||
/// ["status"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Status)), | ||
/// ["marketplace"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Marketplace)), | ||
/// ["offerType"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.OfferType)), | ||
/// ["isAutoRenew"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.IsAutoRenew)), | ||
/// }; | ||
/// }); | ||
/// ``` | ||
/// </summary> | ||
public static Task<GetMarketplaceSubscriptionResult> InvokeAsync(GetMarketplaceSubscriptionArgs args, InvokeOptions? options = null) | ||
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetMarketplaceSubscriptionResult>("equinix:fabric/getMarketplaceSubscription:getMarketplaceSubscription", args ?? new GetMarketplaceSubscriptionArgs(), options.WithDefaults()); | ||
|
||
/// <summary> | ||
/// Fabric V4 API compatible data resource that allow user to fetch Marketplace Subscription detail for a given UUID | ||
/// | ||
/// ## Example Usage | ||
/// | ||
/// ```csharp | ||
/// using System.Collections.Generic; | ||
/// using System.Linq; | ||
/// using Pulumi; | ||
/// using Equinix = Pulumi.Equinix; | ||
/// | ||
/// return await Deployment.RunAsync(() => | ||
/// { | ||
/// var subscription_test = Equinix.Fabric.GetMarketplaceSubscription.Invoke(new() | ||
/// { | ||
/// Uuid = "<uuid_of_marketplace_subscription>", | ||
/// }); | ||
/// | ||
/// return new Dictionary<string, object?> | ||
/// { | ||
/// ["id"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Id)), | ||
/// ["status"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Status)), | ||
/// ["marketplace"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Marketplace)), | ||
/// ["offerType"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.OfferType)), | ||
/// ["isAutoRenew"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.IsAutoRenew)), | ||
/// }; | ||
/// }); | ||
/// ``` | ||
/// </summary> | ||
public static Output<GetMarketplaceSubscriptionResult> Invoke(GetMarketplaceSubscriptionInvokeArgs args, InvokeOptions? options = null) | ||
=> global::Pulumi.Deployment.Instance.Invoke<GetMarketplaceSubscriptionResult>("equinix:fabric/getMarketplaceSubscription:getMarketplaceSubscription", args ?? new GetMarketplaceSubscriptionInvokeArgs(), options.WithDefaults()); | ||
} | ||
|
||
|
||
public sealed class GetMarketplaceSubscriptionArgs : global::Pulumi.InvokeArgs | ||
{ | ||
/// <summary> | ||
/// Equinix-assigned marketplace identifier | ||
/// </summary> | ||
[Input("uuid", required: true)] | ||
public string Uuid { get; set; } = null!; | ||
|
||
public GetMarketplaceSubscriptionArgs() | ||
{ | ||
} | ||
public static new GetMarketplaceSubscriptionArgs Empty => new GetMarketplaceSubscriptionArgs(); | ||
} | ||
|
||
public sealed class GetMarketplaceSubscriptionInvokeArgs : global::Pulumi.InvokeArgs | ||
{ | ||
/// <summary> | ||
/// Equinix-assigned marketplace identifier | ||
/// </summary> | ||
[Input("uuid", required: true)] | ||
public Input<string> Uuid { get; set; } = null!; | ||
|
||
public GetMarketplaceSubscriptionInvokeArgs() | ||
{ | ||
} | ||
public static new GetMarketplaceSubscriptionInvokeArgs Empty => new GetMarketplaceSubscriptionInvokeArgs(); | ||
} | ||
|
||
|
||
[OutputType] | ||
public sealed class GetMarketplaceSubscriptionResult | ||
{ | ||
/// <summary> | ||
/// Subscription entitlements | ||
/// </summary> | ||
public readonly ImmutableArray<Outputs.GetMarketplaceSubscriptionEntitlementResult> Entitlements; | ||
/// <summary> | ||
/// Subscription URI information | ||
/// </summary> | ||
public readonly string Href; | ||
/// <summary> | ||
/// The provider-assigned unique ID for this managed resource. | ||
/// </summary> | ||
public readonly string Id; | ||
/// <summary> | ||
/// Information about subscription auto renewal | ||
/// </summary> | ||
public readonly bool IsAutoRenew; | ||
/// <summary> | ||
/// Marketplace like; AWS, GCP, AZURE, REDHAT | ||
/// </summary> | ||
public readonly string Marketplace; | ||
/// <summary> | ||
/// Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER | ||
/// </summary> | ||
public readonly string OfferType; | ||
/// <summary> | ||
/// Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD | ||
/// </summary> | ||
public readonly string Status; | ||
/// <summary> | ||
/// Subscription Trial | ||
/// </summary> | ||
public readonly Outputs.GetMarketplaceSubscriptionTrialResult Trial; | ||
/// <summary> | ||
/// Equinix-assigned marketplace identifier | ||
/// </summary> | ||
public readonly string Uuid; | ||
|
||
[OutputConstructor] | ||
private GetMarketplaceSubscriptionResult( | ||
ImmutableArray<Outputs.GetMarketplaceSubscriptionEntitlementResult> entitlements, | ||
|
||
string href, | ||
|
||
string id, | ||
|
||
bool isAutoRenew, | ||
|
||
string marketplace, | ||
|
||
string offerType, | ||
|
||
string status, | ||
|
||
Outputs.GetMarketplaceSubscriptionTrialResult trial, | ||
|
||
string uuid) | ||
{ | ||
Entitlements = entitlements; | ||
Href = href; | ||
Id = id; | ||
IsAutoRenew = isAutoRenew; | ||
Marketplace = marketplace; | ||
OfferType = offerType; | ||
Status = status; | ||
Trial = trial; | ||
Uuid = uuid; | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.