Skip to content

Commit 2e30eb4

Browse files
authored
Merge pull request #14 from volcengine/Feat/update-mb
Feat/update mb
2 parents 63e3ee5 + d9e4ecf commit 2e30eb4

1,148 files changed

Lines changed: 313698 additions & 81196 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

provider/cmd/pulumi-resource-volcengine/schema.json

Lines changed: 73286 additions & 50087 deletions
Large diffs are not rendered by default.

provider/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/hashicorp/terraform-plugin-sdk v1.9.1
1313
github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.0
1414
github.com/pulumi/pulumi/sdk/v3 v3.113.0
15-
github.com/volcengine/terraform-provider-volcengine v0.0.168
15+
github.com/volcengine/terraform-provider-volcengine v0.0.169
1616
)
1717

1818
require (

provider/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,8 +1795,8 @@ github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21
17951795
github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
17961796
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
17971797
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
1798-
github.com/volcengine/terraform-provider-volcengine v0.0.168 h1:qf3jqkMz3pKFqaXGhubZMb9SXbqinqX0DWMprBzKBSI=
1799-
github.com/volcengine/terraform-provider-volcengine v0.0.168/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI=
1798+
github.com/volcengine/terraform-provider-volcengine v0.0.169 h1:EqVZ8Csob7mOyou7nuNS+kLZDlpzyQPwpXqkptYvFZE=
1799+
github.com/volcengine/terraform-provider-volcengine v0.0.169/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI=
18001800
github.com/volcengine/volc-sdk-golang v1.0.23 h1:anOslb2Qp6ywnsbyq9jqR0ljuO63kg9PY+4OehIk5R8=
18011801
github.com/volcengine/volc-sdk-golang v1.0.23/go.mod h1:AfG/PZRUkHJ9inETvbjNifTDgut25Wbkm2QoYBTbvyU=
18021802
github.com/volcengine/volcengine-go-sdk v1.0.75 h1:FLNABNe7D5adaul3hLs4Co3oFC4xqIK5+QpKAdW/49Y=

provider/resources.go

Lines changed: 1138 additions & 996 deletions
Large diffs are not rendered by default.

sdk/dotnet/Cen/BandwidthPackage.cs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public partial class BandwidthPackage : global::Pulumi.CustomResource
6868
public Output<int> Bandwidth { get; private set; } = null!;
6969

7070
/// <summary>
71-
/// The billing type of the cen bandwidth package. Only support `PrePaid` and default value is `PrePaid`.
71+
/// The billing type of the cen bandwidth package. Only support `PrePaid` and `PayBy95Peak`, default value is `PrePaid`.
7272
/// </summary>
7373
[Output("billingType")]
7474
public Output<string?> BillingType { get; private set; } = null!;
@@ -121,6 +121,12 @@ public partial class BandwidthPackage : global::Pulumi.CustomResource
121121
[Output("expiredTime")]
122122
public Output<string> ExpiredTime { get; private set; } = null!;
123123

124+
/// <summary>
125+
/// The line operator of the cen bandwidth package. Valid value: `ChinaUnicom`, `ChinaTelecom`. This field is only valid when `local_geographic_region_set_id` and `peer_geographic_region_set_id` are different.
126+
/// </summary>
127+
[Output("lineOperator")]
128+
public Output<string?> LineOperator { get; private set; } = null!;
129+
124130
/// <summary>
125131
/// The local geographic region set id of the cen bandwidth package. Valid value: `China`, `Asia`.
126132
/// </summary>
@@ -229,7 +235,7 @@ public sealed class BandwidthPackageArgs : global::Pulumi.ResourceArgs
229235
public Input<int>? Bandwidth { get; set; }
230236

231237
/// <summary>
232-
/// The billing type of the cen bandwidth package. Only support `PrePaid` and default value is `PrePaid`.
238+
/// The billing type of the cen bandwidth package. Only support `PrePaid` and `PayBy95Peak`, default value is `PrePaid`.
233239
/// </summary>
234240
[Input("billingType")]
235241
public Input<string>? BillingType { get; set; }
@@ -246,6 +252,12 @@ public sealed class BandwidthPackageArgs : global::Pulumi.ResourceArgs
246252
[Input("description")]
247253
public Input<string>? Description { get; set; }
248254

255+
/// <summary>
256+
/// The line operator of the cen bandwidth package. Valid value: `ChinaUnicom`, `ChinaTelecom`. This field is only valid when `local_geographic_region_set_id` and `peer_geographic_region_set_id` are different.
257+
/// </summary>
258+
[Input("lineOperator")]
259+
public Input<string>? LineOperator { get; set; }
260+
249261
/// <summary>
250262
/// The local geographic region set id of the cen bandwidth package. Valid value: `China`, `Asia`.
251263
/// </summary>
@@ -309,7 +321,7 @@ public sealed class BandwidthPackageState : global::Pulumi.ResourceArgs
309321
public Input<int>? Bandwidth { get; set; }
310322

311323
/// <summary>
312-
/// The billing type of the cen bandwidth package. Only support `PrePaid` and default value is `PrePaid`.
324+
/// The billing type of the cen bandwidth package. Only support `PrePaid` and `PayBy95Peak`, default value is `PrePaid`.
313325
/// </summary>
314326
[Input("billingType")]
315327
public Input<string>? BillingType { get; set; }
@@ -368,6 +380,12 @@ public InputList<string> CenIds
368380
[Input("expiredTime")]
369381
public Input<string>? ExpiredTime { get; set; }
370382

383+
/// <summary>
384+
/// The line operator of the cen bandwidth package. Valid value: `ChinaUnicom`, `ChinaTelecom`. This field is only valid when `local_geographic_region_set_id` and `peer_geographic_region_set_id` are different.
385+
/// </summary>
386+
[Input("lineOperator")]
387+
public Input<string>? LineOperator { get; set; }
388+
371389
/// <summary>
372390
/// The local geographic region set id of the cen bandwidth package. Valid value: `China`, `Asia`.
373391
/// </summary>
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.Immutable;
7+
using System.Threading.Tasks;
8+
using Pulumi.Serialization;
9+
10+
namespace Pulumi.Volcengine.Cen
11+
{
12+
public static class GetGrantInstances
13+
{
14+
/// <summary>
15+
/// Use this data source to query detailed information of cen grant instances
16+
/// ## Example Usage
17+
///
18+
/// ```csharp
19+
/// using System.Collections.Generic;
20+
/// using System.Linq;
21+
/// using Pulumi;
22+
/// using Volcengine = Pulumi.Volcengine;
23+
///
24+
/// return await Deployment.RunAsync(() =&gt;
25+
/// {
26+
/// var foo = Volcengine.Cen.GetGrantInstances.Invoke(new()
27+
/// {
28+
/// InstanceId = "vpc-2bysvq1xx543k2dx0eeul****",
29+
/// InstanceRegionId = "cn-beijing",
30+
/// InstanceType = "VPC",
31+
/// });
32+
///
33+
/// });
34+
/// ```
35+
/// </summary>
36+
public static Task<GetGrantInstancesResult> InvokeAsync(GetGrantInstancesArgs? args = null, InvokeOptions? options = null)
37+
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetGrantInstancesResult>("volcengine:cen/getGrantInstances:getGrantInstances", args ?? new GetGrantInstancesArgs(), options.WithDefaults());
38+
39+
/// <summary>
40+
/// Use this data source to query detailed information of cen grant instances
41+
/// ## Example Usage
42+
///
43+
/// ```csharp
44+
/// using System.Collections.Generic;
45+
/// using System.Linq;
46+
/// using Pulumi;
47+
/// using Volcengine = Pulumi.Volcengine;
48+
///
49+
/// return await Deployment.RunAsync(() =&gt;
50+
/// {
51+
/// var foo = Volcengine.Cen.GetGrantInstances.Invoke(new()
52+
/// {
53+
/// InstanceId = "vpc-2bysvq1xx543k2dx0eeul****",
54+
/// InstanceRegionId = "cn-beijing",
55+
/// InstanceType = "VPC",
56+
/// });
57+
///
58+
/// });
59+
/// ```
60+
/// </summary>
61+
public static Output<GetGrantInstancesResult> Invoke(GetGrantInstancesInvokeArgs? args = null, InvokeOptions? options = null)
62+
=> global::Pulumi.Deployment.Instance.Invoke<GetGrantInstancesResult>("volcengine:cen/getGrantInstances:getGrantInstances", args ?? new GetGrantInstancesInvokeArgs(), options.WithDefaults());
63+
}
64+
65+
66+
public sealed class GetGrantInstancesArgs : global::Pulumi.InvokeArgs
67+
{
68+
/// <summary>
69+
/// The ID of the instance.
70+
/// </summary>
71+
[Input("instanceId")]
72+
public string? InstanceId { get; set; }
73+
74+
/// <summary>
75+
/// The region ID of the instance.
76+
/// </summary>
77+
[Input("instanceRegionId")]
78+
public string? InstanceRegionId { get; set; }
79+
80+
/// <summary>
81+
/// The type of the instance. Valid values: `VPC`, `DCGW`.
82+
/// </summary>
83+
[Input("instanceType")]
84+
public string? InstanceType { get; set; }
85+
86+
/// <summary>
87+
/// File name where to save data source results.
88+
/// </summary>
89+
[Input("outputFile")]
90+
public string? OutputFile { get; set; }
91+
92+
public GetGrantInstancesArgs()
93+
{
94+
}
95+
public static new GetGrantInstancesArgs Empty => new GetGrantInstancesArgs();
96+
}
97+
98+
public sealed class GetGrantInstancesInvokeArgs : global::Pulumi.InvokeArgs
99+
{
100+
/// <summary>
101+
/// The ID of the instance.
102+
/// </summary>
103+
[Input("instanceId")]
104+
public Input<string>? InstanceId { get; set; }
105+
106+
/// <summary>
107+
/// The region ID of the instance.
108+
/// </summary>
109+
[Input("instanceRegionId")]
110+
public Input<string>? InstanceRegionId { get; set; }
111+
112+
/// <summary>
113+
/// The type of the instance. Valid values: `VPC`, `DCGW`.
114+
/// </summary>
115+
[Input("instanceType")]
116+
public Input<string>? InstanceType { get; set; }
117+
118+
/// <summary>
119+
/// File name where to save data source results.
120+
/// </summary>
121+
[Input("outputFile")]
122+
public Input<string>? OutputFile { get; set; }
123+
124+
public GetGrantInstancesInvokeArgs()
125+
{
126+
}
127+
public static new GetGrantInstancesInvokeArgs Empty => new GetGrantInstancesInvokeArgs();
128+
}
129+
130+
131+
[OutputType]
132+
public sealed class GetGrantInstancesResult
133+
{
134+
/// <summary>
135+
/// The collection of query.
136+
/// </summary>
137+
public readonly ImmutableArray<Outputs.GetGrantInstancesGrantRuleResult> GrantRules;
138+
/// <summary>
139+
/// The provider-assigned unique ID for this managed resource.
140+
/// </summary>
141+
public readonly string Id;
142+
/// <summary>
143+
/// The ID of the instance.
144+
/// </summary>
145+
public readonly string? InstanceId;
146+
/// <summary>
147+
/// The region ID of the instance.
148+
/// </summary>
149+
public readonly string? InstanceRegionId;
150+
/// <summary>
151+
/// The type of the instance.
152+
/// </summary>
153+
public readonly string? InstanceType;
154+
public readonly string? OutputFile;
155+
/// <summary>
156+
/// The total count of query.
157+
/// </summary>
158+
public readonly int TotalCount;
159+
160+
[OutputConstructor]
161+
private GetGrantInstancesResult(
162+
ImmutableArray<Outputs.GetGrantInstancesGrantRuleResult> grantRules,
163+
164+
string id,
165+
166+
string? instanceId,
167+
168+
string? instanceRegionId,
169+
170+
string? instanceType,
171+
172+
string? outputFile,
173+
174+
int totalCount)
175+
{
176+
GrantRules = grantRules;
177+
Id = id;
178+
InstanceId = instanceId;
179+
InstanceRegionId = instanceRegionId;
180+
InstanceType = instanceType;
181+
OutputFile = outputFile;
182+
TotalCount = totalCount;
183+
}
184+
}
185+
}

sdk/dotnet/Cen/GetInterRegionBandwidths.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ public static Output<GetInterRegionBandwidthsResult> Invoke(GetInterRegionBandwi
179179

180180
public sealed class GetInterRegionBandwidthsArgs : global::Pulumi.InvokeArgs
181181
{
182+
/// <summary>
183+
/// The ID of the cen.
184+
/// </summary>
185+
[Input("cenId")]
186+
public string? CenId { get; set; }
187+
182188
[Input("ids")]
183189
private List<string>? _ids;
184190

@@ -205,6 +211,12 @@ public GetInterRegionBandwidthsArgs()
205211

206212
public sealed class GetInterRegionBandwidthsInvokeArgs : global::Pulumi.InvokeArgs
207213
{
214+
/// <summary>
215+
/// The ID of the cen.
216+
/// </summary>
217+
[Input("cenId")]
218+
public Input<string>? CenId { get; set; }
219+
208220
[Input("ids")]
209221
private InputList<string>? _ids;
210222

@@ -233,6 +245,10 @@ public GetInterRegionBandwidthsInvokeArgs()
233245
[OutputType]
234246
public sealed class GetInterRegionBandwidthsResult
235247
{
248+
/// <summary>
249+
/// The cen ID of the cen inter region bandwidth.
250+
/// </summary>
251+
public readonly string? CenId;
236252
/// <summary>
237253
/// The provider-assigned unique ID for this managed resource.
238254
/// </summary>
@@ -250,6 +266,8 @@ public sealed class GetInterRegionBandwidthsResult
250266

251267
[OutputConstructor]
252268
private GetInterRegionBandwidthsResult(
269+
string? cenId,
270+
253271
string id,
254272

255273
ImmutableArray<string> ids,
@@ -260,6 +278,7 @@ private GetInterRegionBandwidthsResult(
260278

261279
int totalCount)
262280
{
281+
CenId = cenId;
263282
Id = id;
264283
Ids = ids;
265284
InterRegionBandwidths = interRegionBandwidths;

0 commit comments

Comments
 (0)