Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgrade terraform-provider-equinix to v2.5.0 #206

Merged
merged 4 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the provider upgrade fail with 0.14.0? The CI job avoids upgrading pulumi-java so that we can be confident we are only reviewing changes from the provider and not from elsewhere. Ideally we should replicate that behavior when manually upgrading the upstream provider.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I executed the command upgrade-provider equinix/pulumi-equinix --kind=provider --target-bridge-version=latest --pr-assign=ocobles --pr-title-prefix=feat: without the --java-version arg and it seems that if you don't specify the java version it updates to the latest version available. However, I don't see any changes in the SDK generation and it fixes some bugs internally pulumi/pulumi-java@v0.14.0...v0.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
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
Loading