initial commit
This commit is contained in:
3
sdk/.gitignore
generated
vendored
Normal file
3
sdk/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/nodejs/bin/
|
||||
/nodejs/node_modules/
|
||||
/python/bin/
|
||||
46
sdk/dotnet/Config/Config.cs
generated
Normal file
46
sdk/dotnet/Config/Config.cs
generated
Normal file
@@ -0,0 +1,46 @@
|
||||
// *** 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.Immutable;
|
||||
|
||||
namespace Pulumi.Xyz
|
||||
{
|
||||
public static class Config
|
||||
{
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
|
||||
"Double underscore prefix used to avoid conflicts with variable names.")]
|
||||
private sealed class __Value<T>
|
||||
{
|
||||
private readonly Func<T> _getter;
|
||||
private T _value = default!;
|
||||
private bool _set;
|
||||
|
||||
public __Value(Func<T> getter)
|
||||
{
|
||||
_getter = getter;
|
||||
}
|
||||
|
||||
public T Get() => _set ? _value : _getter();
|
||||
|
||||
public void Set(T value)
|
||||
{
|
||||
_value = value;
|
||||
_set = true;
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("xyz");
|
||||
|
||||
private static readonly __Value<Pulumi.Xyz.Region.Region?> _region = new __Value<Pulumi.Xyz.Region.Region?>(() => __config.GetObject<Pulumi.Xyz.Region.Region>("region"));
|
||||
/// <summary>
|
||||
/// A region which should be used.
|
||||
/// </summary>
|
||||
public static Pulumi.Xyz.Region.Region? Region
|
||||
{
|
||||
get => _region.Get();
|
||||
set => _region.Set(value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
1
sdk/dotnet/Config/README.md
generated
Normal file
1
sdk/dotnet/Config/README.md
generated
Normal file
@@ -0,0 +1 @@
|
||||
A Pulumi package for creating and managing xyz cloud resources.
|
||||
67
sdk/dotnet/GetDataSource.cs
generated
Normal file
67
sdk/dotnet/GetDataSource.cs
generated
Normal file
@@ -0,0 +1,67 @@
|
||||
// *** 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.Xyz
|
||||
{
|
||||
public static class GetDataSource
|
||||
{
|
||||
public static Task<GetDataSourceResult> InvokeAsync(GetDataSourceArgs args, InvokeOptions? options = null)
|
||||
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDataSourceResult>("xyz:index/getDataSource:getDataSource", args ?? new GetDataSourceArgs(), options.WithDefaults());
|
||||
|
||||
public static Output<GetDataSourceResult> Invoke(GetDataSourceInvokeArgs args, InvokeOptions? options = null)
|
||||
=> global::Pulumi.Deployment.Instance.Invoke<GetDataSourceResult>("xyz:index/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults());
|
||||
|
||||
public static Output<GetDataSourceResult> Invoke(GetDataSourceInvokeArgs args, InvokeOutputOptions options)
|
||||
=> global::Pulumi.Deployment.Instance.Invoke<GetDataSourceResult>("xyz:index/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults());
|
||||
}
|
||||
|
||||
|
||||
public sealed class GetDataSourceArgs : global::Pulumi.InvokeArgs
|
||||
{
|
||||
[Input("sampleAttribute", required: true)]
|
||||
public string SampleAttribute { get; set; } = null!;
|
||||
|
||||
public GetDataSourceArgs()
|
||||
{
|
||||
}
|
||||
public static new GetDataSourceArgs Empty => new GetDataSourceArgs();
|
||||
}
|
||||
|
||||
public sealed class GetDataSourceInvokeArgs : global::Pulumi.InvokeArgs
|
||||
{
|
||||
[Input("sampleAttribute", required: true)]
|
||||
public Input<string> SampleAttribute { get; set; } = null!;
|
||||
|
||||
public GetDataSourceInvokeArgs()
|
||||
{
|
||||
}
|
||||
public static new GetDataSourceInvokeArgs Empty => new GetDataSourceInvokeArgs();
|
||||
}
|
||||
|
||||
|
||||
[OutputType]
|
||||
public sealed class GetDataSourceResult
|
||||
{
|
||||
/// <summary>
|
||||
/// The provider-assigned unique ID for this managed resource.
|
||||
/// </summary>
|
||||
public readonly string Id;
|
||||
public readonly string SampleAttribute;
|
||||
|
||||
[OutputConstructor]
|
||||
private GetDataSourceResult(
|
||||
string id,
|
||||
|
||||
string sampleAttribute)
|
||||
{
|
||||
Id = id;
|
||||
SampleAttribute = sampleAttribute;
|
||||
}
|
||||
}
|
||||
}
|
||||
59
sdk/dotnet/Provider.cs
generated
Normal file
59
sdk/dotnet/Provider.cs
generated
Normal file
@@ -0,0 +1,59 @@
|
||||
// *** 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.Xyz
|
||||
{
|
||||
/// <summary>
|
||||
/// The provider type for the xyz package. By default, resources use package-wide configuration
|
||||
/// settings, however an explicit `Provider` instance may be created and passed during resource
|
||||
/// construction to achieve fine-grained programmatic control over provider settings. See the
|
||||
/// [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
||||
/// </summary>
|
||||
[XyzResourceType("pulumi:providers:xyz")]
|
||||
public partial class Provider : global::Pulumi.ProviderResource
|
||||
{
|
||||
/// <summary>
|
||||
/// Create a Provider resource with the given unique name, arguments, and options.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resource</param>
|
||||
/// <param name="args">The arguments used to populate this resource's properties</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
|
||||
: base("xyz", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
||||
{
|
||||
var defaultOptions = new CustomResourceOptions
|
||||
{
|
||||
Version = Utilities.Version,
|
||||
};
|
||||
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
||||
// Override the ID if one was specified for consistency with other language SDKs.
|
||||
merged.Id = id ?? merged.Id;
|
||||
return merged;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ProviderArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// A region which should be used.
|
||||
/// </summary>
|
||||
[Input("region", json: true)]
|
||||
public Input<Pulumi.Xyz.Region.Region>? Region { get; set; }
|
||||
|
||||
public ProviderArgs()
|
||||
{
|
||||
}
|
||||
public static new ProviderArgs Empty => new ProviderArgs();
|
||||
}
|
||||
}
|
||||
61
sdk/dotnet/Pulumi.Xyz.csproj
generated
Normal file
61
sdk/dotnet/Pulumi.Xyz.csproj
generated
Normal file
@@ -0,0 +1,61 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Authors>Pulumi</Authors>
|
||||
<Company>Pulumi</Company>
|
||||
<Description>A Pulumi package for creating and managing xyz cloud resources.</Description>
|
||||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://www.pulumi.com</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/pulumi/pulumi-xyz</RepositoryUrl>
|
||||
<PackageIcon>logo.png</PackageIcon>
|
||||
<Version>1.0.0-alpha.0+dev</Version>
|
||||
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<NoWarn>1701;1702;1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
|
||||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="version.txt" />
|
||||
<None Include="version.txt" Pack="True" PackagePath="content" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="pulumi-plugin.json" />
|
||||
<None Include="pulumi-plugin.json" Pack="True" PackagePath="content" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Pulumi" Version="3.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="logo.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
0
sdk/dotnet/Pulumi.yaml
generated
Normal file
0
sdk/dotnet/Pulumi.yaml
generated
Normal file
1
sdk/dotnet/README.md
generated
Normal file
1
sdk/dotnet/README.md
generated
Normal file
@@ -0,0 +1 @@
|
||||
A Pulumi package for creating and managing xyz cloud resources.
|
||||
37
sdk/dotnet/Region/Enums.cs
generated
Normal file
37
sdk/dotnet/Region/Enums.cs
generated
Normal file
@@ -0,0 +1,37 @@
|
||||
// *** 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.ComponentModel;
|
||||
using Pulumi;
|
||||
|
||||
namespace Pulumi.Xyz.Region
|
||||
{
|
||||
[EnumType]
|
||||
public readonly struct Region : IEquatable<Region>
|
||||
{
|
||||
private readonly string _value;
|
||||
|
||||
private Region(string value)
|
||||
{
|
||||
_value = value ?? throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
public static Region Here { get; } = new Region("HERE");
|
||||
public static Region OverThere { get; } = new Region("OVER_THERE");
|
||||
|
||||
public static bool operator ==(Region left, Region right) => left.Equals(right);
|
||||
public static bool operator !=(Region left, Region right) => !left.Equals(right);
|
||||
|
||||
public static explicit operator string(Region value) => value._value;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override bool Equals(object? obj) => obj is Region other && Equals(other);
|
||||
public bool Equals(Region other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
||||
|
||||
public override string ToString() => _value;
|
||||
}
|
||||
}
|
||||
1
sdk/dotnet/Region/README.md
generated
Normal file
1
sdk/dotnet/Region/README.md
generated
Normal file
@@ -0,0 +1 @@
|
||||
A Pulumi package for creating and managing xyz cloud resources.
|
||||
92
sdk/dotnet/Resource.cs
generated
Normal file
92
sdk/dotnet/Resource.cs
generated
Normal file
@@ -0,0 +1,92 @@
|
||||
// *** 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.Xyz
|
||||
{
|
||||
[XyzResourceType("xyz:index/resource:Resource")]
|
||||
public partial class Resource : global::Pulumi.CustomResource
|
||||
{
|
||||
/// <summary>
|
||||
/// Sample attribute.
|
||||
/// </summary>
|
||||
[Output("sampleAttribute")]
|
||||
public Output<string?> SampleAttribute { get; private set; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create a Resource resource with the given unique name, arguments, and options.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resource</param>
|
||||
/// <param name="args">The arguments used to populate this resource's properties</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public Resource(string name, ResourceArgs? args = null, CustomResourceOptions? options = null)
|
||||
: base("xyz:index/resource:Resource", name, args ?? new ResourceArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private Resource(string name, Input<string> id, ResourceState? state = null, CustomResourceOptions? options = null)
|
||||
: base("xyz:index/resource:Resource", name, state, MakeResourceOptions(options, id))
|
||||
{
|
||||
}
|
||||
|
||||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
||||
{
|
||||
var defaultOptions = new CustomResourceOptions
|
||||
{
|
||||
Version = Utilities.Version,
|
||||
};
|
||||
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
||||
// Override the ID if one was specified for consistency with other language SDKs.
|
||||
merged.Id = id ?? merged.Id;
|
||||
return merged;
|
||||
}
|
||||
/// <summary>
|
||||
/// Get an existing Resource resource's state with the given name, ID, and optional extra
|
||||
/// properties used to qualify the lookup.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resulting resource.</param>
|
||||
/// <param name="id">The unique provider ID of the resource to lookup.</param>
|
||||
/// <param name="state">Any extra arguments used during the lookup.</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public static Resource Get(string name, Input<string> id, ResourceState? state = null, CustomResourceOptions? options = null)
|
||||
{
|
||||
return new Resource(name, id, state, options);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ResourceArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Sample attribute.
|
||||
/// </summary>
|
||||
[Input("sampleAttribute")]
|
||||
public Input<string>? SampleAttribute { get; set; }
|
||||
|
||||
public ResourceArgs()
|
||||
{
|
||||
}
|
||||
public static new ResourceArgs Empty => new ResourceArgs();
|
||||
}
|
||||
|
||||
public sealed class ResourceState : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Sample attribute.
|
||||
/// </summary>
|
||||
[Input("sampleAttribute")]
|
||||
public Input<string>? SampleAttribute { get; set; }
|
||||
|
||||
public ResourceState()
|
||||
{
|
||||
}
|
||||
public static new ResourceState Empty => new ResourceState();
|
||||
}
|
||||
}
|
||||
90
sdk/dotnet/Utilities.cs
generated
Normal file
90
sdk/dotnet/Utilities.cs
generated
Normal file
@@ -0,0 +1,90 @@
|
||||
// *** 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! ***
|
||||
|
||||
namespace Pulumi.Xyz
|
||||
{
|
||||
static class Utilities
|
||||
{
|
||||
public static string? GetEnv(params string[] names)
|
||||
{
|
||||
foreach (var n in names)
|
||||
{
|
||||
var value = global::System.Environment.GetEnvironmentVariable(n);
|
||||
if (value != null)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static string[] trueValues = { "1", "t", "T", "true", "TRUE", "True" };
|
||||
static string[] falseValues = { "0", "f", "F", "false", "FALSE", "False" };
|
||||
public static bool? GetEnvBoolean(params string[] names)
|
||||
{
|
||||
var s = GetEnv(names);
|
||||
if (s != null)
|
||||
{
|
||||
if (global::System.Array.IndexOf(trueValues, s) != -1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (global::System.Array.IndexOf(falseValues, s) != -1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int? GetEnvInt32(params string[] names) => int.TryParse(GetEnv(names), out int v) ? (int?)v : null;
|
||||
|
||||
public static double? GetEnvDouble(params string[] names) => double.TryParse(GetEnv(names), out double v) ? (double?)v : null;
|
||||
|
||||
[global::System.Obsolete("Please use WithDefaults instead")]
|
||||
public static global::Pulumi.InvokeOptions WithVersion(this global::Pulumi.InvokeOptions? options)
|
||||
{
|
||||
var dst = options ?? new global::Pulumi.InvokeOptions{};
|
||||
dst.Version = options?.Version ?? Version;
|
||||
return dst;
|
||||
}
|
||||
|
||||
public static global::Pulumi.InvokeOptions WithDefaults(this global::Pulumi.InvokeOptions? src)
|
||||
{
|
||||
var dst = src ?? new global::Pulumi.InvokeOptions{};
|
||||
dst.Version = src?.Version ?? Version;
|
||||
return dst;
|
||||
}
|
||||
|
||||
public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src)
|
||||
{
|
||||
var dst = src ?? new global::Pulumi.InvokeOutputOptions{};
|
||||
dst.Version = src?.Version ?? Version;
|
||||
return dst;
|
||||
}
|
||||
|
||||
private readonly static string version;
|
||||
public static string Version => version;
|
||||
|
||||
static Utilities()
|
||||
{
|
||||
var assembly = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Utilities)).Assembly;
|
||||
using var stream = assembly.GetManifestResourceStream("Pulumi.Xyz.version.txt");
|
||||
using var reader = new global::System.IO.StreamReader(stream ?? throw new global::System.NotSupportedException("Missing embedded version.txt file"));
|
||||
version = reader.ReadToEnd().Trim();
|
||||
var parts = version.Split("\n");
|
||||
if (parts.Length == 2)
|
||||
{
|
||||
// The first part is the provider name.
|
||||
version = parts[1].Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class XyzResourceTypeAttribute : global::Pulumi.ResourceTypeAttribute
|
||||
{
|
||||
public XyzResourceTypeAttribute(string type) : base(type, Utilities.Version)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
3
sdk/dotnet/go.mod
generated
Normal file
3
sdk/dotnet/go.mod
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
module fake_dotnet_module // Exclude this directory from Go tools
|
||||
|
||||
go 1.17
|
||||
BIN
sdk/dotnet/logo.png
generated
Normal file
BIN
sdk/dotnet/logo.png
generated
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
5
sdk/dotnet/pulumi-plugin.json
generated
Normal file
5
sdk/dotnet/pulumi-plugin.json
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "xyz",
|
||||
"version": "1.0.0-alpha.0+dev"
|
||||
}
|
||||
93
sdk/go.mod
generated
Normal file
93
sdk/go.mod
generated
Normal file
@@ -0,0 +1,93 @@
|
||||
module github.com/pulumi/pulumi-xyz/sdk
|
||||
|
||||
go 1.22
|
||||
|
||||
toolchain go1.22.11
|
||||
|
||||
require (
|
||||
github.com/blang/semver v3.5.1+incompatible
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.160.0
|
||||
)
|
||||
|
||||
require (
|
||||
dario.cat/mergo v1.0.0 // indirect
|
||||
github.com/BurntSushi/toml v1.2.1 // indirect
|
||||
github.com/Microsoft/go-winio v0.6.1 // indirect
|
||||
github.com/ProtonMail/go-crypto v1.1.3 // indirect
|
||||
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
|
||||
github.com/agext/levenshtein v1.2.3 // indirect
|
||||
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
|
||||
github.com/atotto/clipboard v0.1.4 // indirect
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
||||
github.com/charmbracelet/bubbles v0.16.1 // indirect
|
||||
github.com/charmbracelet/bubbletea v0.25.0 // indirect
|
||||
github.com/charmbracelet/lipgloss v0.7.1 // indirect
|
||||
github.com/cheggaaa/pb v1.0.29 // indirect
|
||||
github.com/cloudflare/circl v1.3.7 // indirect
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
|
||||
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
|
||||
github.com/djherbis/times v1.5.0 // indirect
|
||||
github.com/emirpasic/gods v1.18.1 // indirect
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
|
||||
github.com/go-git/go-billy/v5 v5.6.1 // indirect
|
||||
github.com/go-git/go-git/v5 v5.13.1 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang/glog v1.2.4 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
|
||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||
github.com/hashicorp/hcl/v2 v2.17.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
||||
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-localereader v0.0.1 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||
github.com/mitchellh/go-ps v1.0.0 // indirect
|
||||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
|
||||
github.com/muesli/cancelreader v0.2.2 // indirect
|
||||
github.com/muesli/reflow v0.3.0 // indirect
|
||||
github.com/muesli/termenv v0.15.2 // indirect
|
||||
github.com/opentracing/basictracer-go v1.1.0 // indirect
|
||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||
github.com/pgavlin/fx v0.1.6 // indirect
|
||||
github.com/pjbgf/sha1cd v0.3.0 // indirect
|
||||
github.com/pkg/errors v0.9.1 // indirect
|
||||
github.com/pkg/term v1.1.0 // indirect
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
|
||||
github.com/pulumi/esc v0.9.1 // indirect
|
||||
github.com/rivo/uniseg v0.4.4 // indirect
|
||||
github.com/rogpeppe/go-internal v1.12.0 // indirect
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
|
||||
github.com/skeema/knownhosts v1.3.0 // indirect
|
||||
github.com/spf13/cast v1.4.1 // indirect
|
||||
github.com/spf13/cobra v1.7.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
|
||||
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
||||
github.com/zclconf/go-cty v1.13.2 // indirect
|
||||
go.uber.org/atomic v1.9.0 // indirect
|
||||
golang.org/x/crypto v0.33.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
|
||||
golang.org/x/mod v0.19.0 // indirect
|
||||
golang.org/x/net v0.35.0 // indirect
|
||||
golang.org/x/sync v0.11.0 // indirect
|
||||
golang.org/x/sys v0.30.0 // indirect
|
||||
golang.org/x/term v0.29.0 // indirect
|
||||
golang.org/x/text v0.22.0 // indirect
|
||||
golang.org/x/tools v0.23.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
|
||||
google.golang.org/grpc v1.63.2 // indirect
|
||||
google.golang.org/protobuf v1.34.2 // indirect
|
||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
lukechampine.com/frand v1.4.2 // indirect
|
||||
)
|
||||
283
sdk/go.sum
generated
Normal file
283
sdk/go.sum
generated
Normal file
@@ -0,0 +1,283 @@
|
||||
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
|
||||
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
|
||||
github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
|
||||
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
||||
github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM=
|
||||
github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo=
|
||||
github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY=
|
||||
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
|
||||
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
|
||||
github.com/ProtonMail/go-crypto v1.1.3 h1:nRBOetoydLeUb4nHajyO2bKqMLfWQ/ZPwkXqXxPxCFk=
|
||||
github.com/ProtonMail/go-crypto v1.1.3/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE=
|
||||
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY=
|
||||
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA=
|
||||
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
|
||||
github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
|
||||
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
|
||||
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
|
||||
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
|
||||
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
|
||||
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
|
||||
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
|
||||
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
|
||||
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
|
||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
|
||||
github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
|
||||
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
|
||||
github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY=
|
||||
github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc=
|
||||
github.com/charmbracelet/bubbletea v0.25.0 h1:bAfwk7jRz7FKFl9RzlIULPkStffg5k6pNt5dywy4TcM=
|
||||
github.com/charmbracelet/bubbletea v0.25.0/go.mod h1:EN3QDR1T5ZdWmdfDzYcqOCAps45+QIJbLOBxmVNWNNg=
|
||||
github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E=
|
||||
github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c=
|
||||
github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo=
|
||||
github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30=
|
||||
github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
|
||||
github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/cyphar/filepath-securejoin v0.3.6 h1:4d9N5ykBnSp5Xn2JkhocYDkOpURL/18CYMpo6xB9uWM=
|
||||
github.com/cyphar/filepath-securejoin v0.3.6/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU=
|
||||
github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0=
|
||||
github.com/elazarl/goproxy v1.2.3 h1:xwIyKHbaP5yfT6O9KIeYJR5549MXRQkoQMRXGztz8YQ=
|
||||
github.com/elazarl/goproxy v1.2.3/go.mod h1:YfEbZtqP4AetfO6d40vWchF3znWX7C7Vd6ZMfdL8z64=
|
||||
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
|
||||
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
|
||||
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
|
||||
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c=
|
||||
github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU=
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic=
|
||||
github.com/go-git/go-billy/v5 v5.6.1 h1:u+dcrgaguSSkbjzHwelEjc0Yj300NUevrrPphk/SoRA=
|
||||
github.com/go-git/go-billy/v5 v5.6.1/go.mod h1:0AsLr1z2+Uksi4NlElmMblP5rPcDZNRCD8ujZCRR2BE=
|
||||
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4=
|
||||
github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII=
|
||||
github.com/go-git/go-git/v5 v5.13.1 h1:DAQ9APonnlvSWpvolXWIuV6Q6zXy2wHbN4cVlNR5Q+M=
|
||||
github.com/go-git/go-git/v5 v5.13.1/go.mod h1:qryJB4cSBoq3FRoBRf5A77joojuBcmPJ0qu3XXXVixc=
|
||||
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc=
|
||||
github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
|
||||
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU=
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
|
||||
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
|
||||
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
|
||||
github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY=
|
||||
github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4=
|
||||
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
||||
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
|
||||
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
|
||||
github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
|
||||
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
|
||||
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
|
||||
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
|
||||
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
|
||||
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
|
||||
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc=
|
||||
github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg=
|
||||
github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0=
|
||||
github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0=
|
||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=
|
||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
|
||||
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
|
||||
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
|
||||
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
|
||||
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
|
||||
github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo=
|
||||
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
|
||||
github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
|
||||
github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY=
|
||||
github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0=
|
||||
github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc=
|
||||
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
|
||||
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=
|
||||
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
|
||||
github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
|
||||
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
|
||||
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
|
||||
github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk=
|
||||
github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0=
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
|
||||
github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs=
|
||||
github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.160.0 h1:OxeATnIEqWyu3KpTeLUmyJdZaSEE6yX7ECvfGhByb9w=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.160.0/go.mod h1:YEbbl0N7eVsgfsL7h5215dDf8GBSe4AnRon7Ya/KIVc=
|
||||
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
|
||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
|
||||
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/skeema/knownhosts v1.3.0 h1:AM+y0rI04VksttfwjkSTNQorvGqmwATnvnAHpSgc0LY=
|
||||
github.com/skeema/knownhosts v1.3.0/go.mod h1:sPINvnADmT/qYH1kfv+ePMmOBTH6Tbl7b5LvTDjFK7M=
|
||||
github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA=
|
||||
github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
|
||||
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=
|
||||
github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8=
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg=
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
|
||||
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
|
||||
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0=
|
||||
github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
|
||||
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
|
||||
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
|
||||
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
|
||||
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8=
|
||||
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
|
||||
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8=
|
||||
golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
|
||||
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
|
||||
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
|
||||
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
|
||||
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
|
||||
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg=
|
||||
golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de h1:cZGRis4/ot9uVm639a+rHCUaG0JJHEsdyzSQTMX+suY=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY=
|
||||
google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM=
|
||||
google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA=
|
||||
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
|
||||
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
|
||||
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw=
|
||||
lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s=
|
||||
pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA=
|
||||
pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
|
||||
0
sdk/go/Pulumi.yaml
generated
Normal file
0
sdk/go/Pulumi.yaml
generated
Normal file
17
sdk/go/xyz/config/config.go
generated
Normal file
17
sdk/go/xyz/config/config.go
generated
Normal file
@@ -0,0 +1,17 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
|
||||
)
|
||||
|
||||
var _ = internal.GetEnvOrDefault
|
||||
|
||||
// A region which should be used.
|
||||
func GetRegion(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "xyz:region")
|
||||
}
|
||||
2
sdk/go/xyz/doc.go
generated
Normal file
2
sdk/go/xyz/doc.go
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
// A Pulumi package for creating and managing xyz cloud resources.
|
||||
package xyz
|
||||
80
sdk/go/xyz/getDataSource.go
generated
Normal file
80
sdk/go/xyz/getDataSource.go
generated
Normal file
@@ -0,0 +1,80 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package xyz
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
func GetDataSource(ctx *pulumi.Context, args *GetDataSourceArgs, opts ...pulumi.InvokeOption) (*GetDataSourceResult, error) {
|
||||
opts = internal.PkgInvokeDefaultOpts(opts)
|
||||
var rv GetDataSourceResult
|
||||
err := ctx.Invoke("xyz:index/getDataSource:getDataSource", args, &rv, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &rv, nil
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getDataSource.
|
||||
type GetDataSourceArgs struct {
|
||||
SampleAttribute string `pulumi:"sampleAttribute"`
|
||||
}
|
||||
|
||||
// A collection of values returned by getDataSource.
|
||||
type GetDataSourceResult struct {
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
Id string `pulumi:"id"`
|
||||
SampleAttribute string `pulumi:"sampleAttribute"`
|
||||
}
|
||||
|
||||
func GetDataSourceOutput(ctx *pulumi.Context, args GetDataSourceOutputArgs, opts ...pulumi.InvokeOption) GetDataSourceResultOutput {
|
||||
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
||||
ApplyT(func(v interface{}) (GetDataSourceResultOutput, error) {
|
||||
args := v.(GetDataSourceArgs)
|
||||
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
||||
return ctx.InvokeOutput("xyz:index/getDataSource:getDataSource", args, GetDataSourceResultOutput{}, options).(GetDataSourceResultOutput), nil
|
||||
}).(GetDataSourceResultOutput)
|
||||
}
|
||||
|
||||
// A collection of arguments for invoking getDataSource.
|
||||
type GetDataSourceOutputArgs struct {
|
||||
SampleAttribute pulumi.StringInput `pulumi:"sampleAttribute"`
|
||||
}
|
||||
|
||||
func (GetDataSourceOutputArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*GetDataSourceArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
// A collection of values returned by getDataSource.
|
||||
type GetDataSourceResultOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (GetDataSourceResultOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*GetDataSourceResult)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o GetDataSourceResultOutput) ToGetDataSourceResultOutput() GetDataSourceResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o GetDataSourceResultOutput) ToGetDataSourceResultOutputWithContext(ctx context.Context) GetDataSourceResultOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// The provider-assigned unique ID for this managed resource.
|
||||
func (o GetDataSourceResultOutput) Id() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v GetDataSourceResult) string { return v.Id }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o GetDataSourceResultOutput) SampleAttribute() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v GetDataSourceResult) string { return v.SampleAttribute }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(GetDataSourceResultOutput{})
|
||||
}
|
||||
66
sdk/go/xyz/init.go
generated
Normal file
66
sdk/go/xyz/init.go
generated
Normal file
@@ -0,0 +1,66 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package xyz
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type module struct {
|
||||
version semver.Version
|
||||
}
|
||||
|
||||
func (m *module) Version() semver.Version {
|
||||
return m.version
|
||||
}
|
||||
|
||||
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
|
||||
switch typ {
|
||||
case "xyz:index/resource:Resource":
|
||||
r = &Resource{}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown resource type: %s", typ)
|
||||
}
|
||||
|
||||
err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
|
||||
return
|
||||
}
|
||||
|
||||
type pkg struct {
|
||||
version semver.Version
|
||||
}
|
||||
|
||||
func (p *pkg) Version() semver.Version {
|
||||
return p.version
|
||||
}
|
||||
|
||||
func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pulumi.ProviderResource, error) {
|
||||
if typ != "pulumi:providers:xyz" {
|
||||
return nil, fmt.Errorf("unknown provider type: %s", typ)
|
||||
}
|
||||
|
||||
r := &Provider{}
|
||||
err := ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
|
||||
return r, err
|
||||
}
|
||||
|
||||
func init() {
|
||||
version, err := internal.PkgVersion()
|
||||
if err != nil {
|
||||
version = semver.Version{Major: 1}
|
||||
}
|
||||
pulumi.RegisterResourceModule(
|
||||
"xyz",
|
||||
"index/resource",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourcePackage(
|
||||
"xyz",
|
||||
&pkg{version},
|
||||
)
|
||||
}
|
||||
184
sdk/go/xyz/internal/pulumiUtilities.go
generated
Normal file
184
sdk/go/xyz/internal/pulumiUtilities.go
generated
Normal file
@@ -0,0 +1,184 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
import (
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/internals"
|
||||
)
|
||||
|
||||
type envParser func(v string) interface{}
|
||||
|
||||
func ParseEnvBool(v string) interface{} {
|
||||
b, err := strconv.ParseBool(v)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func ParseEnvInt(v string) interface{} {
|
||||
i, err := strconv.ParseInt(v, 0, 0)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return int(i)
|
||||
}
|
||||
|
||||
func ParseEnvFloat(v string) interface{} {
|
||||
f, err := strconv.ParseFloat(v, 64)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return f
|
||||
}
|
||||
|
||||
func ParseEnvStringArray(v string) interface{} {
|
||||
var result pulumi.StringArray
|
||||
for _, item := range strings.Split(v, ";") {
|
||||
result = append(result, pulumi.String(item))
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func GetEnvOrDefault(def interface{}, parser envParser, vars ...string) interface{} {
|
||||
for _, v := range vars {
|
||||
if value, ok := os.LookupEnv(v); ok {
|
||||
if parser != nil {
|
||||
return parser(value)
|
||||
}
|
||||
return value
|
||||
}
|
||||
}
|
||||
return def
|
||||
}
|
||||
|
||||
// PkgVersion uses reflection to determine the version of the current package.
|
||||
// If a version cannot be determined, v1 will be assumed. The second return
|
||||
// value is always nil.
|
||||
func PkgVersion() (semver.Version, error) {
|
||||
// emptyVersion defaults to v0.0.0
|
||||
if !SdkVersion.Equals(semver.Version{}) {
|
||||
return SdkVersion, nil
|
||||
}
|
||||
type sentinal struct{}
|
||||
pkgPath := reflect.TypeOf(sentinal{}).PkgPath()
|
||||
re := regexp.MustCompile("^.*/pulumi-xyz/sdk(/v\\d+)?")
|
||||
if match := re.FindStringSubmatch(pkgPath); match != nil {
|
||||
vStr := match[1]
|
||||
if len(vStr) == 0 { // If the version capture group was empty, default to v1.
|
||||
return semver.Version{Major: 1}, nil
|
||||
}
|
||||
return semver.MustParse(fmt.Sprintf("%s.0.0", vStr[2:])), nil
|
||||
}
|
||||
return semver.Version{Major: 1}, nil
|
||||
}
|
||||
|
||||
// isZero is a null safe check for if a value is it's types zero value.
|
||||
func IsZero(v interface{}) bool {
|
||||
if v == nil {
|
||||
return true
|
||||
}
|
||||
return reflect.ValueOf(v).IsZero()
|
||||
}
|
||||
|
||||
func CallPlain(
|
||||
ctx *pulumi.Context,
|
||||
tok string,
|
||||
args pulumi.Input,
|
||||
output pulumi.Output,
|
||||
self pulumi.Resource,
|
||||
property string,
|
||||
resultPtr reflect.Value,
|
||||
errorPtr *error,
|
||||
opts ...pulumi.InvokeOption,
|
||||
) {
|
||||
res, err := callPlainInner(ctx, tok, args, output, self, opts...)
|
||||
if err != nil {
|
||||
*errorPtr = err
|
||||
return
|
||||
}
|
||||
|
||||
v := reflect.ValueOf(res)
|
||||
|
||||
// extract res.property field if asked to do so
|
||||
if property != "" {
|
||||
v = v.FieldByName("Res")
|
||||
}
|
||||
|
||||
// return by setting the result pointer; this style of returns shortens the generated code without generics
|
||||
resultPtr.Elem().Set(v)
|
||||
}
|
||||
|
||||
func callPlainInner(
|
||||
ctx *pulumi.Context,
|
||||
tok string,
|
||||
args pulumi.Input,
|
||||
output pulumi.Output,
|
||||
self pulumi.Resource,
|
||||
opts ...pulumi.InvokeOption,
|
||||
) (any, error) {
|
||||
o, err := ctx.Call(tok, args, output, self, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
outputData, err := internals.UnsafeAwaitOutput(ctx.Context(), o)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
|
||||
known := outputData.Known
|
||||
value := outputData.Value
|
||||
secret := outputData.Secret
|
||||
|
||||
problem := ""
|
||||
if !known {
|
||||
problem = "an unknown value"
|
||||
} else if secret {
|
||||
problem = "a secret value"
|
||||
}
|
||||
|
||||
if problem != "" {
|
||||
return nil, fmt.Errorf("Plain resource method %q incorrectly returned %s. "+
|
||||
"This is an error in the provider, please report this to the provider developer.",
|
||||
tok, problem)
|
||||
}
|
||||
|
||||
return value, nil
|
||||
}
|
||||
|
||||
// PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource.
|
||||
func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
|
||||
defaults := []pulumi.ResourceOption{}
|
||||
|
||||
version := semver.MustParse("1.0.0-alpha.0+dev")
|
||||
if !version.Equals(semver.Version{}) {
|
||||
defaults = append(defaults, pulumi.Version(version.String()))
|
||||
}
|
||||
return append(defaults, opts...)
|
||||
}
|
||||
|
||||
// PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke.
|
||||
func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
|
||||
defaults := []pulumi.InvokeOption{}
|
||||
|
||||
version := semver.MustParse("1.0.0-alpha.0+dev")
|
||||
if !version.Equals(semver.Version{}) {
|
||||
defaults = append(defaults, pulumi.Version(version.String()))
|
||||
}
|
||||
return append(defaults, opts...)
|
||||
}
|
||||
11
sdk/go/xyz/internal/pulumiVersion.go
generated
Normal file
11
sdk/go/xyz/internal/pulumiVersion.go
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"github.com/blang/semver"
|
||||
)
|
||||
|
||||
var SdkVersion semver.Version = semver.Version{}
|
||||
var pluginDownloadURL string = ""
|
||||
90
sdk/go/xyz/provider.go
generated
Normal file
90
sdk/go/xyz/provider.go
generated
Normal file
@@ -0,0 +1,90 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package xyz
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/internal"
|
||||
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/region"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
// The provider type for the xyz package. By default, resources use package-wide configuration
|
||||
// settings, however an explicit `Provider` instance may be created and passed during resource
|
||||
// construction to achieve fine-grained programmatic control over provider settings. See the
|
||||
// [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
||||
type Provider struct {
|
||||
pulumi.ProviderResourceState
|
||||
}
|
||||
|
||||
// NewProvider registers a new resource with the given unique name, arguments, and options.
|
||||
func NewProvider(ctx *pulumi.Context,
|
||||
name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error) {
|
||||
if args == nil {
|
||||
args = &ProviderArgs{}
|
||||
}
|
||||
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Provider
|
||||
err := ctx.RegisterResource("pulumi:providers:xyz", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
type providerArgs struct {
|
||||
// A region which should be used.
|
||||
Region *region.Region `pulumi:"region"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Provider resource.
|
||||
type ProviderArgs struct {
|
||||
// A region which should be used.
|
||||
Region region.RegionPtrInput
|
||||
}
|
||||
|
||||
func (ProviderArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*providerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ProviderInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToProviderOutput() ProviderOutput
|
||||
ToProviderOutputWithContext(ctx context.Context) ProviderOutput
|
||||
}
|
||||
|
||||
func (*Provider) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Provider) ToProviderOutput() ProviderOutput {
|
||||
return i.ToProviderOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput)
|
||||
}
|
||||
|
||||
type ProviderOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ProviderOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutput() ProviderOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{})
|
||||
pulumi.RegisterOutputType(ProviderOutput{})
|
||||
}
|
||||
5
sdk/go/xyz/pulumi-plugin.json
generated
Normal file
5
sdk/go/xyz/pulumi-plugin.json
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "xyz",
|
||||
"version": "1.0.0-alpha.0+dev"
|
||||
}
|
||||
183
sdk/go/xyz/region/pulumiEnums.go
generated
Normal file
183
sdk/go/xyz/region/pulumiEnums.go
generated
Normal file
@@ -0,0 +1,183 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package region
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type Region string
|
||||
|
||||
const (
|
||||
RegionHere = Region("HERE")
|
||||
RegionOverThere = Region("OVER_THERE")
|
||||
)
|
||||
|
||||
func (Region) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Region)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e Region) ToRegionOutput() RegionOutput {
|
||||
return pulumi.ToOutput(e).(RegionOutput)
|
||||
}
|
||||
|
||||
func (e Region) ToRegionOutputWithContext(ctx context.Context) RegionOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(RegionOutput)
|
||||
}
|
||||
|
||||
func (e Region) ToRegionPtrOutput() RegionPtrOutput {
|
||||
return e.ToRegionPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e Region) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput {
|
||||
return Region(e).ToRegionOutputWithContext(ctx).ToRegionPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e Region) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e Region) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e Region) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e Region) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type RegionOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (RegionOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Region)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToRegionOutput() RegionOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToRegionOutputWithContext(ctx context.Context) RegionOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToRegionPtrOutput() RegionPtrOutput {
|
||||
return o.ToRegionPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v Region) *Region {
|
||||
return &v
|
||||
}).(RegionPtrOutput)
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e Region) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o RegionOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e Region) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type RegionPtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (RegionPtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Region)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o RegionPtrOutput) ToRegionPtrOutput() RegionPtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RegionPtrOutput) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RegionPtrOutput) Elem() RegionOutput {
|
||||
return o.ApplyT(func(v *Region) Region {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret Region
|
||||
return ret
|
||||
}).(RegionOutput)
|
||||
}
|
||||
|
||||
func (o RegionPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o RegionPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *Region) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// RegionInput is an input type that accepts values of the Region enum
|
||||
// A concrete instance of `RegionInput` can be one of the following:
|
||||
//
|
||||
// RegionHere
|
||||
// RegionOverThere
|
||||
type RegionInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToRegionOutput() RegionOutput
|
||||
ToRegionOutputWithContext(context.Context) RegionOutput
|
||||
}
|
||||
|
||||
var regionPtrType = reflect.TypeOf((**Region)(nil)).Elem()
|
||||
|
||||
type RegionPtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToRegionPtrOutput() RegionPtrOutput
|
||||
ToRegionPtrOutputWithContext(context.Context) RegionPtrOutput
|
||||
}
|
||||
|
||||
type regionPtr string
|
||||
|
||||
func RegionPtr(v string) RegionPtrInput {
|
||||
return (*regionPtr)(&v)
|
||||
}
|
||||
|
||||
func (*regionPtr) ElementType() reflect.Type {
|
||||
return regionPtrType
|
||||
}
|
||||
|
||||
func (in *regionPtr) ToRegionPtrOutput() RegionPtrOutput {
|
||||
return pulumi.ToOutput(in).(RegionPtrOutput)
|
||||
}
|
||||
|
||||
func (in *regionPtr) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(RegionPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*RegionInput)(nil)).Elem(), Region("HERE"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*RegionPtrInput)(nil)).Elem(), Region("HERE"))
|
||||
pulumi.RegisterOutputType(RegionOutput{})
|
||||
pulumi.RegisterOutputType(RegionPtrOutput{})
|
||||
}
|
||||
214
sdk/go/xyz/resource.go
generated
Normal file
214
sdk/go/xyz/resource.go
generated
Normal file
@@ -0,0 +1,214 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package xyz
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi-xyz/sdk/go/xyz/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type Resource struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// Sample attribute.
|
||||
SampleAttribute pulumi.StringPtrOutput `pulumi:"sampleAttribute"`
|
||||
}
|
||||
|
||||
// NewResource registers a new resource with the given unique name, arguments, and options.
|
||||
func NewResource(ctx *pulumi.Context,
|
||||
name string, args *ResourceArgs, opts ...pulumi.ResourceOption) (*Resource, error) {
|
||||
if args == nil {
|
||||
args = &ResourceArgs{}
|
||||
}
|
||||
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Resource
|
||||
err := ctx.RegisterResource("xyz:index/resource:Resource", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetResource gets an existing Resource resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetResource(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *ResourceState, opts ...pulumi.ResourceOption) (*Resource, error) {
|
||||
var resource Resource
|
||||
err := ctx.ReadResource("xyz:index/resource:Resource", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Resource resources.
|
||||
type resourceState struct {
|
||||
// Sample attribute.
|
||||
SampleAttribute *string `pulumi:"sampleAttribute"`
|
||||
}
|
||||
|
||||
type ResourceState struct {
|
||||
// Sample attribute.
|
||||
SampleAttribute pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ResourceState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*resourceState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type resourceArgs struct {
|
||||
// Sample attribute.
|
||||
SampleAttribute *string `pulumi:"sampleAttribute"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Resource resource.
|
||||
type ResourceArgs struct {
|
||||
// Sample attribute.
|
||||
SampleAttribute pulumi.StringPtrInput
|
||||
}
|
||||
|
||||
func (ResourceArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*resourceArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ResourceInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToResourceOutput() ResourceOutput
|
||||
ToResourceOutputWithContext(ctx context.Context) ResourceOutput
|
||||
}
|
||||
|
||||
func (*Resource) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Resource)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Resource) ToResourceOutput() ResourceOutput {
|
||||
return i.ToResourceOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Resource) ToResourceOutputWithContext(ctx context.Context) ResourceOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ResourceOutput)
|
||||
}
|
||||
|
||||
// ResourceArrayInput is an input type that accepts ResourceArray and ResourceArrayOutput values.
|
||||
// You can construct a concrete instance of `ResourceArrayInput` via:
|
||||
//
|
||||
// ResourceArray{ ResourceArgs{...} }
|
||||
type ResourceArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToResourceArrayOutput() ResourceArrayOutput
|
||||
ToResourceArrayOutputWithContext(context.Context) ResourceArrayOutput
|
||||
}
|
||||
|
||||
type ResourceArray []ResourceInput
|
||||
|
||||
func (ResourceArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*Resource)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ResourceArray) ToResourceArrayOutput() ResourceArrayOutput {
|
||||
return i.ToResourceArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ResourceArray) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ResourceArrayOutput)
|
||||
}
|
||||
|
||||
// ResourceMapInput is an input type that accepts ResourceMap and ResourceMapOutput values.
|
||||
// You can construct a concrete instance of `ResourceMapInput` via:
|
||||
//
|
||||
// ResourceMap{ "key": ResourceArgs{...} }
|
||||
type ResourceMapInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToResourceMapOutput() ResourceMapOutput
|
||||
ToResourceMapOutputWithContext(context.Context) ResourceMapOutput
|
||||
}
|
||||
|
||||
type ResourceMap map[string]ResourceInput
|
||||
|
||||
func (ResourceMap) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*Resource)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i ResourceMap) ToResourceMapOutput() ResourceMapOutput {
|
||||
return i.ToResourceMapOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i ResourceMap) ToResourceMapOutputWithContext(ctx context.Context) ResourceMapOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ResourceMapOutput)
|
||||
}
|
||||
|
||||
type ResourceOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ResourceOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Resource)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ResourceOutput) ToResourceOutput() ResourceOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ResourceOutput) ToResourceOutputWithContext(ctx context.Context) ResourceOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
// Sample attribute.
|
||||
func (o ResourceOutput) SampleAttribute() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Resource) pulumi.StringPtrOutput { return v.SampleAttribute }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type ResourceArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ResourceArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]*Resource)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ResourceArrayOutput) ToResourceArrayOutput() ResourceArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ResourceArrayOutput) ToResourceArrayOutputWithContext(ctx context.Context) ResourceArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ResourceArrayOutput) Index(i pulumi.IntInput) ResourceOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Resource {
|
||||
return vs[0].([]*Resource)[vs[1].(int)]
|
||||
}).(ResourceOutput)
|
||||
}
|
||||
|
||||
type ResourceMapOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ResourceMapOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*map[string]*Resource)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ResourceMapOutput) ToResourceMapOutput() ResourceMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ResourceMapOutput) ToResourceMapOutputWithContext(ctx context.Context) ResourceMapOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ResourceMapOutput) MapIndex(k pulumi.StringInput) ResourceOutput {
|
||||
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Resource {
|
||||
return vs[0].(map[string]*Resource)[vs[1].(string)]
|
||||
}).(ResourceOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ResourceInput)(nil)).Elem(), &Resource{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ResourceArrayInput)(nil)).Elem(), ResourceArray{})
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ResourceMapInput)(nil)).Elem(), ResourceMap{})
|
||||
pulumi.RegisterOutputType(ResourceOutput{})
|
||||
pulumi.RegisterOutputType(ResourceArrayOutput{})
|
||||
pulumi.RegisterOutputType(ResourceMapOutput{})
|
||||
}
|
||||
0
sdk/nodejs/Pulumi.yaml
generated
Normal file
0
sdk/nodejs/Pulumi.yaml
generated
Normal file
4
sdk/nodejs/README.md
generated
Normal file
4
sdk/nodejs/README.md
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-xyz)
|
||||
> distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,
|
||||
> first check the [`pulumi-xyz` repo](https://github.com/pulumi/pulumi-xyz/issues); however, if that doesn't turn up anything,
|
||||
> please consult the source [`terraform-provider-xyz` repo](https://github.com/terraform-providers/terraform-provider-xyz/issues).
|
||||
5
sdk/nodejs/config/index.ts
generated
Normal file
5
sdk/nodejs/config/index.ts
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
// *** 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! ***
|
||||
|
||||
// Export members:
|
||||
export * from "./vars";
|
||||
23
sdk/nodejs/config/vars.ts
generated
Normal file
23
sdk/nodejs/config/vars.ts
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as inputs from "../types/input";
|
||||
import * as outputs from "../types/output";
|
||||
import * as enums from "../types/enums";
|
||||
import * as utilities from "../utilities";
|
||||
|
||||
declare var exports: any;
|
||||
const __config = new pulumi.Config("xyz");
|
||||
|
||||
/**
|
||||
* A region which should be used.
|
||||
*/
|
||||
export declare const region: enums.region.Region | undefined;
|
||||
Object.defineProperty(exports, "region", {
|
||||
get() {
|
||||
return __config.getObject<enums.region.Region>("region");
|
||||
},
|
||||
enumerable: true,
|
||||
});
|
||||
|
||||
43
sdk/nodejs/getDataSource.ts
generated
Normal file
43
sdk/nodejs/getDataSource.ts
generated
Normal file
@@ -0,0 +1,43 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
export function getDataSource(args: GetDataSourceArgs, opts?: pulumi.InvokeOptions): Promise<GetDataSourceResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invoke("xyz:index/getDataSource:getDataSource", {
|
||||
"sampleAttribute": args.sampleAttribute,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getDataSource.
|
||||
*/
|
||||
export interface GetDataSourceArgs {
|
||||
sampleAttribute: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of values returned by getDataSource.
|
||||
*/
|
||||
export interface GetDataSourceResult {
|
||||
/**
|
||||
* The provider-assigned unique ID for this managed resource.
|
||||
*/
|
||||
readonly id: string;
|
||||
readonly sampleAttribute: string;
|
||||
}
|
||||
export function getDataSourceOutput(args: GetDataSourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDataSourceResult> {
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
||||
return pulumi.runtime.invokeOutput("xyz:index/getDataSource:getDataSource", {
|
||||
"sampleAttribute": args.sampleAttribute,
|
||||
}, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of arguments for invoking getDataSource.
|
||||
*/
|
||||
export interface GetDataSourceOutputArgs {
|
||||
sampleAttribute: pulumi.Input<string>;
|
||||
}
|
||||
3
sdk/nodejs/go.mod
generated
Normal file
3
sdk/nodejs/go.mod
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
module fake_nodejs_module // Exclude this directory from Go tools
|
||||
|
||||
go 1.17
|
||||
55
sdk/nodejs/index.ts
generated
Normal file
55
sdk/nodejs/index.ts
generated
Normal file
@@ -0,0 +1,55 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
// Export members:
|
||||
export { GetDataSourceArgs, GetDataSourceResult, GetDataSourceOutputArgs } from "./getDataSource";
|
||||
export const getDataSource: typeof import("./getDataSource").getDataSource = null as any;
|
||||
export const getDataSourceOutput: typeof import("./getDataSource").getDataSourceOutput = null as any;
|
||||
utilities.lazyLoad(exports, ["getDataSource","getDataSourceOutput"], () => require("./getDataSource"));
|
||||
|
||||
export { ProviderArgs } from "./provider";
|
||||
export type Provider = import("./provider").Provider;
|
||||
export const Provider: typeof import("./provider").Provider = null as any;
|
||||
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
||||
|
||||
export { ResourceArgs, ResourceState } from "./resource";
|
||||
export type Resource = import("./resource").Resource;
|
||||
export const Resource: typeof import("./resource").Resource = null as any;
|
||||
utilities.lazyLoad(exports, ["Resource"], () => require("./resource"));
|
||||
|
||||
|
||||
// Export sub-modules:
|
||||
import * as config from "./config";
|
||||
import * as region from "./region";
|
||||
import * as types from "./types";
|
||||
|
||||
export {
|
||||
config,
|
||||
region,
|
||||
types,
|
||||
};
|
||||
|
||||
const _module = {
|
||||
version: utilities.getVersion(),
|
||||
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
||||
switch (type) {
|
||||
case "xyz:index/resource:Resource":
|
||||
return new Resource(name, <any>undefined, { urn })
|
||||
default:
|
||||
throw new Error(`unknown resource type ${type}`);
|
||||
}
|
||||
},
|
||||
};
|
||||
pulumi.runtime.registerResourceModule("xyz", "index/resource", _module)
|
||||
pulumi.runtime.registerResourcePackage("xyz", {
|
||||
version: utilities.getVersion(),
|
||||
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
|
||||
if (type !== "pulumi:providers:xyz") {
|
||||
throw new Error(`unknown provider type ${type}`);
|
||||
}
|
||||
return new Provider(name, <any>undefined, { urn });
|
||||
},
|
||||
});
|
||||
27
sdk/nodejs/package.json
generated
Normal file
27
sdk/nodejs/package.json
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@pulumi/xyz",
|
||||
"version": "1.0.0-alpha.0+dev",
|
||||
"description": "A Pulumi package for creating and managing xyz cloud resources.",
|
||||
"keywords": [
|
||||
"xyz",
|
||||
"category/cloud"
|
||||
],
|
||||
"homepage": "https://www.pulumi.com",
|
||||
"repository": "https://github.com/pulumi/pulumi-xyz",
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pulumi/pulumi": "^3.142.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18",
|
||||
"typescript": "^4.3.5"
|
||||
},
|
||||
"pulumi": {
|
||||
"resource": true,
|
||||
"name": "xyz",
|
||||
"version": "1.0.0-alpha.0+dev"
|
||||
}
|
||||
}
|
||||
58
sdk/nodejs/provider.ts
generated
Normal file
58
sdk/nodejs/provider.ts
generated
Normal file
@@ -0,0 +1,58 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as inputs from "./types/input";
|
||||
import * as outputs from "./types/output";
|
||||
import * as enums from "./types/enums";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
/**
|
||||
* The provider type for the xyz package. By default, resources use package-wide configuration
|
||||
* settings, however an explicit `Provider` instance may be created and passed during resource
|
||||
* construction to achieve fine-grained programmatic control over provider settings. See the
|
||||
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
||||
*/
|
||||
export class Provider extends pulumi.ProviderResource {
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'xyz';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of Provider. This is designed to work even
|
||||
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
||||
*/
|
||||
public static isInstance(obj: any): obj is Provider {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create a Provider resource with the given unique name, arguments, and options.
|
||||
*
|
||||
* @param name The _unique_ name of the resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
{
|
||||
resourceInputs["region"] = args ? args.region : undefined;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Provider.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a Provider resource.
|
||||
*/
|
||||
export interface ProviderArgs {
|
||||
/**
|
||||
* A region which should be used.
|
||||
*/
|
||||
region?: pulumi.Input<enums.region.Region>;
|
||||
}
|
||||
6
sdk/nodejs/region/index.ts
generated
Normal file
6
sdk/nodejs/region/index.ts
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
// *** 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! ***
|
||||
|
||||
|
||||
// Export enums:
|
||||
export * from "../types/enums/region";
|
||||
81
sdk/nodejs/resource.ts
generated
Normal file
81
sdk/nodejs/resource.ts
generated
Normal file
@@ -0,0 +1,81 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as utilities from "./utilities";
|
||||
|
||||
export class Resource extends pulumi.CustomResource {
|
||||
/**
|
||||
* Get an existing Resource resource's state with the given name, ID, and optional extra
|
||||
* properties used to qualify the lookup.
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param id The _unique_ provider ID of the resource to lookup.
|
||||
* @param state Any extra arguments used during the lookup.
|
||||
* @param opts Optional settings to control the behavior of the CustomResource.
|
||||
*/
|
||||
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceState, opts?: pulumi.CustomResourceOptions): Resource {
|
||||
return new Resource(name, <any>state, { ...opts, id: id });
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
public static readonly __pulumiType = 'xyz:index/resource:Resource';
|
||||
|
||||
/**
|
||||
* Returns true if the given object is an instance of Resource. This is designed to work even
|
||||
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
||||
*/
|
||||
public static isInstance(obj: any): obj is Resource {
|
||||
if (obj === undefined || obj === null) {
|
||||
return false;
|
||||
}
|
||||
return obj['__pulumiType'] === Resource.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sample attribute.
|
||||
*/
|
||||
public readonly sampleAttribute!: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Resource resource with the given unique name, arguments, and options.
|
||||
*
|
||||
* @param name The _unique_ name of the resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param opts A bag of options that control this resource's behavior.
|
||||
*/
|
||||
constructor(name: string, args?: ResourceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: ResourceArgs | ResourceState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as ResourceState | undefined;
|
||||
resourceInputs["sampleAttribute"] = state ? state.sampleAttribute : undefined;
|
||||
} else {
|
||||
const args = argsOrState as ResourceArgs | undefined;
|
||||
resourceInputs["sampleAttribute"] = args ? args.sampleAttribute : undefined;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(Resource.__pulumiType, name, resourceInputs, opts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Input properties used for looking up and filtering Resource resources.
|
||||
*/
|
||||
export interface ResourceState {
|
||||
/**
|
||||
* Sample attribute.
|
||||
*/
|
||||
sampleAttribute?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of arguments for constructing a Resource resource.
|
||||
*/
|
||||
export interface ResourceArgs {
|
||||
/**
|
||||
* Sample attribute.
|
||||
*/
|
||||
sampleAttribute?: pulumi.Input<string>;
|
||||
}
|
||||
30
sdk/nodejs/tsconfig.json
generated
Normal file
30
sdk/nodejs/tsconfig.json
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "bin",
|
||||
"target": "es2016",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
"sourceMap": true,
|
||||
"stripInternal": true,
|
||||
"experimentalDecorators": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true
|
||||
},
|
||||
"files": [
|
||||
"config/index.ts",
|
||||
"config/vars.ts",
|
||||
"getDataSource.ts",
|
||||
"index.ts",
|
||||
"provider.ts",
|
||||
"region/index.ts",
|
||||
"resource.ts",
|
||||
"types/enums/index.ts",
|
||||
"types/enums/region/index.ts",
|
||||
"types/index.ts",
|
||||
"types/input.ts",
|
||||
"types/output.ts",
|
||||
"utilities.ts"
|
||||
]
|
||||
}
|
||||
9
sdk/nodejs/types/enums/index.ts
generated
Normal file
9
sdk/nodejs/types/enums/index.ts
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
// *** 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! ***
|
||||
|
||||
// Export sub-modules:
|
||||
import * as region from "./region";
|
||||
|
||||
export {
|
||||
region,
|
||||
};
|
||||
10
sdk/nodejs/types/enums/region/index.ts
generated
Normal file
10
sdk/nodejs/types/enums/region/index.ts
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// *** 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! ***
|
||||
|
||||
|
||||
export const Region = {
|
||||
Here: "HERE",
|
||||
OverThere: "OVER_THERE",
|
||||
} as const;
|
||||
|
||||
export type Region = (typeof Region)[keyof typeof Region];
|
||||
13
sdk/nodejs/types/index.ts
generated
Normal file
13
sdk/nodejs/types/index.ts
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
// *** 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! ***
|
||||
|
||||
// Export sub-modules:
|
||||
import * as enums from "./enums";
|
||||
import * as input from "./input";
|
||||
import * as output from "./output";
|
||||
|
||||
export {
|
||||
enums,
|
||||
input,
|
||||
output,
|
||||
};
|
||||
8
sdk/nodejs/types/input.ts
generated
Normal file
8
sdk/nodejs/types/input.ts
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as inputs from "../types/input";
|
||||
import * as outputs from "../types/output";
|
||||
import * as enums from "../types/enums";
|
||||
|
||||
8
sdk/nodejs/types/output.ts
generated
Normal file
8
sdk/nodejs/types/output.ts
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
// *** 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! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as inputs from "../types/input";
|
||||
import * as outputs from "../types/output";
|
||||
import * as enums from "../types/enums";
|
||||
|
||||
95
sdk/nodejs/utilities.ts
generated
Normal file
95
sdk/nodejs/utilities.ts
generated
Normal file
@@ -0,0 +1,95 @@
|
||||
// *** 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! ***
|
||||
|
||||
|
||||
import * as runtime from "@pulumi/pulumi/runtime";
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
|
||||
export function getEnv(...vars: string[]): string | undefined {
|
||||
for (const v of vars) {
|
||||
const value = process.env[v];
|
||||
if (value) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function getEnvBoolean(...vars: string[]): boolean | undefined {
|
||||
const s = getEnv(...vars);
|
||||
if (s !== undefined) {
|
||||
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
||||
// Terraform uses internally when parsing boolean values.
|
||||
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
||||
return true;
|
||||
}
|
||||
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function getEnvNumber(...vars: string[]): number | undefined {
|
||||
const s = getEnv(...vars);
|
||||
if (s !== undefined) {
|
||||
const f = parseFloat(s);
|
||||
if (!isNaN(f)) {
|
||||
return f;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function getVersion(): string {
|
||||
let version = require('./package.json').version;
|
||||
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
||||
// If there is a v, strip it off.
|
||||
if (version.indexOf('v') === 0) {
|
||||
version = version.slice(1);
|
||||
}
|
||||
return version;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export function resourceOptsDefaults(): any {
|
||||
return { version: getVersion() };
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export function lazyLoad(exports: any, props: string[], loadModule: any) {
|
||||
for (let property of props) {
|
||||
Object.defineProperty(exports, property, {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return loadModule()[property];
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export async function callAsync<T>(
|
||||
tok: string,
|
||||
props: pulumi.Inputs,
|
||||
res?: pulumi.Resource,
|
||||
opts?: {property?: string},
|
||||
): Promise<T> {
|
||||
const o: any = runtime.call<T>(tok, props, res);
|
||||
const value = await o.promise(true /*withUnknowns*/);
|
||||
const isKnown = await o.isKnown;
|
||||
const isSecret = await o.isSecret;
|
||||
const problem: string|undefined =
|
||||
!isKnown ? "an unknown value"
|
||||
: isSecret ? "a secret value"
|
||||
: undefined;
|
||||
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
||||
if (problem) {
|
||||
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
||||
"This is an error in the provider, please report this to the provider developer.");
|
||||
}
|
||||
// Extract a single property if requested.
|
||||
if (opts && opts.property) {
|
||||
return value[opts.property];
|
||||
}
|
||||
return value;
|
||||
}
|
||||
0
sdk/python/Pulumi.yaml
generated
Normal file
0
sdk/python/Pulumi.yaml
generated
Normal file
63
sdk/python/README.md
generated
Normal file
63
sdk/python/README.md
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
# Terraform Bridge Provider Boilerplate
|
||||
|
||||
This repository is the template for authoring a Pulumi package from an existing Terraform provider as part of the guide for [authoring and publishing Pulumi packages](https://www.pulumi.com/docs/iac/packages-and-automation/pulumi-packages/authoring/).
|
||||
|
||||
This repository is initially set up as a fictitious provider named "xyz" to demonstrate a resource, a data source and configuration derived from the [github.com/pulumi/terraform-provider-xyz provider](https://github.com/pulumi/terraform-provider-xyz).
|
||||
|
||||
Read the [setup instructions](SETUP.md) for step-by-step instructions on how to bridge a new provider and refer to our complete docs [guide for authoring and publishing a Pulumi Package](https://www.pulumi.com/docs/iac/packages-and-automation/pulumi-packages/authoring/).
|
||||
|
||||
# Xyz Resource Provider
|
||||
|
||||
The Xyz Resource Provider lets you manage [Xyz](http://example.com) resources.
|
||||
|
||||
## Installing
|
||||
|
||||
This package is available for several languages/platforms:
|
||||
|
||||
### Node.js (JavaScript/TypeScript)
|
||||
|
||||
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
|
||||
|
||||
```bash
|
||||
npm install @pulumi/xyz
|
||||
```
|
||||
|
||||
or `yarn`:
|
||||
|
||||
```bash
|
||||
yarn add @pulumi/xyz
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
To use from Python, install using `pip`:
|
||||
|
||||
```bash
|
||||
pip install pulumi_xyz
|
||||
```
|
||||
|
||||
### Go
|
||||
|
||||
To use from Go, use `go get` to grab the latest version of the library:
|
||||
|
||||
```bash
|
||||
go get github.com/pulumi/pulumi-xyz/sdk/go/...
|
||||
```
|
||||
|
||||
### .NET
|
||||
|
||||
To use from .NET, install using `dotnet add package`:
|
||||
|
||||
```bash
|
||||
dotnet add package Pulumi.Xyz
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The following configuration points are available for the `xyz` provider:
|
||||
|
||||
- `xyz:region` (environment: `XYZ_REGION`) - the region in which to deploy resources
|
||||
|
||||
## Reference
|
||||
|
||||
For detailed reference documentation, please visit [the Pulumi registry](https://www.pulumi.com/registry/packages/xyz/api-docs/).
|
||||
3
sdk/python/go.mod
generated
Normal file
3
sdk/python/go.mod
generated
Normal file
@@ -0,0 +1,3 @@
|
||||
module fake_python_module // Exclude this directory from Go tools
|
||||
|
||||
go 1.17
|
||||
4
sdk/python/pulumi_xyz/README.md
generated
Normal file
4
sdk/python/pulumi_xyz/README.md
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-xyz)
|
||||
> distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,
|
||||
> first check the [`pulumi-xyz` repo](https://github.com/pulumi/pulumi-xyz/issues); however, if that doesn't turn up anything,
|
||||
> please consult the source [`terraform-provider-xyz` repo](https://github.com/terraform-providers/terraform-provider-xyz/issues).
|
||||
46
sdk/python/pulumi_xyz/__init__.py
generated
Normal file
46
sdk/python/pulumi_xyz/__init__.py
generated
Normal file
@@ -0,0 +1,46 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
from . import _utilities
|
||||
import typing
|
||||
# Export this package's modules as members:
|
||||
from .get_data_source import *
|
||||
from .provider import *
|
||||
from .resource import *
|
||||
|
||||
# Make subpackages available:
|
||||
if typing.TYPE_CHECKING:
|
||||
import pulumi_xyz.config as __config
|
||||
config = __config
|
||||
import pulumi_xyz.region as __region
|
||||
region = __region
|
||||
else:
|
||||
config = _utilities.lazy_import('pulumi_xyz.config')
|
||||
region = _utilities.lazy_import('pulumi_xyz.region')
|
||||
|
||||
_utilities.register(
|
||||
resource_modules="""
|
||||
[
|
||||
{
|
||||
"pkg": "xyz",
|
||||
"mod": "index/resource",
|
||||
"fqn": "pulumi_xyz",
|
||||
"classes": {
|
||||
"xyz:index/resource:Resource": "Resource"
|
||||
}
|
||||
}
|
||||
]
|
||||
""",
|
||||
resource_packages="""
|
||||
[
|
||||
{
|
||||
"pkg": "xyz",
|
||||
"token": "pulumi:providers:xyz",
|
||||
"fqn": "pulumi_xyz",
|
||||
"class": "Provider"
|
||||
}
|
||||
]
|
||||
"""
|
||||
)
|
||||
331
sdk/python/pulumi_xyz/_utilities.py
generated
Normal file
331
sdk/python/pulumi_xyz/_utilities.py
generated
Normal file
@@ -0,0 +1,331 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
|
||||
import asyncio
|
||||
import functools
|
||||
import importlib.metadata
|
||||
import importlib.util
|
||||
import inspect
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import typing
|
||||
import warnings
|
||||
import base64
|
||||
|
||||
import pulumi
|
||||
import pulumi.runtime
|
||||
from pulumi.runtime.sync_await import _sync_await
|
||||
from pulumi.runtime.proto import resource_pb2
|
||||
|
||||
from semver import VersionInfo as SemverVersion
|
||||
from parver import Version as PEP440Version
|
||||
|
||||
C = typing.TypeVar("C", bound=typing.Callable)
|
||||
|
||||
|
||||
def get_env(*args):
|
||||
for v in args:
|
||||
value = os.getenv(v)
|
||||
if value is not None:
|
||||
return value
|
||||
return None
|
||||
|
||||
|
||||
def get_env_bool(*args):
|
||||
str = get_env(*args)
|
||||
if str is not None:
|
||||
# NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
||||
# Terraform uses internally when parsing boolean values.
|
||||
if str in ["1", "t", "T", "true", "TRUE", "True"]:
|
||||
return True
|
||||
if str in ["0", "f", "F", "false", "FALSE", "False"]:
|
||||
return False
|
||||
return None
|
||||
|
||||
|
||||
def get_env_int(*args):
|
||||
str = get_env(*args)
|
||||
if str is not None:
|
||||
try:
|
||||
return int(str)
|
||||
except:
|
||||
return None
|
||||
return None
|
||||
|
||||
|
||||
def get_env_float(*args):
|
||||
str = get_env(*args)
|
||||
if str is not None:
|
||||
try:
|
||||
return float(str)
|
||||
except:
|
||||
return None
|
||||
return None
|
||||
|
||||
|
||||
def _get_semver_version():
|
||||
# __name__ is set to the fully-qualified name of the current module, In our case, it will be
|
||||
# <some module>._utilities. <some module> is the module we want to query the version for.
|
||||
root_package, *rest = __name__.split('.')
|
||||
|
||||
# pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask
|
||||
# for the currently installed version of the root package (i.e. us) and get its version.
|
||||
|
||||
# Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects
|
||||
# to receive a valid semver string when receiving requests from the language host, so it's our
|
||||
# responsibility as the library to convert our own PEP440 version into a valid semver string.
|
||||
|
||||
pep440_version_string = importlib.metadata.version(root_package)
|
||||
pep440_version = PEP440Version.parse(pep440_version_string)
|
||||
(major, minor, patch) = pep440_version.release
|
||||
prerelease = None
|
||||
if pep440_version.pre_tag == 'a':
|
||||
prerelease = f"alpha.{pep440_version.pre}"
|
||||
elif pep440_version.pre_tag == 'b':
|
||||
prerelease = f"beta.{pep440_version.pre}"
|
||||
elif pep440_version.pre_tag == 'rc':
|
||||
prerelease = f"rc.{pep440_version.pre}"
|
||||
elif pep440_version.dev is not None:
|
||||
# PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge
|
||||
# between the two, we convert our dev build version into a prerelease tag. This matches what all of our other
|
||||
# packages do when constructing their own semver string.
|
||||
prerelease = f"dev.{pep440_version.dev}"
|
||||
elif pep440_version.local is not None:
|
||||
# PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease,
|
||||
# PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
|
||||
# do the reverse conversion here and set the local version as the prerelease tag.
|
||||
prerelease = pep440_version.local
|
||||
|
||||
return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
|
||||
|
||||
|
||||
# Determine the version once and cache the value, which measurably improves program performance.
|
||||
_version = _get_semver_version()
|
||||
_version_str = str(_version)
|
||||
|
||||
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
|
||||
return pulumi.ResourceOptions(
|
||||
version=get_version(),
|
||||
plugin_download_url=get_plugin_download_url(),
|
||||
)
|
||||
|
||||
def get_invoke_opts_defaults() -> pulumi.InvokeOptions:
|
||||
return pulumi.InvokeOptions(
|
||||
version=get_version(),
|
||||
plugin_download_url=get_plugin_download_url(),
|
||||
)
|
||||
|
||||
def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs):
|
||||
"""
|
||||
Return the resource args and options given the *args and **kwargs of a resource's
|
||||
__init__ method.
|
||||
"""
|
||||
|
||||
resource_args, opts = None, None
|
||||
|
||||
# If the first item is the resource args type, save it and remove it from the args list.
|
||||
if args and isinstance(args[0], resource_args_type):
|
||||
resource_args, args = args[0], args[1:]
|
||||
|
||||
# Now look at the first item in the args list again.
|
||||
# If the first item is the resource options class, save it.
|
||||
if args and isinstance(args[0], resource_options_type):
|
||||
opts = args[0]
|
||||
|
||||
# If resource_args is None, see if "args" is in kwargs, and, if so, if it's typed as the
|
||||
# the resource args type.
|
||||
if resource_args is None:
|
||||
a = kwargs.get("args")
|
||||
if isinstance(a, resource_args_type):
|
||||
resource_args = a
|
||||
|
||||
# If opts is None, look it up in kwargs.
|
||||
if opts is None:
|
||||
opts = kwargs.get("opts")
|
||||
|
||||
return resource_args, opts
|
||||
|
||||
|
||||
# Temporary: just use pulumi._utils.lazy_import once everyone upgrades.
|
||||
def lazy_import(fullname):
|
||||
|
||||
import pulumi._utils as u
|
||||
f = getattr(u, 'lazy_import', None)
|
||||
if f is None:
|
||||
f = _lazy_import_temp
|
||||
|
||||
return f(fullname)
|
||||
|
||||
|
||||
# Copied from pulumi._utils.lazy_import, see comments there.
|
||||
def _lazy_import_temp(fullname):
|
||||
m = sys.modules.get(fullname, None)
|
||||
if m is not None:
|
||||
return m
|
||||
|
||||
spec = importlib.util.find_spec(fullname)
|
||||
|
||||
m = sys.modules.get(fullname, None)
|
||||
if m is not None:
|
||||
return m
|
||||
|
||||
loader = importlib.util.LazyLoader(spec.loader)
|
||||
spec.loader = loader
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
|
||||
m = sys.modules.get(fullname, None)
|
||||
if m is not None:
|
||||
return m
|
||||
|
||||
sys.modules[fullname] = module
|
||||
loader.exec_module(module)
|
||||
return module
|
||||
|
||||
|
||||
class Package(pulumi.runtime.ResourcePackage):
|
||||
def __init__(self, pkg_info):
|
||||
super().__init__()
|
||||
self.pkg_info = pkg_info
|
||||
|
||||
def version(self):
|
||||
return _version
|
||||
|
||||
def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderResource:
|
||||
if typ != self.pkg_info['token']:
|
||||
raise Exception(f"unknown provider type {typ}")
|
||||
Provider = getattr(lazy_import(self.pkg_info['fqn']), self.pkg_info['class'])
|
||||
return Provider(name, pulumi.ResourceOptions(urn=urn))
|
||||
|
||||
|
||||
class Module(pulumi.runtime.ResourceModule):
|
||||
def __init__(self, mod_info):
|
||||
super().__init__()
|
||||
self.mod_info = mod_info
|
||||
|
||||
def version(self):
|
||||
return _version
|
||||
|
||||
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
|
||||
class_name = self.mod_info['classes'].get(typ, None)
|
||||
|
||||
if class_name is None:
|
||||
raise Exception(f"unknown resource type {typ}")
|
||||
|
||||
TheClass = getattr(lazy_import(self.mod_info['fqn']), class_name)
|
||||
return TheClass(name, pulumi.ResourceOptions(urn=urn))
|
||||
|
||||
|
||||
def register(resource_modules, resource_packages):
|
||||
resource_modules = json.loads(resource_modules)
|
||||
resource_packages = json.loads(resource_packages)
|
||||
|
||||
for pkg_info in resource_packages:
|
||||
pulumi.runtime.register_resource_package(pkg_info['pkg'], Package(pkg_info))
|
||||
|
||||
for mod_info in resource_modules:
|
||||
pulumi.runtime.register_resource_module(
|
||||
mod_info['pkg'],
|
||||
mod_info['mod'],
|
||||
Module(mod_info))
|
||||
|
||||
|
||||
_F = typing.TypeVar('_F', bound=typing.Callable[..., typing.Any])
|
||||
|
||||
|
||||
def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
|
||||
"""Decorator internally used on {fn}_output lifted function versions
|
||||
to implement them automatically from the un-lifted function."""
|
||||
|
||||
func_sig = inspect.signature(func)
|
||||
|
||||
def lifted_func(*args, opts=None, **kwargs):
|
||||
bound_args = func_sig.bind(*args, **kwargs)
|
||||
# Convert tuple to list, see pulumi/pulumi#8172
|
||||
args_list = list(bound_args.args)
|
||||
return pulumi.Output.from_input({
|
||||
'args': args_list,
|
||||
'kwargs': bound_args.kwargs
|
||||
}).apply(lambda resolved_args: func(*resolved_args['args'],
|
||||
opts=opts,
|
||||
**resolved_args['kwargs']))
|
||||
|
||||
return (lambda _: lifted_func)
|
||||
|
||||
|
||||
def call_plain(
|
||||
tok: str,
|
||||
props: pulumi.Inputs,
|
||||
res: typing.Optional[pulumi.Resource] = None,
|
||||
typ: typing.Optional[type] = None,
|
||||
) -> typing.Any:
|
||||
"""
|
||||
Wraps pulumi.runtime.plain to force the output and return it plainly.
|
||||
"""
|
||||
|
||||
output = pulumi.runtime.call(tok, props, res, typ)
|
||||
|
||||
# Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
|
||||
result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
|
||||
|
||||
problem = None
|
||||
if not known:
|
||||
problem = ' an unknown value'
|
||||
elif secret:
|
||||
problem = ' a secret value'
|
||||
|
||||
if problem:
|
||||
raise AssertionError(
|
||||
f"Plain resource method '{tok}' incorrectly returned {problem}. "
|
||||
+ "This is an error in the provider, please report this to the provider developer."
|
||||
)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bool, bool, set]:
|
||||
return (
|
||||
await o._future,
|
||||
await o._is_known,
|
||||
await o._is_secret,
|
||||
await o._resources,
|
||||
)
|
||||
|
||||
|
||||
# This is included to provide an upgrade path for users who are using a version
|
||||
# of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
|
||||
def deprecated(message: str) -> typing.Callable[[C], C]:
|
||||
"""
|
||||
Decorator to indicate a function is deprecated.
|
||||
|
||||
As well as inserting appropriate statements to indicate that the function is
|
||||
deprecated, this decorator also tags the function with a special attribute
|
||||
so that Pulumi code can detect that it is deprecated and react appropriately
|
||||
in certain situations.
|
||||
|
||||
message is the deprecation message that should be printed if the function is called.
|
||||
"""
|
||||
|
||||
def decorator(fn: C) -> C:
|
||||
if not callable(fn):
|
||||
raise TypeError("Expected fn to be callable")
|
||||
|
||||
@functools.wraps(fn)
|
||||
def deprecated_fn(*args, **kwargs):
|
||||
warnings.warn(message)
|
||||
pulumi.warn(f"{fn.__name__} is deprecated: {message}")
|
||||
|
||||
return fn(*args, **kwargs)
|
||||
|
||||
deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
|
||||
return typing.cast(C, deprecated_fn)
|
||||
|
||||
return decorator
|
||||
|
||||
def get_plugin_download_url():
|
||||
return None
|
||||
|
||||
def get_version():
|
||||
return _version_str
|
||||
9
sdk/python/pulumi_xyz/config/__init__.py
generated
Normal file
9
sdk/python/pulumi_xyz/config/__init__.py
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import sys
|
||||
from .vars import _ExportableConfig
|
||||
|
||||
sys.modules[__name__].__class__ = _ExportableConfig
|
||||
23
sdk/python/pulumi_xyz/config/__init__.pyi
generated
Normal file
23
sdk/python/pulumi_xyz/config/__init__.pyi
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import copy
|
||||
import warnings
|
||||
import sys
|
||||
import pulumi
|
||||
import pulumi.runtime
|
||||
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
||||
if sys.version_info >= (3, 11):
|
||||
from typing import NotRequired, TypedDict, TypeAlias
|
||||
else:
|
||||
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
||||
from .. import _utilities
|
||||
from .. import region
|
||||
|
||||
region: Optional[str]
|
||||
"""
|
||||
A region which should be used.
|
||||
"""
|
||||
|
||||
31
sdk/python/pulumi_xyz/config/vars.py
generated
Normal file
31
sdk/python/pulumi_xyz/config/vars.py
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import copy
|
||||
import warnings
|
||||
import sys
|
||||
import pulumi
|
||||
import pulumi.runtime
|
||||
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
||||
if sys.version_info >= (3, 11):
|
||||
from typing import NotRequired, TypedDict, TypeAlias
|
||||
else:
|
||||
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
||||
from .. import _utilities
|
||||
from .. import region
|
||||
|
||||
import types
|
||||
|
||||
__config__ = pulumi.Config('xyz')
|
||||
|
||||
|
||||
class _ExportableConfig(types.ModuleType):
|
||||
@property
|
||||
def region(self) -> Optional[str]:
|
||||
"""
|
||||
A region which should be used.
|
||||
"""
|
||||
return __config__.get('region')
|
||||
|
||||
86
sdk/python/pulumi_xyz/get_data_source.py
generated
Normal file
86
sdk/python/pulumi_xyz/get_data_source.py
generated
Normal file
@@ -0,0 +1,86 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import copy
|
||||
import warnings
|
||||
import sys
|
||||
import pulumi
|
||||
import pulumi.runtime
|
||||
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
||||
if sys.version_info >= (3, 11):
|
||||
from typing import NotRequired, TypedDict, TypeAlias
|
||||
else:
|
||||
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
||||
from . import _utilities
|
||||
|
||||
__all__ = [
|
||||
'GetDataSourceResult',
|
||||
'AwaitableGetDataSourceResult',
|
||||
'get_data_source',
|
||||
'get_data_source_output',
|
||||
]
|
||||
|
||||
@pulumi.output_type
|
||||
class GetDataSourceResult:
|
||||
"""
|
||||
A collection of values returned by getDataSource.
|
||||
"""
|
||||
def __init__(__self__, id=None, sample_attribute=None):
|
||||
if id and not isinstance(id, str):
|
||||
raise TypeError("Expected argument 'id' to be a str")
|
||||
pulumi.set(__self__, "id", id)
|
||||
if sample_attribute and not isinstance(sample_attribute, str):
|
||||
raise TypeError("Expected argument 'sample_attribute' to be a str")
|
||||
pulumi.set(__self__, "sample_attribute", sample_attribute)
|
||||
|
||||
@property
|
||||
@pulumi.getter
|
||||
def id(self) -> builtins.str:
|
||||
"""
|
||||
The provider-assigned unique ID for this managed resource.
|
||||
"""
|
||||
return pulumi.get(self, "id")
|
||||
|
||||
@property
|
||||
@pulumi.getter(name="sampleAttribute")
|
||||
def sample_attribute(self) -> builtins.str:
|
||||
return pulumi.get(self, "sample_attribute")
|
||||
|
||||
|
||||
class AwaitableGetDataSourceResult(GetDataSourceResult):
|
||||
# pylint: disable=using-constant-test
|
||||
def __await__(self):
|
||||
if False:
|
||||
yield self
|
||||
return GetDataSourceResult(
|
||||
id=self.id,
|
||||
sample_attribute=self.sample_attribute)
|
||||
|
||||
|
||||
def get_data_source(sample_attribute: Optional[builtins.str] = None,
|
||||
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataSourceResult:
|
||||
"""
|
||||
Use this data source to access information about an existing resource.
|
||||
"""
|
||||
__args__ = dict()
|
||||
__args__['sampleAttribute'] = sample_attribute
|
||||
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
||||
__ret__ = pulumi.runtime.invoke('xyz:index/getDataSource:getDataSource', __args__, opts=opts, typ=GetDataSourceResult).value
|
||||
|
||||
return AwaitableGetDataSourceResult(
|
||||
id=pulumi.get(__ret__, 'id'),
|
||||
sample_attribute=pulumi.get(__ret__, 'sample_attribute'))
|
||||
def get_data_source_output(sample_attribute: Optional[pulumi.Input[builtins.str]] = None,
|
||||
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataSourceResult]:
|
||||
"""
|
||||
Use this data source to access information about an existing resource.
|
||||
"""
|
||||
__args__ = dict()
|
||||
__args__['sampleAttribute'] = sample_attribute
|
||||
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
||||
__ret__ = pulumi.runtime.invoke_output('xyz:index/getDataSource:getDataSource', __args__, opts=opts, typ=GetDataSourceResult)
|
||||
return __ret__.apply(lambda __response__: GetDataSourceResult(
|
||||
id=pulumi.get(__response__, 'id'),
|
||||
sample_attribute=pulumi.get(__response__, 'sample_attribute')))
|
||||
105
sdk/python/pulumi_xyz/provider.py
generated
Normal file
105
sdk/python/pulumi_xyz/provider.py
generated
Normal file
@@ -0,0 +1,105 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import copy
|
||||
import warnings
|
||||
import sys
|
||||
import pulumi
|
||||
import pulumi.runtime
|
||||
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
||||
if sys.version_info >= (3, 11):
|
||||
from typing import NotRequired, TypedDict, TypeAlias
|
||||
else:
|
||||
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
||||
from . import _utilities
|
||||
from . import region
|
||||
|
||||
__all__ = ['ProviderArgs', 'Provider']
|
||||
|
||||
@pulumi.input_type
|
||||
class ProviderArgs:
|
||||
def __init__(__self__, *,
|
||||
region: Optional[pulumi.Input['region.Region']] = None):
|
||||
"""
|
||||
The set of arguments for constructing a Provider resource.
|
||||
:param pulumi.Input['region.Region'] region: A region which should be used.
|
||||
"""
|
||||
if region is not None:
|
||||
pulumi.set(__self__, "region", region)
|
||||
|
||||
@property
|
||||
@pulumi.getter
|
||||
def region(self) -> Optional[pulumi.Input['region.Region']]:
|
||||
"""
|
||||
A region which should be used.
|
||||
"""
|
||||
return pulumi.get(self, "region")
|
||||
|
||||
@region.setter
|
||||
def region(self, value: Optional[pulumi.Input['region.Region']]):
|
||||
pulumi.set(self, "region", value)
|
||||
|
||||
|
||||
class Provider(pulumi.ProviderResource):
|
||||
@overload
|
||||
def __init__(__self__,
|
||||
resource_name: str,
|
||||
opts: Optional[pulumi.ResourceOptions] = None,
|
||||
region: Optional[pulumi.Input['region.Region']] = None,
|
||||
__props__=None):
|
||||
"""
|
||||
The provider type for the xyz package. By default, resources use package-wide configuration
|
||||
settings, however an explicit `Provider` instance may be created and passed during resource
|
||||
construction to achieve fine-grained programmatic control over provider settings. See the
|
||||
[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
||||
|
||||
:param str resource_name: The name of the resource.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
:param pulumi.Input['region.Region'] region: A region which should be used.
|
||||
"""
|
||||
...
|
||||
@overload
|
||||
def __init__(__self__,
|
||||
resource_name: str,
|
||||
args: Optional[ProviderArgs] = None,
|
||||
opts: Optional[pulumi.ResourceOptions] = None):
|
||||
"""
|
||||
The provider type for the xyz package. By default, resources use package-wide configuration
|
||||
settings, however an explicit `Provider` instance may be created and passed during resource
|
||||
construction to achieve fine-grained programmatic control over provider settings. See the
|
||||
[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
||||
|
||||
:param str resource_name: The name of the resource.
|
||||
:param ProviderArgs args: The arguments to use to populate this resource's properties.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
"""
|
||||
...
|
||||
def __init__(__self__, resource_name: str, *args, **kwargs):
|
||||
resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs)
|
||||
if resource_args is not None:
|
||||
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
||||
else:
|
||||
__self__._internal_init(resource_name, *args, **kwargs)
|
||||
|
||||
def _internal_init(__self__,
|
||||
resource_name: str,
|
||||
opts: Optional[pulumi.ResourceOptions] = None,
|
||||
region: Optional[pulumi.Input['region.Region']] = None,
|
||||
__props__=None):
|
||||
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
||||
if not isinstance(opts, pulumi.ResourceOptions):
|
||||
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
||||
if opts.id is None:
|
||||
if __props__ is not None:
|
||||
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
||||
__props__ = ProviderArgs.__new__(ProviderArgs)
|
||||
|
||||
__props__.__dict__["region"] = pulumi.Output.from_input(region).apply(pulumi.runtime.to_json) if region is not None else None
|
||||
super(Provider, __self__).__init__(
|
||||
'xyz',
|
||||
resource_name,
|
||||
__props__,
|
||||
opts)
|
||||
|
||||
5
sdk/python/pulumi_xyz/pulumi-plugin.json
generated
Normal file
5
sdk/python/pulumi_xyz/pulumi-plugin.json
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "xyz",
|
||||
"version": "1.0.0-alpha.0+dev"
|
||||
}
|
||||
0
sdk/python/pulumi_xyz/py.typed
generated
Normal file
0
sdk/python/pulumi_xyz/py.typed
generated
Normal file
9
sdk/python/pulumi_xyz/region/__init__.py
generated
Normal file
9
sdk/python/pulumi_xyz/region/__init__.py
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
from .. import _utilities
|
||||
import typing
|
||||
# Export this package's modules as members:
|
||||
from ._enums import *
|
||||
16
sdk/python/pulumi_xyz/region/_enums.py
generated
Normal file
16
sdk/python/pulumi_xyz/region/_enums.py
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import builtins
|
||||
from enum import Enum
|
||||
|
||||
__all__ = [
|
||||
'Region',
|
||||
]
|
||||
|
||||
|
||||
class Region(builtins.str, Enum):
|
||||
HERE = "HERE"
|
||||
OVER_THERE = "OVER_THERE"
|
||||
149
sdk/python/pulumi_xyz/resource.py
generated
Normal file
149
sdk/python/pulumi_xyz/resource.py
generated
Normal file
@@ -0,0 +1,149 @@
|
||||
# coding=utf-8
|
||||
# *** 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! ***
|
||||
|
||||
import builtins
|
||||
import copy
|
||||
import warnings
|
||||
import sys
|
||||
import pulumi
|
||||
import pulumi.runtime
|
||||
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
||||
if sys.version_info >= (3, 11):
|
||||
from typing import NotRequired, TypedDict, TypeAlias
|
||||
else:
|
||||
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
||||
from . import _utilities
|
||||
|
||||
__all__ = ['ResourceArgs', 'Resource']
|
||||
|
||||
@pulumi.input_type
|
||||
class ResourceArgs:
|
||||
def __init__(__self__, *,
|
||||
sample_attribute: Optional[pulumi.Input[builtins.str]] = None):
|
||||
"""
|
||||
The set of arguments for constructing a Resource resource.
|
||||
:param pulumi.Input[builtins.str] sample_attribute: Sample attribute.
|
||||
"""
|
||||
if sample_attribute is not None:
|
||||
pulumi.set(__self__, "sample_attribute", sample_attribute)
|
||||
|
||||
@property
|
||||
@pulumi.getter(name="sampleAttribute")
|
||||
def sample_attribute(self) -> Optional[pulumi.Input[builtins.str]]:
|
||||
"""
|
||||
Sample attribute.
|
||||
"""
|
||||
return pulumi.get(self, "sample_attribute")
|
||||
|
||||
@sample_attribute.setter
|
||||
def sample_attribute(self, value: Optional[pulumi.Input[builtins.str]]):
|
||||
pulumi.set(self, "sample_attribute", value)
|
||||
|
||||
|
||||
@pulumi.input_type
|
||||
class _ResourceState:
|
||||
def __init__(__self__, *,
|
||||
sample_attribute: Optional[pulumi.Input[builtins.str]] = None):
|
||||
"""
|
||||
Input properties used for looking up and filtering Resource resources.
|
||||
:param pulumi.Input[builtins.str] sample_attribute: Sample attribute.
|
||||
"""
|
||||
if sample_attribute is not None:
|
||||
pulumi.set(__self__, "sample_attribute", sample_attribute)
|
||||
|
||||
@property
|
||||
@pulumi.getter(name="sampleAttribute")
|
||||
def sample_attribute(self) -> Optional[pulumi.Input[builtins.str]]:
|
||||
"""
|
||||
Sample attribute.
|
||||
"""
|
||||
return pulumi.get(self, "sample_attribute")
|
||||
|
||||
@sample_attribute.setter
|
||||
def sample_attribute(self, value: Optional[pulumi.Input[builtins.str]]):
|
||||
pulumi.set(self, "sample_attribute", value)
|
||||
|
||||
|
||||
class Resource(pulumi.CustomResource):
|
||||
@overload
|
||||
def __init__(__self__,
|
||||
resource_name: str,
|
||||
opts: Optional[pulumi.ResourceOptions] = None,
|
||||
sample_attribute: Optional[pulumi.Input[builtins.str]] = None,
|
||||
__props__=None):
|
||||
"""
|
||||
Create a Resource resource with the given unique name, props, and options.
|
||||
:param str resource_name: The name of the resource.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
:param pulumi.Input[builtins.str] sample_attribute: Sample attribute.
|
||||
"""
|
||||
...
|
||||
@overload
|
||||
def __init__(__self__,
|
||||
resource_name: str,
|
||||
args: Optional[ResourceArgs] = None,
|
||||
opts: Optional[pulumi.ResourceOptions] = None):
|
||||
"""
|
||||
Create a Resource resource with the given unique name, props, and options.
|
||||
:param str resource_name: The name of the resource.
|
||||
:param ResourceArgs args: The arguments to use to populate this resource's properties.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
"""
|
||||
...
|
||||
def __init__(__self__, resource_name: str, *args, **kwargs):
|
||||
resource_args, opts = _utilities.get_resource_args_opts(ResourceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
||||
if resource_args is not None:
|
||||
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
||||
else:
|
||||
__self__._internal_init(resource_name, *args, **kwargs)
|
||||
|
||||
def _internal_init(__self__,
|
||||
resource_name: str,
|
||||
opts: Optional[pulumi.ResourceOptions] = None,
|
||||
sample_attribute: Optional[pulumi.Input[builtins.str]] = None,
|
||||
__props__=None):
|
||||
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
||||
if not isinstance(opts, pulumi.ResourceOptions):
|
||||
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
||||
if opts.id is None:
|
||||
if __props__ is not None:
|
||||
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
||||
__props__ = ResourceArgs.__new__(ResourceArgs)
|
||||
|
||||
__props__.__dict__["sample_attribute"] = sample_attribute
|
||||
super(Resource, __self__).__init__(
|
||||
'xyz:index/resource:Resource',
|
||||
resource_name,
|
||||
__props__,
|
||||
opts)
|
||||
|
||||
@staticmethod
|
||||
def get(resource_name: str,
|
||||
id: pulumi.Input[str],
|
||||
opts: Optional[pulumi.ResourceOptions] = None,
|
||||
sample_attribute: Optional[pulumi.Input[builtins.str]] = None) -> 'Resource':
|
||||
"""
|
||||
Get an existing Resource resource's state with the given name, id, and optional extra
|
||||
properties used to qualify the lookup.
|
||||
|
||||
:param str resource_name: The unique name of the resulting resource.
|
||||
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
:param pulumi.Input[builtins.str] sample_attribute: Sample attribute.
|
||||
"""
|
||||
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
||||
|
||||
__props__ = _ResourceState.__new__(_ResourceState)
|
||||
|
||||
__props__.__dict__["sample_attribute"] = sample_attribute
|
||||
return Resource(resource_name, opts=opts, __props__=__props__)
|
||||
|
||||
@property
|
||||
@pulumi.getter(name="sampleAttribute")
|
||||
def sample_attribute(self) -> pulumi.Output[Optional[builtins.str]]:
|
||||
"""
|
||||
Sample attribute.
|
||||
"""
|
||||
return pulumi.get(self, "sample_attribute")
|
||||
|
||||
22
sdk/python/pyproject.toml
generated
Normal file
22
sdk/python/pyproject.toml
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
[project]
|
||||
name = "pulumi_xyz"
|
||||
description = "A Pulumi package for creating and managing xyz cloud resources."
|
||||
dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""]
|
||||
keywords = ["xyz", "category/cloud"]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9"
|
||||
version = "1.0.0a0+dev"
|
||||
[project.license]
|
||||
text = "Apache-2.0"
|
||||
[project.urls]
|
||||
Homepage = "https://www.pulumi.com"
|
||||
Repository = "https://github.com/pulumi/pulumi-xyz"
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool]
|
||||
[tool.setuptools]
|
||||
[tool.setuptools.package-data]
|
||||
pulumi_xyz = ["py.typed", "pulumi-plugin.json"]
|
||||
Reference in New Issue
Block a user