-
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.
Upgrade terraform-provider-fastly to v5.0.0 (#270)
- Loading branch information
Showing
57 changed files
with
2,443 additions
and
1,184 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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,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(() => | ||
/// { | ||
/// 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 => 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(() => | ||
/// { | ||
/// 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 => 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; | ||
} | ||
} | ||
} |
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
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
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
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,4 +1,4 @@ | ||
module github.com/pulumi/pulumi-fastly/sdk/v7 | ||
module github.com/pulumi/pulumi-fastly/sdk/v8 | ||
|
||
go 1.19 | ||
|
||
|
Oops, something went wrong.