Skip to content

Commit

Permalink
Merge branch 'feat/v0.0.123' into 'main'
Browse files Browse the repository at this point in the history
Generate from terraform provider v0.0.123
  • Loading branch information
dougsong committed Nov 14, 2023
2 parents 1a8c53c + 6793ad4 commit 4920e9b
Show file tree
Hide file tree
Showing 51 changed files with 2,771 additions and 600 deletions.
280 changes: 242 additions & 38 deletions provider/cmd/pulumi-resource-volcengine/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 @@ -12,7 +12,7 @@ require (
github.com/hashicorp/terraform-plugin-sdk v1.9.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.76.1
github.com/volcengine/terraform-provider-volcengine v0.0.121
github.com/volcengine/terraform-provider-volcengine v0.0.123
)

require (
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1732,8 +1732,8 @@ github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q
github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/volcengine/terraform-provider-volcengine v0.0.121 h1:t7nSpECXW3dc+q67G21LlMC5o/i0tLoPIfRv+alNH+M=
github.com/volcengine/terraform-provider-volcengine v0.0.121/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI=
github.com/volcengine/terraform-provider-volcengine v0.0.123 h1:X8NkU4nyt8gmGt5bo7CSUJ6+0g2IRknLL/3aaQcLfNo=
github.com/volcengine/terraform-provider-volcengine v0.0.123/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI=
github.com/volcengine/volc-sdk-golang v1.0.23 h1:anOslb2Qp6ywnsbyq9jqR0ljuO63kg9PY+4OehIk5R8=
github.com/volcengine/volc-sdk-golang v1.0.23/go.mod h1:AfG/PZRUkHJ9inETvbjNifTDgut25Wbkm2QoYBTbvyU=
github.com/volcengine/volcengine-go-sdk v1.0.75 h1:FLNABNe7D5adaul3hLs4Co3oFC4xqIK5+QpKAdW/49Y=
Expand Down
584 changes: 292 additions & 292 deletions provider/resources.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// *** 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;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs
{

public sealed class ScalingGroupLaunchTemplateOverrideArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The instance type.
/// </summary>
[Input("instanceType", required: true)]
public Input<string> InstanceType { get; set; } = null!;

public ScalingGroupLaunchTemplateOverrideArgs()
{
}
public static new ScalingGroupLaunchTemplateOverrideArgs Empty => new ScalingGroupLaunchTemplateOverrideArgs();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// *** 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;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs
{

public sealed class ScalingGroupLaunchTemplateOverrideGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The instance type.
/// </summary>
[Input("instanceType", required: true)]
public Input<string> InstanceType { get; set; } = null!;

public ScalingGroupLaunchTemplateOverrideGetArgs()
{
}
public static new ScalingGroupLaunchTemplateOverrideGetArgs Empty => new ScalingGroupLaunchTemplateOverrideGetArgs();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// *** 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;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs
{

public sealed class ScalingLifecycleHookLifecycleCommandArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
/// </summary>
[Input("commandId", required: true)]
public Input<string> CommandId { get; set; } = null!;

/// <summary>
/// Parameters and parameter values in batch job commands.
/// The number of parameters ranges from 0 to 60.
/// </summary>
[Input("parameters")]
public Input<string>? Parameters { get; set; }

public ScalingLifecycleHookLifecycleCommandArgs()
{
}
public static new ScalingLifecycleHookLifecycleCommandArgs Empty => new ScalingLifecycleHookLifecycleCommandArgs();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// *** 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;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Autoscaling.Inputs
{

public sealed class ScalingLifecycleHookLifecycleCommandGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Batch job command ID, which indicates the batch job command to be executed after triggering the lifecycle hook and installed in the instance.
/// </summary>
[Input("commandId", required: true)]
public Input<string> CommandId { get; set; } = null!;

/// <summary>
/// Parameters and parameter values in batch job commands.
/// The number of parameters ranges from 0 to 60.
/// </summary>
[Input("parameters")]
public Input<string>? Parameters { get; set; }

public ScalingLifecycleHookLifecycleCommandGetArgs()
{
}
public static new ScalingLifecycleHookLifecycleCommandGetArgs Empty => new ScalingLifecycleHookLifecycleCommandGetArgs();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public sealed class ScalingConfigurationsScalingConfigurationResult
/// </summary>
public readonly ImmutableArray<string> InstanceTypes;
/// <summary>
/// Assign IPv6 address to instance network card. Possible values:
/// 0: Do not assign IPv6 address.
/// 1: Assign IPv6 address and the system will automatically assign an IPv6 subnet for you.
/// </summary>
public readonly int Ipv6AddressCount;
/// <summary>
/// The ECS key pair name which the scaling configuration set.
/// </summary>
public readonly string KeyPairName;
Expand Down Expand Up @@ -135,6 +141,8 @@ private ScalingConfigurationsScalingConfigurationResult(

ImmutableArray<string> instanceTypes,

int ipv6AddressCount,

string keyPairName,

string lifecycleState,
Expand Down Expand Up @@ -172,6 +180,7 @@ private ScalingConfigurationsScalingConfigurationResult(
InstanceDescription = instanceDescription;
InstanceName = instanceName;
InstanceTypes = instanceTypes;
Ipv6AddressCount = ipv6AddressCount;
KeyPairName = keyPairName;
LifecycleState = lifecycleState;
ProjectName = projectName;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// *** 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;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Autoscaling.Outputs
{

[OutputType]
public sealed class ScalingGroupLaunchTemplateOverride
{
/// <summary>
/// The instance type.
/// </summary>
public readonly string InstanceType;

[OutputConstructor]
private ScalingGroupLaunchTemplateOverride(string instanceType)
{
InstanceType = instanceType;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// *** 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;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Autoscaling.Outputs
{

[OutputType]
public sealed class ScalingGroupsScalingGroupLaunchTemplateOverrideResult
{
/// <summary>
/// The instance type.
/// </summary>
public readonly string InstanceType;
/// <summary>
/// Weight of instance specifications.
/// </summary>
public readonly int WeightedCapacity;

[OutputConstructor]
private ScalingGroupsScalingGroupLaunchTemplateOverrideResult(
string instanceType,

int weightedCapacity)
{
InstanceType = instanceType;
WeightedCapacity = weightedCapacity;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public sealed class ScalingGroupsScalingGroupResult
/// </summary>
public readonly int DesireInstanceNumber;
/// <summary>
/// The health check type of the scaling group.
/// </summary>
public readonly string HealthCheckType;
/// <summary>
/// The id of the scaling group.
/// </summary>
public readonly string Id;
Expand All @@ -47,6 +51,10 @@ public sealed class ScalingGroupsScalingGroupResult
/// </summary>
public readonly string LaunchTemplateId;
/// <summary>
/// Instance start template information.
/// </summary>
public readonly ImmutableArray<Outputs.ScalingGroupsScalingGroupLaunchTemplateOverrideResult> LaunchTemplateOverrides;
/// <summary>
/// The version of the launch template bound to the scaling group.
/// </summary>
public readonly string LaunchTemplateVersion;
Expand All @@ -55,6 +63,10 @@ public sealed class ScalingGroupsScalingGroupResult
/// </summary>
public readonly string LifecycleState;
/// <summary>
/// Grace period for health check of CLB instance in elastic group.
/// </summary>
public readonly int LoadBalancerHealthCheckGracePeriod;
/// <summary>
/// The max instance number of the scaling group.
/// </summary>
public readonly int MaxInstanceNumber;
Expand All @@ -67,7 +79,7 @@ public sealed class ScalingGroupsScalingGroupResult
/// </summary>
public readonly string MultiAzPolicy;
/// <summary>
/// The ProjectName of scaling group.
/// The project name of the scaling group.
/// </summary>
public readonly string ProjectName;
/// <summary>
Expand All @@ -79,10 +91,18 @@ public sealed class ScalingGroupsScalingGroupResult
/// </summary>
public readonly string ScalingGroupName;
/// <summary>
/// The scaling mode of the scaling group.
/// </summary>
public readonly string ScalingMode;
/// <summary>
/// The list of server group attributes.
/// </summary>
public readonly ImmutableArray<Outputs.ScalingGroupsScalingGroupServerGroupAttributeResult> ServerGroupAttributes;
/// <summary>
/// The number of stopped instances.
/// </summary>
public readonly int StoppedInstanceCount;
/// <summary>
/// The list of the subnet id to which the ENI is connected.
/// </summary>
public readonly ImmutableArray<string> SubnetIds;
Expand Down Expand Up @@ -115,16 +135,22 @@ private ScalingGroupsScalingGroupResult(

int desireInstanceNumber,

string healthCheckType,

string id,

string instanceTerminatePolicy,

string launchTemplateId,

ImmutableArray<Outputs.ScalingGroupsScalingGroupLaunchTemplateOverrideResult> launchTemplateOverrides,

string launchTemplateVersion,

string lifecycleState,

int loadBalancerHealthCheckGracePeriod,

int maxInstanceNumber,

int minInstanceNumber,
Expand All @@ -137,8 +163,12 @@ private ScalingGroupsScalingGroupResult(

string scalingGroupName,

string scalingMode,

ImmutableArray<Outputs.ScalingGroupsScalingGroupServerGroupAttributeResult> serverGroupAttributes,

int stoppedInstanceCount,

ImmutableArray<string> subnetIds,

ImmutableArray<Outputs.ScalingGroupsScalingGroupTagResult> tags,
Expand All @@ -154,18 +184,23 @@ private ScalingGroupsScalingGroupResult(
DbInstanceIds = dbInstanceIds;
DefaultCooldown = defaultCooldown;
DesireInstanceNumber = desireInstanceNumber;
HealthCheckType = healthCheckType;
Id = id;
InstanceTerminatePolicy = instanceTerminatePolicy;
LaunchTemplateId = launchTemplateId;
LaunchTemplateOverrides = launchTemplateOverrides;
LaunchTemplateVersion = launchTemplateVersion;
LifecycleState = lifecycleState;
LoadBalancerHealthCheckGracePeriod = loadBalancerHealthCheckGracePeriod;
MaxInstanceNumber = maxInstanceNumber;
MinInstanceNumber = minInstanceNumber;
MultiAzPolicy = multiAzPolicy;
ProjectName = projectName;
ScalingGroupId = scalingGroupId;
ScalingGroupName = scalingGroupName;
ScalingMode = scalingMode;
ServerGroupAttributes = serverGroupAttributes;
StoppedInstanceCount = stoppedInstanceCount;
SubnetIds = subnetIds;
Tags = tags;
TotalInstanceCount = totalInstanceCount;
Expand Down
Loading

0 comments on commit 4920e9b

Please sign in to comment.