diff --git a/harness/nextgen/enum_connector_types.go b/harness/nextgen/enum_connector_types.go index 01e01c73..52693a68 100644 --- a/harness/nextgen/enum_connector_types.go +++ b/harness/nextgen/enum_connector_types.go @@ -3,93 +3,95 @@ package nextgen type ConnectorType string var ConnectorTypes = struct { - K8sCluster ConnectorType - Git ConnectorType - Splunk ConnectorType - AppDynamics ConnectorType - Azure ConnectorType - Prometheus ConnectorType - Dynatrace ConnectorType - Vault ConnectorType - AzureKeyVault ConnectorType - DockerRegistry ConnectorType - Local ConnectorType - AwsKms ConnectorType - GcpKms ConnectorType - AwsSecretManager ConnectorType - Gcp ConnectorType - Aws ConnectorType - Artifactory ConnectorType - Jira ConnectorType - Jenkins ConnectorType - Nexus ConnectorType - Github ConnectorType - Gitlab ConnectorType - Bitbucket ConnectorType - Codecommit ConnectorType - CEAws ConnectorType - CEAzure ConnectorType - GcpCloudCost ConnectorType - CEK8sCluster ConnectorType - HttpHelmRepo ConnectorType - OciHelmRepo ConnectorType - NewRelic ConnectorType - Datadog ConnectorType - SumoLogic ConnectorType - PagerDuty ConnectorType - GcpSecretManager ConnectorType - Spot ConnectorType - ServiceNow ConnectorType - Tas ConnectorType - TerraformCloud ConnectorType - ElasticSearch ConnectorType - Rancher ConnectorType - CustomHealth ConnectorType - Pdc ConnectorType + K8sCluster ConnectorType + Git ConnectorType + Splunk ConnectorType + AppDynamics ConnectorType + Azure ConnectorType + Prometheus ConnectorType + Dynatrace ConnectorType + Vault ConnectorType + AzureKeyVault ConnectorType + DockerRegistry ConnectorType + Local ConnectorType + AwsKms ConnectorType + GcpKms ConnectorType + AwsSecretManager ConnectorType + Gcp ConnectorType + Aws ConnectorType + Artifactory ConnectorType + Jira ConnectorType + Jenkins ConnectorType + Nexus ConnectorType + Github ConnectorType + Gitlab ConnectorType + Bitbucket ConnectorType + Codecommit ConnectorType + CEAws ConnectorType + CEAzure ConnectorType + GcpCloudCost ConnectorType + CEK8sCluster ConnectorType + HttpHelmRepo ConnectorType + OciHelmRepo ConnectorType + NewRelic ConnectorType + Datadog ConnectorType + SumoLogic ConnectorType + PagerDuty ConnectorType + GcpSecretManager ConnectorType + Spot ConnectorType + ServiceNow ConnectorType + Tas ConnectorType + TerraformCloud ConnectorType + ElasticSearch ConnectorType + Rancher ConnectorType + CustomHealth ConnectorType + Pdc ConnectorType + CustomSecretManager ConnectorType }{ - K8sCluster: "K8sCluster", - Git: "Git", - Splunk: "Splunk", - AppDynamics: "AppDynamics", - Prometheus: "Prometheus", - Dynatrace: "Dynatrace", - Vault: "Vault", - AzureKeyVault: "AzureKeyVault", - DockerRegistry: "DockerRegistry", - Local: "Local", - AwsKms: "AwsKms", - GcpKms: "GcpKms", - AwsSecretManager: "AwsSecretManager", - Gcp: "Gcp", - Aws: "Aws", - Artifactory: "Artifactory", - Jira: "Jira", - Jenkins: "Jenkins", - Nexus: "Nexus", - Github: "Github", - Gitlab: "Gitlab", - Bitbucket: "Bitbucket", - Codecommit: "Codecommit", - CEAws: "CEAws", - CEAzure: "CEAzure", - GcpCloudCost: "GcpCloudCost", - CEK8sCluster: "CEK8sCluster", - HttpHelmRepo: "HttpHelmRepo", - OciHelmRepo: "OciHelmRepo", - NewRelic: "NewRelic", - Datadog: "Datadog", - SumoLogic: "SumoLogic", - PagerDuty: "PagerDuty", - GcpSecretManager: "GcpSecretManager", - Azure: "Azure", - Spot: "Spot", - ServiceNow: "ServiceNow", - Tas: "Tas", - TerraformCloud: "TerraformCloud", - ElasticSearch: "ElasticSearch", - Rancher: "Rancher", - CustomHealth: "CustomHealth", - Pdc: "Pdc", + K8sCluster: "K8sCluster", + Git: "Git", + Splunk: "Splunk", + AppDynamics: "AppDynamics", + Prometheus: "Prometheus", + Dynatrace: "Dynatrace", + Vault: "Vault", + AzureKeyVault: "AzureKeyVault", + DockerRegistry: "DockerRegistry", + Local: "Local", + AwsKms: "AwsKms", + GcpKms: "GcpKms", + AwsSecretManager: "AwsSecretManager", + Gcp: "Gcp", + Aws: "Aws", + Artifactory: "Artifactory", + Jira: "Jira", + Jenkins: "Jenkins", + Nexus: "Nexus", + Github: "Github", + Gitlab: "Gitlab", + Bitbucket: "Bitbucket", + Codecommit: "Codecommit", + CEAws: "CEAws", + CEAzure: "CEAzure", + GcpCloudCost: "GcpCloudCost", + CEK8sCluster: "CEK8sCluster", + HttpHelmRepo: "HttpHelmRepo", + OciHelmRepo: "OciHelmRepo", + NewRelic: "NewRelic", + Datadog: "Datadog", + SumoLogic: "SumoLogic", + PagerDuty: "PagerDuty", + GcpSecretManager: "GcpSecretManager", + Azure: "Azure", + Spot: "Spot", + ServiceNow: "ServiceNow", + Tas: "Tas", + TerraformCloud: "TerraformCloud", + ElasticSearch: "ElasticSearch", + Rancher: "Rancher", + CustomHealth: "CustomHealth", + Pdc: "Pdc", + CustomSecretManager: "CustomSecretManager", } var ConnectorTypesSlice = []string{ @@ -136,6 +138,7 @@ var ConnectorTypesSlice = []string{ ConnectorTypes.Rancher.String(), ConnectorTypes.CustomHealth.String(), ConnectorTypes.Pdc.String(), + ConnectorTypes.CustomSecretManager.String(), } func (c ConnectorType) String() string { diff --git a/harness/nextgen/model_connector_info.go b/harness/nextgen/model_connector_info.go index 44f9ba01..6522d1a9 100644 --- a/harness/nextgen/model_connector_info.go +++ b/harness/nextgen/model_connector_info.go @@ -40,6 +40,7 @@ type ConnectorInfo struct { Azure *AzureConnector `json:"-"` AzureKeyVault *AzureKeyVaultConnector `json:"-"` BitBucket *BitbucketConnector `json:"-"` + CustomSecretManager *CustomSecretManager `json:"_"` Datadog *DatadogConnectorDto `json:"-"` DockerRegistry *DockerConnector `json:"-"` Dynatrace *DynatraceConnectorDto `json:"-"` diff --git a/harness/nextgen/model_connector_info_serializer.go b/harness/nextgen/model_connector_info_serializer.go index 60187926..47fa9dd9 100644 --- a/harness/nextgen/model_connector_info_serializer.go +++ b/harness/nextgen/model_connector_info_serializer.go @@ -101,6 +101,8 @@ func (a *ConnectorInfo) UnmarshalJSON(data []byte) error { err = json.Unmarshal(aux.Spec, &a.CustomHealth) case ConnectorTypes.Pdc: err = json.Unmarshal(aux.Spec, &a.Pdc) + case ConnectorTypes.CustomSecretManager: + err = json.Unmarshal(aux.Spec, &a.CustomSecretManager) default: panic(fmt.Sprintf("unknown connector type %s", a.Type_)) } @@ -195,6 +197,8 @@ func (a *ConnectorInfo) MarshalJSON() ([]byte, error) { spec, err = json.Marshal(a.CustomHealth) case ConnectorTypes.Pdc: spec, err = json.Marshal(a.Pdc) + case ConnectorTypes.CustomSecretManager: + spec, err = json.Marshal(a.CustomSecretManager) default: panic(fmt.Sprintf("unknown connector type %s", a.Type_)) } diff --git a/harness/nextgen/model_custom_secret_manager.go b/harness/nextgen/model_custom_secret_manager.go new file mode 100644 index 00000000..a5e8cbf1 --- /dev/null +++ b/harness/nextgen/model_custom_secret_manager.go @@ -0,0 +1,21 @@ +/* + * CD NextGen API Reference + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 2.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +// package swagger +package nextgen + +type CustomSecretManager struct { + DelegateSelectors []string `json:"delegateSelectors,omitempty"` + OnDelegate bool `json:"onDelegate,omitempty"` + ConnectorRef string `json:"connectorRef,omitempty"` + Host string `json:"host,omitempty"` + WorkingDirectory string `json:"workingDirectory,omitempty"` + Template *TemplateLinkConfigForCustomSecretManager `json:"template"` + Timeout int64 `json:"timeout,omitempty"` + Default_ bool `json:"default,omitempty"` +} diff --git a/harness/nextgen/model_name_value_pair_with_default.go b/harness/nextgen/model_name_value_pair_with_default.go new file mode 100644 index 00000000..9feb8c86 --- /dev/null +++ b/harness/nextgen/model_name_value_pair_with_default.go @@ -0,0 +1,17 @@ +/* + * CD NextGen API Reference + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 2.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +// package swagger +package nextgen + +type NameValuePairWithDefault struct { + Name string `json:"name,omitempty"` + Value string `json:"value"` + Type_ string `json:"type"` + UseAsDefault bool `json:"useAsDefault,omitempty"` +} diff --git a/harness/nextgen/model_template_link_config_for_custom_secret_manager.go b/harness/nextgen/model_template_link_config_for_custom_secret_manager.go new file mode 100644 index 00000000..44e70294 --- /dev/null +++ b/harness/nextgen/model_template_link_config_for_custom_secret_manager.go @@ -0,0 +1,16 @@ +/* + * CD NextGen API Reference + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: 2.0 + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +// package swagger +package nextgen + +type TemplateLinkConfigForCustomSecretManager struct { + TemplateRef string `json:"templateRef"` + VersionLabel string `json:"versionLabel"` + TemplateInputs map[string][]NameValuePairWithDefault `json:"templateInputs,omitempty"` +}