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 v3.1.0 #242

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
## Example Usage
{{% example %}}
```typescript
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@equinix-labs/pulumi-equinix";

const test = new equinix.fabric.ServiceToken("test", {
type: "VC_TOKEN",
description: "Zside Network Service Token",
expirationDateTime: "2025-01-18T06:43:49.986Z",
serviceTokenConnections: [{
type: "EVPL_VC",
supportedBandwidths: [
50,
200,
10000,
],
zSides: [{
accessPointSelectors: [{
type: "NETWORK",
network: {
uuid: "<network_uuid>",
},
}],
}],
}],
notifications: [{
type: "ALL",
emails: ["[email protected]"],
}],
});
```
```python
import pulumi
import pulumi_equinix as equinix

test = equinix.fabric.ServiceToken("test",
type="VC_TOKEN",
description="Zside Network Service Token",
expiration_date_time="2025-01-18T06:43:49.986Z",
service_token_connections=[{
"type": "EVPL_VC",
"supported_bandwidths": [
50,
200,
10000,
],
"z_sides": [{
"access_point_selectors": [{
"type": "NETWORK",
"network": {
"uuid": "<network_uuid>",
},
}],
}],
}],
notifications=[{
"type": "ALL",
"emails": ["[email protected]"],
}])
```
```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.NewServiceToken(ctx, "test", &fabric.ServiceTokenArgs{
Type: pulumi.String("VC_TOKEN"),
Description: pulumi.String("Zside Network Service Token"),
ExpirationDateTime: pulumi.String("2025-01-18T06:43:49.986Z"),
ServiceTokenConnections: fabric.ServiceTokenServiceTokenConnectionArray{
&fabric.ServiceTokenServiceTokenConnectionArgs{
Type: pulumi.String("EVPL_VC"),
SupportedBandwidths: pulumi.IntArray{
pulumi.Int(50),
pulumi.Int(200),
pulumi.Int(10000),
},
ZSides: fabric.ServiceTokenServiceTokenConnectionZSideArray{
&fabric.ServiceTokenServiceTokenConnectionZSideArgs{
AccessPointSelectors: fabric.ServiceTokenServiceTokenConnectionZSideAccessPointSelectorArray{
&fabric.ServiceTokenServiceTokenConnectionZSideAccessPointSelectorArgs{
Type: pulumi.String("NETWORK"),
Network: &fabric.ServiceTokenServiceTokenConnectionZSideAccessPointSelectorNetworkArgs{
Uuid: pulumi.String("<network_uuid>"),
},
},
},
},
},
},
},
Notifications: fabric.ServiceTokenNotificationArray{
&fabric.ServiceTokenNotificationArgs{
Type: pulumi.String("ALL"),
Emails: pulumi.StringArray{
pulumi.String("[email protected]"),
},
},
},
})
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 test = new Equinix.Fabric.ServiceToken("test", new()
{
Type = "VC_TOKEN",
Description = "Zside Network Service Token",
ExpirationDateTime = "2025-01-18T06:43:49.986Z",
ServiceTokenConnections = new[]
{
new Equinix.Fabric.Inputs.ServiceTokenServiceTokenConnectionArgs
{
Type = "EVPL_VC",
SupportedBandwidths = new[]
{
50,
200,
10000,
},
ZSides = new[]
{
new Equinix.Fabric.Inputs.ServiceTokenServiceTokenConnectionZSideArgs
{
AccessPointSelectors = new[]
{
new Equinix.Fabric.Inputs.ServiceTokenServiceTokenConnectionZSideAccessPointSelectorArgs
{
Type = "NETWORK",
Network = new Equinix.Fabric.Inputs.ServiceTokenServiceTokenConnectionZSideAccessPointSelectorNetworkArgs
{
Uuid = "<network_uuid>",
},
},
},
},
},
},
},
Notifications = new[]
{
new Equinix.Fabric.Inputs.ServiceTokenNotificationArgs
{
Type = "ALL",
Emails = new[]
{
"[email protected]",
},
},
},
});

});
```
```java
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.equinix.fabric.ServiceToken;
import com.pulumi.equinix.fabric.ServiceTokenArgs;
import com.pulumi.equinix.fabric.inputs.ServiceTokenServiceTokenConnectionArgs;
import com.pulumi.equinix.fabric.inputs.ServiceTokenNotificationArgs;
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 test = new ServiceToken("test", ServiceTokenArgs.builder()
.type("VC_TOKEN")
.description("Zside Network Service Token")
.expirationDateTime("2025-01-18T06:43:49.986Z")
.serviceTokenConnections(ServiceTokenServiceTokenConnectionArgs.builder()
.type("EVPL_VC")
.supportedBandwidths(
50,
200,
10000)
.zSides(ServiceTokenServiceTokenConnectionZSideArgs.builder()
.accessPointSelectors(ServiceTokenServiceTokenConnectionZSideAccessPointSelectorArgs.builder()
.type("NETWORK")
.network(ServiceTokenServiceTokenConnectionZSideAccessPointSelectorNetworkArgs.builder()
.uuid("<network_uuid>")
.build())
.build())
.build())
.build())
.notifications(ServiceTokenNotificationArgs.builder()
.type("ALL")
.emails("[email protected]")
.build())
.build());

}
}
```
```yaml
resources:
test:
type: equinix:fabric:ServiceToken
properties:
type: VC_TOKEN
description: Zside Network Service Token
expirationDateTime: 2025-01-18T06:43:49.986Z
serviceTokenConnections:
- type: EVPL_VC
supportedBandwidths:
- 50
- 200
- 10000
zSides:
- accessPointSelectors:
- type: NETWORK
network:
uuid: <network_uuid>
notifications:
- type: ALL
emails:
- [email protected]
```
{{% /example %}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pulumi" Version="3.*" />
<PackageReference Include="Pulumi.Equinix" Version="(, 1.0.0)" />
<PackageReference Include="Pulumi.Equinix" Version="0.20.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/fabric/cloud_router/example_1/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module equinix-fabric-cloud_router-example_1

go 1.21

toolchain go1.23.3
toolchain go1.23.4

require (
github.com/equinix/pulumi-equinix/sdk latest
Expand Down
2 changes: 1 addition & 1 deletion examples/fabric/cloud_router/example_1/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.pulumi</groupId>
<artifactId>equinix</artifactId>
<version>(,1.0)</version>
<version>0.20.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulumi>=3.0.0,<4.0.0
pulumi_equinix==<1.0.0
pulumi_equinix==0.20.0
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "^3.0.0",
"@equinix-labs/pulumi-equinix": "<1.0.0"
"@equinix-labs/pulumi-equinix": "0.20.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pulumi" Version="3.*" />
<PackageReference Include="Pulumi.Equinix" Version="(, 1.0.0)" />
<PackageReference Include="Pulumi.Equinix" Version="0.20.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/fabric/cloud_router/example_2/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module equinix-fabric-cloud_router-example_2

go 1.21

toolchain go1.23.3
toolchain go1.23.4

require (
github.com/equinix/pulumi-equinix/sdk latest
Expand Down
2 changes: 1 addition & 1 deletion examples/fabric/cloud_router/example_2/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.pulumi</groupId>
<artifactId>equinix</artifactId>
<version>(,1.0)</version>
<version>0.20.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulumi>=3.0.0,<4.0.0
pulumi_equinix==<1.0.0
pulumi_equinix==0.20.0
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "^3.0.0",
"@equinix-labs/pulumi-equinix": "<1.0.0"
"@equinix-labs/pulumi-equinix": "0.20.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pulumi" Version="3.*" />
<PackageReference Include="Pulumi.Equinix" Version="(, 1.0.0)" />
<PackageReference Include="Pulumi.Equinix" Version="0.20.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/fabric/connection/example_fcr_to_azure/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module equinix-fabric-connection-example_fcr_to_azure

go 1.21

toolchain go1.23.3
toolchain go1.23.4

require (
github.com/equinix/pulumi-equinix/sdk latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.pulumi</groupId>
<artifactId>equinix</artifactId>
<version>(,1.0)</version>
<version>0.20.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulumi>=3.0.0,<4.0.0
pulumi_equinix==<1.0.0
pulumi_equinix==0.20.0
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "^3.0.0",
"@equinix-labs/pulumi-equinix": "<1.0.0"
"@equinix-labs/pulumi-equinix": "0.20.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pulumi" Version="3.*" />
<PackageReference Include="Pulumi.Equinix" Version="(, 1.0.0)" />
<PackageReference Include="Pulumi.Equinix" Version="0.20.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/fabric/connection/example_fcr_to_metal/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module equinix-fabric-connection-example_fcr_to_metal

go 1.21

toolchain go1.23.3
toolchain go1.23.4

require (
github.com/equinix/pulumi-equinix/sdk latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.pulumi</groupId>
<artifactId>equinix</artifactId>
<version>(,1.0)</version>
<version>0.20.0</version>
</dependency>
</dependencies>

Expand Down
Loading
Loading