Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
180 changes: 89 additions & 91 deletions gen/sentry/allprojectsspikeprotection/AllProjectsSpikeProtection.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

type AllProjectsSpikeProtectionConfig struct {
// Experimental.
Connection interface{} `field:"optional" json:"connection" yaml:"connection"`
Connection any `field:"optional" json:"connection" yaml:"connection"`
// Experimental.
Count interface{} `field:"optional" json:"count" yaml:"count"`
Count any `field:"optional" json:"count" yaml:"count"`
// Experimental.
DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"`
// Experimental.
Expand All @@ -18,11 +18,11 @@ type AllProjectsSpikeProtectionConfig struct {
// Experimental.
Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"`
// Experimental.
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"`
// Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off for all projects.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/jianyuan/sentry/0.14.5/docs/resources/all_projects_spike_protection#enabled AllProjectsSpikeProtection#enabled}
Enabled interface{} `field:"required" json:"enabled" yaml:"enabled"`
Enabled any `field:"required" json:"enabled" yaml:"enabled"`
// The organization of this resource.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/jianyuan/sentry/0.14.5/docs/resources/all_projects_spike_protection#organization AllProjectsSpikeProtection#organization}
Expand All @@ -32,4 +32,3 @@ type AllProjectsSpikeProtectionConfig struct {
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/jianyuan/sentry/0.14.5/docs/resources/all_projects_spike_protection#projects AllProjectsSpikeProtection#projects}
Projects *[]*string `field:"required" json:"projects" yaml:"projects"`
}

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (a *jsiiProxy_AllProjectsSpikeProtection) validateAddMoveTargetParameters(m
return nil
}

func (a *jsiiProxy_AllProjectsSpikeProtection) validateAddOverrideParameters(path *string, value interface{}) error {
func (a *jsiiProxy_AllProjectsSpikeProtection) validateAddOverrideParameters(path *string, value any) error {
if path == nil {
return fmt.Errorf("parameter path is required, but nil was provided")
}
Expand Down Expand Up @@ -127,7 +127,7 @@ func (a *jsiiProxy_AllProjectsSpikeProtection) validateMoveFromIdParameters(id *
return nil
}

func (a *jsiiProxy_AllProjectsSpikeProtection) validateMoveToParameters(moveTarget *string, index interface{}) error {
func (a *jsiiProxy_AllProjectsSpikeProtection) validateMoveToParameters(moveTarget *string, index any) error {
if moveTarget == nil {
return fmt.Errorf("parameter moveTarget is required, but nil was provided")
}
Expand Down Expand Up @@ -220,31 +220,31 @@ func validateAllProjectsSpikeProtection_GenerateConfigForImportParameters(scope
return nil
}

func validateAllProjectsSpikeProtection_IsConstructParameters(x interface{}) error {
func validateAllProjectsSpikeProtection_IsConstructParameters(x any) error {
if x == nil {
return fmt.Errorf("parameter x is required, but nil was provided")
}

return nil
}

func validateAllProjectsSpikeProtection_IsTerraformElementParameters(x interface{}) error {
func validateAllProjectsSpikeProtection_IsTerraformElementParameters(x any) error {
if x == nil {
return fmt.Errorf("parameter x is required, but nil was provided")
}

return nil
}

func validateAllProjectsSpikeProtection_IsTerraformResourceParameters(x interface{}) error {
func validateAllProjectsSpikeProtection_IsTerraformResourceParameters(x any) error {
if x == nil {
return fmt.Errorf("parameter x is required, but nil was provided")
}

return nil
}

func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetConnectionParameters(val interface{}) error {
func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetConnectionParameters(val any) error {
switch val.(type) {
case *cdktf.SSHProvisionerConnection:
val := val.(*cdktf.SSHProvisionerConnection)
Expand Down Expand Up @@ -277,7 +277,7 @@ func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetConnectionParameters(v
return nil
}

func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetCountParameters(val interface{}) error {
func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetCountParameters(val any) error {
switch val.(type) {
case *float64:
// ok
Expand Down Expand Up @@ -334,7 +334,7 @@ func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetCountParameters(val in
return nil
}

func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetEnabledParameters(val interface{}) error {
func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetEnabledParameters(val any) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
Expand Down Expand Up @@ -378,7 +378,7 @@ func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetProjectsParameters(val
return nil
}

func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetProvisionersParameters(val *[]interface{}) error {
func (j *jsiiProxy_AllProjectsSpikeProtection) validateSetProvisionersParameters(val *[]any) error {
for idx_97dfc6, v := range *val {
switch v.(type) {
case *cdktf.FileProvisioner:
Expand Down Expand Up @@ -442,4 +442,3 @@ func validateNewAllProjectsSpikeProtectionParameters(scope constructs.Construct,

return nil
}

6 changes: 3 additions & 3 deletions gen/sentry/allprojectsspikeprotection/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func init() {
_jsii_.RegisterClass(
"@cdktf/provider-sentry.allProjectsSpikeProtection.AllProjectsSpikeProtection",
reflect.TypeOf((*AllProjectsSpikeProtection)(nil)).Elem(),
reflect.TypeFor[AllProjectsSpikeProtection](),
[]_jsii_.Member{
_jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"},
_jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"},
Expand Down Expand Up @@ -59,14 +59,14 @@ func init() {
_jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"},
_jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"},
},
func() interface{} {
func() any {
j := jsiiProxy_AllProjectsSpikeProtection{}
_jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource)
return &j
},
)
_jsii_.RegisterStruct(
"@cdktf/provider-sentry.allProjectsSpikeProtection.AllProjectsSpikeProtectionConfig",
reflect.TypeOf((*AllProjectsSpikeProtectionConfig)(nil)).Elem(),
reflect.TypeFor[AllProjectsSpikeProtectionConfig](),
)
}
Loading