Skip to content

Commit

Permalink
Upgrade terraform-provider-fastly to v5.0.0 (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
aq17 authored May 26, 2023
1 parent f23ad9f commit 97d4222
Show file tree
Hide file tree
Showing 57 changed files with 2,443 additions and 1,184 deletions.
767 changes: 379 additions & 388 deletions .github/workflows/main.yml

Large diffs are not rendered by default.

767 changes: 379 additions & 388 deletions .github/workflows/master.yml

Large diffs are not rendered by default.

648 changes: 317 additions & 331 deletions .github/workflows/run-acceptance-tests.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ builds:
- linux
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-fastly/provider/v7/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-fastly/provider/v8/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-fastly/
changelog:
skip: true
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ builds:
- linux
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-fastly/provider/v7/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-fastly/provider/v8/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-fastly/
changelog:
filters:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PACK := fastly
ORG := pulumi
PROJECT := github.com/$(ORG)/pulumi-$(PACK)
PROVIDER_PATH := provider/v7
PROVIDER_PATH := provider/v8
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
TFGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![NPM version](https://badge.fury.io/js/%40pulumi%2Ffastly.svg)](https://www.npmjs.com/package/@pulumi/fastly)
[![Python version](https://badge.fury.io/py/pulumi-fastly.svg)](https://pypi.org/project/pulumi-fastly)
[![NuGet version](https://badge.fury.io/nu/pulumi.fastly.svg)](https://badge.fury.io/nu/pulumi.fastly)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-fastly/sdk/v7/go)](https://pkg.go.dev/github.com/pulumi/pulumi-fastly/sdk/v7/go)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-fastly/sdk/v8/go)](https://pkg.go.dev/github.com/pulumi/pulumi-fastly/sdk/v8/go)
[![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-fastly/blob/master/LICENSE)

# Fastly Resource Provider
Expand Down Expand Up @@ -35,7 +35,7 @@ To use from Python, install using `pip`:

To use from Go, use `go get` to grab the latest version of the library

$ go get github.com/pulumi/pulumi-fastly/sdk/v7
$ go get github.com/pulumi/pulumi-fastly/sdk/v8

### .NET

Expand All @@ -47,9 +47,9 @@ To use from .NET, install using `dotnet add package`:

The following configuration points are available:

- `fastly:apiKey` - (Required) This is the API key. It must be provided, but it can also be sourced from the `FASTLY_API_KEY`
- `fastly:apiKey` - (Required) This is the API key. It must be provided, but it can also be sourced from the `FASTLY_API_KEY`
environment variable
- `fastly:baseUrl` - (Optional) This is the API server hostname. It is required if using a private instance of the API and
- `fastly:baseUrl` - (Optional) This is the API server hostname. It is required if using a private instance of the API and
otherwise defaults to the public Fastly production service. It can also be sourced from the `FASTLY_API_URL` environment variable

## Reference
Expand Down
4 changes: 4 additions & 0 deletions provider/cmd/pulumi-resource-fastly/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@
"fastly_ip_ranges": {
"current": "fastly:index/getFastlyIpRanges:getFastlyIpRanges"
},
"fastly_package_hash": {
"current": "fastly:index/getPackageHash:getPackageHash"
},
"fastly_services": {
"current": "fastly:index/getServices:getServices"
},
Expand Down Expand Up @@ -430,6 +433,7 @@
"fastly:index/getDatacenters:getDatacenters": "fastly_datacenters",
"fastly:index/getDictionaries:getDictionaries": "fastly_dictionaries",
"fastly:index/getFastlyIpRanges:getFastlyIpRanges": "fastly_ip_ranges",
"fastly:index/getPackageHash:getPackageHash": "fastly_package_hash",
"fastly:index/getServices:getServices": "fastly_services",
"fastly:index/getTlsActivation:getTlsActivation": "fastly_tls_activation",
"fastly:index/getTlsActivationIds:getTlsActivationIds": "fastly_tls_activation_ids",
Expand Down
4 changes: 2 additions & 2 deletions provider/cmd/pulumi-resource-fastly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package main
import (
_ "embed"

fastly "github.com/pulumi/pulumi-fastly/provider/v7"
"github.com/pulumi/pulumi-fastly/provider/v7/pkg/version"
fastly "github.com/pulumi/pulumi-fastly/provider/v8"
"github.com/pulumi/pulumi-fastly/provider/v8/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
)

Expand Down
90 changes: 67 additions & 23 deletions provider/cmd/pulumi-resource-fastly/schema.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/cmd/pulumi-tfgen-fastly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package main
import (
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"

fastly "github.com/pulumi/pulumi-fastly/provider/v7"
"github.com/pulumi/pulumi-fastly/provider/v7/pkg/version"
fastly "github.com/pulumi/pulumi-fastly/provider/v8"
"github.com/pulumi/pulumi-fastly/provider/v8/pkg/version"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/pulumi/pulumi-fastly/provider/v7
module github.com/pulumi/pulumi-fastly/provider/v8

go 1.19

require (
github.com/fastly/terraform-provider-fastly v0.0.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.47.2
github.com/pulumi/pulumi/sdk/v3 v3.67.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.47.3
github.com/pulumi/pulumi/sdk/v3 v3.68.0
)

require (
Expand Down Expand Up @@ -72,15 +72,15 @@ require (
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/cloudflare/circl v1.1.0 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/ettle/strcase v0.1.1 // indirect
github.com/fastly/go-fastly/v8 v8.0.1 // indirect
github.com/fastly/go-fastly/v8 v8.3.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
Expand Down Expand Up @@ -177,7 +177,7 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.2 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.3 // indirect
github.com/pulumi/pulumi-yaml v1.1.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.67.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.68.0 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e // indirect
github.com/rivo/uniseg v0.2.0 // indirect
Expand Down
19 changes: 10 additions & 9 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6D
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY=
github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
Expand Down Expand Up @@ -725,8 +726,8 @@ github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLi
github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/evanphx/json-patch/v5 v5.5.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4=
github.com/fastly/go-fastly/v8 v8.0.1 h1:szuF1hTOycRKGfEJ3yFeNOYPggNmfjcnXI7TVN4Ryws=
github.com/fastly/go-fastly/v8 v8.0.1/go.mod h1:m/QWKyZsuH8Ow3tDkRLqlbvbJdxalRGkTT3ZKxZJ4eo=
github.com/fastly/go-fastly/v8 v8.3.0 h1:aDE8KxwN9B5g8TRJ2lVDFFtrWVrk2sWArMjxNQgPe8s=
github.com/fastly/go-fastly/v8 v8.3.0/go.mod h1:m/QWKyZsuH8Ow3tDkRLqlbvbJdxalRGkTT3ZKxZJ4eo=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
Expand Down Expand Up @@ -1670,16 +1671,16 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T
github.com/pulumi/pulumi-java/pkg v0.9.2 h1:fpBwf1NHf3j5YuigOWsXPvJCAFivEp1D6aOlYIrSbr0=
github.com/pulumi/pulumi-java/pkg v0.9.2/go.mod h1:+5V4jggi3063hksi28zYvLm42UWVg3VqpR6qGZraIdM=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.47.2 h1:uNrHr+VQJ5e8GzLt8c3iBG32KHjG3Z2YBvtTncsy39U=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.47.2/go.mod h1:bXuzPzwY73LZH5+EgdSlHTV8ed09p51ztpca2G13fLI=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.47.3 h1:8xncSOiUZAgBFjcC3eUsjCmhYDUwppNNl7iOC8CAstY=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.47.3/go.mod h1:bDKHLW8vhuhmOUVdcSK8aAIRU8fqx8ZqqREO13Rx/uc=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.3 h1:1SmRVwRnrplcdBVVgoKYL8xqW8dCeiQPSwpGkx4ga6U=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.3/go.mod h1:n0TS1WsPjOfto6hyDZbXfNZQuLli2X9iDWt2nzmQJsg=
github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=
github.com/pulumi/pulumi-yaml v1.1.1/go.mod h1:GhpdS6rFpwqvUtKdA+fQy8P28iNvncng39IXh5q68vE=
github.com/pulumi/pulumi/pkg/v3 v3.67.0 h1:lazKzFT+aHd6I32TnBr66TKnMlVRgcc5YaY55MVcoR8=
github.com/pulumi/pulumi/pkg/v3 v3.67.0/go.mod h1:vyXT0rEsMTla3MSR4JIdXEoff9KOqwtuwsrU7faDa7k=
github.com/pulumi/pulumi/sdk/v3 v3.67.0 h1:ED5eeIlLIaZdn5+wMoNS30ihVJJeA/c9hgTsOREVtpE=
github.com/pulumi/pulumi/sdk/v3 v3.67.0/go.mod h1:RbSUT1ZWIbOtMk6vjNwBbRGIS9mlcI78sY56KDZyAd8=
github.com/pulumi/pulumi/pkg/v3 v3.68.0 h1:JeJAAJiVe6JliNRKI1ABYPfUJ3Fcy72qYoVZJSOjvNE=
github.com/pulumi/pulumi/pkg/v3 v3.68.0/go.mod h1:4uJVC8hkWk0PxTx/d64da9x3IUJxBGR6RXi8eUv7Rvk=
github.com/pulumi/pulumi/sdk/v3 v3.68.0 h1:JWn3DGJhzoWL8bNbUdyLSSPeKS2F9mv14/EL9QeVT3w=
github.com/pulumi/pulumi/sdk/v3 v3.68.0/go.mod h1:A/WHc5MlxU8GpX/sRmfQ9G0/Bxxl4GNdSP7TQmy4yIw=
github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo=
github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
Expand Down
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"unicode"

"github.com/fastly/terraform-provider-fastly/fastly"
"github.com/pulumi/pulumi-fastly/provider/v7/pkg/version"
"github.com/pulumi/pulumi-fastly/provider/v8/pkg/version"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/x"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
Expand Down
169 changes: 169 additions & 0 deletions sdk/dotnet/GetPackageHash.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Fastly
{
public static class GetPackageHash
{
/// <summary>
/// Use this data source to generate a SHA512 hash of all files (in sorted order) within the package.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Fastly = Pulumi.Fastly;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var examplePackageHash = Fastly.GetPackageHash.Invoke(new()
/// {
/// Filename = "./path/to/package.tar.gz",
/// });
///
/// // ...
/// var exampleServiceCompute = new Fastly.ServiceCompute("exampleServiceCompute", new()
/// {
/// Package = new Fastly.Inputs.ServiceComputePackageArgs
/// {
/// Filename = "./path/to/package.tar.gz",
/// SourceCodeHash = examplePackageHash.Apply(getPackageHashResult =&gt; getPackageHashResult.Hash),
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetPackageHashResult> InvokeAsync(GetPackageHashArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetPackageHashResult>("fastly:index/getPackageHash:getPackageHash", args ?? new GetPackageHashArgs(), options.WithDefaults());

/// <summary>
/// Use this data source to generate a SHA512 hash of all files (in sorted order) within the package.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Fastly = Pulumi.Fastly;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var examplePackageHash = Fastly.GetPackageHash.Invoke(new()
/// {
/// Filename = "./path/to/package.tar.gz",
/// });
///
/// // ...
/// var exampleServiceCompute = new Fastly.ServiceCompute("exampleServiceCompute", new()
/// {
/// Package = new Fastly.Inputs.ServiceComputePackageArgs
/// {
/// Filename = "./path/to/package.tar.gz",
/// SourceCodeHash = examplePackageHash.Apply(getPackageHashResult =&gt; getPackageHashResult.Hash),
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetPackageHashResult> Invoke(GetPackageHashInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetPackageHashResult>("fastly:index/getPackageHash:getPackageHash", args ?? new GetPackageHashInvokeArgs(), options.WithDefaults());
}


public sealed class GetPackageHashArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The contents of the Wasm deployment package as a base64 encoded string (e.g. could be provided using an input variable or via external data source output variable). Conflicts with `filename`. Exactly one of these two arguments must be specified
/// </summary>
[Input("content")]
public string? Content { get; set; }

/// <summary>
/// The path to the Wasm deployment package within your local filesystem. Conflicts with `content`. Exactly one of these two arguments must be specified
/// </summary>
[Input("filename")]
public string? Filename { get; set; }

public GetPackageHashArgs()
{
}
public static new GetPackageHashArgs Empty => new GetPackageHashArgs();
}

public sealed class GetPackageHashInvokeArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The contents of the Wasm deployment package as a base64 encoded string (e.g. could be provided using an input variable or via external data source output variable). Conflicts with `filename`. Exactly one of these two arguments must be specified
/// </summary>
[Input("content")]
public Input<string>? Content { get; set; }

/// <summary>
/// The path to the Wasm deployment package within your local filesystem. Conflicts with `content`. Exactly one of these two arguments must be specified
/// </summary>
[Input("filename")]
public Input<string>? Filename { get; set; }

public GetPackageHashInvokeArgs()
{
}
public static new GetPackageHashInvokeArgs Empty => new GetPackageHashInvokeArgs();
}


[OutputType]
public sealed class GetPackageHashResult
{
/// <summary>
/// The contents of the Wasm deployment package as a base64 encoded string (e.g. could be provided using an input variable or via external data source output variable). Conflicts with `filename`. Exactly one of these two arguments must be specified
/// </summary>
public readonly string? Content;
/// <summary>
/// The path to the Wasm deployment package within your local filesystem. Conflicts with `content`. Exactly one of these two arguments must be specified
/// </summary>
public readonly string? Filename;
/// <summary>
/// A SHA512 hash of all files (in sorted order) within the package.
/// </summary>
public readonly string Hash;
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
public readonly string Id;

[OutputConstructor]
private GetPackageHashResult(
string? content,

string? filename,

string hash,

string id)
{
Content = content;
Filename = filename;
Hash = hash;
Id = id;
}
}
}
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/ServiceComputePackageArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public sealed class ServiceComputePackageArgs : global::Pulumi.ResourceArgs
[Input("filename")]
public Input<string>? Filename { get; set; }

/// <summary>
/// Used to trigger updates. Must be set to a SHA512 hash of all files (in sorted order) within the package. The usual way to set this is using the fastly*package*hash data source.
/// </summary>
[Input("sourceCodeHash")]
public Input<string>? SourceCodeHash { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/ServiceComputePackageGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public sealed class ServiceComputePackageGetArgs : global::Pulumi.ResourceArgs
[Input("filename")]
public Input<string>? Filename { get; set; }

/// <summary>
/// Used to trigger updates. Must be set to a SHA512 hash of all files (in sorted order) within the package. The usual way to set this is using the fastly*package*hash data source.
/// </summary>
[Input("sourceCodeHash")]
public Input<string>? SourceCodeHash { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions sdk/dotnet/Outputs/ServiceComputePackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public sealed class ServiceComputePackage
/// The path to the Wasm deployment package within your local filesystem. Conflicts with `content`. Exactly one of these two arguments must be specified
/// </summary>
public readonly string? Filename;
/// <summary>
/// Used to trigger updates. Must be set to a SHA512 hash of all files (in sorted order) within the package. The usual way to set this is using the fastly*package*hash data source.
/// </summary>
public readonly string? SourceCodeHash;

[OutputConstructor]
Expand Down
2 changes: 1 addition & 1 deletion sdk/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pulumi/pulumi-fastly/sdk/v7
module github.com/pulumi/pulumi-fastly/sdk/v8

go 1.19

Expand Down
Loading

0 comments on commit 97d4222

Please sign in to comment.