Skip to content

Commit

Permalink
Upgrade terraform-provider-spotinst to v1.150.0 (#483)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-spotinst`.

---

- Upgrading terraform-provider-spotinst from 1.148.0  to 1.150.0.
	Fixes #479
  • Loading branch information
iwahbe authored Nov 20, 2023
1 parent 896ffb7 commit 60e5cc5
Show file tree
Hide file tree
Showing 132 changed files with 850 additions and 12,322 deletions.
51 changes: 8 additions & 43 deletions provider/cmd/pulumi-resource-spotinst/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3889,6 +3889,9 @@
},
"iam_instance_profile": {},
"image_id": {},
"images": {
"maxItemsOne": false
},
"instance_metadata_options": {
"maxItemsOne": true,
"elem": {
Expand Down Expand Up @@ -4901,12 +4904,6 @@
"spotinst:index/healthCheck:HealthCheck": "spotinst_health_check",
"spotinst:index/statefulNodeAzure:StatefulNodeAzure": "spotinst_stateful_node_azure",
"spotinst:index/subscription:Subscription": "spotinst_subscription",
"spotinst:multai/balancer:Balancer": "spotinst_multai_balancer",
"spotinst:multai/deployment:Deployment": "spotinst_multai_deployment",
"spotinst:multai/listener:Listener": "spotinst_multai_listener",
"spotinst:multai/routingRule:RoutingRule": "spotinst_multai_routing_rule",
"spotinst:multai/target:Target": "spotinst_multai_target",
"spotinst:multai/targetSet:TargetSet": "spotinst_multai_target_set",
"spotinst:organization/policy:Policy": "spotinst_organization_policy",
"spotinst:organization/programmaticUser:ProgrammaticUser": "spotinst_organization_programmatic_user",
"spotinst:organization/user:User": "spotinst_organization_user",
Expand Down Expand Up @@ -5994,7 +5991,7 @@
"maxGpu": "max_gpu",
"maxMemoryGib": "max_memory_gib",
"maxVcpu": "max_vcpu",
"minData": "min_data",
"minDisk": "min_disk",
"minGpu": "min_gpu",
"minMemoryGib": "min_memory_gib",
"minNics": "min_nics",
Expand Down Expand Up @@ -6024,7 +6021,7 @@
"maxGpu": "max_gpu",
"maxMemoryGib": "max_memory_gib",
"maxVcpu": "max_vcpu",
"minData": "min_data",
"minDisk": "min_disk",
"minGpu": "min_gpu",
"minMemoryGib": "min_memory_gib",
"minNics": "min_nics",
Expand Down Expand Up @@ -6240,6 +6237,9 @@
"baseSize": "base_size",
"sizePerResourceUnit": "size_per_resource_unit"
},
"spotinst:ecs/OceanLaunchSpecImage:OceanLaunchSpecImage": {
"imageId": "image_id"
},
"spotinst:ecs/OceanLaunchSpecInstanceMetadataOptions:OceanLaunchSpecInstanceMetadataOptions": {
"httpPutResponseHopLimit": "http_put_response_hop_limit",
"httpTokens": "http_tokens"
Expand Down Expand Up @@ -6930,41 +6930,6 @@
"spotinst:index:Provider": {
"featureFlags": "feature_flags"
},
"spotinst:multai/ListenerTlsConfig:ListenerTlsConfig": {
"certificateIds": "certificate_ids",
"cipherSuites": "cipher_suites",
"maxVersion": "max_version",
"minVersion": "min_version",
"preferServerCipherSuites": "prefer_server_cipher_suites",
"sessionTicketsDisabled": "session_tickets_disabled"
},
"spotinst:multai/TargetSetHealthCheck:TargetSetHealthCheck": {
"healthyThreshold": "healthy_threshold",
"unhealthyThreshold": "unhealthy_threshold"
},
"spotinst:multai/balancer:Balancer": {
"connectionTimeouts": "connection_timeouts",
"dnsCnameAliases": "dns_cname_aliases"
},
"spotinst:multai/listener:Listener": {
"balancerId": "balancer_id",
"tlsConfig": "tls_config"
},
"spotinst:multai/routingRule:RoutingRule": {
"balancerId": "balancer_id",
"listenerId": "listener_id",
"middlewareIds": "middleware_ids",
"targetSetIds": "target_set_ids"
},
"spotinst:multai/target:Target": {
"balancerId": "balancer_id",
"targetSetId": "target_set_id"
},
"spotinst:multai/targetSet:TargetSet": {
"balancerId": "balancer_id",
"deploymentId": "deployment_id",
"healthCheck": "health_check"
},
"spotinst:organization/ProgrammaticUserAccount:ProgrammaticUserAccount": {
"accountId": "account_id",
"accountRole": "account_role"
Expand Down
721 changes: 38 additions & 683 deletions provider/cmd/pulumi-resource-spotinst/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spotinst/spotinst-sdk-go v1.181.0 // indirect
github.com/spotinst/spotinst-sdk-go v1.184.0 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2326,8 +2326,8 @@ 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/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
github.com/spotinst/spotinst-sdk-go v1.181.0 h1:y7PnxLCJ5nluVt3MSk4oAleShX6VZ61//z34refefC0=
github.com/spotinst/spotinst-sdk-go v1.181.0/go.mod h1:XBphO/VlaxENgGAyx3x+oE/3c9Jq7/WKBynN3Xy3Qrg=
github.com/spotinst/spotinst-sdk-go v1.184.0 h1:AN1QDa5s81hWU4ajPNgkmcMySpeaMvkFRfhgrxz9n/g=
github.com/spotinst/spotinst-sdk-go v1.184.0/go.mod h1:DP/y998hi551EWIR6t4mbohMMMKjp1IE0K+eJztaFGc=
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8=
github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8=
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
Expand Down
8 changes: 0 additions & 8 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ func Provider() tfbridge.ProviderInfo {
},
"spotinst_mrscaler_aws": {Tok: makeResource(awsMod, "MrScalar")},

// Lack of docs is tracked in: https://github.com/pulumi/pulumi-spotinst/issues/193
"spotinst_multai_balancer": {Docs: noUpstreamDocs},
"spotinst_multai_deployment": {Docs: noUpstreamDocs},
"spotinst_multai_listener": {Docs: noUpstreamDocs},
"spotinst_multai_routing_rule": {Docs: noUpstreamDocs},
"spotinst_multai_target": {Docs: noUpstreamDocs},
"spotinst_multai_target_set": {Docs: noUpstreamDocs},

"spotinst_ocean_aws": {Tok: makeResource(awsMod, "Ocean")},
"spotinst_ocean_aws_launch_spec": {Tok: makeResource(awsMod, "OceanLaunchSpec")},
"spotinst_ocean_aws_extended_resource_definition": {Tok: makeResource(awsMod, "OceanExtendedResourceDefinition")},
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Azure/Inputs/OceanNpFiltersArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public InputList<string> ExcludeSeries
[Input("maxVcpu")]
public Input<int>? MaxVcpu { get; set; }

[Input("minData")]
public Input<int>? MinData { get; set; }
[Input("minDisk")]
public Input<int>? MinDisk { get; set; }

[Input("minGpu")]
public Input<double>? MinGpu { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Azure/Inputs/OceanNpFiltersGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public InputList<string> ExcludeSeries
[Input("maxVcpu")]
public Input<int>? MaxVcpu { get; set; }

[Input("minData")]
public Input<int>? MinData { get; set; }
[Input("minDisk")]
public Input<int>? MinDisk { get; set; }

[Input("minGpu")]
public Input<double>? MinGpu { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Azure/Inputs/OceanNpVirtualNodeGroupFiltersArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public InputList<string> ExcludeSeries
[Input("maxVcpu")]
public Input<int>? MaxVcpu { get; set; }

[Input("minData")]
public Input<int>? MinData { get; set; }
[Input("minDisk")]
public Input<int>? MinDisk { get; set; }

[Input("minGpu")]
public Input<double>? MinGpu { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public InputList<string> ExcludeSeries
[Input("maxVcpu")]
public Input<int>? MaxVcpu { get; set; }

[Input("minData")]
public Input<int>? MinData { get; set; }
[Input("minDisk")]
public Input<int>? MinDisk { get; set; }

[Input("minGpu")]
public Input<double>? MinGpu { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Azure/OceanNp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public InputList<string> AvailabilityZones
set => _availabilityZones = value;
}

[Input("controllerClusterId")]
public Input<string>? ControllerClusterId { get; set; }
[Input("controllerClusterId", required: true)]
public Input<string> ControllerClusterId { get; set; } = null!;

[Input("enableNodePublicIp")]
public Input<bool>? EnableNodePublicIp { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/Azure/Outputs/OceanNpFilters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class OceanNpFilters
public readonly double? MaxGpu;
public readonly double? MaxMemoryGib;
public readonly int? MaxVcpu;
public readonly int? MinData;
public readonly int? MinDisk;
public readonly double? MinGpu;
public readonly double? MinMemoryGib;
public readonly int? MinNics;
Expand All @@ -44,7 +44,7 @@ private OceanNpFilters(

int? maxVcpu,

int? minData,
int? minDisk,

double? minGpu,

Expand All @@ -65,7 +65,7 @@ private OceanNpFilters(
MaxGpu = maxGpu;
MaxMemoryGib = maxMemoryGib;
MaxVcpu = maxVcpu;
MinData = minData;
MinDisk = minDisk;
MinGpu = minGpu;
MinMemoryGib = minMemoryGib;
MinNics = minNics;
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/Azure/Outputs/OceanNpVirtualNodeGroupFilters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class OceanNpVirtualNodeGroupFilters
public readonly double? MaxGpu;
public readonly double? MaxMemoryGib;
public readonly int? MaxVcpu;
public readonly int? MinData;
public readonly int? MinDisk;
public readonly double? MinGpu;
public readonly double? MinMemoryGib;
public readonly int? MinNics;
Expand All @@ -44,7 +44,7 @@ private OceanNpVirtualNodeGroupFilters(

int? maxVcpu,

int? minData,
int? minDisk,

double? minGpu,

Expand All @@ -65,7 +65,7 @@ private OceanNpVirtualNodeGroupFilters(
MaxGpu = maxGpu;
MaxMemoryGib = maxMemoryGib;
MaxVcpu = maxVcpu;
MinData = minData;
MinDisk = minDisk;
MinGpu = minGpu;
MinMemoryGib = minMemoryGib;
MinNics = minNics;
Expand Down
26 changes: 26 additions & 0 deletions sdk/dotnet/Ecs/Inputs/OceanLaunchSpecImageArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// *** 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.SpotInst.Ecs.Inputs
{

public sealed class OceanLaunchSpecImageArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Identifier of the image in AWS. Valid values: any string which is not empty or null.
/// </summary>
[Input("imageId")]
public Input<string>? ImageId { get; set; }

public OceanLaunchSpecImageArgs()
{
}
public static new OceanLaunchSpecImageArgs Empty => new OceanLaunchSpecImageArgs();
}
}
26 changes: 26 additions & 0 deletions sdk/dotnet/Ecs/Inputs/OceanLaunchSpecImageGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// *** 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.SpotInst.Ecs.Inputs
{

public sealed class OceanLaunchSpecImageGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Identifier of the image in AWS. Valid values: any string which is not empty or null.
/// </summary>
[Input("imageId")]
public Input<string>? ImageId { get; set; }

public OceanLaunchSpecImageGetArgs()
{
}
public static new OceanLaunchSpecImageGetArgs Empty => new OceanLaunchSpecImageGetArgs();
}
}
47 changes: 44 additions & 3 deletions sdk/dotnet/Ecs/OceanLaunchSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ namespace Pulumi.SpotInst.Ecs
/// },
/// IamInstanceProfile = "iam-profile",
/// ImageId = "ami-123456",
/// Images = new[]
/// {
/// new SpotInst.Ecs.Inputs.OceanLaunchSpecImageArgs
/// {
/// ImageId = "ami-12345",
/// },
/// new SpotInst.Ecs.Inputs.OceanLaunchSpecImageArgs
/// {
/// ImageId = "ami-67890",
/// },
/// },
/// InstanceMetadataOptions = new SpotInst.Ecs.Inputs.OceanLaunchSpecInstanceMetadataOptionsArgs
/// {
/// HttpPutResponseHopLimit = 10,
Expand Down Expand Up @@ -200,11 +211,17 @@ public partial class OceanLaunchSpec : global::Pulumi.CustomResource
public Output<string?> IamInstanceProfile { get; private set; } = null!;

/// <summary>
/// ID of the image used to launch the instances.
/// Identifier of the image in AWS. Valid values: any string which is not empty or null.
/// </summary>
[Output("imageId")]
public Output<string?> ImageId { get; private set; } = null!;

/// <summary>
/// You can configure VNG with either the imageId or images objects, but not both simultaneously. For each architecture type (amd64, arm64) only one AMI is allowed. Valid values: null, or an array with at least one element
/// </summary>
[Output("images")]
public Output<ImmutableArray<Outputs.OceanLaunchSpecImage>> Images { get; private set; } = null!;

/// <summary>
/// Ocean instance metadata options object for IMDSv2.
/// </summary>
Expand Down Expand Up @@ -362,11 +379,23 @@ public InputList<Inputs.OceanLaunchSpecBlockDeviceMappingArgs> BlockDeviceMappin
public Input<string>? IamInstanceProfile { get; set; }

/// <summary>
/// ID of the image used to launch the instances.
/// Identifier of the image in AWS. Valid values: any string which is not empty or null.
/// </summary>
[Input("imageId")]
public Input<string>? ImageId { get; set; }

[Input("images")]
private InputList<Inputs.OceanLaunchSpecImageArgs>? _images;

/// <summary>
/// You can configure VNG with either the imageId or images objects, but not both simultaneously. For each architecture type (amd64, arm64) only one AMI is allowed. Valid values: null, or an array with at least one element
/// </summary>
public InputList<Inputs.OceanLaunchSpecImageArgs> Images
{
get => _images ?? (_images = new InputList<Inputs.OceanLaunchSpecImageArgs>());
set => _images = value;
}

/// <summary>
/// Ocean instance metadata options object for IMDSv2.
/// </summary>
Expand Down Expand Up @@ -528,11 +557,23 @@ public InputList<Inputs.OceanLaunchSpecBlockDeviceMappingGetArgs> BlockDeviceMap
public Input<string>? IamInstanceProfile { get; set; }

/// <summary>
/// ID of the image used to launch the instances.
/// Identifier of the image in AWS. Valid values: any string which is not empty or null.
/// </summary>
[Input("imageId")]
public Input<string>? ImageId { get; set; }

[Input("images")]
private InputList<Inputs.OceanLaunchSpecImageGetArgs>? _images;

/// <summary>
/// You can configure VNG with either the imageId or images objects, but not both simultaneously. For each architecture type (amd64, arm64) only one AMI is allowed. Valid values: null, or an array with at least one element
/// </summary>
public InputList<Inputs.OceanLaunchSpecImageGetArgs> Images
{
get => _images ?? (_images = new InputList<Inputs.OceanLaunchSpecImageGetArgs>());
set => _images = value;
}

/// <summary>
/// Ocean instance metadata options object for IMDSv2.
/// </summary>
Expand Down
Loading

0 comments on commit 60e5cc5

Please sign in to comment.