-
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
dcc4346
commit fb2601c
Showing
124 changed files
with
1,462 additions
and
118 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.14.0 | ||
0.16.1 |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
## Example Usage | ||
|
||
{{% example %}} | ||
### example 1 | ||
```typescript | ||
import * as pulumi from "@pulumi/pulumi"; | ||
import * as equinix from "@equinix-labs/pulumi-equinix"; | ||
|
@@ -235,3 +237,249 @@ resources: | |
accountNumber: '203612' | ||
``` | ||
{{% /example %}} | ||
{{% example %}} | ||
### example 2 | ||
```typescript | ||
import * as pulumi from "@pulumi/pulumi"; | ||
import * as equinix from "@equinix-labs/pulumi-equinix"; | ||
|
||
const newCloudRouter = new equinix.fabric.CloudRouter("newCloudRouter", { | ||
name: "Router-SV", | ||
type: "XF_ROUTER", | ||
notifications: [{ | ||
type: "ALL", | ||
emails: [ | ||
"[email protected]", | ||
"[email protected]", | ||
], | ||
}], | ||
order: { | ||
purchaseOrderNumber: "1-323292", | ||
}, | ||
location: { | ||
metroCode: "SV", | ||
}, | ||
"package": { | ||
code: "STANDARD", | ||
}, | ||
project: { | ||
projectId: "776847000642406", | ||
}, | ||
marketplaceSubscription: { | ||
type: "AWS_MARKETPLACE_SUBSCRIPTION", | ||
uuid: "2823b8ae07-a2a2-45b4-a658-c3542bb24e9", | ||
}, | ||
}); | ||
``` | ||
```python | ||
import pulumi | ||
import pulumi_equinix as equinix | ||
|
||
new_cloud_router = equinix.fabric.CloudRouter("newCloudRouter", | ||
name="Router-SV", | ||
type="XF_ROUTER", | ||
notifications=[{ | ||
"type": "ALL", | ||
"emails": [ | ||
"[email protected]", | ||
"[email protected]", | ||
], | ||
}], | ||
order={ | ||
"purchase_order_number": "1-323292", | ||
}, | ||
location={ | ||
"metro_code": "SV", | ||
}, | ||
package={ | ||
"code": "STANDARD", | ||
}, | ||
project={ | ||
"project_id": "776847000642406", | ||
}, | ||
marketplace_subscription={ | ||
"type": "AWS_MARKETPLACE_SUBSCRIPTION", | ||
"uuid": "2823b8ae07-a2a2-45b4-a658-c3542bb24e9", | ||
}) | ||
``` | ||
```go | ||
package main | ||
|
||
import ( | ||
"github.com/equinix/pulumi-equinix/sdk/go/equinix/fabric" | ||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | ||
) | ||
|
||
func main() { | ||
pulumi.Run(func(ctx *pulumi.Context) error { | ||
_, err := fabric.NewCloudRouter(ctx, "newCloudRouter", &fabric.CloudRouterArgs{ | ||
Name: pulumi.String("Router-SV"), | ||
Type: pulumi.String("XF_ROUTER"), | ||
Notifications: fabric.CloudRouterNotificationArray{ | ||
&fabric.CloudRouterNotificationArgs{ | ||
Type: pulumi.String("ALL"), | ||
Emails: pulumi.StringArray{ | ||
pulumi.String("[email protected]"), | ||
pulumi.String("[email protected]"), | ||
}, | ||
}, | ||
}, | ||
Order: &fabric.CloudRouterOrderArgs{ | ||
PurchaseOrderNumber: pulumi.String("1-323292"), | ||
}, | ||
Location: &fabric.CloudRouterLocationArgs{ | ||
MetroCode: pulumi.String("SV"), | ||
}, | ||
Package: &fabric.CloudRouterPackageArgs{ | ||
Code: pulumi.String("STANDARD"), | ||
}, | ||
Project: &fabric.CloudRouterProjectArgs{ | ||
ProjectId: pulumi.String("776847000642406"), | ||
}, | ||
MarketplaceSubscription: &fabric.CloudRouterMarketplaceSubscriptionArgs{ | ||
Type: pulumi.String("AWS_MARKETPLACE_SUBSCRIPTION"), | ||
Uuid: pulumi.String("2823b8ae07-a2a2-45b4-a658-c3542bb24e9"), | ||
}, | ||
}) | ||
if err != nil { | ||
return err | ||
} | ||
return nil | ||
}) | ||
} | ||
``` | ||
```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", | ||
}, | ||
}); | ||
|
||
}); | ||
``` | ||
```java | ||
package generated_program; | ||
|
||
import com.pulumi.Context; | ||
import com.pulumi.Pulumi; | ||
import com.pulumi.core.Output; | ||
import com.pulumi.equinix.fabric.CloudRouter; | ||
import com.pulumi.equinix.fabric.CloudRouterArgs; | ||
import com.pulumi.equinix.fabric.inputs.CloudRouterNotificationArgs; | ||
import com.pulumi.equinix.fabric.inputs.CloudRouterOrderArgs; | ||
import com.pulumi.equinix.fabric.inputs.CloudRouterLocationArgs; | ||
import com.pulumi.equinix.fabric.inputs.CloudRouterPackageArgs; | ||
import com.pulumi.equinix.fabric.inputs.CloudRouterProjectArgs; | ||
import com.pulumi.equinix.fabric.inputs.CloudRouterMarketplaceSubscriptionArgs; | ||
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) { | ||
var newCloudRouter = new CloudRouter("newCloudRouter", CloudRouterArgs.builder() | ||
.name("Router-SV") | ||
.type("XF_ROUTER") | ||
.notifications(CloudRouterNotificationArgs.builder() | ||
.type("ALL") | ||
.emails( | ||
"[email protected]", | ||
"[email protected]") | ||
.build()) | ||
.order(CloudRouterOrderArgs.builder() | ||
.purchaseOrderNumber("1-323292") | ||
.build()) | ||
.location(CloudRouterLocationArgs.builder() | ||
.metroCode("SV") | ||
.build()) | ||
.package_(CloudRouterPackageArgs.builder() | ||
.code("STANDARD") | ||
.build()) | ||
.project(CloudRouterProjectArgs.builder() | ||
.projectId("776847000642406") | ||
.build()) | ||
.marketplaceSubscription(CloudRouterMarketplaceSubscriptionArgs.builder() | ||
.type("AWS_MARKETPLACE_SUBSCRIPTION") | ||
.uuid("2823b8ae07-a2a2-45b4-a658-c3542bb24e9") | ||
.build()) | ||
.build()); | ||
|
||
} | ||
} | ||
``` | ||
```yaml | ||
resources: | ||
newCloudRouter: | ||
type: equinix:fabric:CloudRouter | ||
name: new_cloud_router | ||
properties: | ||
name: Router-SV | ||
type: XF_ROUTER | ||
notifications: | ||
- type: ALL | ||
emails: | ||
- [email protected] | ||
- [email protected] | ||
order: | ||
purchaseOrderNumber: 1-323292 | ||
location: | ||
metroCode: SV | ||
package: | ||
code: STANDARD | ||
project: | ||
projectId: '776847000642406' | ||
marketplaceSubscription: | ||
type: AWS_MARKETPLACE_SUBSCRIPTION | ||
uuid: 2823b8ae07-a2a2-45b4-a658-c3542bb24e9 | ||
``` | ||
{{% /example %}} | ||
Empty file.
2 changes: 1 addition & 1 deletion
2
examples/fabric/cloud_router/Pulumi.yaml → ...fabric/cloud_router/example_1/Pulumi.yaml
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...es/fabric/cloud_router/csharp/Pulumi.yaml → ...cloud_router/example_1/csharp/Pulumi.yaml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# WARNING: This is an autogenerated file - manual changes will be overwritten if not made via ./scripts/generate_examples.sh | ||
name: equinix-fabric-cloud_router | ||
name: equinix-fabric-cloud_router-example_1 | ||
runtime: dotnet |
File renamed without changes.
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,2 @@ | ||
name: equinix-fabric-cloud_router-example_1 | ||
runtime: go |
4 changes: 2 additions & 2 deletions
4
examples/fabric/cloud_router/go/go.mod → ...s/fabric/cloud_router/example_1/go/go.mod
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ples/fabric/cloud_router/java/Pulumi.yaml → ...c/cloud_router/example_1/java/Pulumi.yaml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# WARNING: This is an autogenerated file - manual changes will be overwritten if not made via ./scripts/generate_examples.sh | ||
name: equinix-fabric-cloud_router | ||
name: equinix-fabric-cloud_router-example_1 | ||
runtime: java |
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
File renamed without changes.
File renamed without changes.
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,2 @@ | ||
name: equinix-fabric-cloud_router-example_1 | ||
runtime: python |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
examples/fabric/cloud_router/example_1/typescript/Pulumi.yaml
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,2 @@ | ||
name: equinix-fabric-cloud_router-example_1 | ||
runtime: nodejs |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...bric/cloud_router/typescript/package.json → ..._router/example_1/typescript/package.json
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
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# WARNING: This is an autogenerated file - manual changes will be overwritten if not made via ./scripts/generate_examples.sh | ||
name: equinix-fabric-cloud_router-example_2 | ||
runtime: yaml | ||
resources: | ||
newCloudRouter: | ||
type: equinix:fabric:CloudRouter | ||
name: new_cloud_router | ||
properties: | ||
name: Router-SV | ||
type: XF_ROUTER | ||
notifications: | ||
- type: ALL | ||
emails: | ||
- [email protected] | ||
- [email protected] | ||
order: | ||
purchaseOrderNumber: 1-323292 | ||
location: | ||
metroCode: SV | ||
package: | ||
code: STANDARD | ||
project: | ||
projectId: '776847000642406' | ||
marketplaceSubscription: | ||
type: AWS_MARKETPLACE_SUBSCRIPTION | ||
uuid: 2823b8ae07-a2a2-45b4-a658-c3542bb24e9 |
Oops, something went wrong.