Skip to content

Commit 6418005

Browse files
Add google_chronicle_watchlist resource to chronicle (#12648) (#8983)
[upstream:c809b03b784e13e62ee172da8598a396f4052116] Signed-off-by: Modular Magician <[email protected]>
1 parent 1381fcb commit 6418005

13 files changed

+1275
-2
lines changed

.changelog/12648.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-resource
2+
`google_chronicle_watchlist` (beta)
3+
```

google-beta/fwmodels/provider_model.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type ProviderModel struct {
5353
BinaryAuthorizationCustomEndpoint types.String `tfsdk:"binary_authorization_custom_endpoint"`
5454
BlockchainNodeEngineCustomEndpoint types.String `tfsdk:"blockchain_node_engine_custom_endpoint"`
5555
CertificateManagerCustomEndpoint types.String `tfsdk:"certificate_manager_custom_endpoint"`
56+
ChronicleCustomEndpoint types.String `tfsdk:"chronicle_custom_endpoint"`
5657
CloudAssetCustomEndpoint types.String `tfsdk:"cloud_asset_custom_endpoint"`
5758
CloudBuildCustomEndpoint types.String `tfsdk:"cloud_build_custom_endpoint"`
5859
Cloudbuildv2CustomEndpoint types.String `tfsdk:"cloudbuildv2_custom_endpoint"`

google-beta/fwprovider/framework_provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
299299
transport_tpg.CustomEndpointValidator(),
300300
},
301301
},
302+
"chronicle_custom_endpoint": &schema.StringAttribute{
303+
Optional: true,
304+
Validators: []validator.String{
305+
transport_tpg.CustomEndpointValidator(),
306+
},
307+
},
302308
"cloud_asset_custom_endpoint": &schema.StringAttribute{
303309
Optional: true,
304310
Validators: []validator.String{

google-beta/provider/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ func Provider() *schema.Provider {
263263
Optional: true,
264264
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
265265
},
266+
"chronicle_custom_endpoint": {
267+
Type: schema.TypeString,
268+
Optional: true,
269+
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
270+
},
266271
"cloud_asset_custom_endpoint": {
267272
Type: schema.TypeString,
268273
Optional: true,
@@ -1078,6 +1083,7 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
10781083
config.BinaryAuthorizationBasePath = d.Get("binary_authorization_custom_endpoint").(string)
10791084
config.BlockchainNodeEngineBasePath = d.Get("blockchain_node_engine_custom_endpoint").(string)
10801085
config.CertificateManagerBasePath = d.Get("certificate_manager_custom_endpoint").(string)
1086+
config.ChronicleBasePath = d.Get("chronicle_custom_endpoint").(string)
10811087
config.CloudAssetBasePath = d.Get("cloud_asset_custom_endpoint").(string)
10821088
config.CloudBuildBasePath = d.Get("cloud_build_custom_endpoint").(string)
10831089
config.Cloudbuildv2BasePath = d.Get("cloudbuildv2_custom_endpoint").(string)

google-beta/provider/provider_mmv1_resources.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/binaryauthorization"
2828
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/blockchainnodeengine"
2929
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/certificatemanager"
30+
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/chronicle"
3031
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudasset"
3132
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudbuild"
3233
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/cloudbuildv2"
@@ -511,9 +512,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
511512
}
512513

513514
// Resources
514-
// Generated resources: 573
515+
// Generated resources: 574
515516
// Generated IAM resources: 294
516-
// Total generated resources: 867
517+
// Total generated resources: 868
517518
var generatedResources = map[string]*schema.Resource{
518519
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
519520
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
@@ -645,6 +646,7 @@ var generatedResources = map[string]*schema.Resource{
645646
"google_certificate_manager_certificate_map_entry": certificatemanager.ResourceCertificateManagerCertificateMapEntry(),
646647
"google_certificate_manager_dns_authorization": certificatemanager.ResourceCertificateManagerDnsAuthorization(),
647648
"google_certificate_manager_trust_config": certificatemanager.ResourceCertificateManagerTrustConfig(),
649+
"google_chronicle_watchlist": chronicle.ResourceChronicleWatchlist(),
648650
"google_cloud_asset_folder_feed": cloudasset.ResourceCloudAssetFolderFeed(),
649651
"google_cloud_asset_organization_feed": cloudasset.ResourceCloudAssetOrganizationFeed(),
650652
"google_cloud_asset_project_feed": cloudasset.ResourceCloudAssetProjectFeed(),

0 commit comments

Comments
 (0)