diff --git a/examples/metal/connection/example_fabric_billed/Pulumi.yaml b/examples/metal/connection/example_fabric_billed/Pulumi.yaml deleted file mode 100644 index 74b564d8..00000000 --- a/examples/metal/connection/example_fabric_billed/Pulumi.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: equinix-metal-connection-example-fabric-billed-token -runtime: yaml -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-fabric-billed) -Fabric Billed- resource -config: - projectId: - type: string - metro: - type: string - default: SV - speedInMbps: - type: integer - default: 200 -resources: - connection: - type: equinix:metal:Interconnection - properties: - name: fabric-port-to-metal - projectId: ${projectId} - type: shared - redundancy: primary - metro: ${metro} - speed: ${speedInMbps}Mbps - serviceTokenType: z_side -outputs: - connectionStatus: ${connection.status} - connectionTokens: ${connection.serviceTokens} diff --git a/examples/metal/connection/example_fabric_billed/csharp/.gitignore b/examples/metal/connection/example_fabric_billed/csharp/.gitignore deleted file mode 100644 index e6452706..00000000 --- a/examples/metal/connection/example_fabric_billed/csharp/.gitignore +++ /dev/null @@ -1,353 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ diff --git a/examples/metal/connection/example_fabric_billed/csharp/Program.cs b/examples/metal/connection/example_fabric_billed/csharp/Program.cs deleted file mode 100644 index ae2cca70..00000000 --- a/examples/metal/connection/example_fabric_billed/csharp/Program.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Pulumi; -using Equinix = Pulumi.Equinix; - -return await Deployment.RunAsync(() => -{ - var config = new Config(); - var projectId = config.Require("projectId"); - var metro = config.Get("metro") ?? "SV"; - var speedInMbps = config.GetInt32("speedInMbps") ?? 200; - var connection = new Equinix.Metal.Interconnection("connection", new() - { - Name = "fabric-port-to-metal", - ProjectId = projectId, - Type = "shared", - Redundancy = "primary", - Metro = metro, - Speed = $"{speedInMbps}Mbps", - ServiceTokenType = "z_side", - }); - - return new Dictionary - { - ["connectionStatus"] = connection.Status, - ["connectionTokens"] = connection.ServiceTokens, - }; -}); - diff --git a/examples/metal/connection/example_fabric_billed/csharp/Pulumi.yaml b/examples/metal/connection/example_fabric_billed/csharp/Pulumi.yaml deleted file mode 100644 index aeb2dc93..00000000 --- a/examples/metal/connection/example_fabric_billed/csharp/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-fabric-billed-token -runtime: dotnet -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-fabric-billed) -Fabric Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 200 diff --git a/examples/metal/connection/example_fabric_billed/csharp/equinix-metal-connection-example-fabric-billed-token.csproj b/examples/metal/connection/example_fabric_billed/csharp/equinix-metal-connection-example-fabric-billed-token.csproj deleted file mode 100644 index 36182104..00000000 --- a/examples/metal/connection/example_fabric_billed/csharp/equinix-metal-connection-example-fabric-billed-token.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - Exe - net6.0 - enable - - - - - - - \ No newline at end of file diff --git a/examples/metal/connection/example_fabric_billed/csharp/equinix-metal-connection-fabric-billed-token.csproj b/examples/metal/connection/example_fabric_billed/csharp/equinix-metal-connection-fabric-billed-token.csproj deleted file mode 100644 index ad20437e..00000000 --- a/examples/metal/connection/example_fabric_billed/csharp/equinix-metal-connection-fabric-billed-token.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - Exe - net6.0 - enable - - - - - - - \ No newline at end of file diff --git a/examples/metal/connection/example_fabric_billed/go/Pulumi.yaml b/examples/metal/connection/example_fabric_billed/go/Pulumi.yaml deleted file mode 100644 index 21e83049..00000000 --- a/examples/metal/connection/example_fabric_billed/go/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-fabric-billed-token -runtime: go -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-fabric-billed) -Fabric Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 200 diff --git a/examples/metal/connection/example_fabric_billed/go/go.mod b/examples/metal/connection/example_fabric_billed/go/go.mod deleted file mode 100644 index 786afaf6..00000000 --- a/examples/metal/connection/example_fabric_billed/go/go.mod +++ /dev/null @@ -1,95 +0,0 @@ -module equinix-metal-connection-example-fabric-billed-token - -go 1.21 - -toolchain go1.21.13 - -require ( - github.com/equinix/pulumi-equinix/sdk latest - github.com/pulumi/pulumi/sdk/v3 v3.128.0 -) - -require ( - dario.cat/mergo v1.0.0 // indirect - github.com/BurntSushi/toml v1.2.1 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect - github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - github.com/agext/levenshtein v1.2.3 // indirect - github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect - github.com/atotto/clipboard v0.1.4 // indirect - github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect - github.com/blang/semver v3.5.1+incompatible // indirect - github.com/charmbracelet/bubbles v0.16.1 // indirect - github.com/charmbracelet/bubbletea v0.25.0 // indirect - github.com/charmbracelet/lipgloss v0.7.1 // indirect - github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect - github.com/djherbis/times v1.5.0 // indirect - github.com/emirpasic/gods v1.18.1 // indirect - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.12.0 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/hcl/v2 v2.20.1 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect - github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect - github.com/mitchellh/go-ps v1.0.0 // indirect - github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect - github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/reflow v0.3.0 // indirect - github.com/muesli/termenv v0.15.2 // indirect - github.com/opentracing/basictracer-go v1.1.0 // indirect - github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/pgavlin/fx v0.1.6 // indirect - github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pkg/term v1.1.0 // indirect - github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect - github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect - github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect - github.com/skeema/knownhosts v1.2.2 // indirect - github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/cobra v1.8.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect - github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect - github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/zclconf/go-cty v1.14.4 // indirect - go.uber.org/atomic v1.11.0 // indirect - golang.org/x/crypto v0.24.0 // indirect - golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/tools v0.22.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.34.0 // indirect - gopkg.in/warnings.v0 v0.1.2 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/frand v1.4.2 // indirect -) diff --git a/examples/metal/connection/example_fabric_billed/go/main.go b/examples/metal/connection/example_fabric_billed/go/main.go deleted file mode 100644 index 64d9ff41..00000000 --- a/examples/metal/connection/example_fabric_billed/go/main.go +++ /dev/null @@ -1,39 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/equinix/pulumi-equinix/sdk/go/equinix/metal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" -) - -func main() { - pulumi.Run(func(ctx *pulumi.Context) error { - cfg := config.New(ctx, "") - projectId := cfg.Require("projectId") - metro := "SV" - if param := cfg.Get("metro"); param != "" { - metro = param - } - speedInMbps := 200 - if param := cfg.GetInt("speedInMbps"); param != 0 { - speedInMbps = param - } - connection, err := metal.NewInterconnection(ctx, "connection", &metal.InterconnectionArgs{ - Name: pulumi.String("fabric-port-to-metal"), - ProjectId: pulumi.String(projectId), - Type: pulumi.String("shared"), - Redundancy: pulumi.String("primary"), - Metro: pulumi.String(metro), - Speed: pulumi.Sprintf("%vMbps", speedInMbps), - ServiceTokenType: pulumi.String("z_side"), - }) - if err != nil { - return err - } - ctx.Export("connectionStatus", connection.Status) - ctx.Export("connectionTokens", connection.ServiceTokens) - return nil - }) -} diff --git a/examples/metal/connection/example_fabric_billed/java/Pulumi.yaml b/examples/metal/connection/example_fabric_billed/java/Pulumi.yaml deleted file mode 100644 index 028e4ec1..00000000 --- a/examples/metal/connection/example_fabric_billed/java/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-fabric-billed-token -runtime: java -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-fabric-billed) -Fabric Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 200 diff --git a/examples/metal/connection/example_fabric_billed/java/pom.xml b/examples/metal/connection/example_fabric_billed/java/pom.xml deleted file mode 100644 index 22f4a724..00000000 --- a/examples/metal/connection/example_fabric_billed/java/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - 4.0.0 - - com.pulumi - equinix-metal-connection-example-fabric-billed-token - 1.0-SNAPSHOT - - - UTF-8 - 11 - 11 - 11 - generated_program.App - - - - - - com.pulumi - pulumi - (,1.0] - - - com.pulumi - equinix - (,1.0) - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.2 - - - - true - ${mainClass} - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.4.2 - - - - true - ${mainClass} - - - - jar-with-dependencies - - - - - make-my-jar-with-dependencies - package - - single - - - - - - org.codehaus.mojo - exec-maven-plugin - 3.1.0 - - ${mainClass} - ${mainArgs} - - - - org.apache.maven.plugins - maven-wrapper-plugin - 3.1.1 - - 3.8.5 - - - - - \ No newline at end of file diff --git a/examples/metal/connection/example_fabric_billed/java/src/main/java/generated_program/App.java b/examples/metal/connection/example_fabric_billed/java/src/main/java/generated_program/App.java deleted file mode 100644 index 27151018..00000000 --- a/examples/metal/connection/example_fabric_billed/java/src/main/java/generated_program/App.java +++ /dev/null @@ -1,38 +0,0 @@ -package generated_program; - -import com.pulumi.Context; -import com.pulumi.Pulumi; -import com.pulumi.core.Output; -import com.pulumi.equinix.metal.Interconnection; -import com.pulumi.equinix.metal.InterconnectionArgs; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.io.File; -import java.nio.file.Files; -import java.nio.file.Paths; - -public class App { - public static void main(String[] args) { - Pulumi.run(App::stack); - } - - public static void stack(Context ctx) { - final var config = ctx.config(); - final var projectId = config.get("projectId"); - final var metro = config.get("metro").orElse("SV"); - final var speedInMbps = config.get("speedInMbps").orElse(200); - var connection = new Interconnection("connection", InterconnectionArgs.builder() - .name("fabric-port-to-metal") - .projectId(projectId) - .type("shared") - .redundancy("primary") - .metro(metro) - .speed(String.format("%sMbps", speedInMbps)) - .serviceTokenType("z_side") - .build()); - - ctx.export("connectionStatus", connection.status()); - ctx.export("connectionTokens", connection.serviceTokens()); - } -} diff --git a/examples/metal/connection/example_fabric_billed/python/.gitignore b/examples/metal/connection/example_fabric_billed/python/.gitignore deleted file mode 100644 index b664ab4e..00000000 --- a/examples/metal/connection/example_fabric_billed/python/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.pyc -venv/ \ No newline at end of file diff --git a/examples/metal/connection/example_fabric_billed/python/Pulumi.yaml b/examples/metal/connection/example_fabric_billed/python/Pulumi.yaml deleted file mode 100644 index c0361a95..00000000 --- a/examples/metal/connection/example_fabric_billed/python/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-fabric-billed-token -runtime: python -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-fabric-billed) -Fabric Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 200 diff --git a/examples/metal/connection/example_fabric_billed/python/__main__.py b/examples/metal/connection/example_fabric_billed/python/__main__.py deleted file mode 100644 index 5f6bc591..00000000 --- a/examples/metal/connection/example_fabric_billed/python/__main__.py +++ /dev/null @@ -1,21 +0,0 @@ -import pulumi -import pulumi_equinix as equinix - -config = pulumi.Config() -project_id = config.require("projectId") -metro = config.get("metro") -if metro is None: - metro = "SV" -speed_in_mbps = config.get_int("speedInMbps") -if speed_in_mbps is None: - speed_in_mbps = 200 -connection = equinix.metal.Interconnection("connection", - name="fabric-port-to-metal", - project_id=project_id, - type="shared", - redundancy="primary", - metro=metro, - speed=f"{speed_in_mbps}Mbps", - service_token_type="z_side") -pulumi.export("connectionStatus", connection.status) -pulumi.export("connectionTokens", connection.service_tokens) diff --git a/examples/metal/connection/example_fabric_billed/python/requirements.txt b/examples/metal/connection/example_fabric_billed/python/requirements.txt deleted file mode 100644 index 317d94a1..00000000 --- a/examples/metal/connection/example_fabric_billed/python/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -pulumi>=3.0.0,<4.0.0 -pulumi_equinix==<1.0.0 diff --git a/examples/metal/connection/example_fabric_billed/typescript/.gitignore b/examples/metal/connection/example_fabric_billed/typescript/.gitignore deleted file mode 100644 index dc902b57..00000000 --- a/examples/metal/connection/example_fabric_billed/typescript/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/bin/ -/node_modules/ \ No newline at end of file diff --git a/examples/metal/connection/example_fabric_billed/typescript/Pulumi.yaml b/examples/metal/connection/example_fabric_billed/typescript/Pulumi.yaml deleted file mode 100644 index 7cb9b6c2..00000000 --- a/examples/metal/connection/example_fabric_billed/typescript/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-fabric-billed-token -runtime: nodejs -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-fabric-billed) -Fabric Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 200 diff --git a/examples/metal/connection/example_fabric_billed/typescript/index.ts b/examples/metal/connection/example_fabric_billed/typescript/index.ts deleted file mode 100644 index e7b8de0a..00000000 --- a/examples/metal/connection/example_fabric_billed/typescript/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as pulumi from "@pulumi/pulumi"; -import * as equinix from "@equinix-labs/pulumi-equinix"; - -const config = new pulumi.Config(); -const projectId = config.require("projectId"); -const metro = config.get("metro") || "SV"; -const speedInMbps = config.getNumber("speedInMbps") || 200; -const connection = new equinix.metal.Interconnection("connection", { - name: "fabric-port-to-metal", - projectId: projectId, - type: "shared", - redundancy: "primary", - metro: metro, - speed: `${speedInMbps}Mbps`, - serviceTokenType: "z_side", -}); -export const connectionStatus = connection.status; -export const connectionTokens = connection.serviceTokens; diff --git a/examples/metal/connection/example_fabric_billed/typescript/package.json b/examples/metal/connection/example_fabric_billed/typescript/package.json deleted file mode 100644 index 99159eb3..00000000 --- a/examples/metal/connection/example_fabric_billed/typescript/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "equinix-metal-connection-example-fabric-billed-token", - "devDependencies": { - "@types/node": "^14" - }, - "dependencies": { - "typescript": "^4.0.0", - "@pulumi/pulumi": "^3.0.0", - "@equinix-labs/pulumi-equinix": "<1.0.0" - } -} \ No newline at end of file diff --git a/examples/metal/connection/example_fabric_billed/typescript/tsconfig.json b/examples/metal/connection/example_fabric_billed/typescript/tsconfig.json deleted file mode 100644 index 11fc69af..00000000 --- a/examples/metal/connection/example_fabric_billed/typescript/tsconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "compilerOptions": { - "strict": true, - "outDir": "bin", - "target": "es2016", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "experimentalDecorators": true, - "pretty": true, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.ts", - ] -} \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/Pulumi.yaml b/examples/metal/connection/example_metal_billed/Pulumi.yaml deleted file mode 100644 index def819d2..00000000 --- a/examples/metal/connection/example_metal_billed/Pulumi.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: equinix-metal-connection-example-metal-billed-token -runtime: yaml -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-metal-billed) -Metal Billed- resource -config: - projectId: - type: string - metro: - type: string - default: SV - speedInMbps: - type: integer - default: 1000 -resources: - connection: - type: equinix:metal:Interconnection - properties: - name: metal-to-cloudprovider - projectId: ${projectId} - type: shared - redundancy: primary - metro: ${metro} - speed: ${speedInMbps}Mbps - serviceTokenType: a_side -outputs: - connectionStatus: ${connection.status} - connectionTokens: ${connection.serviceTokens} diff --git a/examples/metal/connection/example_metal_billed/csharp/.gitignore b/examples/metal/connection/example_metal_billed/csharp/.gitignore deleted file mode 100644 index e6452706..00000000 --- a/examples/metal/connection/example_metal_billed/csharp/.gitignore +++ /dev/null @@ -1,353 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ diff --git a/examples/metal/connection/example_metal_billed/csharp/Program.cs b/examples/metal/connection/example_metal_billed/csharp/Program.cs deleted file mode 100644 index fd3d7ab1..00000000 --- a/examples/metal/connection/example_metal_billed/csharp/Program.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Pulumi; -using Equinix = Pulumi.Equinix; - -return await Deployment.RunAsync(() => -{ - var config = new Config(); - var projectId = config.Require("projectId"); - var metro = config.Get("metro") ?? "SV"; - var speedInMbps = config.GetInt32("speedInMbps") ?? 1000; - var connection = new Equinix.Metal.Interconnection("connection", new() - { - Name = "metal-to-cloudprovider", - ProjectId = projectId, - Type = "shared", - Redundancy = "primary", - Metro = metro, - Speed = $"{speedInMbps}Mbps", - ServiceTokenType = "a_side", - }); - - return new Dictionary - { - ["connectionStatus"] = connection.Status, - ["connectionTokens"] = connection.ServiceTokens, - }; -}); - diff --git a/examples/metal/connection/example_metal_billed/csharp/Pulumi.yaml b/examples/metal/connection/example_metal_billed/csharp/Pulumi.yaml deleted file mode 100644 index ed9613b3..00000000 --- a/examples/metal/connection/example_metal_billed/csharp/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-metal-billed-token -runtime: dotnet -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-metal-billed) -Metal Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 1000 diff --git a/examples/metal/connection/example_metal_billed/csharp/equinix-metal-connection-example-metal-billed-token.csproj b/examples/metal/connection/example_metal_billed/csharp/equinix-metal-connection-example-metal-billed-token.csproj deleted file mode 100644 index 36182104..00000000 --- a/examples/metal/connection/example_metal_billed/csharp/equinix-metal-connection-example-metal-billed-token.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - Exe - net6.0 - enable - - - - - - - \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/csharp/equinix-metal-connection-metal-billed-token.csproj b/examples/metal/connection/example_metal_billed/csharp/equinix-metal-connection-metal-billed-token.csproj deleted file mode 100644 index ad20437e..00000000 --- a/examples/metal/connection/example_metal_billed/csharp/equinix-metal-connection-metal-billed-token.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - Exe - net6.0 - enable - - - - - - - \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/go/Pulumi.yaml b/examples/metal/connection/example_metal_billed/go/Pulumi.yaml deleted file mode 100644 index 60102ac0..00000000 --- a/examples/metal/connection/example_metal_billed/go/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-metal-billed-token -runtime: go -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-metal-billed) -Metal Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 1000 diff --git a/examples/metal/connection/example_metal_billed/go/go.mod b/examples/metal/connection/example_metal_billed/go/go.mod deleted file mode 100644 index 49d333c9..00000000 --- a/examples/metal/connection/example_metal_billed/go/go.mod +++ /dev/null @@ -1,95 +0,0 @@ -module equinix-metal-connection-example-metal-billed-token - -go 1.21 - -toolchain go1.21.13 - -require ( - github.com/equinix/pulumi-equinix/sdk latest - github.com/pulumi/pulumi/sdk/v3 v3.128.0 -) - -require ( - dario.cat/mergo v1.0.0 // indirect - github.com/BurntSushi/toml v1.2.1 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect - github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect - github.com/agext/levenshtein v1.2.3 // indirect - github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect - github.com/atotto/clipboard v0.1.4 // indirect - github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect - github.com/blang/semver v3.5.1+incompatible // indirect - github.com/charmbracelet/bubbles v0.16.1 // indirect - github.com/charmbracelet/bubbletea v0.25.0 // indirect - github.com/charmbracelet/lipgloss v0.7.1 // indirect - github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect - github.com/djherbis/times v1.5.0 // indirect - github.com/emirpasic/gods v1.18.1 // indirect - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.12.0 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/hcl/v2 v2.20.1 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect - github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect - github.com/mitchellh/go-ps v1.0.0 // indirect - github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect - github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/reflow v0.3.0 // indirect - github.com/muesli/termenv v0.15.2 // indirect - github.com/opentracing/basictracer-go v1.1.0 // indirect - github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/pgavlin/fx v0.1.6 // indirect - github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pkg/term v1.1.0 // indirect - github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect - github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect - github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect - github.com/skeema/knownhosts v1.2.2 // indirect - github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/cobra v1.8.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect - github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect - github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/zclconf/go-cty v1.14.4 // indirect - go.uber.org/atomic v1.11.0 // indirect - golang.org/x/crypto v0.24.0 // indirect - golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/tools v0.22.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.34.0 // indirect - gopkg.in/warnings.v0 v0.1.2 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/frand v1.4.2 // indirect -) diff --git a/examples/metal/connection/example_metal_billed/go/main.go b/examples/metal/connection/example_metal_billed/go/main.go deleted file mode 100644 index 3e6e9857..00000000 --- a/examples/metal/connection/example_metal_billed/go/main.go +++ /dev/null @@ -1,39 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/equinix/pulumi-equinix/sdk/go/equinix/metal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" -) - -func main() { - pulumi.Run(func(ctx *pulumi.Context) error { - cfg := config.New(ctx, "") - projectId := cfg.Require("projectId") - metro := "SV" - if param := cfg.Get("metro"); param != "" { - metro = param - } - speedInMbps := 1000 - if param := cfg.GetInt("speedInMbps"); param != 0 { - speedInMbps = param - } - connection, err := metal.NewInterconnection(ctx, "connection", &metal.InterconnectionArgs{ - Name: pulumi.String("metal-to-cloudprovider"), - ProjectId: pulumi.String(projectId), - Type: pulumi.String("shared"), - Redundancy: pulumi.String("primary"), - Metro: pulumi.String(metro), - Speed: pulumi.Sprintf("%vMbps", speedInMbps), - ServiceTokenType: pulumi.String("a_side"), - }) - if err != nil { - return err - } - ctx.Export("connectionStatus", connection.Status) - ctx.Export("connectionTokens", connection.ServiceTokens) - return nil - }) -} diff --git a/examples/metal/connection/example_metal_billed/java/Pulumi.yaml b/examples/metal/connection/example_metal_billed/java/Pulumi.yaml deleted file mode 100644 index ff8307ce..00000000 --- a/examples/metal/connection/example_metal_billed/java/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-metal-billed-token -runtime: java -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-metal-billed) -Metal Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 1000 diff --git a/examples/metal/connection/example_metal_billed/java/pom.xml b/examples/metal/connection/example_metal_billed/java/pom.xml deleted file mode 100644 index 5395ab8f..00000000 --- a/examples/metal/connection/example_metal_billed/java/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - 4.0.0 - - com.pulumi - equinix-metal-connection-example-metal-billed-token - 1.0-SNAPSHOT - - - UTF-8 - 11 - 11 - 11 - generated_program.App - - - - - - com.pulumi - pulumi - (,1.0] - - - com.pulumi - equinix - (,1.0) - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.2 - - - - true - ${mainClass} - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.4.2 - - - - true - ${mainClass} - - - - jar-with-dependencies - - - - - make-my-jar-with-dependencies - package - - single - - - - - - org.codehaus.mojo - exec-maven-plugin - 3.1.0 - - ${mainClass} - ${mainArgs} - - - - org.apache.maven.plugins - maven-wrapper-plugin - 3.1.1 - - 3.8.5 - - - - - \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/java/src/main/java/generated_program/App.java b/examples/metal/connection/example_metal_billed/java/src/main/java/generated_program/App.java deleted file mode 100644 index 2871d1c4..00000000 --- a/examples/metal/connection/example_metal_billed/java/src/main/java/generated_program/App.java +++ /dev/null @@ -1,38 +0,0 @@ -package generated_program; - -import com.pulumi.Context; -import com.pulumi.Pulumi; -import com.pulumi.core.Output; -import com.pulumi.equinix.metal.Interconnection; -import com.pulumi.equinix.metal.InterconnectionArgs; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.io.File; -import java.nio.file.Files; -import java.nio.file.Paths; - -public class App { - public static void main(String[] args) { - Pulumi.run(App::stack); - } - - public static void stack(Context ctx) { - final var config = ctx.config(); - final var projectId = config.get("projectId"); - final var metro = config.get("metro").orElse("SV"); - final var speedInMbps = config.get("speedInMbps").orElse(1000); - var connection = new Interconnection("connection", InterconnectionArgs.builder() - .name("metal-to-cloudprovider") - .projectId(projectId) - .type("shared") - .redundancy("primary") - .metro(metro) - .speed(String.format("%sMbps", speedInMbps)) - .serviceTokenType("a_side") - .build()); - - ctx.export("connectionStatus", connection.status()); - ctx.export("connectionTokens", connection.serviceTokens()); - } -} diff --git a/examples/metal/connection/example_metal_billed/python/.gitignore b/examples/metal/connection/example_metal_billed/python/.gitignore deleted file mode 100644 index b664ab4e..00000000 --- a/examples/metal/connection/example_metal_billed/python/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.pyc -venv/ \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/python/Pulumi.yaml b/examples/metal/connection/example_metal_billed/python/Pulumi.yaml deleted file mode 100644 index 8c223b6f..00000000 --- a/examples/metal/connection/example_metal_billed/python/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-metal-billed-token -runtime: python -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-metal-billed) -Metal Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 1000 diff --git a/examples/metal/connection/example_metal_billed/python/__main__.py b/examples/metal/connection/example_metal_billed/python/__main__.py deleted file mode 100644 index 77ee0fd9..00000000 --- a/examples/metal/connection/example_metal_billed/python/__main__.py +++ /dev/null @@ -1,21 +0,0 @@ -import pulumi -import pulumi_equinix as equinix - -config = pulumi.Config() -project_id = config.require("projectId") -metro = config.get("metro") -if metro is None: - metro = "SV" -speed_in_mbps = config.get_int("speedInMbps") -if speed_in_mbps is None: - speed_in_mbps = 1000 -connection = equinix.metal.Interconnection("connection", - name="metal-to-cloudprovider", - project_id=project_id, - type="shared", - redundancy="primary", - metro=metro, - speed=f"{speed_in_mbps}Mbps", - service_token_type="a_side") -pulumi.export("connectionStatus", connection.status) -pulumi.export("connectionTokens", connection.service_tokens) diff --git a/examples/metal/connection/example_metal_billed/python/requirements.txt b/examples/metal/connection/example_metal_billed/python/requirements.txt deleted file mode 100644 index 317d94a1..00000000 --- a/examples/metal/connection/example_metal_billed/python/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -pulumi>=3.0.0,<4.0.0 -pulumi_equinix==<1.0.0 diff --git a/examples/metal/connection/example_metal_billed/typescript/.gitignore b/examples/metal/connection/example_metal_billed/typescript/.gitignore deleted file mode 100644 index dc902b57..00000000 --- a/examples/metal/connection/example_metal_billed/typescript/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/bin/ -/node_modules/ \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/typescript/Pulumi.yaml b/examples/metal/connection/example_metal_billed/typescript/Pulumi.yaml deleted file mode 100644 index adbd7c5b..00000000 --- a/examples/metal/connection/example_metal_billed/typescript/Pulumi.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: equinix-metal-connection-example-metal-billed-token -runtime: nodejs -description: An [Equinix Metal Interconnection](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/#fabric-virtual-connections-metal-billed) -Metal Billed- resource -config: - metro: - type: string - default: SV - projectId: - type: string - speedInMbps: - type: integer - default: 1000 diff --git a/examples/metal/connection/example_metal_billed/typescript/index.ts b/examples/metal/connection/example_metal_billed/typescript/index.ts deleted file mode 100644 index 5ee390e5..00000000 --- a/examples/metal/connection/example_metal_billed/typescript/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as pulumi from "@pulumi/pulumi"; -import * as equinix from "@equinix-labs/pulumi-equinix"; - -const config = new pulumi.Config(); -const projectId = config.require("projectId"); -const metro = config.get("metro") || "SV"; -const speedInMbps = config.getNumber("speedInMbps") || 1000; -const connection = new equinix.metal.Interconnection("connection", { - name: "metal-to-cloudprovider", - projectId: projectId, - type: "shared", - redundancy: "primary", - metro: metro, - speed: `${speedInMbps}Mbps`, - serviceTokenType: "a_side", -}); -export const connectionStatus = connection.status; -export const connectionTokens = connection.serviceTokens; diff --git a/examples/metal/connection/example_metal_billed/typescript/package.json b/examples/metal/connection/example_metal_billed/typescript/package.json deleted file mode 100644 index 1240ca30..00000000 --- a/examples/metal/connection/example_metal_billed/typescript/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "equinix-metal-connection-example-metal-billed-token", - "devDependencies": { - "@types/node": "^14" - }, - "dependencies": { - "typescript": "^4.0.0", - "@pulumi/pulumi": "^3.0.0", - "@equinix-labs/pulumi-equinix": "<1.0.0" - } -} \ No newline at end of file diff --git a/examples/metal/connection/example_metal_billed/typescript/tsconfig.json b/examples/metal/connection/example_metal_billed/typescript/tsconfig.json deleted file mode 100644 index 11fc69af..00000000 --- a/examples/metal/connection/example_metal_billed/typescript/tsconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "compilerOptions": { - "strict": true, - "outDir": "bin", - "target": "es2016", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "experimentalDecorators": true, - "pretty": true, - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.ts", - ] -} \ No newline at end of file diff --git a/scripts/generate_examples.sh b/scripts/generate_examples.sh index e708bcf9..e44c6e03 100755 --- a/scripts/generate_examples.sh +++ b/scripts/generate_examples.sh @@ -3,12 +3,10 @@ set -e # List of terraform examples to exclude EXCLUDE_TF_EXAMPLES=( - "metal_connection/shared_nimf_from_fcr.tf" \ - "metal_connection/shared_nimf_to_csp.tf" \ - "metal_connection/shared_no_token_metal_to_fabric.tf" \ - "metal_connection/shared_token_fabric_port_to_metal.tf" \ - "metal_connection/shared_token_metal_to_csp.tf" \ - "metal_bgp_session/example_1.tf" + "equinix_metal_connection/shared_no_token_metal_to_fabric.tf" \ + "equinix_metal_connection/shared_token_fabric_port_to_metal.tf" \ + "equinix_metal_connection/shared_token_metal_to_csp.tf" \ + "equinix_metal_bgp_session/example_1.tf" ) EXCLUDED_TF_EXAMPLES=() ALL_TF_EXAMPLES=() @@ -24,12 +22,6 @@ VERSION=$(.pulumi/bin/pulumictl get version --language generic) # Pulumi Equinix plugin version specified in the examples go.mod files GOLANG_VERSION="latest" -# Find all Pulumi.yaml files within the examples directory structure -EXISTING_PULUMI_EXAMPLES=() -while IFS= read -r -d '' yaml_file; do - EXISTING_PULUMI_EXAMPLES+=("$yaml_file") -done < <(find "$EXAMPLES_DIR" \( -name "go" -o -name "java" -o -name "python" -o -name "typescript" -o -name "csharp" \) -prune -o -name "Pulumi.yaml" -print0) - mappings() { local tf_file=$1 # Remove occurrences of ${path.module}/ @@ -121,7 +113,7 @@ generate_pulumi_yaml() { mappings "$tf_destination_file" # Generate Pulumi template - echo -e "\033[0;34m CONVERTING $normalized_path" + echo -e "\033[0;34m CONVERTING $normalized_path" >&2 .pulumi/bin/pulumi convert --cwd "$resource_dir" --from terraform --language yaml --out $resource_dir --generate-only "${tf_files[0]}" sed -i.bak $'1i\\\n# WARNING: This is an autogenerated file - manual changes will be overwritten if not made via ./scripts/generate_examples.sh\n' "$resource_dir/Pulumi.yaml" rm "$tf_destination_file" "$resource_dir"/*.bak @@ -173,7 +165,7 @@ generate_pulumi_yaml() { mappings "$tf_destination_file" # Execute the Terraform to YAML conversion - echo -e "\033[0;34m CONVERTING $normalized_path" + echo -e "\033[0;34m CONVERTING $normalized_path" >&2 .pulumi/bin/pulumi convert --cwd "$resource_dir" --from terraform --language yaml --out $resource_dir --generate-only $tf_file sed -i.bak $'1i\\\n# WARNING: This is an autogenerated file - manual changes will be overwritten if not made via ./scripts/generate_examples.sh\n' "$resource_dir/Pulumi.yaml" rm "$tf_destination_file" "$resource_dir"/*.bak @@ -193,6 +185,54 @@ generate_pulumi_yaml() { done } +# Find all Pulumi.yaml files within the examples directory structure +find_pulumi_examples() { + EXISTING_PULUMI_EXAMPLES=() + while IFS= read -r -d '' yaml_file; do + EXISTING_PULUMI_EXAMPLES+=("$yaml_file") + done < <(find "$EXAMPLES_DIR" \( -name "go" -o -name "java" -o -name "python" -o -name "typescript" -o -name "csharp" \) -prune -o -name "Pulumi.yaml" -print0) +} + +# Delete pulumi examples that no longer exist in Terraform +delete_nonexistent_pulumi_examples() { + # Normalize paths of the Terraform examples + for i in "${!ALL_TF_EXAMPLES[@]}"; do + tf_dir=$(dirname "${ALL_TF_EXAMPLES[$i]}") + if [ -d "$tf_dir" ]; then + ALL_TF_EXAMPLES[$i]=$(realpath "$tf_dir") + else + ALL_TF_EXAMPLES[$i]="$tf_dir" # Keep the original path if it doesn't exist + fi + done + + new_pulumi_examples=() + # Delete Pulumi examples that no longer exist in Terraform + for pulumi_example in "${EXISTING_PULUMI_EXAMPLES[@]}"; do + found=false + pulumi_example_dir=$(dirname "$pulumi_example") + if [ -d "$pulumi_example_dir" ]; then + pulumi_example_dir=$(realpath "$pulumi_example_dir") + fi + + for tf_example_dir in "${ALL_TF_EXAMPLES[@]}"; do + if [[ "$pulumi_example_dir" == "$tf_example_dir" ]]; then + found=true + break + fi + done + if [[ "$found" == false ]]; then + echo "NOT FOUND $pulumi_example_dir" + fi + if [[ "$found" == false && -f "$pulumi_example_dir/.autogenerated" ]]; then + echo -e "\n\033[0;33m Warning:\033[0m deleting autogenerated example that no longer exist in Terraform: $pulumi_example_dir" >&2 + rm -rf "$pulumi_example_dir" + else + new_pulumi_examples+=("$pulumi_example") + fi + done + EXISTING_PULUMI_EXAMPLES=("${new_pulumi_examples[@]}") +} + # Convert the Pulumi yaml generated with generate_pulumi_yaml function into all supported languages generate_examples_and_docs() { # Clean previous docs @@ -201,7 +241,7 @@ generate_examples_and_docs() { for yaml_file in "${EXISTING_PULUMI_EXAMPLES[@]}"; do NAME=$(awk '/^name:/ { print $2; exit }' "$yaml_file") - echo "Generating examples and docs for: $NAME" + echo "Generating examples and docs for: $NAME" >&2 # Normalize the NAME by replacing spaces and hyphens with underscores NORMALIZED_NAME="${NAME// /_}" @@ -279,7 +319,7 @@ EOF # Write out to the generated output file in docs directory echo "$OUTPUT" > "$OUTPUT_FILE" - echo "Output file generated: $OUTPUT_FILE" + echo "Output file generated: $OUTPUT_FILE" >&2 done } @@ -288,7 +328,7 @@ merge_example_files() { local RESULT_FILE_NAME="${1}.examples.md" local MERGED_FILE="${OUTPUT_DIR}/${RESULT_FILE_NAME}" - echo "Generating merged example: $RESULT_FILE_NAME" + echo "Generating merged example: $RESULT_FILE_NAME" >&2 # Find all example files with the specified prefix in OUTPUT_DIR local EXAMPLES_TO_MERGE=($(find "$OUTPUT_DIR" -maxdepth 1 -name "${1}_example*.examples.md" | sort -V)) @@ -306,51 +346,12 @@ merge_example_files() { # Write the merged content to the output file echo -e "## Example Usage\n\n$CONTENTS" > "$MERGED_FILE" - echo "Merged file generated: $MERGED_FILE" -} - -# Delete pulumi examples that no longer exist in Terraform -delete_nonexistent_pulumi_examples() { - # Normalize paths of the Terraform examples - for i in "${!ALL_TF_EXAMPLES[@]}"; do - tf_dir=$(dirname "${ALL_TF_EXAMPLES[$i]}") - if [ -d "$tf_dir" ]; then - ALL_TF_EXAMPLES[$i]=$(realpath "$tf_dir") - else - ALL_TF_EXAMPLES[$i]="$tf_dir" # Keep the original path if it doesn't exist - fi - done - - new_pulumi_examples=() - # Delete Pulumi examples that no longer exist in Terraform - for pulumi_example in "${EXISTING_PULUMI_EXAMPLES[@]}"; do - found=false - pulumi_example_dir=$(dirname "$pulumi_example") - if [ -d "$pulumi_example_dir" ]; then - pulumi_example_dir=$(realpath "$pulumi_example_dir") - fi - - for tf_example_dir in "${ALL_TF_EXAMPLES[@]}"; do - if [[ "$pulumi_example_dir" == "$tf_example_dir" ]]; then - found=true - break - fi - done - if [[ "$found" == false ]]; then - echo "NOT FOUND $pulumi_example_dir" - fi - if [[ "$found" == false && -f "$pulumi_example_dir/.autogenerated" ]]; then - echo -e "\n\033[0;33m Warning:\033[0m deleting autogenerated example that no longer exist in Terraform: $pulumi_example_dir" - rm -rf "$pulumi_example_dir" - else - new_pulumi_examples+=("$pulumi_example") - fi - done - EXISTING_PULUMI_EXAMPLES=("${new_pulumi_examples[@]}") + echo "Merged file generated: $MERGED_FILE" >&2 } ## main generate_pulumi_yaml +find_pulumi_examples delete_nonexistent_pulumi_examples generate_examples_and_docs @@ -369,9 +370,9 @@ merge_example_files "equinix_metal_vrf" # warning message for excluded files if [ ${#EXCLUDED_TF_EXAMPLES[@]} -gt 0 ]; then - echo -e "\n\033[0;33m Warning:\033[0m The following examples were not converted due to their complexity:" + echo -e "\n\033[0;33m Warning:\033[0m The following examples were not converted due to their complexity:" >&2 for excluded_file in "${EXCLUDED_TF_EXAMPLES[@]}"; do - echo " - $excluded_file" + echo " - $excluded_file" >&2 done - echo "Please manually update the Pulumi.yaml file for these resources in their respective directories in the examples section if any updates are expected." + echo "Please manually update the Pulumi.yaml file for these resources in their respective directories in the examples section if any updates are expected." >&2 fi diff --git a/upstream b/upstream index 5cf62406..9709376d 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 5cf62406a348bf8368ce2b8dc76dcf73a696af28 +Subproject commit 9709376d6ea0c2f43886994fbcbee448245b2f27