From 615999515f248d39d247d6388c985cda310efa8d Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Thu, 18 Sep 2025 17:13:21 +0800 Subject: [PATCH 1/2] add --- tencentcloud/provider.md | 4 -- .../tcss/resource_tc_tcss_image_registry.go | 9 +-- .../docs/r/tcss_image_registry.html.markdown | 63 ------------------- website/tencentcloud.erb | 14 ----- 4 files changed, 5 insertions(+), 85 deletions(-) delete mode 100644 website/docs/r/tcss_image_registry.html.markdown diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index b17431ed87..2d2385a48b 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -2330,10 +2330,6 @@ THPC Resource tencentcloud_thpc_workspaces -Tencent Container Security Service(TCSS) -Resource -tencentcloud_tcss_image_registry - TDMQ for MQTT(MQTT) Data Source tencentcloud_mqtt_registration_code diff --git a/tencentcloud/services/tcss/resource_tc_tcss_image_registry.go b/tencentcloud/services/tcss/resource_tc_tcss_image_registry.go index ffad36f5ab..e94ac9ea30 100644 --- a/tencentcloud/services/tcss/resource_tc_tcss_image_registry.go +++ b/tencentcloud/services/tcss/resource_tc_tcss_image_registry.go @@ -16,10 +16,11 @@ import ( func ResourceTencentCloudTcssImageRegistry() *schema.Resource { return &schema.Resource{ - Create: resourceTencentCloudTcssImageRegistryCreate, - Read: resourceTencentCloudTcssImageRegistryRead, - Update: resourceTencentCloudTcssImageRegistryUpdate, - Delete: resourceTencentCloudTcssImageRegistryDelete, + DeprecationMessage: "This resource has been deprecated in Terraform TencentCloud provider version 1.82.23.", + Create: resourceTencentCloudTcssImageRegistryCreate, + Read: resourceTencentCloudTcssImageRegistryRead, + Update: resourceTencentCloudTcssImageRegistryUpdate, + Delete: resourceTencentCloudTcssImageRegistryDelete, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, diff --git a/website/docs/r/tcss_image_registry.html.markdown b/website/docs/r/tcss_image_registry.html.markdown deleted file mode 100644 index 3e24000775..0000000000 --- a/website/docs/r/tcss_image_registry.html.markdown +++ /dev/null @@ -1,63 +0,0 @@ ---- -subcategory: "Tencent Container Security Service(TCSS)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_tcss_image_registry" -sidebar_current: "docs-tencentcloud-resource-tcss_image_registry" -description: |- - Provides a resource to create a tcss image registry ---- - -# tencentcloud_tcss_image_registry - -Provides a resource to create a tcss image registry - -## Example Usage - -```hcl -resource "tencentcloud_tcss_image_registry" "example" { - name = "terraform" - username = "root" - password = "Password@demo" - url = "https://example.com" - registry_type = "harbor" - net_type = "public" - registry_version = "V1" - registry_region = "default" - need_scan = true - conn_detect_config { - quuid = "backend" - uuid = "backend" - } -} -``` - -## Argument Reference - -The following arguments are supported: - -* `name` - (Required, String) Repository name. -* `net_type` - (Required, String) Network type, which can be `public` (public network). -* `password` - (Required, String) Password. -* `registry_type` - (Required, String) Repository type, which can be `harbor`. Valid values: harbor, quay, jfrog, aws, azure, other-tcr. -* `url` - (Required, String) Repository URL. -* `username` - (Required, String) Username. -* `conn_detect_config` - (Optional, Set) Connectivity detection configuration. -* `insecure` - (Optional, Int) Valid values: `0` (secure mode with certificate verification, which is the default value); `1` (unsecure mode that skips certificate verification). -* `need_scan` - (Optional, Bool) Whether to scan the latest image. -* `registry_region` - (Optional, String) Region. Default value: `default`. -* `registry_version` - (Optional, String) Repository version. -* `speed_limit` - (Optional, Int) Speed limit. - -The `conn_detect_config` object supports the following: - -* `quuid` - (Optional, String) Host Quuid. -* `uuid` - (Optional, String) Host uuid. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. -* `sync_status` - Sync status. - - diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index 244e028921..64b27143ad 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -5010,20 +5010,6 @@ -