Skip to content

Commit

Permalink
enable log of tencentcloud_cls_index
Browse files Browse the repository at this point in the history
  • Loading branch information
lyu571 committed Jun 5, 2024
1 parent 24a8cc0 commit fe818d5
Show file tree
Hide file tree
Showing 111 changed files with 8,647 additions and 334 deletions.
335 changes: 316 additions & 19 deletions provider/cmd/pulumi-resource-tencentcloud/schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf

require (
github.com/pulumi/pulumi-terraform-bridge/v3 v3.80.0
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100
)

require (
Expand Down Expand Up @@ -228,7 +228,7 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.860 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.860 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 // indirect
Expand Down Expand Up @@ -274,7 +274,7 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcm v1.0.547 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.912 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke v1.0.916 // indirect
Expand Down
11 changes: 6 additions & 5 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3065,8 +3065,9 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.873/go.mod
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.910/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.912/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.916/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920 h1:Kmm4rJrdI7D29IMOTT2oNp70h0TGsZ3obaekS8hvYkU=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.920/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932 h1:MB1+Ll6JxWTpZw/v0dMRvMEJhlcDKxK/JMQ8O5owRVc=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.932/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860/go.mod h1:NZo1WplQcC314kMlCRUoy8NQju2BnolIJj7NAWgsuhY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8=
Expand Down Expand Up @@ -3157,8 +3158,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696 h1:hTfJtxk
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.696/go.mod h1:DgY9Kgh9093fBl2M/vEFGJZwytDIrPQlYoxoT4rE7O0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533 h1:r6HQhmHzPp1oSGhwkNzUzIRlpnpb8Jhtcn1yKhg9ml4=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533/go.mod h1:5sIIchyV9sXIVAqsD3UWts+qQJ0qoc55sL2WuiY8Ugs=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825 h1:jIAqpu+EeiKK1U0Sb7l1I6hMATYyXtv7IU8ZWNHPrgM=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.825/go.mod h1:aaOidZKQTtM6vVgs5pnHryaLj9f+egPBpdQEylQxka4=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932 h1:qBMRApryLiQOJ91xEybn3fb6zkWfa9sp8Tdult5Y1vY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.932/go.mod h1:k2QG6A7u458viC4nZGM0Z0FNzKqQSJKgfqtxeqkqBDQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578 h1:vBpQhUroO+FAslUmsDWGi8nvczsqZBWVgQwlnyT0Aj8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578/go.mod h1:UlojGQh/9wb7/uXPNi7PvMral1CNAskVDNgqJEV83l0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.912 h1:XGOKd5umgbXDDTSOuLmoLDfNdh712lCIgIzw5SQItrA=
Expand All @@ -3181,8 +3182,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792 h1:NLgK
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792/go.mod h1:Xz6vPV3gHlzPwtEcmWdWO1EUXJDgn2p7UMCXbJiVioQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 h1:hMBLtiJPnZ9GvA677cTB6ELBR6B68wCR2QY1sNoGQc4=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199/go.mod h1:nnY91/H3j/Gu7V/oCA6Zeg8T5D3q36EUdBh4EjmHwqY=
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99 h1:uL5tfZj5XQ2668dw6HP936kAJLvGgppk48SkpDGI1iE=
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.99/go.mod h1:QaGuh9Zc1BL8B+AcDpbYCQ2TvV3oIE7KygRvMdiDGOA=
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100 h1:9syR1lXF1kyebD1PmeI/dZ0HM8PLHY0qOfnh34MDeeY=
github.com/tencentcloudstack/terraform-provider-tencentcloud v1.81.100/go.mod h1:OmTVEtu73P9ZVTg4OKge6ksMTyMo+GzChwH6UCu8CMc=
github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f h1:yTMDoBvFuXjZat10d98DIKbPnN9FQG+drt1SbNfMW5U=
github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f/go.mod h1:LUFnaqRmGk6pEHOaRmdn2dCZR2j0cSsM5xowWFPTPao=
github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=
Expand Down
3 changes: 1 addition & 2 deletions provider/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ func GetResourceOutput() []*ResourceOutput {

// skip the resources whose document cannot be generated correctly
skippedResources := map[string]struct{}{
"tencentcloud_audit": {},
"tencentcloud_cls_index": {},
"tencentcloud_audit": {},
}
skipFilter := func(resource string) bool {
_, exists := skippedResources[resource]
Expand Down
288 changes: 288 additions & 0 deletions sdk/dotnet/Tencentcloud/Cls/Index.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,288 @@
// *** 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 TencentCloudIAC.PulumiPackage.Tencentcloud.Cls
{
/// <summary>
/// Provides a resource to create a cls index.
///
/// ## Example Usage
///
/// &lt;!--Start PulumiCodeChooser --&gt;
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var exampleLogset = new Tencentcloud.Cls.Logset("exampleLogset", new()
/// {
/// LogsetName = "tf_example",
/// Tags =
/// {
/// { "demo", "test" },
/// },
/// });
///
/// var exampleTopic = new Tencentcloud.Cls.Topic("exampleTopic", new()
/// {
/// TopicName = "tf_example",
/// LogsetId = exampleLogset.Id,
/// AutoSplit = false,
/// MaxSplitPartitions = 20,
/// PartitionCount = 1,
/// Period = 30,
/// StorageType = "hot",
/// Describes = "Test Demo.",
/// HotPeriod = 10,
/// Tags =
/// {
/// { "test", "test" },
/// },
/// });
///
/// var tokenizerValue = "@&amp;?|#()='\",;:&lt;&gt;[]{}";
///
/// var exampleIndex = new Tencentcloud.Cls.Index("exampleIndex", new()
/// {
/// TopicId = exampleTopic.Id,
/// Rule = new Tencentcloud.Cls.Inputs.IndexRuleArgs
/// {
/// FullText = new Tencentcloud.Cls.Inputs.IndexRuleFullTextArgs
/// {
/// CaseSensitive = true,
/// Tokenizer = tokenizerValue,
/// ContainZH = true,
/// },
/// KeyValue = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueArgs
/// {
/// CaseSensitive = true,
/// KeyValues = new[]
/// {
/// new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs
/// {
/// Key = "hello",
/// Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs
/// {
/// ContainZH = true,
/// SqlFlag = true,
/// Tokenizer = tokenizerValue,
/// Type = "text",
/// },
/// },
/// new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueArgs
/// {
/// Key = "world",
/// Value = new Tencentcloud.Cls.Inputs.IndexRuleKeyValueKeyValueValueArgs
/// {
/// ContainZH = true,
/// SqlFlag = true,
/// Tokenizer = tokenizerValue,
/// Type = "text",
/// },
/// },
/// },
/// },
/// Tag = new Tencentcloud.Cls.Inputs.IndexRuleTagArgs
/// {
/// CaseSensitive = true,
/// KeyValues = new[]
/// {
/// new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueArgs
/// {
/// Key = "terraform",
/// Value = new Tencentcloud.Cls.Inputs.IndexRuleTagKeyValueValueArgs
/// {
/// ContainZH = true,
/// SqlFlag = true,
/// Tokenizer = tokenizerValue,
/// Type = "text",
/// },
/// },
/// },
/// },
/// DynamicIndex = new Tencentcloud.Cls.Inputs.IndexRuleDynamicIndexArgs
/// {
/// Status = true,
/// },
/// },
/// Status = true,
/// IncludeInternalFields = true,
/// MetadataFlag = 1,
/// });
///
/// });
/// ```
/// &lt;!--End PulumiCodeChooser --&gt;
///
/// ## Import
///
/// cls cos index can be imported using the id, e.g.
///
/// ```sh
/// $ pulumi import tencentcloud:Cls/index:Index example 0937e56f-4008-49d2-ad2d-69c52a9f11cc
/// ```
/// </summary>
[TencentcloudResourceType("tencentcloud:Cls/index:Index")]
public partial class Index : global::Pulumi.CustomResource
{
/// <summary>
/// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
/// </summary>
[Output("includeInternalFields")]
public Output<bool?> IncludeInternalFields { get; private set; } = null!;

/// <summary>
/// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
/// </summary>
[Output("metadataFlag")]
public Output<int?> MetadataFlag { get; private set; } = null!;

/// <summary>
/// Index rule.
/// </summary>
[Output("rule")]
public Output<Outputs.IndexRule> Rule { get; private set; } = null!;

/// <summary>
/// Whether to take effect. Default value: true.
/// </summary>
[Output("status")]
public Output<bool> Status { get; private set; } = null!;

/// <summary>
/// Log topic ID.
/// </summary>
[Output("topicId")]
public Output<string> TopicId { get; private set; } = null!;


/// <summary>
/// Create a Index 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 Index(string name, IndexArgs args, CustomResourceOptions? options = null)
: base("tencentcloud:Cls/index:Index", name, args ?? new IndexArgs(), MakeResourceOptions(options, ""))
{
}

private Index(string name, Input<string> id, IndexState? state = null, CustomResourceOptions? options = null)
: base("tencentcloud:Cls/index:Index", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/tencentcloudstack",
};
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 Index 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 Index Get(string name, Input<string> id, IndexState? state = null, CustomResourceOptions? options = null)
{
return new Index(name, id, state, options);
}
}

public sealed class IndexArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
/// </summary>
[Input("includeInternalFields")]
public Input<bool>? IncludeInternalFields { get; set; }

/// <summary>
/// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
/// </summary>
[Input("metadataFlag")]
public Input<int>? MetadataFlag { get; set; }

/// <summary>
/// Index rule.
/// </summary>
[Input("rule")]
public Input<Inputs.IndexRuleArgs>? Rule { get; set; }

/// <summary>
/// Whether to take effect. Default value: true.
/// </summary>
[Input("status")]
public Input<bool>? Status { get; set; }

/// <summary>
/// Log topic ID.
/// </summary>
[Input("topicId", required: true)]
public Input<string> TopicId { get; set; } = null!;

public IndexArgs()
{
}
public static new IndexArgs Empty => new IndexArgs();
}

public sealed class IndexState : global::Pulumi.ResourceArgs
{
/// <summary>
/// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
/// </summary>
[Input("includeInternalFields")]
public Input<bool>? IncludeInternalFields { get; set; }

/// <summary>
/// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
/// </summary>
[Input("metadataFlag")]
public Input<int>? MetadataFlag { get; set; }

/// <summary>
/// Index rule.
/// </summary>
[Input("rule")]
public Input<Inputs.IndexRuleGetArgs>? Rule { get; set; }

/// <summary>
/// Whether to take effect. Default value: true.
/// </summary>
[Input("status")]
public Input<bool>? Status { get; set; }

/// <summary>
/// Log topic ID.
/// </summary>
[Input("topicId")]
public Input<string>? TopicId { get; set; }

public IndexState()
{
}
public static new IndexState Empty => new IndexState();
}
}
Loading

0 comments on commit fe818d5

Please sign in to comment.