Skip to content

Commit

Permalink
generate sdks
Browse files Browse the repository at this point in the history
Signed-off-by: ocobleseqx <[email protected]>
  • Loading branch information
ocobleseqx committed Oct 19, 2023
1 parent 9ee31c1 commit dc9aa31
Show file tree
Hide file tree
Showing 757 changed files with 78,801 additions and 19,963 deletions.
7 changes: 7 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
go 1.20

use (
./examples
./provider
./sdk
)
7 changes: 7 additions & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps=
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
github.com/yuin/goldmark v1.5.2/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
2 changes: 1 addition & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Pulumi.Equinix
{
public static class Config
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
"Double underscore prefix used to avoid conflicts with variable names.")]
private sealed class __Value<T>
{
Expand Down
364 changes: 364 additions & 0 deletions sdk/dotnet/Fabric/CloudRouter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,364 @@
// *** 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
{
/// <summary>
/// ## Example Usage
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Equinix = Pulumi.Equinix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var config = new Config();
/// var metro = config.Get("metro") ?? "FR";
/// var accountNum = config.RequireInt32("accountNum");
/// var router = new Equinix.Fabric.CloudRouter("router", new()
/// {
/// Name = "My-Fabric-Cloud-Router",
/// Type = "XF_ROUTER",
/// Location = new Equinix.Fabric.Inputs.CloudRouterLocationArgs
/// {
/// MetroCode = metro,
/// },
/// Package = new Equinix.Fabric.Inputs.CloudRouterPackageArgs
/// {
/// Code = "BASIC",
/// },
/// Notifications = new[]
/// {
/// new Equinix.Fabric.Inputs.CloudRouterNotificationArgs
/// {
/// Type = "ALL",
/// Emails = new[]
/// {
/// "[email protected]",
/// },
/// },
/// },
/// Account = new Equinix.Fabric.Inputs.CloudRouterAccountArgs
/// {
/// AccountNumber = 272010,
/// },
/// });
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["routerId"] = router.Id,
/// };
/// });
/// ```
/// </summary>
[EquinixResourceType("equinix:fabric/cloudRouter:CloudRouter")]
public partial class CloudRouter : global::Pulumi.CustomResource
{
/// <summary>
/// Customer account information that is associated with this Fabric Cloud Router
/// </summary>
[Output("account")]
public Output<Outputs.CloudRouterAccount?> Account { get; private set; } = null!;

/// <summary>
/// Captures Fabric Cloud Router lifecycle change information
/// </summary>
[Output("changeLogs")]
public Output<ImmutableArray<Outputs.CloudRouterChangeLog>> ChangeLogs { get; private set; } = null!;

/// <summary>
/// Customer-provided Fabric Cloud Router description
/// </summary>
[Output("description")]
public Output<string?> Description { get; private set; } = null!;

/// <summary>
/// Equinix ASN
/// </summary>
[Output("equinixAsn")]
public Output<int> EquinixAsn { get; private set; } = null!;

/// <summary>
/// Unique Resource URL
/// </summary>
[Output("href")]
public Output<string> Href { get; private set; } = null!;

/// <summary>
/// Fabric Cloud Router location
/// </summary>
[Output("location")]
public Output<Outputs.CloudRouterLocation> Location { get; private set; } = null!;

/// <summary>
/// Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// Preferences for notifications on Fabric Cloud Router configuration or status changes
/// </summary>
[Output("notifications")]
public Output<ImmutableArray<Outputs.CloudRouterNotification>> Notifications { get; private set; } = null!;

/// <summary>
/// Order information related to this Fabric Cloud Router
/// </summary>
[Output("order")]
public Output<Outputs.CloudRouterOrder?> Order { get; private set; } = null!;

/// <summary>
/// Fabric Cloud Router package
/// </summary>
[Output("package")]
public Output<Outputs.CloudRouterPackage> Package { get; private set; } = null!;

/// <summary>
/// Fabric Cloud Router project
/// </summary>
[Output("projects")]
public Output<ImmutableArray<Outputs.CloudRouterProject>> Projects { get; private set; } = null!;

/// <summary>
/// Fabric Cloud Router overall state
/// </summary>
[Output("state")]
public Output<string> State { get; private set; } = null!;

/// <summary>
/// Notification Type - ALL,CONNECTION*APPROVAL,SALES*REP_NOTIFICATIONS, NOTIFICATIONS
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;


/// <summary>
/// Create a CloudRouter resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public CloudRouter(string name, CloudRouterArgs args, CustomResourceOptions? options = null)
: base("equinix:fabric/cloudRouter:CloudRouter", name, args ?? new CloudRouterArgs(), MakeResourceOptions(options, ""))
{
}

private CloudRouter(string name, Input<string> id, CloudRouterState? state = null, CustomResourceOptions? options = null)
: base("equinix:fabric/cloudRouter:CloudRouter", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/equinix",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing CloudRouter resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static CloudRouter Get(string name, Input<string> id, CloudRouterState? state = null, CustomResourceOptions? options = null)
{
return new CloudRouter(name, id, state, options);
}
}

public sealed class CloudRouterArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Customer account information that is associated with this Fabric Cloud Router
/// </summary>
[Input("account")]
public Input<Inputs.CloudRouterAccountArgs>? Account { get; set; }

/// <summary>
/// Customer-provided Fabric Cloud Router description
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// Fabric Cloud Router location
/// </summary>
[Input("location", required: true)]
public Input<Inputs.CloudRouterLocationArgs> Location { get; set; } = null!;

/// <summary>
/// Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

[Input("notifications", required: true)]
private InputList<Inputs.CloudRouterNotificationArgs>? _notifications;

/// <summary>
/// Preferences for notifications on Fabric Cloud Router configuration or status changes
/// </summary>
public InputList<Inputs.CloudRouterNotificationArgs> Notifications
{
get => _notifications ?? (_notifications = new InputList<Inputs.CloudRouterNotificationArgs>());
set => _notifications = value;
}

/// <summary>
/// Order information related to this Fabric Cloud Router
/// </summary>
[Input("order")]
public Input<Inputs.CloudRouterOrderArgs>? Order { get; set; }

/// <summary>
/// Fabric Cloud Router package
/// </summary>
[Input("package", required: true)]
public Input<Inputs.CloudRouterPackageArgs> Package { get; set; } = null!;

[Input("projects")]
private InputList<Inputs.CloudRouterProjectArgs>? _projects;

/// <summary>
/// Fabric Cloud Router project
/// </summary>
public InputList<Inputs.CloudRouterProjectArgs> Projects
{
get => _projects ?? (_projects = new InputList<Inputs.CloudRouterProjectArgs>());
set => _projects = value;
}

/// <summary>
/// Notification Type - ALL,CONNECTION*APPROVAL,SALES*REP_NOTIFICATIONS, NOTIFICATIONS
/// </summary>
[Input("type", required: true)]
public Input<string> Type { get; set; } = null!;

public CloudRouterArgs()
{
}
public static new CloudRouterArgs Empty => new CloudRouterArgs();
}

public sealed class CloudRouterState : global::Pulumi.ResourceArgs
{
/// <summary>
/// Customer account information that is associated with this Fabric Cloud Router
/// </summary>
[Input("account")]
public Input<Inputs.CloudRouterAccountGetArgs>? Account { get; set; }

[Input("changeLogs")]
private InputList<Inputs.CloudRouterChangeLogGetArgs>? _changeLogs;

/// <summary>
/// Captures Fabric Cloud Router lifecycle change information
/// </summary>
public InputList<Inputs.CloudRouterChangeLogGetArgs> ChangeLogs
{
get => _changeLogs ?? (_changeLogs = new InputList<Inputs.CloudRouterChangeLogGetArgs>());
set => _changeLogs = value;
}

/// <summary>
/// Customer-provided Fabric Cloud Router description
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// Equinix ASN
/// </summary>
[Input("equinixAsn")]
public Input<int>? EquinixAsn { get; set; }

/// <summary>
/// Unique Resource URL
/// </summary>
[Input("href")]
public Input<string>? Href { get; set; }

/// <summary>
/// Fabric Cloud Router location
/// </summary>
[Input("location")]
public Input<Inputs.CloudRouterLocationGetArgs>? Location { get; set; }

/// <summary>
/// Fabric Cloud Router name. An alpha-numeric 24 characters string which can include only hyphens and underscores
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

[Input("notifications")]
private InputList<Inputs.CloudRouterNotificationGetArgs>? _notifications;

/// <summary>
/// Preferences for notifications on Fabric Cloud Router configuration or status changes
/// </summary>
public InputList<Inputs.CloudRouterNotificationGetArgs> Notifications
{
get => _notifications ?? (_notifications = new InputList<Inputs.CloudRouterNotificationGetArgs>());
set => _notifications = value;
}

/// <summary>
/// Order information related to this Fabric Cloud Router
/// </summary>
[Input("order")]
public Input<Inputs.CloudRouterOrderGetArgs>? Order { get; set; }

/// <summary>
/// Fabric Cloud Router package
/// </summary>
[Input("package")]
public Input<Inputs.CloudRouterPackageGetArgs>? Package { get; set; }

[Input("projects")]
private InputList<Inputs.CloudRouterProjectGetArgs>? _projects;

/// <summary>
/// Fabric Cloud Router project
/// </summary>
public InputList<Inputs.CloudRouterProjectGetArgs> Projects
{
get => _projects ?? (_projects = new InputList<Inputs.CloudRouterProjectGetArgs>());
set => _projects = value;
}

/// <summary>
/// Fabric Cloud Router overall state
/// </summary>
[Input("state")]
public Input<string>? State { get; set; }

/// <summary>
/// Notification Type - ALL,CONNECTION*APPROVAL,SALES*REP_NOTIFICATIONS, NOTIFICATIONS
/// </summary>
[Input("type")]
public Input<string>? Type { get; set; }

public CloudRouterState()
{
}
public static new CloudRouterState Empty => new CloudRouterState();
}
}
Loading

0 comments on commit dc9aa31

Please sign in to comment.