Skip to content

Commit

Permalink
feat: Upgrade terraform-provider-equinix to v2.5.0 (#206)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider equinix/pulumi-equinix
--kind=provider --target-bridge-version=latest --pr-assign=ocobles
--pr-title-prefix=feat:`.

---

- Updating Java Gen version from 0.14.0 to 0.16.1.
- Upgrading terraform-provider-equinix from 2.4.1  to 2.5.0.
  • Loading branch information
ocobles authored Sep 23, 2024
2 parents 937fe82 + 992518f commit 9ca0c50
Show file tree
Hide file tree
Showing 210 changed files with 5,794 additions and 365 deletions.
2 changes: 1 addition & 1 deletion .pulumi-java-gen.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0
0.16.1
248 changes: 248 additions & 0 deletions docs/resource/equinix_fabric_cloud_router.examples.md
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";
Expand Down Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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: yaml
resources:
newCloudRouter:
Expand Down
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
2 changes: 2 additions & 0 deletions examples/fabric/cloud_router/example_1/go/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: equinix-fabric-cloud_router-example_1
runtime: go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module equinix-fabric-cloud_router
module equinix-fabric-cloud_router-example_1

go 1.21

toolchain go1.21.13
toolchain go1.22.6

require (
github.com/equinix/pulumi-equinix/sdk latest
Expand Down
File renamed without changes.
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.pulumi</groupId>
<artifactId>equinix-fabric-cloud_router</artifactId>
<artifactId>equinix-fabric-cloud_router-example_1</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
Expand Down
2 changes: 2 additions & 0 deletions examples/fabric/cloud_router/example_1/python/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: equinix-fabric-cloud_router-example_1
runtime: python
2 changes: 2 additions & 0 deletions examples/fabric/cloud_router/example_1/typescript/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: equinix-fabric-cloud_router-example_1
runtime: nodejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "equinix-fabric-cloud_router",
"name": "equinix-fabric-cloud_router-example_1",
"devDependencies": {
"@types/node": "^14"
},
Expand Down
Empty file.
26 changes: 26 additions & 0 deletions examples/fabric/cloud_router/example_2/Pulumi.yaml
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
Loading

0 comments on commit 9ca0c50

Please sign in to comment.