diff --git a/Makefile b/Makefile index 2d6ecc81f..8d6452b97 100644 --- a/Makefile +++ b/Makefile @@ -246,4 +246,19 @@ generate-alerting-client: ## generate Kibana alerting client -g go \ -o /local/generated/alerting @ rm -rf generated/alerting/go.mod generated/alerting/go.sum generated/alerting/test - @ go fmt ./generated/... + @ go fmt ./generated/alerting/... + +.PHONY: generate-kibana-actions +generate-kibana-actions-client: ## generate Kibana actions client + @ docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \ + -i https://raw.githubusercontent.com/elastic/kibana/$(SWAGGER_VERSION)/x-pack/plugins/actions/docs/openapi/bundled.json \ + --skip-validate-spec \ + --git-repo-id terraform-provider-elasticstack \ + --git-user-id elastic \ + -p isGoSubmodule=true \ + -p packageName=kibanaactions \ + -p generateInterfaces=true \ + -g go \ + -o /local/generated/kibanaactions + @ rm -rf generated/kibanaactions/go.mod generated/kibanaactions/go.sum generated/kibanaactions/test + @ go fmt ./generated/kibanaactions/... diff --git a/README.md b/README.md index 127f5cb9c..66665cc4c 100644 --- a/README.md +++ b/README.md @@ -129,3 +129,18 @@ go mod tidy ``` Then commit the changes to `go.mod` and `go.sum`. + +### Generating Kibana clients + +Kibana clients for some APIs are generated based on Kibana OpenAPI specs. +Please see [Makefile](./Makefile) tasks for more details. + +#### Known issues +OpenAPI generator produces incorrect code for `RunConnector200ResponseData` struct +in [model_run_connector_200_response_data.go](./generated/kibanaactions/model_run_connector_200_response_data.go). +It doesn't strip curly braces from the struct field names. + +[There is a fix for the issue](https://github.com/OpenAPITools/openapi-generator/pull/13167) but it's not yet merged. +Currently the file is fixed manually. + +Also the specs don't include models for some connector types, e.g. they miss models for update requests for few connector types like `Slack`, `Webhook`, etc. diff --git a/docs/resources/kibana_action_connector.md b/docs/resources/kibana_action_connector.md new file mode 100644 index 000000000..6843d132f --- /dev/null +++ b/docs/resources/kibana_action_connector.md @@ -0,0 +1,58 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "elasticstack_kibana_action_connector Resource - terraform-provider-elasticstack" +subcategory: "" +description: |- + Creates a Kibana action connector. See https://www.elastic.co/guide/en/kibana/8.7/action-types.html +--- + +# elasticstack_kibana_action_connector (Resource) + +Creates a Kibana action connector. See https://www.elastic.co/guide/en/kibana/8.7/action-types.html + +## Example Usage + +```terraform +provider "elasticstack" { + elasticsearch {} +} + +resource "elasticstack_kibana_action_connector" "example" { + name = "%s" + config = jsonencode({ + index = ".kibana" + refresh = true + }) + connector_type_id = ".index" +} +``` + + +## Schema + +### Required + +- `config` (String) The configuration for the connector. Configuration properties vary depending on the connector type. +- `connector_type_id` (String) The ID of the connector type, e.g. `.index`. +- `name` (String) The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector. +- `secrets` (String) The secrets configuration for the connector. Secrets configuration properties vary depending on the connector type. + +### Optional + +- `connector_id` (String) A UUID v1 or v4 to use instead of a randomly generated ID. +- `space_id` (String) An identifier for the space. If space_id is not provided, the default space is used. + +### Read-Only + +- `id` (String) The ID of this resource. +- `is_deprecated` (Boolean) Indicates whether the connector type is deprecated. +- `is_missing_secrets` (Boolean) Indicates whether secrets are missing for the connector. +- `is_preconfigured` (Boolean) Indicates whether it is a preconfigured connector. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import elasticstack_kibana_action_connector.my_connector / +``` diff --git a/examples/resources/elasticstack_kibana_action_connector/import.sh b/examples/resources/elasticstack_kibana_action_connector/import.sh new file mode 100644 index 000000000..5a0f458fe --- /dev/null +++ b/examples/resources/elasticstack_kibana_action_connector/import.sh @@ -0,0 +1 @@ +terraform import elasticstack_kibana_action_connector.my_connector / diff --git a/examples/resources/elasticstack_kibana_action_connector/resource.tf b/examples/resources/elasticstack_kibana_action_connector/resource.tf new file mode 100644 index 000000000..21c1447bc --- /dev/null +++ b/examples/resources/elasticstack_kibana_action_connector/resource.tf @@ -0,0 +1,12 @@ +provider "elasticstack" { + elasticsearch {} +} + +resource "elasticstack_kibana_action_connector" "example" { + name = "%s" + config = jsonencode({ + index = ".kibana" + refresh = true + }) + connector_type_id = ".index" +} diff --git a/generated/kibanaactions/.gitignore b/generated/kibanaactions/.gitignore new file mode 100644 index 000000000..daf913b1b --- /dev/null +++ b/generated/kibanaactions/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/generated/kibanaactions/.openapi-generator-ignore b/generated/kibanaactions/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/generated/kibanaactions/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/generated/kibanaactions/.openapi-generator/FILES b/generated/kibanaactions/.openapi-generator/FILES new file mode 100644 index 000000000..1437b7472 --- /dev/null +++ b/generated/kibanaactions/.openapi-generator/FILES @@ -0,0 +1,248 @@ +.gitignore +.travis.yml +README.md +api/openapi.yaml +api_connectors.go +client.go +configuration.go +docs/ActionResponseProperties.md +docs/AlertIdentifierMapping.md +docs/CaseCommentMapping.md +docs/CaseDescriptionMapping.md +docs/CaseIdentifierMapping.md +docs/CaseNameMapping.md +docs/ConfigPropertiesCasesWebhook.md +docs/ConfigPropertiesIndex.md +docs/ConfigPropertiesJira.md +docs/ConfigPropertiesOpsgenie.md +docs/ConfigPropertiesResilient.md +docs/ConfigPropertiesServicenow.md +docs/ConfigPropertiesServicenowItom.md +docs/ConfigPropertiesSwimlane.md +docs/ConnectorMappingsPropertiesForASwimlaneConnector.md +docs/ConnectorResponseProperties.md +docs/ConnectorResponsePropertiesCasesWebhook.md +docs/ConnectorResponsePropertiesEmail.md +docs/ConnectorResponsePropertiesIndex.md +docs/ConnectorResponsePropertiesJira.md +docs/ConnectorResponsePropertiesOpsgenie.md +docs/ConnectorResponsePropertiesPagerduty.md +docs/ConnectorResponsePropertiesResilient.md +docs/ConnectorResponsePropertiesServerlog.md +docs/ConnectorResponsePropertiesServicenow.md +docs/ConnectorResponsePropertiesServicenowItom.md +docs/ConnectorResponsePropertiesServicenowSir.md +docs/ConnectorResponsePropertiesSlack.md +docs/ConnectorResponsePropertiesSwimlane.md +docs/ConnectorResponsePropertiesTeams.md +docs/ConnectorResponsePropertiesTines.md +docs/ConnectorResponsePropertiesWebhook.md +docs/ConnectorResponsePropertiesXmatters.md +docs/ConnectorTypes.md +docs/ConnectorsApi.md +docs/CreateConnectorRequestBodyProperties.md +docs/CreateConnectorRequestCasesWebhook.md +docs/CreateConnectorRequestEmail.md +docs/CreateConnectorRequestIndex.md +docs/CreateConnectorRequestJira.md +docs/CreateConnectorRequestOpsgenie.md +docs/CreateConnectorRequestPagerduty.md +docs/CreateConnectorRequestResilient.md +docs/CreateConnectorRequestServerlog.md +docs/CreateConnectorRequestServicenow.md +docs/CreateConnectorRequestServicenowItom.md +docs/CreateConnectorRequestServicenowSir.md +docs/CreateConnectorRequestSlack.md +docs/CreateConnectorRequestSwimlane.md +docs/CreateConnectorRequestTeams.md +docs/CreateConnectorRequestTines.md +docs/CreateConnectorRequestWebhook.md +docs/CreateConnectorRequestXmatters.md +docs/Features.md +docs/GetConnector404Response.md +docs/GetConnectorTypesResponseBodyPropertiesInner.md +docs/GetConnectorsResponseBodyProperties.md +docs/LegacyCreateConnectorRequestProperties.md +docs/LegacyGetConnectorTypesResponseBodyPropertiesInner.md +docs/LegacyRunConnector200Response.md +docs/LegacyRunConnectorRequestBodyProperties.md +docs/LegacyUpdateConnectorRequestBodyProperties.md +docs/Model401Response.md +docs/Model404Response.md +docs/RuleNameMapping.md +docs/RunConnector200Response.md +docs/RunConnector200ResponseData.md +docs/RunConnectorParamsDocuments.md +docs/RunConnectorParamsLevelMessage.md +docs/RunConnectorRequestBodyProperties.md +docs/RunConnectorRequestBodyPropertiesParams.md +docs/RunConnectorSubactionAddevent.md +docs/RunConnectorSubactionAddeventSubActionParams.md +docs/RunConnectorSubactionClosealert.md +docs/RunConnectorSubactionClosealertSubActionParams.md +docs/RunConnectorSubactionCreatealert.md +docs/RunConnectorSubactionCreatealertSubActionParams.md +docs/RunConnectorSubactionCreatealertSubActionParamsRespondersInner.md +docs/RunConnectorSubactionCreatealertSubActionParamsVisibleToInner.md +docs/RunConnectorSubactionFieldsbyissuetype.md +docs/RunConnectorSubactionFieldsbyissuetypeSubActionParams.md +docs/RunConnectorSubactionGetchoices.md +docs/RunConnectorSubactionGetchoicesSubActionParams.md +docs/RunConnectorSubactionGetfields.md +docs/RunConnectorSubactionGetincident.md +docs/RunConnectorSubactionGetincidentSubActionParams.md +docs/RunConnectorSubactionIssue.md +docs/RunConnectorSubactionIssueSubActionParams.md +docs/RunConnectorSubactionIssues.md +docs/RunConnectorSubactionIssuesSubActionParams.md +docs/RunConnectorSubactionIssuetypes.md +docs/RunConnectorSubactionPushtoservice.md +docs/RunConnectorSubactionPushtoserviceSubActionParams.md +docs/RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner.md +docs/RunConnectorSubactionPushtoserviceSubActionParamsIncident.md +docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp.md +docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash.md +docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl.md +docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp.md +docs/SecretsPropertiesCasesWebhook.md +docs/SecretsPropertiesJira.md +docs/SecretsPropertiesOpsgenie.md +docs/SecretsPropertiesResilient.md +docs/SecretsPropertiesServicenow.md +docs/SecretsPropertiesSwimlane.md +docs/SeverityMapping.md +docs/SubactionParameters.md +docs/UpdateConnector400Response.md +docs/UpdateConnectorRequestBodyProperties.md +docs/UpdateConnectorRequestCasesWebhook.md +docs/UpdateConnectorRequestIndex.md +docs/UpdateConnectorRequestJira.md +docs/UpdateConnectorRequestOpsgenie.md +docs/UpdateConnectorRequestResilient.md +docs/UpdateConnectorRequestServerlog.md +docs/UpdateConnectorRequestServicenow.md +docs/UpdateConnectorRequestServicenowItom.md +docs/UpdateConnectorRequestSwimlane.md +git_push.sh +go.mod +go.sum +model_401_response.go +model_404_response.go +model_action_response_properties.go +model_alert_identifier_mapping.go +model_case_comment_mapping.go +model_case_description_mapping.go +model_case_identifier_mapping.go +model_case_name_mapping.go +model_config_properties_cases_webhook.go +model_config_properties_index.go +model_config_properties_jira.go +model_config_properties_opsgenie.go +model_config_properties_resilient.go +model_config_properties_servicenow.go +model_config_properties_servicenow_itom.go +model_config_properties_swimlane.go +model_connector_mappings_properties_for_a_swimlane_connector.go +model_connector_response_properties.go +model_connector_response_properties_cases_webhook.go +model_connector_response_properties_email.go +model_connector_response_properties_index.go +model_connector_response_properties_jira.go +model_connector_response_properties_opsgenie.go +model_connector_response_properties_pagerduty.go +model_connector_response_properties_resilient.go +model_connector_response_properties_serverlog.go +model_connector_response_properties_servicenow.go +model_connector_response_properties_servicenow_itom.go +model_connector_response_properties_servicenow_sir.go +model_connector_response_properties_slack.go +model_connector_response_properties_swimlane.go +model_connector_response_properties_teams.go +model_connector_response_properties_tines.go +model_connector_response_properties_webhook.go +model_connector_response_properties_xmatters.go +model_connector_types.go +model_create_connector_request_body_properties.go +model_create_connector_request_cases_webhook.go +model_create_connector_request_email.go +model_create_connector_request_index.go +model_create_connector_request_jira.go +model_create_connector_request_opsgenie.go +model_create_connector_request_pagerduty.go +model_create_connector_request_resilient.go +model_create_connector_request_serverlog.go +model_create_connector_request_servicenow.go +model_create_connector_request_servicenow_itom.go +model_create_connector_request_servicenow_sir.go +model_create_connector_request_slack.go +model_create_connector_request_swimlane.go +model_create_connector_request_teams.go +model_create_connector_request_tines.go +model_create_connector_request_webhook.go +model_create_connector_request_xmatters.go +model_features.go +model_get_connector_404_response.go +model_get_connector_types_response_body_properties_inner.go +model_get_connectors_response_body_properties.go +model_legacy_create_connector_request_properties.go +model_legacy_get_connector_types_response_body_properties_inner.go +model_legacy_run_connector_200_response.go +model_legacy_run_connector_request_body_properties.go +model_legacy_update_connector_request_body_properties.go +model_rule_name_mapping.go +model_run_connector_200_response.go +model_run_connector_200_response_data.go +model_run_connector_params_documents.go +model_run_connector_params_level_message.go +model_run_connector_request_body_properties.go +model_run_connector_request_body_properties_params.go +model_run_connector_subaction_addevent.go +model_run_connector_subaction_addevent_sub_action_params.go +model_run_connector_subaction_closealert.go +model_run_connector_subaction_closealert_sub_action_params.go +model_run_connector_subaction_createalert.go +model_run_connector_subaction_createalert_sub_action_params.go +model_run_connector_subaction_createalert_sub_action_params_responders_inner.go +model_run_connector_subaction_createalert_sub_action_params_visible_to_inner.go +model_run_connector_subaction_fieldsbyissuetype.go +model_run_connector_subaction_fieldsbyissuetype_sub_action_params.go +model_run_connector_subaction_getchoices.go +model_run_connector_subaction_getchoices_sub_action_params.go +model_run_connector_subaction_getfields.go +model_run_connector_subaction_getincident.go +model_run_connector_subaction_getincident_sub_action_params.go +model_run_connector_subaction_issue.go +model_run_connector_subaction_issue_sub_action_params.go +model_run_connector_subaction_issues.go +model_run_connector_subaction_issues_sub_action_params.go +model_run_connector_subaction_issuetypes.go +model_run_connector_subaction_pushtoservice.go +model_run_connector_subaction_pushtoservice_sub_action_params.go +model_run_connector_subaction_pushtoservice_sub_action_params_comments_inner.go +model_run_connector_subaction_pushtoservice_sub_action_params_incident.go +model_run_connector_subaction_pushtoservice_sub_action_params_incident_dest_ip.go +model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_hash.go +model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_url.go +model_run_connector_subaction_pushtoservice_sub_action_params_incident_source_ip.go +model_secrets_properties_cases_webhook.go +model_secrets_properties_jira.go +model_secrets_properties_opsgenie.go +model_secrets_properties_resilient.go +model_secrets_properties_servicenow.go +model_secrets_properties_swimlane.go +model_severity_mapping.go +model_subaction_parameters.go +model_update_connector_400_response.go +model_update_connector_request_body_properties.go +model_update_connector_request_cases_webhook.go +model_update_connector_request_index.go +model_update_connector_request_jira.go +model_update_connector_request_opsgenie.go +model_update_connector_request_resilient.go +model_update_connector_request_serverlog.go +model_update_connector_request_servicenow.go +model_update_connector_request_servicenow_itom.go +model_update_connector_request_swimlane.go +response.go +test/api_connectors_test.go +utils.go diff --git a/generated/kibanaactions/.openapi-generator/VERSION b/generated/kibanaactions/.openapi-generator/VERSION new file mode 100644 index 000000000..c0be8a799 --- /dev/null +++ b/generated/kibanaactions/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.4.0 \ No newline at end of file diff --git a/generated/kibanaactions/.travis.yml b/generated/kibanaactions/.travis.yml new file mode 100644 index 000000000..f5cb2ce9a --- /dev/null +++ b/generated/kibanaactions/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/generated/kibanaactions/README.md b/generated/kibanaactions/README.md new file mode 100644 index 000000000..a6dccfbf2 --- /dev/null +++ b/generated/kibanaactions/README.md @@ -0,0 +1,264 @@ +# Go API client for kibanaactions + +OpenAPI schema for Connectors endpoints + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import kibanaactions "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), kibanaactions.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), kibanaactions.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), kibanaactions.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), kibanaactions.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost:5601* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ConnectorsApi* | [**CreateConnector**](docs/ConnectorsApi.md#createconnector) | **Post** /s/{spaceId}/api/actions/connector | Creates a connector. +*ConnectorsApi* | [**DeleteConnector**](docs/ConnectorsApi.md#deleteconnector) | **Delete** /s/{spaceId}/api/actions/connector/{connectorId} | Deletes a connector. +*ConnectorsApi* | [**GetConnector**](docs/ConnectorsApi.md#getconnector) | **Get** /s/{spaceId}/api/actions/connector/{connectorId} | Retrieves a connector by ID. +*ConnectorsApi* | [**GetConnectorTypes**](docs/ConnectorsApi.md#getconnectortypes) | **Get** /s/{spaceId}/api/actions/connector_types | Retrieves a list of all connector types. +*ConnectorsApi* | [**GetConnectors**](docs/ConnectorsApi.md#getconnectors) | **Get** /s/{spaceId}/api/actions/connectors | Retrieves all connectors. +*ConnectorsApi* | [**LegacyCreateConnector**](docs/ConnectorsApi.md#legacycreateconnector) | **Post** /s/{spaceId}/api/actions | Creates a connector. +*ConnectorsApi* | [**LegacyDeleteConnector**](docs/ConnectorsApi.md#legacydeleteconnector) | **Delete** /s/{spaceId}/api/actions/action/{actionId} | Deletes a connector. +*ConnectorsApi* | [**LegacyGetConnector**](docs/ConnectorsApi.md#legacygetconnector) | **Get** /s/{spaceId}/api/actions/action/{actionId} | Retrieves a connector by ID. +*ConnectorsApi* | [**LegacyGetConnectorTypes**](docs/ConnectorsApi.md#legacygetconnectortypes) | **Get** /s/{spaceId}/api/actions/list_action_types | Retrieves a list of all connector types. +*ConnectorsApi* | [**LegacyGetConnectors**](docs/ConnectorsApi.md#legacygetconnectors) | **Get** /s/{spaceId}/api/actions | Retrieves all connectors. +*ConnectorsApi* | [**LegacyRunConnector**](docs/ConnectorsApi.md#legacyrunconnector) | **Post** /s/{spaceId}/api/actions/action/{actionId}/_execute | Runs a connector. +*ConnectorsApi* | [**LegacyUpdateConnector**](docs/ConnectorsApi.md#legacyupdateconnector) | **Put** /s/{spaceId}/api/actions/action/{actionId} | Updates the attributes for a connector. +*ConnectorsApi* | [**RunConnector**](docs/ConnectorsApi.md#runconnector) | **Post** /s/{spaceId}/api/actions/connector/{connectorId}/_execute | Runs a connector. +*ConnectorsApi* | [**UpdateConnector**](docs/ConnectorsApi.md#updateconnector) | **Put** /s/{spaceId}/api/actions/connector/{connectorId} | Updates the attributes for a connector. + + +## Documentation For Models + + - [ActionResponseProperties](docs/ActionResponseProperties.md) + - [AlertIdentifierMapping](docs/AlertIdentifierMapping.md) + - [CaseCommentMapping](docs/CaseCommentMapping.md) + - [CaseDescriptionMapping](docs/CaseDescriptionMapping.md) + - [CaseIdentifierMapping](docs/CaseIdentifierMapping.md) + - [CaseNameMapping](docs/CaseNameMapping.md) + - [ConfigPropertiesCasesWebhook](docs/ConfigPropertiesCasesWebhook.md) + - [ConfigPropertiesIndex](docs/ConfigPropertiesIndex.md) + - [ConfigPropertiesJira](docs/ConfigPropertiesJira.md) + - [ConfigPropertiesOpsgenie](docs/ConfigPropertiesOpsgenie.md) + - [ConfigPropertiesResilient](docs/ConfigPropertiesResilient.md) + - [ConfigPropertiesServicenow](docs/ConfigPropertiesServicenow.md) + - [ConfigPropertiesServicenowItom](docs/ConfigPropertiesServicenowItom.md) + - [ConfigPropertiesSwimlane](docs/ConfigPropertiesSwimlane.md) + - [ConnectorMappingsPropertiesForASwimlaneConnector](docs/ConnectorMappingsPropertiesForASwimlaneConnector.md) + - [ConnectorResponseProperties](docs/ConnectorResponseProperties.md) + - [ConnectorResponsePropertiesCasesWebhook](docs/ConnectorResponsePropertiesCasesWebhook.md) + - [ConnectorResponsePropertiesEmail](docs/ConnectorResponsePropertiesEmail.md) + - [ConnectorResponsePropertiesIndex](docs/ConnectorResponsePropertiesIndex.md) + - [ConnectorResponsePropertiesJira](docs/ConnectorResponsePropertiesJira.md) + - [ConnectorResponsePropertiesOpsgenie](docs/ConnectorResponsePropertiesOpsgenie.md) + - [ConnectorResponsePropertiesPagerduty](docs/ConnectorResponsePropertiesPagerduty.md) + - [ConnectorResponsePropertiesResilient](docs/ConnectorResponsePropertiesResilient.md) + - [ConnectorResponsePropertiesServerlog](docs/ConnectorResponsePropertiesServerlog.md) + - [ConnectorResponsePropertiesServicenow](docs/ConnectorResponsePropertiesServicenow.md) + - [ConnectorResponsePropertiesServicenowItom](docs/ConnectorResponsePropertiesServicenowItom.md) + - [ConnectorResponsePropertiesServicenowSir](docs/ConnectorResponsePropertiesServicenowSir.md) + - [ConnectorResponsePropertiesSlack](docs/ConnectorResponsePropertiesSlack.md) + - [ConnectorResponsePropertiesSwimlane](docs/ConnectorResponsePropertiesSwimlane.md) + - [ConnectorResponsePropertiesTeams](docs/ConnectorResponsePropertiesTeams.md) + - [ConnectorResponsePropertiesTines](docs/ConnectorResponsePropertiesTines.md) + - [ConnectorResponsePropertiesWebhook](docs/ConnectorResponsePropertiesWebhook.md) + - [ConnectorResponsePropertiesXmatters](docs/ConnectorResponsePropertiesXmatters.md) + - [ConnectorTypes](docs/ConnectorTypes.md) + - [CreateConnectorRequestBodyProperties](docs/CreateConnectorRequestBodyProperties.md) + - [CreateConnectorRequestCasesWebhook](docs/CreateConnectorRequestCasesWebhook.md) + - [CreateConnectorRequestEmail](docs/CreateConnectorRequestEmail.md) + - [CreateConnectorRequestIndex](docs/CreateConnectorRequestIndex.md) + - [CreateConnectorRequestJira](docs/CreateConnectorRequestJira.md) + - [CreateConnectorRequestOpsgenie](docs/CreateConnectorRequestOpsgenie.md) + - [CreateConnectorRequestPagerduty](docs/CreateConnectorRequestPagerduty.md) + - [CreateConnectorRequestResilient](docs/CreateConnectorRequestResilient.md) + - [CreateConnectorRequestServerlog](docs/CreateConnectorRequestServerlog.md) + - [CreateConnectorRequestServicenow](docs/CreateConnectorRequestServicenow.md) + - [CreateConnectorRequestServicenowItom](docs/CreateConnectorRequestServicenowItom.md) + - [CreateConnectorRequestServicenowSir](docs/CreateConnectorRequestServicenowSir.md) + - [CreateConnectorRequestSlack](docs/CreateConnectorRequestSlack.md) + - [CreateConnectorRequestSwimlane](docs/CreateConnectorRequestSwimlane.md) + - [CreateConnectorRequestTeams](docs/CreateConnectorRequestTeams.md) + - [CreateConnectorRequestTines](docs/CreateConnectorRequestTines.md) + - [CreateConnectorRequestWebhook](docs/CreateConnectorRequestWebhook.md) + - [CreateConnectorRequestXmatters](docs/CreateConnectorRequestXmatters.md) + - [Features](docs/Features.md) + - [GetConnector404Response](docs/GetConnector404Response.md) + - [GetConnectorTypesResponseBodyPropertiesInner](docs/GetConnectorTypesResponseBodyPropertiesInner.md) + - [GetConnectorsResponseBodyProperties](docs/GetConnectorsResponseBodyProperties.md) + - [LegacyCreateConnectorRequestProperties](docs/LegacyCreateConnectorRequestProperties.md) + - [LegacyGetConnectorTypesResponseBodyPropertiesInner](docs/LegacyGetConnectorTypesResponseBodyPropertiesInner.md) + - [LegacyRunConnector200Response](docs/LegacyRunConnector200Response.md) + - [LegacyRunConnectorRequestBodyProperties](docs/LegacyRunConnectorRequestBodyProperties.md) + - [LegacyUpdateConnectorRequestBodyProperties](docs/LegacyUpdateConnectorRequestBodyProperties.md) + - [Model401Response](docs/Model401Response.md) + - [Model404Response](docs/Model404Response.md) + - [RuleNameMapping](docs/RuleNameMapping.md) + - [RunConnector200Response](docs/RunConnector200Response.md) + - [RunConnector200ResponseData](docs/RunConnector200ResponseData.md) + - [RunConnectorParamsDocuments](docs/RunConnectorParamsDocuments.md) + - [RunConnectorParamsLevelMessage](docs/RunConnectorParamsLevelMessage.md) + - [RunConnectorRequestBodyProperties](docs/RunConnectorRequestBodyProperties.md) + - [RunConnectorRequestBodyPropertiesParams](docs/RunConnectorRequestBodyPropertiesParams.md) + - [RunConnectorSubactionAddevent](docs/RunConnectorSubactionAddevent.md) + - [RunConnectorSubactionAddeventSubActionParams](docs/RunConnectorSubactionAddeventSubActionParams.md) + - [RunConnectorSubactionClosealert](docs/RunConnectorSubactionClosealert.md) + - [RunConnectorSubactionClosealertSubActionParams](docs/RunConnectorSubactionClosealertSubActionParams.md) + - [RunConnectorSubactionCreatealert](docs/RunConnectorSubactionCreatealert.md) + - [RunConnectorSubactionCreatealertSubActionParams](docs/RunConnectorSubactionCreatealertSubActionParams.md) + - [RunConnectorSubactionCreatealertSubActionParamsRespondersInner](docs/RunConnectorSubactionCreatealertSubActionParamsRespondersInner.md) + - [RunConnectorSubactionCreatealertSubActionParamsVisibleToInner](docs/RunConnectorSubactionCreatealertSubActionParamsVisibleToInner.md) + - [RunConnectorSubactionFieldsbyissuetype](docs/RunConnectorSubactionFieldsbyissuetype.md) + - [RunConnectorSubactionFieldsbyissuetypeSubActionParams](docs/RunConnectorSubactionFieldsbyissuetypeSubActionParams.md) + - [RunConnectorSubactionGetchoices](docs/RunConnectorSubactionGetchoices.md) + - [RunConnectorSubactionGetchoicesSubActionParams](docs/RunConnectorSubactionGetchoicesSubActionParams.md) + - [RunConnectorSubactionGetfields](docs/RunConnectorSubactionGetfields.md) + - [RunConnectorSubactionGetincident](docs/RunConnectorSubactionGetincident.md) + - [RunConnectorSubactionGetincidentSubActionParams](docs/RunConnectorSubactionGetincidentSubActionParams.md) + - [RunConnectorSubactionIssue](docs/RunConnectorSubactionIssue.md) + - [RunConnectorSubactionIssueSubActionParams](docs/RunConnectorSubactionIssueSubActionParams.md) + - [RunConnectorSubactionIssues](docs/RunConnectorSubactionIssues.md) + - [RunConnectorSubactionIssuesSubActionParams](docs/RunConnectorSubactionIssuesSubActionParams.md) + - [RunConnectorSubactionIssuetypes](docs/RunConnectorSubactionIssuetypes.md) + - [RunConnectorSubactionPushtoservice](docs/RunConnectorSubactionPushtoservice.md) + - [RunConnectorSubactionPushtoserviceSubActionParams](docs/RunConnectorSubactionPushtoserviceSubActionParams.md) + - [RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner](docs/RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner.md) + - [RunConnectorSubactionPushtoserviceSubActionParamsIncident](docs/RunConnectorSubactionPushtoserviceSubActionParamsIncident.md) + - [RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp](docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp.md) + - [RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash](docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash.md) + - [RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl](docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl.md) + - [RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp](docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp.md) + - [SecretsPropertiesCasesWebhook](docs/SecretsPropertiesCasesWebhook.md) + - [SecretsPropertiesJira](docs/SecretsPropertiesJira.md) + - [SecretsPropertiesOpsgenie](docs/SecretsPropertiesOpsgenie.md) + - [SecretsPropertiesResilient](docs/SecretsPropertiesResilient.md) + - [SecretsPropertiesServicenow](docs/SecretsPropertiesServicenow.md) + - [SecretsPropertiesSwimlane](docs/SecretsPropertiesSwimlane.md) + - [SeverityMapping](docs/SeverityMapping.md) + - [SubactionParameters](docs/SubactionParameters.md) + - [UpdateConnector400Response](docs/UpdateConnector400Response.md) + - [UpdateConnectorRequestBodyProperties](docs/UpdateConnectorRequestBodyProperties.md) + - [UpdateConnectorRequestCasesWebhook](docs/UpdateConnectorRequestCasesWebhook.md) + - [UpdateConnectorRequestIndex](docs/UpdateConnectorRequestIndex.md) + - [UpdateConnectorRequestJira](docs/UpdateConnectorRequestJira.md) + - [UpdateConnectorRequestOpsgenie](docs/UpdateConnectorRequestOpsgenie.md) + - [UpdateConnectorRequestResilient](docs/UpdateConnectorRequestResilient.md) + - [UpdateConnectorRequestServerlog](docs/UpdateConnectorRequestServerlog.md) + - [UpdateConnectorRequestServicenow](docs/UpdateConnectorRequestServicenow.md) + - [UpdateConnectorRequestServicenowItom](docs/UpdateConnectorRequestServicenowItom.md) + - [UpdateConnectorRequestSwimlane](docs/UpdateConnectorRequestSwimlane.md) + + +## Documentation For Authorization + + + +### basicAuth + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +### apiKeyAuth + +- **Type**: API key +- **API key parameter name**: ApiKey +- **Location**: HTTP header + +Note, each API key must be added to a map of `map[string]APIKey` where the key is: ApiKey and passed in as the auth context for each request. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/generated/kibanaactions/api/openapi.yaml b/generated/kibanaactions/api/openapi.yaml new file mode 100644 index 000000000..22c2ea871 --- /dev/null +++ b/generated/kibanaactions/api/openapi.yaml @@ -0,0 +1,3853 @@ +openapi: 3.0.1 +info: + contact: + name: Connectors Team + description: OpenAPI schema for Connectors endpoints + license: + name: Elastic License 2.0 + url: https://www.elastic.co/licensing/elastic-license + title: Connectors + version: "0.1" +servers: +- description: local + url: http://localhost:5601 +security: +- basicAuth: [] +- apiKeyAuth: [] +tags: +- description: Connector APIs enable you to create and manage connectors. + name: connectors +paths: + /s/{spaceId}/api/actions/connector: + post: + description: | + You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + operationId: createConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + requestBody: + content: + application/json: + examples: + createIndexConnectorRequest: + $ref: '#/components/examples/create_index_connector_request' + value: null + schema: + $ref: '#/components/schemas/Create_connector_request_body_properties' + required: true + responses: + "200": + content: + application/json: + examples: + createIndexConnectorResponse: + $ref: '#/components/examples/create_index_connector_response' + value: null + schema: + $ref: '#/components/schemas/connector_response_properties' + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Creates a connector. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/connector/{connectorId}: + delete: + description: | + You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. WARNING: When you delete a connector, it cannot be recovered. + operationId: deleteConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: An identifier for the connector. + explode: false + in: path + name: connectorId + required: true + schema: + example: df770e30-8b8b-11ed-a780-3b746c987a81 + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "204": + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/getConnector_404_response' + description: Object is not found. + servers: + - url: https://localhost:5601 + summary: Deletes a connector. + tags: + - connectors + get: + description: | + You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + operationId: getConnector + parameters: + - description: An identifier for the connector. + explode: false + in: path + name: connectorId + required: true + schema: + example: df770e30-8b8b-11ed-a780-3b746c987a81 + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + getConnectorResponse: + $ref: '#/components/examples/get_connector_response' + value: null + schema: + $ref: '#/components/schemas/connector_response_properties' + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/getConnector_404_response' + description: Object is not found. + servers: + - url: https://localhost:5601 + summary: Retrieves a connector by ID. + tags: + - connectors + put: + description: | + You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + operationId: updateConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: An identifier for the connector. + explode: false + in: path + name: connectorId + required: true + schema: + example: df770e30-8b8b-11ed-a780-3b746c987a81 + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + requestBody: + content: + application/json: + examples: + updateIndexConnectorRequest: + $ref: '#/components/examples/update_index_connector_request' + value: null + schema: + $ref: '#/components/schemas/Update_connector_request_body_properties' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/connector_response_properties' + description: Indicates a successful call. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/updateConnector_400_response' + description: Indicates a bad request. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/404_response' + description: Object is not found. + servers: + - url: https://localhost:5601 + summary: Updates the attributes for a connector. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/connectors: + get: + description: | + You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + operationId: getConnectors + parameters: + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + getConnectorsResponse: + $ref: '#/components/examples/get_connectors_response' + value: null + schema: + items: + $ref: '#/components/schemas/Get_connectors_response_body_properties' + type: array + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Retrieves all connectors. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/connector_types: + get: + description: | + You do not need any Kibana feature privileges to run this API. + operationId: getConnectorTypes + parameters: + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + - description: A filter to limit the retrieved connector types to those that + support a specific feature (such as alerting or cases). + explode: true + in: query + name: feature_id + required: false + schema: + $ref: '#/components/schemas/features' + style: form + responses: + "200": + content: + application/json: + examples: + getConnectorTypesResponse: + $ref: '#/components/examples/get_connector_types_response' + value: null + schema: + description: The properties vary for each connector type. + items: + $ref: '#/components/schemas/Get_connector_types_response_body_properties_inner' + title: Get connector types response body properties + type: array + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Retrieves a list of all connector types. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/connector/{connectorId}/_execute: + post: + description: | + You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems. You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. If you use an index connector, you must also have `all`, `create`, `index`, or `write` indices privileges. + operationId: runConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: An identifier for the connector. + explode: false + in: path + name: connectorId + required: true + schema: + example: df770e30-8b8b-11ed-a780-3b746c987a81 + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + requestBody: + content: + application/json: + examples: + runIndexConnectorRequest: + $ref: '#/components/examples/run_index_connector_request' + value: null + runJiraConnectorRequest: + $ref: '#/components/examples/run_jira_connector_request' + value: null + runServerLogConnectorRequest: + $ref: '#/components/examples/run_server_log_connector_request' + value: null + runServiceNowITOMConnectorRequest: + $ref: '#/components/examples/run_servicenow_itom_connector_request' + value: null + runSwimlaneConnectorRequest: + $ref: '#/components/examples/run_swimlane_connector_request' + value: null + schema: + $ref: '#/components/schemas/Run_connector_request_body_properties' + required: true + responses: + "200": + content: + application/json: + examples: + runIndexConnectorResponse: + $ref: '#/components/examples/run_index_connector_response' + value: null + runJiraConnectorResponse: + $ref: '#/components/examples/run_jira_connector_response' + value: null + runServerLogConnectorResponse: + $ref: '#/components/examples/run_server_log_connector_response' + value: null + runServiceNowITOMConnectorResponse: + $ref: '#/components/examples/run_servicenow_itom_connector_response' + value: null + runSwimlaneConnectorResponse: + $ref: '#/components/examples/run_swimlane_connector_response' + value: null + schema: + $ref: '#/components/schemas/runConnector_200_response' + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Runs a connector. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/action/{actionId}: + delete: + deprecated: true + description: | + Deprecated in 7.13.0. Use the delete connector API instead. WARNING: When you delete a connector, it cannot be recovered. + operationId: legacyDeleteConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: An identifier for the action. + explode: false + in: path + name: actionId + required: true + schema: + example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "204": + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Deletes a connector. + tags: + - connectors + get: + deprecated: true + description: Deprecated in 7.13.0. Use the get connector API instead. + operationId: legacyGetConnector + parameters: + - description: An identifier for the action. + explode: false + in: path + name: actionId + required: true + schema: + example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/action_response_properties' + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Retrieves a connector by ID. + tags: + - connectors + put: + deprecated: true + description: Deprecated in 7.13.0. Use the update connector API instead. + operationId: legacyUpdateConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: An identifier for the action. + explode: false + in: path + name: actionId + required: true + schema: + example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Legacy_update_connector_request_body_properties' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/action_response_properties' + description: Indicates a successful call. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/404_response' + description: Object is not found. + servers: + - url: https://localhost:5601 + summary: Updates the attributes for a connector. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions: + get: + deprecated: true + description: Deprecated in 7.13.0. Use the get all connectors API instead. + operationId: legacyGetConnectors + parameters: + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/action_response_properties' + type: array + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Retrieves all connectors. + tags: + - connectors + post: + deprecated: true + description: Deprecated in 7.13.0. Use the create connector API instead. + operationId: legacyCreateConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Legacy_create_connector_request_properties' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/action_response_properties' + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Creates a connector. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/list_action_types: + get: + deprecated: true + description: Deprecated in 7.13.0. Use the get all connector types API instead. + operationId: legacyGetConnectorTypes + parameters: + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + description: The properties vary for each connector type. + items: + $ref: '#/components/schemas/Legacy_get_connector_types_response_body_properties_inner' + title: Legacy get connector types response body properties + type: array + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Retrieves a list of all connector types. + tags: + - connectors + servers: + - url: https://localhost:5601 + /s/{spaceId}/api/actions/action/{actionId}/_execute: + post: + deprecated: true + description: Deprecated in 7.13.0. Use the run connector API instead. + operationId: legacyRunConnector + parameters: + - description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + - description: An identifier for the action. + explode: false + in: path + name: actionId + required: true + schema: + example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad + type: string + style: simple + - description: "An identifier for the space. If `/s/` and the identifier are\ + \ omitted from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Legacy_run_connector_request_body_properties' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/legacyRunConnector_200_response' + description: Indicates a successful call. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/401_response' + description: Authorization information is missing or invalid. + servers: + - url: https://localhost:5601 + summary: Runs a connector. + tags: + - connectors + servers: + - url: https://localhost:5601 +components: + examples: + create_index_connector_request: + summary: Create an index connector. + value: + name: my-connector + connector_type_id: .index + config: + index: test-index + create_index_connector_response: + summary: A new index connector. + value: + id: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad + connector_type_id: .index + name: my-connector + config: + index: test-index + refresh: false + executionTimeField: null + is_preconfigured: false + is_deprecated: false + is_missing_secrets: false + get_connector_response: + summary: A list of connector types + value: + id: df770e30-8b8b-11ed-a780-3b746c987a81 + name: my_server_log_connector + config: {} + connector_type_id: .server-log + is_preconfigured: false + is_deprecated: false + is_missing_secrets: false + update_index_connector_request: + summary: Update an index connector. + value: + name: updated-connector + config: + index: updated-index + get_connectors_response: + summary: A list of connectors + value: + - id: preconfigured-email-connector + name: my-preconfigured-email-notification + connector_type_id: .email + is_preconfigured: true + is_deprecated: false + referenced_by_count: 0 + - id: e07d0c80-8b8b-11ed-a780-3b746c987a81 + name: my-index-connector + config: + index: test-index + refresh: false + executionTimeField: null + connector_type_id: .index + is_preconfigured: false + is_deprecated: false + referenced_by_count: 2 + is_missing_secrets: false + get_connector_types_response: + summary: A list of connector types + value: + - id: .swimlane + name: Swimlane + enabled: true + enabled_in_config: true + enabled_in_license: true + minimum_license_required: gold + supported_feature_ids: + - alerting + - cases + - siem + - id: .index + name: Index + enabled: true + enabled_in_config: true + enabled_in_license: true + minimum_license_required: basic + supported_feature_ids: + - alerting + - uptime + - siem + - id: .server-log + name: Server log + enabled: true + enabled_in_config: true + enabled_in_license: true + minimum_license_required: basic + supported_feature_ids: + - alerting + - uptime + run_index_connector_request: + summary: Run an index connector. + value: + params: + documents: + - id: my_doc_id + name: my_doc_name + message: "hello, world" + run_jira_connector_request: + summary: Run a Jira connector to retrieve the list of issue types. + value: + params: + subAction: issueTypes + run_server_log_connector_request: + summary: Run a server log connector. + value: + params: + level: warn + message: Test warning message. + run_servicenow_itom_connector_request: + summary: Run a ServiceNow ITOM connector to retrieve the list of choices. + value: + params: + subAction: getChoices + subActionParams: + fields: + - severity + - urgency + run_swimlane_connector_request: + summary: Run a Swimlane connector to create an incident. + value: + params: + subAction: pushToService + subActionParams: + comments: + - commentId: 1 + comment: A comment about the incident. + incident: + caseId: "1000" + caseName: Case name + description: Description of the incident. + run_index_connector_response: + summary: Response from running an index connector. + value: + connector_id: fd38c600-96a5-11ed-bb79-353b74189cba + data: + errors: false + items: + - create: + _id: 4JtvwYUBrcyxt2NnfW3y + _index: my-index + _primary_term: 1 + _seq_no: 0 + _shards: + failed: 0 + successful: 1 + total: 2 + _version: 1 + result: created + status: 201 + took: 135 + status: ok + run_jira_connector_response: + summary: Response from retrieving the list of issue types for a Jira connector. + value: + connector_id: b3aad810-edbe-11ec-82d1-11348ecbf4a6 + data: + - id: 10024 + name: Improvement + - id: 10006 + name: Task + - id: 10007 + name: Sub-task + - id: 10025 + name: New Feature + - id: 10023 + name: Bug + - id: 10000 + name: Epic + status: ok + run_server_log_connector_response: + summary: Response from running a server log connector. + value: + connector_id: 7fc7b9a0-ecc9-11ec-8736-e7d63118c907 + status: ok + run_servicenow_itom_connector_response: + summary: Response from retrieving the list of choices for a ServiceNow ITOM + connector. + value: + connector_id: 9d9be270-2fd2-11ed-b0e0-87533c532698 + data: + - dependent_value: "" + element: severity + label: Critical + value: 1 + - dependent_value: "" + element: severity + label: Major + value: 2 + - dependent_value: "" + element: severity + label: Minor + value: 3 + - dependent_value: "" + element: severity + label: Warning + value: 4 + - dependent_value: "" + element: severity + label: OK + value: 5 + - dependent_value: "" + element: severity + label: Clear + value: 0 + - dependent_value: "" + element: urgency + label: 1 - High + value: 1 + - dependent_value: "" + element: urgency + label: 2 - Medium + value: 2 + - dependent_value: "" + element: urgency + label: 3 - Low + value: 3 + status: ok + run_swimlane_connector_response: + summary: Response from creating a Swimlane incident. + value: + connector_id: a4746470-2f94-11ed-b0e0-87533c532698 + data: + id: aKPmBHWzmdRQtx6Mx + title: TEST-457 + url: https://elastic.swimlane.url.us/record/aNcL2xniGHGpa2AHb/aKPmBHWzmdRQtx6Mx + pushedDate: 2022-09-08T16:52:27.866Z + comments: + - commentId: 1 + pushedDate: 2022-09-08T16:52:27.865Z + status: ok + parameters: + kbn_xsrf: + description: Cross-site request forgery protection + explode: false + in: header + name: kbn-xsrf + required: true + schema: + type: string + style: simple + space_id: + description: "An identifier for the space. If `/s/` and the identifier are omitted\ + \ from the path, the default space is used." + explode: false + in: path + name: spaceId + required: true + schema: + example: default + type: string + style: simple + connector_id: + description: An identifier for the connector. + explode: false + in: path + name: connectorId + required: true + schema: + example: df770e30-8b8b-11ed-a780-3b746c987a81 + type: string + style: simple + action_id: + description: An identifier for the action. + explode: false + in: path + name: actionId + required: true + schema: + example: c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad + type: string + style: simple + schemas: + config_properties_cases_webhook: + description: Defines properties for connectors when type is `.cases-webhook`. + properties: + createCommentJson: + description: | + A JSON payload sent to the create comment URL to create a case comment. You can use variables to add Kibana Cases data to the payload. The required variable is `case.comment`. Due to Mustache template variables (the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated once the Mustache variables have been placed when the REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. + example: "{\"body\":{\"[object Object]\":null}}" + type: string + createCommentMethod: + default: put + description: | + The REST API HTTP request method to create a case comment in the third-party system. Valid values are `patch`, `post`, and `put`. + enum: + - patch + - post + - put + type: string + createCommentUrl: + description: | + The REST API URL to create a case comment by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the `xpack.actions.allowedHosts setting`, add the hostname to the allowed hosts. + example: "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.id}}}/comment" + type: string + createIncidentJson: + description: | + A JSON payload sent to the create case URL to create a case. You can use variables to add case data to the payload. Required variables are `case.title` and `case.description`. Due to Mustache template variables (which is the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. + example: "{\"fields\":{\"summary\":{\"[object Object]\":null},\"description\"\ + :{\"[object Object]\":null},\"labels\":{\"[object Object]\":null}}}" + type: string + createIncidentMethod: + default: post + description: | + The REST API HTTP request method to create a case in the third-party system. Valid values are `patch`, `post`, and `put`. + enum: + - patch + - post + - put + type: string + createIncidentResponseKey: + description: The JSON key in the create case response that contains the + external case ID. + type: string + createIncidentUrl: + description: | + The REST API URL to create a case in the third-party system. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. + type: string + getIncidentResponseExternalTitleKey: + description: The JSON key in get case response that contains the external + case title. + type: string + getIncidentUrl: + description: | + The REST API URL to get the case by ID from the third-party system. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. You can use a variable to add the external system ID to the URL. Due to Mustache template variables (the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. + example: "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.id}}}" + type: string + hasAuth: + default: true + description: "If true, a username and password for login type authentication\ + \ must be provided." + type: boolean + headers: + description: | + A set of key-value pairs sent as headers with the request URLs for the create case, update case, get case, and create comment methods. + type: string + updateIncidentJson: + description: | + The JSON payload sent to the update case URL to update the case. You can use variables to add Kibana Cases data to the payload. Required variables are `case.title` and `case.description`. Due to Mustache template variables (which is the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. + example: "{\"fields\":{\"summary\":{\"[object Object]\":null},\"description\"\ + :{\"[object Object]\":null},\"labels\":{\"[object Object]\":null}}}" + type: string + updateIncidentMethod: + default: put + description: | + The REST API HTTP request method to update the case in the third-party system. Valid values are `patch`, `post`, and `put`. + enum: + - patch + - post + - put + type: string + updateIncidentUrl: + description: | + The REST API URL to update the case by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. + example: "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.ID}}}" + type: string + viewIncidentUrl: + description: | + The URL to view the case in the external system. You can use variables to add the external system ID or external system title to the URL. + example: "https://testing-jira.atlassian.net/browse/{{{external.system.title}}}" + type: string + required: + - createIncidentJson + - createIncidentResponseKey + - createIncidentUrl + - getIncidentResponseExternalTitleKey + - getIncidentUrl + - updateIncidentJson + - updateIncidentUrl + - viewIncidentUrl + title: Connector request properties for Webhook - Case Management connector + type: object + secrets_properties_cases_webhook: + properties: + password: + description: "The password for HTTP basic authentication. If `hasAuth` is\ + \ set to `true`, this property is required." + type: string + user: + description: "The username for HTTP basic authentication. If `hasAuth` is\ + \ set to `true`, this property is required." + type: string + title: Connector secrets properties for Webhook - Case Management connector + type: object + create_connector_request_cases_webhook: + description: | + The Webhook - Case Management connector uses axios to send POST, PUT, and GET requests to a case management RESTful API web service. + properties: + config: + $ref: '#/components/schemas/config_properties_cases_webhook' + connector_type_id: + description: The type of connector. + enum: + - .cases-webhook + example: .cases-webhook + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_cases_webhook' + required: + - config + - connector_type_id + - name + title: Create Webhook - Case Managment connector request + type: object + config_properties_email: + additionalProperties: true + description: Defines properties for connectors when type is `.email`. + title: Connector request properties for an email connector + type: object + secrets_properties_email: + additionalProperties: true + description: Defines secrets for connectors when type is `.email`. + title: Connector secrets properties for an email connector + type: object + create_connector_request_email: + description: | + The email connector uses the SMTP protocol to send mail messages, using an integration of Nodemailer. An exception is Microsoft Exchange, which uses HTTP protocol for sending emails, Send mail. Email message text is sent as both plain text and html text. + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.email`. + title: Connector request properties for an email connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .email + example: .email + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.email`. + title: Connector secrets properties for an email connector + type: object + required: + - config + - connector_type_id + - name + - secrets + title: Create email connector request + type: object + config_properties_index: + description: Defines properties for connectors when type is `.index`. + properties: + executionTimeField: + description: Specifies a field that will contain the time the alert condition + was detected. + nullable: true + type: string + index: + description: The Elasticsearch index to be written to. + type: string + refresh: + default: false + description: | + The refresh policy for the write request, which affects when changes are made visible to search. Refer to the refresh setting for Elasticsearch document APIs. + type: boolean + required: + - index + title: Connector request properties for an index connector + type: object + create_connector_request_index: + description: The index connector indexes a document into Elasticsearch. + properties: + config: + $ref: '#/components/schemas/config_properties_index' + connector_type_id: + description: The type of connector. + enum: + - .index + example: .index + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + required: + - config + - connector_type_id + - name + title: Create index connector request + type: object + config_properties_jira: + description: Defines properties for connectors when type is `.jira`. + properties: + apiUrl: + description: The Jira instance URL. + type: string + projectKey: + description: The Jira project key. + type: string + required: + - apiUrl + - projectKey + title: Connector request properties for a Jira connector + type: object + secrets_properties_jira: + description: Defines secrets for connectors when type is `.jira`. + properties: + apiToken: + description: The Jira API authentication token for HTTP basic authentication. + type: string + email: + description: The account email for HTTP Basic authentication. + type: string + required: + - apiToken + - email + title: Connector secrets properties for a Jira connector + type: object + create_connector_request_jira: + description: The Jira connector uses the REST API v2 to create Jira issues. + properties: + config: + $ref: '#/components/schemas/config_properties_jira' + connector_type_id: + description: The type of connector. + enum: + - .jira + example: .jira + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_jira' + required: + - config + - connector_type_id + - name + - secrets + title: Create Jira connector request + type: object + config_properties_opsgenie: + description: Defines properties for connectors when type is `.opsgenie`. + properties: + apiUrl: + description: | + The Opsgenie URL. For example, `https://api.opsgenie.com` or `https://api.eu.opsgenie.com`. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. + type: string + required: + - apiUrl + title: Connector request properties for an Opsgenie connector + type: object + secrets_properties_opsgenie: + description: Defines secrets for connectors when type is `.opsgenie`. + properties: + apiKey: + description: The Opsgenie API authentication key for HTTP Basic authentication. + type: string + required: + - apiKey + title: Connector secrets properties for an Opsgenie connector + type: object + create_connector_request_opsgenie: + description: The Opsgenie connector uses the Opsgenie alert API. + properties: + config: + $ref: '#/components/schemas/config_properties_opsgenie' + connector_type_id: + description: The type of connector. + enum: + - .opsgenie + example: .opsgenie + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_opsgenie' + required: + - config + - connector_type_id + - name + - secrets + title: Create Opsgenie connector request + type: object + config_properties_pagerduty: + additionalProperties: true + description: Defines properties for connectors when type is `.pagerduty`. + title: Connector request properties for a PagerDuty connector + type: object + secrets_properties_pagerduty: + additionalProperties: true + description: Defines secrets for connectors when type is `.pagerduty`. + title: Connector secrets properties for a PagerDuty connector + type: object + create_connector_request_pagerduty: + description: | + The PagerDuty connector uses the v2 Events API to trigger, acknowledge, and resolve PagerDuty alerts. + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.pagerduty`. + title: Connector request properties for a PagerDuty connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .pagerduty + example: .pagerduty + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.pagerduty`. + title: Connector secrets properties for a PagerDuty connector + type: object + required: + - config + - connector_type_id + - name + - secrets + title: Create PagerDuty connector request + type: object + config_properties_resilient: + description: Defines properties for connectors when type is `.resilient`. + properties: + apiUrl: + description: The IBM Resilient instance URL. + type: string + orgId: + description: The IBM Resilient organization ID. + type: string + required: + - apiUrl + - orgId + title: Connector request properties for a IBM Resilient connector + type: object + secrets_properties_resilient: + description: Defines secrets for connectors when type is `.resilient`. + properties: + apiKeyId: + description: The authentication key ID for HTTP Basic authentication. + type: string + apiKeySecret: + description: The authentication key secret for HTTP Basic authentication. + type: string + required: + - apiKeyId + - apiKeySecret + title: Connector secrets properties for IBM Resilient connector + type: object + create_connector_request_resilient: + description: The IBM Resilient connector uses the RESILIENT REST v2 to create + IBM Resilient incidents. + properties: + config: + $ref: '#/components/schemas/config_properties_resilient' + connector_type_id: + description: The type of connector. + enum: + - .resilient + example: .resilient + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_resilient' + required: + - config + - connector_type_id + - name + - secrets + title: Create IBM Resilient connector request + type: object + create_connector_request_serverlog: + description: This connector writes an entry to the Kibana server log. + properties: + connector_type_id: + description: The type of connector. + enum: + - .server-log + example: .server-log + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + required: + - connector_type_id + - name + title: Create server log connector request + type: object + config_properties_servicenow: + description: Defines properties for connectors when type is `.servicenow`. + properties: + apiUrl: + description: The ServiceNow instance URL. + type: string + clientId: + description: | + The client ID assigned to your OAuth application. This property is required when `isOAuth` is `true`. + type: string + isOAuth: + default: false + description: | + The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth). + type: boolean + jwtKeyId: + description: | + The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`. + type: string + userIdentifierValue: + description: | + The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is `Email`, the user identifier should be the user's email address. This property is required when `isOAuth` is `true`. + type: string + usesTableApi: + default: true + description: | + Determines whether the connector uses the Table API or the Import Set API. This property is supported only for ServiceNow ITSM and ServiceNow SecOps connectors. NOTE: If this property is set to `false`, the Elastic application should be installed in ServiceNow. + type: boolean + required: + - apiUrl + title: Connector request properties for a ServiceNow ITSM connector + type: object + secrets_properties_servicenow: + description: "Defines secrets for connectors when type is `.servicenow`, `.servicenow-sir`,\ + \ or `.servicenow-itom`." + properties: + clientSecret: + description: The client secret assigned to your OAuth application. This + property is required when `isOAuth` is `true`. + type: string + password: + description: The password for HTTP basic authentication. This property is + required when `isOAuth` is `false`. + type: string + privateKey: + description: The RSA private key that you created for use in ServiceNow. + This property is required when `isOAuth` is `true`. + type: string + privateKeyPassword: + description: The password for the RSA private key. This property is required + when `isOAuth` is `true` and you set a password on your private key. + type: string + username: + description: The username for HTTP basic authentication. This property is + required when `isOAuth` is `false`. + type: string + title: "Connector secrets properties for ServiceNow ITOM, ServiceNow ITSM, and\ + \ ServiceNow SecOps connectors" + type: object + create_connector_request_servicenow: + description: | + The ServiceNow ITSM connector uses the import set API to create ServiceNow incidents. You can use the connector for rule actions and cases. + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow' + connector_type_id: + description: The type of connector. + enum: + - .servicenow + example: .servicenow + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_servicenow' + required: + - config + - connector_type_id + - name + - secrets + title: Create ServiceNow ITSM connector request + type: object + config_properties_servicenow_itom: + description: Defines properties for connectors when type is `.servicenow`. + properties: + apiUrl: + description: The ServiceNow instance URL. + type: string + clientId: + description: | + The client ID assigned to your OAuth application. This property is required when `isOAuth` is `true`. + type: string + isOAuth: + default: false + description: | + The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth). + type: boolean + jwtKeyId: + description: | + The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`. + type: string + userIdentifierValue: + description: | + The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is `Email`, the user identifier should be the user's email address. This property is required when `isOAuth` is `true`. + type: string + required: + - apiUrl + title: Connector request properties for a ServiceNow ITSM connector + type: object + create_connector_request_servicenow_itom: + description: | + The ServiceNow ITOM connector uses the event API to create ServiceNow events. You can use the connector for rule actions. + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow_itom' + connector_type_id: + description: The type of connector. + enum: + - .servicenow-itom + example: .servicenow-itom + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_servicenow' + required: + - config + - connector_type_id + - name + - secrets + title: Create ServiceNow ITOM connector request + type: object + create_connector_request_servicenow_sir: + description: | + The ServiceNow SecOps connector uses the import set API to create ServiceNow security incidents. You can use the connector for rule actions and cases. + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow' + connector_type_id: + description: The type of connector. + enum: + - .servicenow-sir + example: .servicenow-sir + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_servicenow' + required: + - config + - connector_type_id + - name + - secrets + title: Create ServiceNow SecOps connector request + type: object + secrets_properties_slack: + additionalProperties: true + description: Defines secrets for connectors when type is `.slack`. + title: Connector secrets properties for a Slack connector + type: object + create_connector_request_slack: + description: The Slack connector uses Slack Incoming Webhooks. + properties: + connector_type_id: + description: The type of connector. + enum: + - .slack + example: .slack + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.slack`. + title: Connector secrets properties for a Slack connector + type: object + required: + - connector_type_id + - name + - secrets + title: Create Slack connector request + type: object + config_properties_swimlane: + description: Defines properties for connectors when type is `.swimlane`. + properties: + apiUrl: + description: The Swimlane instance URL. + type: string + appId: + description: The Swimlane application ID. + type: string + connectorType: + description: "The type of connector. Valid values are `all`, `alerts`, and\ + \ `cases`." + enum: + - all + - alerts + - cases + type: string + mappings: + $ref: '#/components/schemas/Connector_mappings_properties_for_a_Swimlane_connector' + required: + - apiUrl + - appId + - connectorType + title: Connector request properties for a Swimlane connector + type: object + secrets_properties_swimlane: + description: Defines secrets for connectors when type is `.swimlane`. + properties: + apiToken: + description: Swimlane API authentication token. + type: string + title: Connector secrets properties for a Swimlane connector + type: object + create_connector_request_swimlane: + description: The Swimlane connector uses the Swimlane REST API to create Swimlane + records. + properties: + config: + $ref: '#/components/schemas/config_properties_swimlane' + connector_type_id: + description: The type of connector. + enum: + - .swimlane + example: .swimlane + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_swimlane' + required: + - config + - connector_type_id + - name + - secrets + title: Create Swimlane connector request + type: object + secrets_properties_teams: + additionalProperties: true + description: Defines secrets for connectors when type is `.teams`. + title: Connector secrets properties for a Microsoft Teams connector + type: object + create_connector_request_teams: + description: The Microsoft Teams connector uses Incoming Webhooks. + properties: + connector_type_id: + description: The type of connector. + enum: + - .teams + example: .teams + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.teams`. + title: Connector secrets properties for a Microsoft Teams connector + type: object + required: + - connector_type_id + - name + - secrets + title: Create Microsoft Teams connector request + type: object + config_properties_tines: + additionalProperties: true + description: Defines properties for connectors when type is `.tines`. + title: Connector request properties for a Tines connector + type: object + secrets_properties_tines: + additionalProperties: true + description: Defines secrets for connectors when type is `.tines`. + title: Connector secrets properties for a Tines connector + type: object + create_connector_request_tines: + description: | + The Tines connector uses Tines Webhook actions to send events via POST request. + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.tines`. + title: Connector request properties for a Tines connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .tines + example: .tines + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.tines`. + title: Connector secrets properties for a Tines connector + type: object + required: + - config + - connector_type_id + - name + - secrets + title: Create Tines connector request + type: object + config_properties_webhook: + additionalProperties: true + description: Defines properties for connectors when type is `.webhook`. + title: Connector request properties for a Webhook connector + type: object + secrets_properties_webhook: + additionalProperties: true + description: Defines secrets for connectors when type is `.webhook`. + title: Connector secrets properties for a Webhook connector + type: object + create_connector_request_webhook: + description: | + The Webhook connector uses axios to send a POST or PUT request to a web service. + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.webhook`. + title: Connector request properties for a Webhook connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .webhook + example: .webhook + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.webhook`. + title: Connector secrets properties for a Webhook connector + type: object + required: + - config + - connector_type_id + - name + - secrets + title: Create Webhook connector request + type: object + config_properties_xmatters: + additionalProperties: true + description: Defines properties for connectors when type is `.xmatters`. + title: Connector request properties for a xMatters connector + type: object + secrets_properties_xmatters: + additionalProperties: true + description: Defines secrets for connectors when type is `.xmatters`. + title: Connector secrets properties for an xMatters connector + type: object + create_connector_request_xmatters: + description: | + The xMatters connector uses the xMatters Workflow for Elastic to send actionable alerts to on-call xMatters resources. + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.xmatters`. + title: Connector request properties for a xMatters connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .xmatters + example: .xmatters + type: string + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + additionalProperties: true + description: Defines secrets for connectors when type is `.xmatters`. + title: Connector secrets properties for an xMatters connector + type: object + required: + - config + - connector_type_id + - name + - secrets + title: Create xMatters connector request + type: object + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true, the\ + \ `config` and `is_missing_secrets` properties are omitted from the response." + example: false + type: boolean + connector_response_properties_cases_webhook: + properties: + config: + $ref: '#/components/schemas/config_properties_cases_webhook' + connector_type_id: + description: The type of connector. + enum: + - .cases-webhook + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector request properties for a Webhook - Case Management connector + type: object + connector_response_properties_email: + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.email`. + title: Connector request properties for an email connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .email + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for an email connector + type: object + connector_response_properties_index: + properties: + config: + $ref: '#/components/schemas/config_properties_index' + connector_type_id: + description: The type of connector. + enum: + - .index + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for an index connector + type: object + connector_response_properties_jira: + properties: + config: + $ref: '#/components/schemas/config_properties_jira' + connector_type_id: + description: The type of connector. + enum: + - .jira + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a Jira connector + type: object + connector_response_properties_opsgenie: + properties: + config: + $ref: '#/components/schemas/config_properties_opsgenie' + connector_type_id: + description: The type of connector. + enum: + - .opsgenie + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for an Opsgenie connector + type: object + connector_response_properties_pagerduty: + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.pagerduty`. + title: Connector request properties for a PagerDuty connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .pagerduty + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a PagerDuty connector + type: object + connector_response_properties_resilient: + properties: + config: + $ref: '#/components/schemas/config_properties_resilient' + connector_type_id: + description: The type of connector. + enum: + - .resilient + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a IBM Resilient connector + type: object + connector_response_properties_serverlog: + properties: + config: + nullable: true + type: object + connector_type_id: + description: The type of connector. + enum: + - .server-log + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a server log connector + type: object + connector_response_properties_servicenow: + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow' + connector_type_id: + description: The type of connector. + enum: + - .servicenow + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a ServiceNow ITSM connector + type: object + connector_response_properties_servicenow_itom: + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow_itom' + connector_type_id: + description: The type of connector. + enum: + - .servicenow-itom + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a ServiceNow ITOM connector + type: object + connector_response_properties_servicenow_sir: + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow' + connector_type_id: + description: The type of connector. + enum: + - .servicenow-sir + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a ServiceNow SecOps connector + type: object + connector_response_properties_slack: + properties: + connector_type_id: + description: The type of connector. + enum: + - .slack + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a Slack connector + type: object + connector_response_properties_swimlane: + properties: + config: + $ref: '#/components/schemas/config_properties_swimlane' + connector_type_id: + description: The type of connector. + enum: + - .swimlane + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a Swimlane connector + type: object + connector_response_properties_teams: + properties: + connector_type_id: + description: The type of connector. + enum: + - .teams + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a Microsoft Teams connector + type: object + connector_response_properties_tines: + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.tines`. + title: Connector request properties for a Tines connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .tines + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a Tines connector + type: object + connector_response_properties_webhook: + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.webhook`. + title: Connector request properties for a Webhook connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .webhook + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for a Webhook connector + type: object + connector_response_properties_xmatters: + properties: + config: + additionalProperties: true + description: Defines properties for connectors when type is `.xmatters`. + title: Connector request properties for a xMatters connector + type: object + connector_type_id: + description: The type of connector. + enum: + - .xmatters + type: string + id: + description: The identifier for the connector. + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + type: string + required: + - config + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + title: Connector response properties for an xMatters connector + type: object + connector_response_properties: + description: The properties vary depending on the connector type. + discriminator: + propertyName: connector_type_id + oneOf: + - $ref: '#/components/schemas/connector_response_properties_cases_webhook' + - $ref: '#/components/schemas/connector_response_properties_email' + - $ref: '#/components/schemas/connector_response_properties_index' + - $ref: '#/components/schemas/connector_response_properties_jira' + - $ref: '#/components/schemas/connector_response_properties_opsgenie' + - $ref: '#/components/schemas/connector_response_properties_pagerduty' + - $ref: '#/components/schemas/connector_response_properties_resilient' + - $ref: '#/components/schemas/connector_response_properties_serverlog' + - $ref: '#/components/schemas/connector_response_properties_servicenow' + - $ref: '#/components/schemas/connector_response_properties_servicenow_itom' + - $ref: '#/components/schemas/connector_response_properties_servicenow_sir' + - $ref: '#/components/schemas/connector_response_properties_slack' + - $ref: '#/components/schemas/connector_response_properties_swimlane' + - $ref: '#/components/schemas/connector_response_properties_teams' + - $ref: '#/components/schemas/connector_response_properties_tines' + - $ref: '#/components/schemas/connector_response_properties_webhook' + - $ref: '#/components/schemas/connector_response_properties_xmatters' + title: Connector response properties + "401_response": + properties: + error: + enum: + - Unauthorized + example: Unauthorized + type: string + message: + type: string + statusCode: + enum: + - 401 + example: 401 + type: integer + title: Unsuccessful rule API response + type: object + update_connector_request_cases_webhook: + properties: + config: + $ref: '#/components/schemas/config_properties_cases_webhook' + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_cases_webhook' + required: + - config + - name + title: Update Webhook - Case Managment connector request + type: object + update_connector_request_index: + properties: + config: + $ref: '#/components/schemas/config_properties_index' + name: + description: The display name for the connector. + type: string + required: + - config + - name + title: Update index connector request + type: object + update_connector_request_jira: + properties: + config: + $ref: '#/components/schemas/config_properties_jira' + name: + description: The display name for the connector. + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_jira' + required: + - config + - name + - secrets + title: Update Jira connector request + type: object + update_connector_request_opsgenie: + properties: + config: + $ref: '#/components/schemas/config_properties_opsgenie' + name: + description: The display name for the connector. + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_opsgenie' + required: + - config + - name + - secrets + title: Update Opsgenie connector request + type: object + update_connector_request_resilient: + properties: + config: + $ref: '#/components/schemas/config_properties_resilient' + name: + description: The display name for the connector. + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_resilient' + required: + - config + - name + - secrets + title: Update IBM Resilient connector request + type: object + update_connector_request_serverlog: + properties: + name: + description: The display name for the connector. + type: string + required: + - name + title: Update server log connector request + type: object + update_connector_request_servicenow: + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow' + name: + description: The display name for the connector. + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_servicenow' + required: + - config + - name + - secrets + title: Update ServiceNow ITSM connector or ServiceNow SecOps request + type: object + update_connector_request_servicenow_itom: + properties: + config: + $ref: '#/components/schemas/config_properties_servicenow_itom' + name: + description: The display name for the connector. + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_servicenow' + required: + - config + - name + - secrets + title: Create ServiceNow ITOM connector request + type: object + update_connector_request_swimlane: + properties: + config: + $ref: '#/components/schemas/config_properties_swimlane' + name: + description: The display name for the connector. + example: my-connector + type: string + secrets: + $ref: '#/components/schemas/secrets_properties_swimlane' + required: + - config + - name + - secrets + title: Update Swimlane connector request + type: object + "404_response": + properties: + error: + enum: + - Not Found + example: Not Found + type: string + message: + example: "Saved object [action/baf33fc0-920c-11ed-b36a-874bd1548a00] not\ + \ found" + type: string + statusCode: + enum: + - 404 + example: 404 + type: integer + type: object + connector_types: + description: "The type of connector. For example, `.email`, `.index`, `.jira`,\ + \ `.opsgenie`, or `.server-log`." + enum: + - .cases-webhook + - .email + - .index + - .jira + - .opsgenie + - .pagerduty + - .resilient + - .servicenow + - .servicenow-itom + - .servicenow-sir + - .server-log + - .slack + - .swimlane + - .teams + - .tines + - .webhook + - .xmatters + example: .server-log + title: Connector types + type: string + features: + description: | + The feature that uses the connector. Valid values are `alerting`, `cases`, `uptime`, and `siem`. + enum: + - alerting + - cases + - uptime + - siem + type: string + run_connector_params_documents: + description: Test an action that indexes a document into Elasticsearch. + properties: + documents: + description: The documents in JSON format for index connectors. + items: + additionalProperties: true + type: object + type: array + required: + - documents + title: Index connector parameters + type: object + run_connector_params_level_message: + description: Test an action that writes an entry to the Kibana server log. + properties: + level: + default: info + description: The log level of the message for server log connectors. + enum: + - debug + - error + - fatal + - info + - trace + - warn + type: string + message: + description: The message for server log connectors. + type: string + required: + - message + title: Server log connector parameters + type: object + run_connector_subaction_addevent: + description: The `addEvent` subaction for ServiceNow ITOM connectors. + properties: + subAction: + description: The action to test. + enum: + - addEvent + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_addevent_subActionParams' + required: + - subAction + title: The addEvent subaction + type: object + run_connector_subaction_closealert: + description: The `closeAlert` subaction for Opsgenie connectors. + properties: + subAction: + description: The action to test. + enum: + - closeAlert + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_closealert_subActionParams' + required: + - subAction + - subActionParams + title: The closeAlert subaction + type: object + run_connector_subaction_createalert: + description: The `createAlert` subaction for Opsgenie connectors. + properties: + subAction: + description: The action to test. + enum: + - createAlert + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_createalert_subActionParams' + required: + - subAction + - subActionParams + title: The createAlert subaction + type: object + run_connector_subaction_fieldsbyissuetype: + description: The `fieldsByIssueType` subaction for Jira connectors. + properties: + subAction: + description: The action to test. + enum: + - fieldsByIssueType + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_fieldsbyissuetype_subActionParams' + required: + - subAction + - subActionParams + title: The fieldsByIssueType subaction + type: object + run_connector_subaction_getchoices: + description: "The `getChoices` subaction for ServiceNow ITOM, ServiceNow ITSM,\ + \ and ServiceNow SecOps connectors." + properties: + subAction: + description: The action to test. + enum: + - getChoices + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_getchoices_subActionParams' + required: + - subAction + - subActionParams + title: The getChoices subaction + type: object + run_connector_subaction_getfields: + description: "The `getFields` subaction for Jira, ServiceNow ITSM, and ServiceNow\ + \ SecOps connectors." + properties: + subAction: + description: The action to test. + enum: + - getFields + type: string + required: + - subAction + title: The getFields subaction + type: object + run_connector_subaction_getincident: + description: "The `getIncident` subaction for Jira, ServiceNow ITSM, and ServiceNow\ + \ SecOps connectors." + properties: + subAction: + description: The action to test. + enum: + - getIncident + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_getincident_subActionParams' + required: + - subAction + - subActionParams + title: The getIncident subaction + type: object + run_connector_subaction_issue: + description: The `issue` subaction for Jira connectors. + properties: + subAction: + description: The action to test. + enum: + - issue + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_issue_subActionParams' + required: + - subAction + title: The issue subaction + type: object + run_connector_subaction_issues: + description: The `issues` subaction for Jira connectors. + properties: + subAction: + description: The action to test. + enum: + - issues + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_issues_subActionParams' + required: + - subAction + - subActionParams + title: The issues subaction + type: object + run_connector_subaction_issuetypes: + description: The `issueTypes` subaction for Jira connectors. + properties: + subAction: + description: The action to test. + enum: + - issueTypes + type: string + required: + - subAction + title: The issueTypes subaction + type: object + run_connector_subaction_pushtoservice: + description: "The `pushToService` subaction for Jira, ServiceNow ITSM, ServiceNow\ + \ SecOps, and Swimlane connectors." + properties: + subAction: + description: The action to test. + enum: + - pushToService + type: string + subActionParams: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams' + required: + - subAction + - subActionParams + title: The pushToService subaction + type: object + action_response_properties: + description: The properties vary depending on the action type. + example: + isPreconfigured: true + isDeprecated: true + actionTypeId: actionTypeId + name: name + id: id + config: "{}" + isMissingSecrets: true + properties: + actionTypeId: + type: string + config: + type: object + id: + type: string + isDeprecated: + description: Indicates whether the action type is deprecated. + type: boolean + isMissingSecrets: + description: Indicates whether secrets are missing for the action. + type: boolean + isPreconfigured: + description: Indicates whether it is a preconfigured action. + type: boolean + name: + type: string + title: Action response properties + type: object + Create_connector_request_body_properties: + description: The properties vary depending on the connector type. + discriminator: + propertyName: connector_type_id + oneOf: + - $ref: '#/components/schemas/create_connector_request_cases_webhook' + - $ref: '#/components/schemas/create_connector_request_email' + - $ref: '#/components/schemas/create_connector_request_index' + - $ref: '#/components/schemas/create_connector_request_jira' + - $ref: '#/components/schemas/create_connector_request_opsgenie' + - $ref: '#/components/schemas/create_connector_request_pagerduty' + - $ref: '#/components/schemas/create_connector_request_resilient' + - $ref: '#/components/schemas/create_connector_request_serverlog' + - $ref: '#/components/schemas/create_connector_request_servicenow' + - $ref: '#/components/schemas/create_connector_request_servicenow_itom' + - $ref: '#/components/schemas/create_connector_request_servicenow_sir' + - $ref: '#/components/schemas/create_connector_request_slack' + - $ref: '#/components/schemas/create_connector_request_swimlane' + - $ref: '#/components/schemas/create_connector_request_teams' + - $ref: '#/components/schemas/create_connector_request_tines' + - $ref: '#/components/schemas/create_connector_request_webhook' + - $ref: '#/components/schemas/create_connector_request_xmatters' + title: Create connector request body properties + getConnector_404_response: + properties: + error: + example: Not Found + type: string + message: + example: "Saved object [action/baf33fc0-920c-11ed-b36a-874bd1548a00] not\ + \ found" + type: string + statusCode: + example: 404 + type: integer + type: object + Update_connector_request_body_properties: + description: The properties vary depending on the connector type. + oneOf: + - $ref: '#/components/schemas/update_connector_request_cases_webhook' + - $ref: '#/components/schemas/update_connector_request_index' + - $ref: '#/components/schemas/update_connector_request_jira' + - $ref: '#/components/schemas/update_connector_request_opsgenie' + - $ref: '#/components/schemas/update_connector_request_resilient' + - $ref: '#/components/schemas/update_connector_request_serverlog' + - $ref: '#/components/schemas/update_connector_request_servicenow' + - $ref: '#/components/schemas/update_connector_request_servicenow_itom' + - $ref: '#/components/schemas/update_connector_request_swimlane' + title: Update connector request body properties + updateConnector_400_response: + properties: + error: + example: Bad Request + type: string + message: + example: "error validating action type config: [index]: expected value of\ + \ type [string] but got [undefined]" + type: string + statusCode: + example: 400 + type: integer + type: object + Get_connectors_response_body_properties: + description: The properties vary for each connector type. + example: + is_missing_secrets: false + is_deprecated: false + is_preconfigured: false + name: my-connector + referenced_by_count: 2 + id: b0766e10-d190-11ec-b04c-776c77d14fca + config: + key: "" + connector_type_id: .server-log + properties: + connector_type_id: + $ref: '#/components/schemas/connector_types' + config: + additionalProperties: true + description: The configuration for the connector. Configuration properties + vary depending on the connector type. + nullable: true + type: object + id: + description: The identifier for the connector. + example: b0766e10-d190-11ec-b04c-776c77d14fca + type: string + is_deprecated: + description: Indicates whether the connector type is deprecated. + example: false + type: boolean + is_missing_secrets: + description: Indicates whether secrets are missing for the connector. Secrets + configuration properties vary depending on the connector type. + example: false + type: boolean + is_preconfigured: + description: "Indicates whether it is a preconfigured connector. If true,\ + \ the `config` and `is_missing_secrets` properties are omitted from the\ + \ response." + example: false + type: boolean + name: + description: The display name for the connector. + example: my-connector + type: string + referenced_by_count: + default: 0 + description: "Indicates the number of saved objects that reference the connector.\ + \ If `is_preconfigured` is true, this value is not calculated." + example: 2 + type: integer + required: + - connector_type_id + - id + - is_deprecated + - is_preconfigured + - name + - referenced_by_count + title: Get connectors response body properties + type: object + Get_connector_types_response_body_properties_inner: + example: + supported_feature_ids: + - alerting + - uptime + - siem + name: Index + enabled_in_license: true + id: .server-log + enabled_in_config: true + minimum_license_required: basic + enabled: true + properties: + enabled: + description: Indicates whether the connector type is enabled in Kibana. + example: true + type: boolean + enabled_in_config: + description: Indicates whether the connector type is enabled in the Kibana + `.yml` file. + example: true + type: boolean + enabled_in_license: + description: Indicates whether the connector is enabled in the license. + example: true + type: boolean + id: + $ref: '#/components/schemas/connector_types' + minimum_license_required: + description: The license that is required to use the connector type. + example: basic + type: string + name: + description: The name of the connector type. + example: Index + type: string + supported_feature_ids: + description: The Kibana features that are supported by the connector type. + example: + - alerting + - uptime + - siem + items: + $ref: '#/components/schemas/features' + type: array + type: object + Subaction_parameters: + description: Test an action that involves a subaction. + discriminator: + propertyName: subAction + oneOf: + - $ref: '#/components/schemas/run_connector_subaction_addevent' + - $ref: '#/components/schemas/run_connector_subaction_closealert' + - $ref: '#/components/schemas/run_connector_subaction_createalert' + - $ref: '#/components/schemas/run_connector_subaction_fieldsbyissuetype' + - $ref: '#/components/schemas/run_connector_subaction_getchoices' + - $ref: '#/components/schemas/run_connector_subaction_getfields' + - $ref: '#/components/schemas/run_connector_subaction_getincident' + - $ref: '#/components/schemas/run_connector_subaction_issue' + - $ref: '#/components/schemas/run_connector_subaction_issues' + - $ref: '#/components/schemas/run_connector_subaction_issuetypes' + - $ref: '#/components/schemas/run_connector_subaction_pushtoservice' + title: Subaction parameters + Run_connector_request_body_properties_params: + oneOf: + - $ref: '#/components/schemas/run_connector_params_documents' + - $ref: '#/components/schemas/run_connector_params_level_message' + - $ref: '#/components/schemas/Subaction_parameters' + Run_connector_request_body_properties: + description: The properties vary depending on the connector type. + properties: + params: + $ref: '#/components/schemas/Run_connector_request_body_properties_params' + required: + - params + title: Run connector request body properties + type: object + runConnector_200_response_data: + oneOf: + - additionalProperties: true + description: Information returned from the action. + type: object + - description: An array of information returned from the action. + items: + type: object + type: array + runConnector_200_response: + example: + data: null + connector_id: connector_id + status: error + properties: + connector_id: + description: The identifier for the connector. + type: string + data: + $ref: '#/components/schemas/runConnector_200_response_data' + status: + description: The status of the action. + enum: + - error + - ok + type: string + required: + - connector_id + - status + type: object + Legacy_update_connector_request_body_properties: + description: The properties vary depending on the connector type. + properties: + config: + description: The new connector configuration. Configuration properties vary + depending on the connector type. + type: object + name: + description: The new name for the connector. + type: string + secrets: + description: The updated secrets configuration for the connector. Secrets + properties vary depending on the connector type. + type: object + title: Legacy update connector request body properties + type: object + Legacy_create_connector_request_properties: + properties: + actionTypeId: + description: The connector type identifier. + type: string + config: + description: The configuration for the connector. Configuration properties + vary depending on the connector type. + type: object + name: + description: The display name for the connector. + type: string + secrets: + description: | + The secrets configuration for the connector. Secrets configuration properties vary depending on the connector type. NOTE: Remember these values. You must provide them each time you update the connector. + type: object + title: Legacy create connector request properties + type: object + Legacy_get_connector_types_response_body_properties_inner: + example: + enabledInConfig: true + name: name + enabledInLicense: true + id: id + minimumLicenseRequired: minimumLicenseRequired + enabled: true + properties: + enabled: + description: Indicates whether the connector type is enabled in Kibana. + type: boolean + enabledInConfig: + description: Indicates whether the connector type is enabled in the Kibana + `.yml` file. + type: boolean + enabledInLicense: + description: Indicates whether the connector is enabled in the license. + example: true + type: boolean + id: + description: The unique identifier for the connector type. + type: string + minimumLicenseRequired: + description: The license that is required to use the connector type. + type: string + name: + description: The name of the connector type. + type: string + type: object + Legacy_run_connector_request_body_properties: + description: The properties vary depending on the connector type. + properties: + params: + description: The parameters of the connector. Parameter properties vary + depending on the connector type. + type: object + required: + - params + title: Legacy run connector request body properties + type: object + legacyRunConnector_200_response: + example: + data: null + actionId: actionId + status: status + properties: + actionId: + type: string + data: + $ref: '#/components/schemas/runConnector_200_response_data' + status: + description: The status of the action. + type: string + type: object + Alert_identifier_mapping: + description: Mapping for the alert ID. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Alert identifier mapping + type: object + Case_identifier_mapping: + description: Mapping for the case ID. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Case identifier mapping + type: object + Case_name_mapping: + description: Mapping for the case name. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Case name mapping + type: object + Case_comment_mapping: + description: Mapping for the case comments. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Case comment mapping + type: object + Case_description_mapping: + description: Mapping for the case description. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Case description mapping + type: object + Rule_name_mapping: + description: Mapping for the name of the alert's rule. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Rule name mapping + type: object + Severity_mapping: + description: Mapping for the severity. + properties: + fieldType: + description: The type of field in Swimlane. + type: string + id: + description: The identifier for the field in Swimlane. + type: string + key: + description: The key for the field in Swimlane. + type: string + name: + description: The name of the field in Swimlane. + type: string + required: + - fieldType + - id + - key + - name + title: Severity mapping + type: object + Connector_mappings_properties_for_a_Swimlane_connector: + description: The field mapping. + properties: + alertIdConfig: + $ref: '#/components/schemas/Alert_identifier_mapping' + caseIdConfig: + $ref: '#/components/schemas/Case_identifier_mapping' + caseNameConfig: + $ref: '#/components/schemas/Case_name_mapping' + commentsConfig: + $ref: '#/components/schemas/Case_comment_mapping' + descriptionConfig: + $ref: '#/components/schemas/Case_description_mapping' + ruleNameConfig: + $ref: '#/components/schemas/Rule_name_mapping' + severityConfig: + $ref: '#/components/schemas/Severity_mapping' + title: Connector mappings properties for a Swimlane connector + type: object + run_connector_subaction_addevent_subActionParams: + description: The set of configuration properties for the action. + properties: + additional_info: + description: Additional information about the event. + type: string + description: + description: The details about the event. + type: string + event_class: + description: A specific instance of the source. + type: string + message_key: + description: All actions sharing this key are associated with the same ServiceNow + alert. The default value is `:`. + type: string + metric_name: + description: The name of the metric. + type: string + node: + description: The host that the event was triggered for. + type: string + resource: + description: The name of the resource. + type: string + severity: + description: The severity of the event. + type: string + source: + description: The name of the event source type. + type: string + time_of_event: + description: The time of the event. + type: string + type: + description: The type of event. + type: string + type: object + run_connector_subaction_closealert_subActionParams: + properties: + alias: + description: The unique identifier used for alert deduplication in Opsgenie. + The alias must match the value used when creating the alert. + type: string + note: + description: Additional information for the alert. + type: string + source: + description: The display name for the source of the alert. + type: string + user: + description: The display name for the owner. + type: string + required: + - alias + type: object + run_connector_subaction_createalert_subActionParams_responders_inner: + properties: + id: + description: The identifier for the entity. + type: string + name: + description: The name of the entity. + type: string + type: + description: "The type of responders, in this case `escalation`." + enum: + - escalation + - schedule + - team + - user + type: string + username: + description: A valid email address for the user. + type: string + type: object + run_connector_subaction_createalert_subActionParams_visibleTo_inner: + properties: + id: + description: The identifier for the entity. + type: string + name: + description: The name of the entity. + type: string + type: + description: Valid values are `team` and `user`. + enum: + - team + - user + type: string + username: + description: The user name. This property is required only when the `type` + is `user`. + type: string + required: + - type + type: object + run_connector_subaction_createalert_subActionParams: + properties: + actions: + description: The custom actions available to the alert. + items: + type: string + type: array + alias: + description: The unique identifier used for alert deduplication in Opsgenie. + type: string + description: + description: A description that provides detailed information about the + alert. + type: string + details: + additionalProperties: true + description: The custom properties of the alert. + example: + key1: value1 + key2: value2 + type: object + entity: + description: "The domain of the alert. For example, the application or server\ + \ name." + type: string + message: + description: The alert message. + type: string + note: + description: Additional information for the alert. + type: string + priority: + description: The priority level for the alert. + enum: + - P1 + - P2 + - P3 + - P4 + - P5 + type: string + responders: + description: | + The entities to receive notifications about the alert. If `type` is `user`, either `id` or `username` is required. If `type` is `team`, either `id` or `name` is required. + items: + $ref: '#/components/schemas/run_connector_subaction_createalert_subActionParams_responders_inner' + type: array + source: + description: The display name for the source of the alert. + type: string + tags: + description: The tags for the alert. + items: + type: string + type: array + user: + description: The display name for the owner. + type: string + visibleTo: + description: "The teams and users that the alert will be visible to without\ + \ sending a notification. Only one of `id`, `name`, or `username` is required." + items: + $ref: '#/components/schemas/run_connector_subaction_createalert_subActionParams_visibleTo_inner' + type: array + required: + - message + type: object + run_connector_subaction_fieldsbyissuetype_subActionParams: + properties: + id: + description: The Jira issue type identifier. + example: "10024" + type: string + required: + - id + type: object + run_connector_subaction_getchoices_subActionParams: + description: The set of configuration properties for the action. + properties: + fields: + description: An array of fields. + items: + type: string + type: array + required: + - fields + type: object + run_connector_subaction_getincident_subActionParams: + properties: + externalId: + description: "The Jira, ServiceNow ITSM, or ServiceNow SecOps issue identifier." + example: "71778" + type: string + required: + - externalId + type: object + run_connector_subaction_issue_subActionParams: + properties: + id: + description: The Jira issue identifier. + example: "71778" + type: string + required: + - id + type: object + run_connector_subaction_issues_subActionParams: + properties: + title: + description: The title of the Jira issue. + type: string + required: + - title + type: object + run_connector_subaction_pushtoservice_subActionParams_comments_inner: + properties: + comment: + description: "A comment related to the incident. For example, describe how\ + \ to troubleshoot the issue." + type: string + commentId: + description: A unique identifier for the comment. + type: integer + type: object + run_connector_subaction_pushtoservice_subActionParams_incident_dest_ip: + description: | + A list of destination IP addresses related to the security incident for ServiceNow SecOps connectors. The IPs are added as observables to the security incident. + oneOf: + - type: string + - items: + type: string + type: array + run_connector_subaction_pushtoservice_subActionParams_incident_malware_hash: + description: A list of malware hashes related to the security incident for ServiceNow + SecOps connectors. The hashes are added as observables to the security incident. + oneOf: + - type: string + - items: + type: string + type: array + run_connector_subaction_pushtoservice_subActionParams_incident_malware_url: + description: A list of malware URLs related to the security incident for ServiceNow + SecOps connectors. The URLs are added as observables to the security incident. + oneOf: + - type: string + - items: + type: string + type: array + type: string + run_connector_subaction_pushtoservice_subActionParams_incident_source_ip: + description: A list of source IP addresses related to the security incident + for ServiceNow SecOps connectors. The IPs are added as observables to the + security incident. + oneOf: + - type: string + - items: + type: string + type: array + run_connector_subaction_pushtoservice_subActionParams_incident: + description: "Information necessary to create or update a Jira, ServiceNow ITSM,\ + \ ServiveNow SecOps, or Swimlane incident." + properties: + alertId: + description: The alert identifier for Swimlane connectors. + type: string + caseId: + description: The case identifier for the incident for Swimlane connectors. + type: string + caseName: + description: The case name for the incident for Swimlane connectors. + type: string + category: + description: The category of the incident for ServiceNow ITSM and ServiceNow + SecOps connectors. + type: string + correlation_display: + description: A descriptive label of the alert for correlation purposes for + ServiceNow ITSM and ServiceNow SecOps connectors. + type: string + correlation_id: + description: | + The correlation identifier for the security incident for ServiceNow ITSM and ServiveNow SecOps connectors. Connectors using the same correlation ID are associated with the same ServiceNow incident. This value determines whether a new ServiceNow incident is created or an existing one is updated. Modifying this value is optional; if not modified, the rule ID and alert ID are combined as `{{ruleID}}:{{alert ID}}` to form the correlation ID value in ServiceNow. The maximum character length for this value is 100 characters. NOTE: Using the default configuration of `{{ruleID}}:{{alert ID}}` ensures that ServiceNow creates a separate incident record for every generated alert that uses a unique alert ID. If the rule generates multiple alerts that use the same alert IDs, ServiceNow creates and continually updates a single incident record for the alert. + type: string + description: + description: "The description of the incident for Jira, ServiceNow ITSM,\ + \ ServiceNow SecOps, and Swimlane connectors." + type: string + dest_ip: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams_incident_dest_ip' + externalId: + description: | + The Jira, ServiceNow ITSM, or ServiceNow SecOps issue identifier. If present, the incident is updated. Otherwise, a new incident is created. + type: string + impact: + description: The impact of the incident for ServiceNow ITSM connectors. + type: string + issueType: + description: "The type of incident for Jira connectors. For example, 10006.\ + \ To obtain the list of valid values, set `subAction` to `issueTypes`." + type: integer + labels: + description: | + The labels for the incident for Jira connectors. NOTE: Labels cannot contain spaces. + items: + type: string + type: array + malware_hash: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams_incident_malware_hash' + malware_url: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams_incident_malware_url' + parent: + description: The ID or key of the parent issue for Jira connectors. Applies + only to `Sub-task` types of issues. + type: string + priority: + description: The priority of the incident in Jira and ServiceNow SecOps + connectors. + type: string + ruleName: + description: The rule name for Swimlane connectors. + type: string + severity: + description: The severity of the incident for ServiceNow ITSM and Swimlane + connectors. + type: string + short_description: + description: | + A short description of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. It is used for searching the contents of the knowledge base. + type: string + source_ip: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams_incident_source_ip' + subcategory: + description: The subcategory of the incident for ServiceNow ITSM and ServiceNow + SecOps connectors. + type: string + summary: + description: A summary of the incident for Jira connectors. + type: string + title: + description: | + A title for the incident for Jira connectors. It is used for searching the contents of the knowledge base. + type: string + urgency: + description: The urgency of the incident for ServiceNow ITSM connectors. + type: string + type: object + run_connector_subaction_pushtoservice_subActionParams: + description: The set of configuration properties for the action. + properties: + comments: + description: "Additional information that is sent to Jira, ServiceNow ITSM,\ + \ ServiceNow SecOps, or Swimlane." + items: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams_comments_inner' + type: array + incident: + $ref: '#/components/schemas/run_connector_subaction_pushtoservice_subActionParams_incident' + type: object + securitySchemes: + basicAuth: + scheme: basic + type: http + apiKeyAuth: + in: header + name: ApiKey + type: apiKey diff --git a/generated/kibanaactions/api_connectors.go b/generated/kibanaactions/api_connectors.go new file mode 100644 index 000000000..c0ad753df --- /dev/null +++ b/generated/kibanaactions/api_connectors.go @@ -0,0 +1,2306 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +type ConnectorsApi interface { + + /* + CreateConnector Creates a connector. + + You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiCreateConnectorRequest + */ + CreateConnector(ctx context.Context, spaceId string) ApiCreateConnectorRequest + + // CreateConnectorExecute executes the request + // @return ConnectorResponseProperties + CreateConnectorExecute(r ApiCreateConnectorRequest) (*ConnectorResponseProperties, *http.Response, error) + + /* + DeleteConnector Deletes a connector. + + You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. WARNING: When you delete a connector, it cannot be recovered. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiDeleteConnectorRequest + */ + DeleteConnector(ctx context.Context, connectorId string, spaceId string) ApiDeleteConnectorRequest + + // DeleteConnectorExecute executes the request + DeleteConnectorExecute(r ApiDeleteConnectorRequest) (*http.Response, error) + + /* + GetConnector Retrieves a connector by ID. + + You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiGetConnectorRequest + */ + GetConnector(ctx context.Context, connectorId string, spaceId string) ApiGetConnectorRequest + + // GetConnectorExecute executes the request + // @return ConnectorResponseProperties + GetConnectorExecute(r ApiGetConnectorRequest) (*ConnectorResponseProperties, *http.Response, error) + + /* + GetConnectorTypes Retrieves a list of all connector types. + + You do not need any Kibana feature privileges to run this API. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiGetConnectorTypesRequest + */ + GetConnectorTypes(ctx context.Context, spaceId string) ApiGetConnectorTypesRequest + + // GetConnectorTypesExecute executes the request + // @return []GetConnectorTypesResponseBodyPropertiesInner + GetConnectorTypesExecute(r ApiGetConnectorTypesRequest) ([]GetConnectorTypesResponseBodyPropertiesInner, *http.Response, error) + + /* + GetConnectors Retrieves all connectors. + + You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiGetConnectorsRequest + */ + GetConnectors(ctx context.Context, spaceId string) ApiGetConnectorsRequest + + // GetConnectorsExecute executes the request + // @return []GetConnectorsResponseBodyProperties + GetConnectorsExecute(r ApiGetConnectorsRequest) ([]GetConnectorsResponseBodyProperties, *http.Response, error) + + /* + LegacyCreateConnector Creates a connector. + + Deprecated in 7.13.0. Use the create connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyCreateConnectorRequest + + Deprecated + */ + LegacyCreateConnector(ctx context.Context, spaceId string) ApiLegacyCreateConnectorRequest + + // LegacyCreateConnectorExecute executes the request + // @return ActionResponseProperties + // Deprecated + LegacyCreateConnectorExecute(r ApiLegacyCreateConnectorRequest) (*ActionResponseProperties, *http.Response, error) + + /* + LegacyDeleteConnector Deletes a connector. + + Deprecated in 7.13.0. Use the delete connector API instead. WARNING: When you delete a connector, it cannot be recovered. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyDeleteConnectorRequest + + Deprecated + */ + LegacyDeleteConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyDeleteConnectorRequest + + // LegacyDeleteConnectorExecute executes the request + // Deprecated + LegacyDeleteConnectorExecute(r ApiLegacyDeleteConnectorRequest) (*http.Response, error) + + /* + LegacyGetConnector Retrieves a connector by ID. + + Deprecated in 7.13.0. Use the get connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyGetConnectorRequest + + Deprecated + */ + LegacyGetConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyGetConnectorRequest + + // LegacyGetConnectorExecute executes the request + // @return ActionResponseProperties + // Deprecated + LegacyGetConnectorExecute(r ApiLegacyGetConnectorRequest) (*ActionResponseProperties, *http.Response, error) + + /* + LegacyGetConnectorTypes Retrieves a list of all connector types. + + Deprecated in 7.13.0. Use the get all connector types API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyGetConnectorTypesRequest + + Deprecated + */ + LegacyGetConnectorTypes(ctx context.Context, spaceId string) ApiLegacyGetConnectorTypesRequest + + // LegacyGetConnectorTypesExecute executes the request + // @return []LegacyGetConnectorTypesResponseBodyPropertiesInner + // Deprecated + LegacyGetConnectorTypesExecute(r ApiLegacyGetConnectorTypesRequest) ([]LegacyGetConnectorTypesResponseBodyPropertiesInner, *http.Response, error) + + /* + LegacyGetConnectors Retrieves all connectors. + + Deprecated in 7.13.0. Use the get all connectors API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyGetConnectorsRequest + + Deprecated + */ + LegacyGetConnectors(ctx context.Context, spaceId string) ApiLegacyGetConnectorsRequest + + // LegacyGetConnectorsExecute executes the request + // @return []ActionResponseProperties + // Deprecated + LegacyGetConnectorsExecute(r ApiLegacyGetConnectorsRequest) ([]ActionResponseProperties, *http.Response, error) + + /* + LegacyRunConnector Runs a connector. + + Deprecated in 7.13.0. Use the run connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyRunConnectorRequest + + Deprecated + */ + LegacyRunConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyRunConnectorRequest + + // LegacyRunConnectorExecute executes the request + // @return LegacyRunConnector200Response + // Deprecated + LegacyRunConnectorExecute(r ApiLegacyRunConnectorRequest) (*LegacyRunConnector200Response, *http.Response, error) + + /* + LegacyUpdateConnector Updates the attributes for a connector. + + Deprecated in 7.13.0. Use the update connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyUpdateConnectorRequest + + Deprecated + */ + LegacyUpdateConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyUpdateConnectorRequest + + // LegacyUpdateConnectorExecute executes the request + // @return ActionResponseProperties + // Deprecated + LegacyUpdateConnectorExecute(r ApiLegacyUpdateConnectorRequest) (*ActionResponseProperties, *http.Response, error) + + /* + RunConnector Runs a connector. + + You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems. You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. If you use an index connector, you must also have `all`, `create`, `index`, or `write` indices privileges. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiRunConnectorRequest + */ + RunConnector(ctx context.Context, connectorId string, spaceId string) ApiRunConnectorRequest + + // RunConnectorExecute executes the request + // @return RunConnector200Response + RunConnectorExecute(r ApiRunConnectorRequest) (*RunConnector200Response, *http.Response, error) + + /* + UpdateConnector Updates the attributes for a connector. + + You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiUpdateConnectorRequest + */ + UpdateConnector(ctx context.Context, connectorId string, spaceId string) ApiUpdateConnectorRequest + + // UpdateConnectorExecute executes the request + // @return ConnectorResponseProperties + UpdateConnectorExecute(r ApiUpdateConnectorRequest) (*ConnectorResponseProperties, *http.Response, error) +} + +// ConnectorsApiService ConnectorsApi service +type ConnectorsApiService service + +type ApiCreateConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + spaceId string + createConnectorRequestBodyProperties *CreateConnectorRequestBodyProperties +} + +// Cross-site request forgery protection +func (r ApiCreateConnectorRequest) KbnXsrf(kbnXsrf string) ApiCreateConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiCreateConnectorRequest) CreateConnectorRequestBodyProperties(createConnectorRequestBodyProperties CreateConnectorRequestBodyProperties) ApiCreateConnectorRequest { + r.createConnectorRequestBodyProperties = &createConnectorRequestBodyProperties + return r +} + +func (r ApiCreateConnectorRequest) Execute() (*ConnectorResponseProperties, *http.Response, error) { + return r.ApiService.CreateConnectorExecute(r) +} + +/* +CreateConnector Creates a connector. + +You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiCreateConnectorRequest +*/ +func (a *ConnectorsApiService) CreateConnector(ctx context.Context, spaceId string) ApiCreateConnectorRequest { + return ApiCreateConnectorRequest{ + ApiService: a, + ctx: ctx, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return ConnectorResponseProperties +func (a *ConnectorsApiService) CreateConnectorExecute(r ApiCreateConnectorRequest) (*ConnectorResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.CreateConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connector" + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return localVarReturnValue, nil, reportError("kbnXsrf is required and must be specified") + } + if r.createConnectorRequestBodyProperties == nil { + return localVarReturnValue, nil, reportError("createConnectorRequestBodyProperties is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + // body params + localVarPostBody = r.createConnectorRequestBodyProperties + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + connectorId string + spaceId string +} + +// Cross-site request forgery protection +func (r ApiDeleteConnectorRequest) KbnXsrf(kbnXsrf string) ApiDeleteConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiDeleteConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteConnectorExecute(r) +} + +/* +DeleteConnector Deletes a connector. + +You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. WARNING: When you delete a connector, it cannot be recovered. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiDeleteConnectorRequest +*/ +func (a *ConnectorsApiService) DeleteConnector(ctx context.Context, connectorId string, spaceId string) ApiDeleteConnectorRequest { + return ApiDeleteConnectorRequest{ + ApiService: a, + ctx: ctx, + connectorId: connectorId, + spaceId: spaceId, + } +} + +// Execute executes the request +func (a *ConnectorsApiService) DeleteConnectorExecute(r ApiDeleteConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.DeleteConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connector/{connectorId}" + localVarPath = strings.Replace(localVarPath, "{"+"connectorId"+"}", url.PathEscape(parameterValueToString(r.connectorId, "connectorId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return nil, reportError("kbnXsrf is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetConnector404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + connectorId string + spaceId string +} + +func (r ApiGetConnectorRequest) Execute() (*ConnectorResponseProperties, *http.Response, error) { + return r.ApiService.GetConnectorExecute(r) +} + +/* +GetConnector Retrieves a connector by ID. + +You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiGetConnectorRequest +*/ +func (a *ConnectorsApiService) GetConnector(ctx context.Context, connectorId string, spaceId string) ApiGetConnectorRequest { + return ApiGetConnectorRequest{ + ApiService: a, + ctx: ctx, + connectorId: connectorId, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return ConnectorResponseProperties +func (a *ConnectorsApiService) GetConnectorExecute(r ApiGetConnectorRequest) (*ConnectorResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.GetConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connector/{connectorId}" + localVarPath = strings.Replace(localVarPath, "{"+"connectorId"+"}", url.PathEscape(parameterValueToString(r.connectorId, "connectorId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetConnector404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorTypesRequest struct { + ctx context.Context + ApiService ConnectorsApi + spaceId string + featureId *Features +} + +// A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases). +func (r ApiGetConnectorTypesRequest) FeatureId(featureId Features) ApiGetConnectorTypesRequest { + r.featureId = &featureId + return r +} + +func (r ApiGetConnectorTypesRequest) Execute() ([]GetConnectorTypesResponseBodyPropertiesInner, *http.Response, error) { + return r.ApiService.GetConnectorTypesExecute(r) +} + +/* +GetConnectorTypes Retrieves a list of all connector types. + +You do not need any Kibana feature privileges to run this API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiGetConnectorTypesRequest +*/ +func (a *ConnectorsApiService) GetConnectorTypes(ctx context.Context, spaceId string) ApiGetConnectorTypesRequest { + return ApiGetConnectorTypesRequest{ + ApiService: a, + ctx: ctx, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return []GetConnectorTypesResponseBodyPropertiesInner +func (a *ConnectorsApiService) GetConnectorTypesExecute(r ApiGetConnectorTypesRequest) ([]GetConnectorTypesResponseBodyPropertiesInner, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GetConnectorTypesResponseBodyPropertiesInner + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.GetConnectorTypes") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connector_types" + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.featureId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "feature_id", r.featureId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorsRequest struct { + ctx context.Context + ApiService ConnectorsApi + spaceId string +} + +func (r ApiGetConnectorsRequest) Execute() ([]GetConnectorsResponseBodyProperties, *http.Response, error) { + return r.ApiService.GetConnectorsExecute(r) +} + +/* +GetConnectors Retrieves all connectors. + +You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiGetConnectorsRequest +*/ +func (a *ConnectorsApiService) GetConnectors(ctx context.Context, spaceId string) ApiGetConnectorsRequest { + return ApiGetConnectorsRequest{ + ApiService: a, + ctx: ctx, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return []GetConnectorsResponseBodyProperties +func (a *ConnectorsApiService) GetConnectorsExecute(r ApiGetConnectorsRequest) ([]GetConnectorsResponseBodyProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []GetConnectorsResponseBodyProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.GetConnectors") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connectors" + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLegacyCreateConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + spaceId string + legacyCreateConnectorRequestProperties *LegacyCreateConnectorRequestProperties +} + +// Cross-site request forgery protection +func (r ApiLegacyCreateConnectorRequest) KbnXsrf(kbnXsrf string) ApiLegacyCreateConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiLegacyCreateConnectorRequest) LegacyCreateConnectorRequestProperties(legacyCreateConnectorRequestProperties LegacyCreateConnectorRequestProperties) ApiLegacyCreateConnectorRequest { + r.legacyCreateConnectorRequestProperties = &legacyCreateConnectorRequestProperties + return r +} + +func (r ApiLegacyCreateConnectorRequest) Execute() (*ActionResponseProperties, *http.Response, error) { + return r.ApiService.LegacyCreateConnectorExecute(r) +} + +/* +LegacyCreateConnector Creates a connector. + +Deprecated in 7.13.0. Use the create connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyCreateConnectorRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyCreateConnector(ctx context.Context, spaceId string) ApiLegacyCreateConnectorRequest { + return ApiLegacyCreateConnectorRequest{ + ApiService: a, + ctx: ctx, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return ActionResponseProperties +// +// Deprecated +func (a *ConnectorsApiService) LegacyCreateConnectorExecute(r ApiLegacyCreateConnectorRequest) (*ActionResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ActionResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyCreateConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions" + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return localVarReturnValue, nil, reportError("kbnXsrf is required and must be specified") + } + if r.legacyCreateConnectorRequestProperties == nil { + return localVarReturnValue, nil, reportError("legacyCreateConnectorRequestProperties is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + // body params + localVarPostBody = r.legacyCreateConnectorRequestProperties + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLegacyDeleteConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + actionId string + spaceId string +} + +// Cross-site request forgery protection +func (r ApiLegacyDeleteConnectorRequest) KbnXsrf(kbnXsrf string) ApiLegacyDeleteConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiLegacyDeleteConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.LegacyDeleteConnectorExecute(r) +} + +/* +LegacyDeleteConnector Deletes a connector. + +Deprecated in 7.13.0. Use the delete connector API instead. WARNING: When you delete a connector, it cannot be recovered. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyDeleteConnectorRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyDeleteConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyDeleteConnectorRequest { + return ApiLegacyDeleteConnectorRequest{ + ApiService: a, + ctx: ctx, + actionId: actionId, + spaceId: spaceId, + } +} + +// Execute executes the request +// Deprecated +func (a *ConnectorsApiService) LegacyDeleteConnectorExecute(r ApiLegacyDeleteConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyDeleteConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/action/{actionId}" + localVarPath = strings.Replace(localVarPath, "{"+"actionId"+"}", url.PathEscape(parameterValueToString(r.actionId, "actionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return nil, reportError("kbnXsrf is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiLegacyGetConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + actionId string + spaceId string +} + +func (r ApiLegacyGetConnectorRequest) Execute() (*ActionResponseProperties, *http.Response, error) { + return r.ApiService.LegacyGetConnectorExecute(r) +} + +/* +LegacyGetConnector Retrieves a connector by ID. + +Deprecated in 7.13.0. Use the get connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyGetConnectorRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyGetConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyGetConnectorRequest { + return ApiLegacyGetConnectorRequest{ + ApiService: a, + ctx: ctx, + actionId: actionId, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return ActionResponseProperties +// +// Deprecated +func (a *ConnectorsApiService) LegacyGetConnectorExecute(r ApiLegacyGetConnectorRequest) (*ActionResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ActionResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyGetConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/action/{actionId}" + localVarPath = strings.Replace(localVarPath, "{"+"actionId"+"}", url.PathEscape(parameterValueToString(r.actionId, "actionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLegacyGetConnectorTypesRequest struct { + ctx context.Context + ApiService ConnectorsApi + spaceId string +} + +func (r ApiLegacyGetConnectorTypesRequest) Execute() ([]LegacyGetConnectorTypesResponseBodyPropertiesInner, *http.Response, error) { + return r.ApiService.LegacyGetConnectorTypesExecute(r) +} + +/* +LegacyGetConnectorTypes Retrieves a list of all connector types. + +Deprecated in 7.13.0. Use the get all connector types API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyGetConnectorTypesRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyGetConnectorTypes(ctx context.Context, spaceId string) ApiLegacyGetConnectorTypesRequest { + return ApiLegacyGetConnectorTypesRequest{ + ApiService: a, + ctx: ctx, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return []LegacyGetConnectorTypesResponseBodyPropertiesInner +// +// Deprecated +func (a *ConnectorsApiService) LegacyGetConnectorTypesExecute(r ApiLegacyGetConnectorTypesRequest) ([]LegacyGetConnectorTypesResponseBodyPropertiesInner, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []LegacyGetConnectorTypesResponseBodyPropertiesInner + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyGetConnectorTypes") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/list_action_types" + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLegacyGetConnectorsRequest struct { + ctx context.Context + ApiService ConnectorsApi + spaceId string +} + +func (r ApiLegacyGetConnectorsRequest) Execute() ([]ActionResponseProperties, *http.Response, error) { + return r.ApiService.LegacyGetConnectorsExecute(r) +} + +/* +LegacyGetConnectors Retrieves all connectors. + +Deprecated in 7.13.0. Use the get all connectors API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyGetConnectorsRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyGetConnectors(ctx context.Context, spaceId string) ApiLegacyGetConnectorsRequest { + return ApiLegacyGetConnectorsRequest{ + ApiService: a, + ctx: ctx, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return []ActionResponseProperties +// +// Deprecated +func (a *ConnectorsApiService) LegacyGetConnectorsExecute(r ApiLegacyGetConnectorsRequest) ([]ActionResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ActionResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyGetConnectors") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions" + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLegacyRunConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + actionId string + spaceId string + legacyRunConnectorRequestBodyProperties *LegacyRunConnectorRequestBodyProperties +} + +// Cross-site request forgery protection +func (r ApiLegacyRunConnectorRequest) KbnXsrf(kbnXsrf string) ApiLegacyRunConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiLegacyRunConnectorRequest) LegacyRunConnectorRequestBodyProperties(legacyRunConnectorRequestBodyProperties LegacyRunConnectorRequestBodyProperties) ApiLegacyRunConnectorRequest { + r.legacyRunConnectorRequestBodyProperties = &legacyRunConnectorRequestBodyProperties + return r +} + +func (r ApiLegacyRunConnectorRequest) Execute() (*LegacyRunConnector200Response, *http.Response, error) { + return r.ApiService.LegacyRunConnectorExecute(r) +} + +/* +LegacyRunConnector Runs a connector. + +Deprecated in 7.13.0. Use the run connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyRunConnectorRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyRunConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyRunConnectorRequest { + return ApiLegacyRunConnectorRequest{ + ApiService: a, + ctx: ctx, + actionId: actionId, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return LegacyRunConnector200Response +// +// Deprecated +func (a *ConnectorsApiService) LegacyRunConnectorExecute(r ApiLegacyRunConnectorRequest) (*LegacyRunConnector200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LegacyRunConnector200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyRunConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/action/{actionId}/_execute" + localVarPath = strings.Replace(localVarPath, "{"+"actionId"+"}", url.PathEscape(parameterValueToString(r.actionId, "actionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return localVarReturnValue, nil, reportError("kbnXsrf is required and must be specified") + } + if r.legacyRunConnectorRequestBodyProperties == nil { + return localVarReturnValue, nil, reportError("legacyRunConnectorRequestBodyProperties is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + // body params + localVarPostBody = r.legacyRunConnectorRequestBodyProperties + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiLegacyUpdateConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + actionId string + spaceId string + legacyUpdateConnectorRequestBodyProperties *LegacyUpdateConnectorRequestBodyProperties +} + +// Cross-site request forgery protection +func (r ApiLegacyUpdateConnectorRequest) KbnXsrf(kbnXsrf string) ApiLegacyUpdateConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiLegacyUpdateConnectorRequest) LegacyUpdateConnectorRequestBodyProperties(legacyUpdateConnectorRequestBodyProperties LegacyUpdateConnectorRequestBodyProperties) ApiLegacyUpdateConnectorRequest { + r.legacyUpdateConnectorRequestBodyProperties = &legacyUpdateConnectorRequestBodyProperties + return r +} + +func (r ApiLegacyUpdateConnectorRequest) Execute() (*ActionResponseProperties, *http.Response, error) { + return r.ApiService.LegacyUpdateConnectorExecute(r) +} + +/* +LegacyUpdateConnector Updates the attributes for a connector. + +Deprecated in 7.13.0. Use the update connector API instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param actionId An identifier for the action. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiLegacyUpdateConnectorRequest + +Deprecated +*/ +func (a *ConnectorsApiService) LegacyUpdateConnector(ctx context.Context, actionId string, spaceId string) ApiLegacyUpdateConnectorRequest { + return ApiLegacyUpdateConnectorRequest{ + ApiService: a, + ctx: ctx, + actionId: actionId, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return ActionResponseProperties +// +// Deprecated +func (a *ConnectorsApiService) LegacyUpdateConnectorExecute(r ApiLegacyUpdateConnectorRequest) (*ActionResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ActionResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.LegacyUpdateConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/action/{actionId}" + localVarPath = strings.Replace(localVarPath, "{"+"actionId"+"}", url.PathEscape(parameterValueToString(r.actionId, "actionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return localVarReturnValue, nil, reportError("kbnXsrf is required and must be specified") + } + if r.legacyUpdateConnectorRequestBodyProperties == nil { + return localVarReturnValue, nil, reportError("legacyUpdateConnectorRequestBodyProperties is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + // body params + localVarPostBody = r.legacyUpdateConnectorRequestBodyProperties + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Model404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRunConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + connectorId string + spaceId string + runConnectorRequestBodyProperties *RunConnectorRequestBodyProperties +} + +// Cross-site request forgery protection +func (r ApiRunConnectorRequest) KbnXsrf(kbnXsrf string) ApiRunConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiRunConnectorRequest) RunConnectorRequestBodyProperties(runConnectorRequestBodyProperties RunConnectorRequestBodyProperties) ApiRunConnectorRequest { + r.runConnectorRequestBodyProperties = &runConnectorRequestBodyProperties + return r +} + +func (r ApiRunConnectorRequest) Execute() (*RunConnector200Response, *http.Response, error) { + return r.ApiService.RunConnectorExecute(r) +} + +/* +RunConnector Runs a connector. + +You can use this API to test an action that involves interaction with Kibana services or integrations with third-party systems. You must have `read` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. If you use an index connector, you must also have `all`, `create`, `index`, or `write` indices privileges. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiRunConnectorRequest +*/ +func (a *ConnectorsApiService) RunConnector(ctx context.Context, connectorId string, spaceId string) ApiRunConnectorRequest { + return ApiRunConnectorRequest{ + ApiService: a, + ctx: ctx, + connectorId: connectorId, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return RunConnector200Response +func (a *ConnectorsApiService) RunConnectorExecute(r ApiRunConnectorRequest) (*RunConnector200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RunConnector200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.RunConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connector/{connectorId}/_execute" + localVarPath = strings.Replace(localVarPath, "{"+"connectorId"+"}", url.PathEscape(parameterValueToString(r.connectorId, "connectorId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return localVarReturnValue, nil, reportError("kbnXsrf is required and must be specified") + } + if r.runConnectorRequestBodyProperties == nil { + return localVarReturnValue, nil, reportError("runConnectorRequestBodyProperties is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + // body params + localVarPostBody = r.runConnectorRequestBodyProperties + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateConnectorRequest struct { + ctx context.Context + ApiService ConnectorsApi + kbnXsrf *string + connectorId string + spaceId string + updateConnectorRequestBodyProperties *UpdateConnectorRequestBodyProperties +} + +// Cross-site request forgery protection +func (r ApiUpdateConnectorRequest) KbnXsrf(kbnXsrf string) ApiUpdateConnectorRequest { + r.kbnXsrf = &kbnXsrf + return r +} + +func (r ApiUpdateConnectorRequest) UpdateConnectorRequestBodyProperties(updateConnectorRequestBodyProperties UpdateConnectorRequestBodyProperties) ApiUpdateConnectorRequest { + r.updateConnectorRequestBodyProperties = &updateConnectorRequestBodyProperties + return r +} + +func (r ApiUpdateConnectorRequest) Execute() (*ConnectorResponseProperties, *http.Response, error) { + return r.ApiService.UpdateConnectorExecute(r) +} + +/* +UpdateConnector Updates the attributes for a connector. + +You must have `all` privileges for the **Actions and Connectors** feature in the **Management** section of the Kibana feature privileges. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connectorId An identifier for the connector. + @param spaceId An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + @return ApiUpdateConnectorRequest +*/ +func (a *ConnectorsApiService) UpdateConnector(ctx context.Context, connectorId string, spaceId string) ApiUpdateConnectorRequest { + return ApiUpdateConnectorRequest{ + ApiService: a, + ctx: ctx, + connectorId: connectorId, + spaceId: spaceId, + } +} + +// Execute executes the request +// +// @return ConnectorResponseProperties +func (a *ConnectorsApiService) UpdateConnectorExecute(r ApiUpdateConnectorRequest) (*ConnectorResponseProperties, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorResponseProperties + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.UpdateConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/s/{spaceId}/api/actions/connector/{connectorId}" + localVarPath = strings.Replace(localVarPath, "{"+"connectorId"+"}", url.PathEscape(parameterValueToString(r.connectorId, "connectorId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"spaceId"+"}", url.PathEscape(parameterValueToString(r.spaceId, "spaceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kbnXsrf == nil { + return localVarReturnValue, nil, reportError("kbnXsrf is required and must be specified") + } + if r.updateConnectorRequestBodyProperties == nil { + return localVarReturnValue, nil, reportError("updateConnectorRequestBodyProperties is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "kbn-xsrf", r.kbnXsrf, "") + // body params + localVarPostBody = r.updateConnectorRequestBodyProperties + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["apiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["ApiKey"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v UpdateConnector400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Model401Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Model404Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/generated/kibanaactions/client.go b/generated/kibanaactions/client.go new file mode 100644 index 000000000..1bfbc80ed --- /dev/null +++ b/generated/kibanaactions/client.go @@ -0,0 +1,659 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the Connectors API v0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ConnectorsApi ConnectorsApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ConnectorsApi = (*ConnectorsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + + // status title (detail) + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/generated/kibanaactions/configuration.go b/generated/kibanaactions/configuration.go new file mode 100644 index 000000000..493a7a22a --- /dev/null +++ b/generated/kibanaactions/configuration.go @@ -0,0 +1,305 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "http://localhost:5601", + Description: "local", + }, + }, + OperationServers: map[string]ServerConfigurations{ + "ConnectorsApiService.CreateConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.DeleteConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.GetConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.GetConnectorTypes": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.GetConnectors": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyCreateConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyDeleteConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyGetConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyGetConnectorTypes": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyGetConnectors": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyRunConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.LegacyUpdateConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.RunConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + "ConnectorsApiService.UpdateConnector": { + { + URL: "https://localhost:5601", + Description: "No description provided", + }, + }, + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/generated/kibanaactions/docs/ActionResponseProperties.md b/generated/kibanaactions/docs/ActionResponseProperties.md new file mode 100644 index 000000000..f85473696 --- /dev/null +++ b/generated/kibanaactions/docs/ActionResponseProperties.md @@ -0,0 +1,212 @@ +# ActionResponseProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActionTypeId** | Pointer to **string** | | [optional] +**Config** | Pointer to **map[string]interface{}** | | [optional] +**Id** | Pointer to **string** | | [optional] +**IsDeprecated** | Pointer to **bool** | Indicates whether the action type is deprecated. | [optional] +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the action. | [optional] +**IsPreconfigured** | Pointer to **bool** | Indicates whether it is a preconfigured action. | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewActionResponseProperties + +`func NewActionResponseProperties() *ActionResponseProperties` + +NewActionResponseProperties instantiates a new ActionResponseProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewActionResponsePropertiesWithDefaults + +`func NewActionResponsePropertiesWithDefaults() *ActionResponseProperties` + +NewActionResponsePropertiesWithDefaults instantiates a new ActionResponseProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActionTypeId + +`func (o *ActionResponseProperties) GetActionTypeId() string` + +GetActionTypeId returns the ActionTypeId field if non-nil, zero value otherwise. + +### GetActionTypeIdOk + +`func (o *ActionResponseProperties) GetActionTypeIdOk() (*string, bool)` + +GetActionTypeIdOk returns a tuple with the ActionTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionTypeId + +`func (o *ActionResponseProperties) SetActionTypeId(v string)` + +SetActionTypeId sets ActionTypeId field to given value. + +### HasActionTypeId + +`func (o *ActionResponseProperties) HasActionTypeId() bool` + +HasActionTypeId returns a boolean if a field has been set. + +### GetConfig + +`func (o *ActionResponseProperties) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ActionResponseProperties) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ActionResponseProperties) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *ActionResponseProperties) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetId + +`func (o *ActionResponseProperties) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ActionResponseProperties) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ActionResponseProperties) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ActionResponseProperties) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIsDeprecated + +`func (o *ActionResponseProperties) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ActionResponseProperties) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ActionResponseProperties) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + +### HasIsDeprecated + +`func (o *ActionResponseProperties) HasIsDeprecated() bool` + +HasIsDeprecated returns a boolean if a field has been set. + +### GetIsMissingSecrets + +`func (o *ActionResponseProperties) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ActionResponseProperties) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ActionResponseProperties) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ActionResponseProperties) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ActionResponseProperties) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ActionResponseProperties) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ActionResponseProperties) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + +### HasIsPreconfigured + +`func (o *ActionResponseProperties) HasIsPreconfigured() bool` + +HasIsPreconfigured returns a boolean if a field has been set. + +### GetName + +`func (o *ActionResponseProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ActionResponseProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ActionResponseProperties) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ActionResponseProperties) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/AlertIdentifierMapping.md b/generated/kibanaactions/docs/AlertIdentifierMapping.md new file mode 100644 index 000000000..9a5c1898e --- /dev/null +++ b/generated/kibanaactions/docs/AlertIdentifierMapping.md @@ -0,0 +1,114 @@ +# AlertIdentifierMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewAlertIdentifierMapping + +`func NewAlertIdentifierMapping(fieldType string, id string, key string, name string, ) *AlertIdentifierMapping` + +NewAlertIdentifierMapping instantiates a new AlertIdentifierMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertIdentifierMappingWithDefaults + +`func NewAlertIdentifierMappingWithDefaults() *AlertIdentifierMapping` + +NewAlertIdentifierMappingWithDefaults instantiates a new AlertIdentifierMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *AlertIdentifierMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *AlertIdentifierMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *AlertIdentifierMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *AlertIdentifierMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertIdentifierMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertIdentifierMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *AlertIdentifierMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *AlertIdentifierMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *AlertIdentifierMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *AlertIdentifierMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AlertIdentifierMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AlertIdentifierMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CaseCommentMapping.md b/generated/kibanaactions/docs/CaseCommentMapping.md new file mode 100644 index 000000000..cb47fa08c --- /dev/null +++ b/generated/kibanaactions/docs/CaseCommentMapping.md @@ -0,0 +1,114 @@ +# CaseCommentMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewCaseCommentMapping + +`func NewCaseCommentMapping(fieldType string, id string, key string, name string, ) *CaseCommentMapping` + +NewCaseCommentMapping instantiates a new CaseCommentMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCaseCommentMappingWithDefaults + +`func NewCaseCommentMappingWithDefaults() *CaseCommentMapping` + +NewCaseCommentMappingWithDefaults instantiates a new CaseCommentMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *CaseCommentMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *CaseCommentMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *CaseCommentMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *CaseCommentMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CaseCommentMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CaseCommentMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *CaseCommentMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CaseCommentMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CaseCommentMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *CaseCommentMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CaseCommentMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CaseCommentMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CaseDescriptionMapping.md b/generated/kibanaactions/docs/CaseDescriptionMapping.md new file mode 100644 index 000000000..6771caef9 --- /dev/null +++ b/generated/kibanaactions/docs/CaseDescriptionMapping.md @@ -0,0 +1,114 @@ +# CaseDescriptionMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewCaseDescriptionMapping + +`func NewCaseDescriptionMapping(fieldType string, id string, key string, name string, ) *CaseDescriptionMapping` + +NewCaseDescriptionMapping instantiates a new CaseDescriptionMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCaseDescriptionMappingWithDefaults + +`func NewCaseDescriptionMappingWithDefaults() *CaseDescriptionMapping` + +NewCaseDescriptionMappingWithDefaults instantiates a new CaseDescriptionMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *CaseDescriptionMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *CaseDescriptionMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *CaseDescriptionMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *CaseDescriptionMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CaseDescriptionMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CaseDescriptionMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *CaseDescriptionMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CaseDescriptionMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CaseDescriptionMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *CaseDescriptionMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CaseDescriptionMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CaseDescriptionMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CaseIdentifierMapping.md b/generated/kibanaactions/docs/CaseIdentifierMapping.md new file mode 100644 index 000000000..a639b3227 --- /dev/null +++ b/generated/kibanaactions/docs/CaseIdentifierMapping.md @@ -0,0 +1,114 @@ +# CaseIdentifierMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewCaseIdentifierMapping + +`func NewCaseIdentifierMapping(fieldType string, id string, key string, name string, ) *CaseIdentifierMapping` + +NewCaseIdentifierMapping instantiates a new CaseIdentifierMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCaseIdentifierMappingWithDefaults + +`func NewCaseIdentifierMappingWithDefaults() *CaseIdentifierMapping` + +NewCaseIdentifierMappingWithDefaults instantiates a new CaseIdentifierMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *CaseIdentifierMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *CaseIdentifierMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *CaseIdentifierMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *CaseIdentifierMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CaseIdentifierMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CaseIdentifierMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *CaseIdentifierMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CaseIdentifierMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CaseIdentifierMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *CaseIdentifierMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CaseIdentifierMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CaseIdentifierMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CaseNameMapping.md b/generated/kibanaactions/docs/CaseNameMapping.md new file mode 100644 index 000000000..b5a52679a --- /dev/null +++ b/generated/kibanaactions/docs/CaseNameMapping.md @@ -0,0 +1,114 @@ +# CaseNameMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewCaseNameMapping + +`func NewCaseNameMapping(fieldType string, id string, key string, name string, ) *CaseNameMapping` + +NewCaseNameMapping instantiates a new CaseNameMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCaseNameMappingWithDefaults + +`func NewCaseNameMappingWithDefaults() *CaseNameMapping` + +NewCaseNameMappingWithDefaults instantiates a new CaseNameMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *CaseNameMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *CaseNameMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *CaseNameMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *CaseNameMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CaseNameMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CaseNameMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *CaseNameMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CaseNameMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CaseNameMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *CaseNameMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CaseNameMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CaseNameMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesCasesWebhook.md b/generated/kibanaactions/docs/ConfigPropertiesCasesWebhook.md new file mode 100644 index 000000000..c7a8897e0 --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesCasesWebhook.md @@ -0,0 +1,380 @@ +# ConfigPropertiesCasesWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreateCommentJson** | Pointer to **string** | A JSON payload sent to the create comment URL to create a case comment. You can use variables to add Kibana Cases data to the payload. The required variable is `case.comment`. Due to Mustache template variables (the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated once the Mustache variables have been placed when the REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. | [optional] +**CreateCommentMethod** | Pointer to **string** | The REST API HTTP request method to create a case comment in the third-party system. Valid values are `patch`, `post`, and `put`. | [optional] [default to "put"] +**CreateCommentUrl** | Pointer to **string** | The REST API URL to create a case comment by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the `xpack.actions.allowedHosts setting`, add the hostname to the allowed hosts. | [optional] +**CreateIncidentJson** | **string** | A JSON payload sent to the create case URL to create a case. You can use variables to add case data to the payload. Required variables are `case.title` and `case.description`. Due to Mustache template variables (which is the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. | +**CreateIncidentMethod** | Pointer to **string** | The REST API HTTP request method to create a case in the third-party system. Valid values are `patch`, `post`, and `put`. | [optional] [default to "post"] +**CreateIncidentResponseKey** | **string** | The JSON key in the create case response that contains the external case ID. | +**CreateIncidentUrl** | **string** | The REST API URL to create a case in the third-party system. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. | +**GetIncidentResponseExternalTitleKey** | **string** | The JSON key in get case response that contains the external case title. | +**GetIncidentUrl** | **string** | The REST API URL to get the case by ID from the third-party system. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. You can use a variable to add the external system ID to the URL. Due to Mustache template variables (the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. | +**HasAuth** | Pointer to **bool** | If true, a username and password for login type authentication must be provided. | [optional] [default to true] +**Headers** | Pointer to **string** | A set of key-value pairs sent as headers with the request URLs for the create case, update case, get case, and create comment methods. | [optional] +**UpdateIncidentJson** | **string** | The JSON payload sent to the update case URL to update the case. You can use variables to add Kibana Cases data to the payload. Required variables are `case.title` and `case.description`. Due to Mustache template variables (which is the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. | +**UpdateIncidentMethod** | Pointer to **string** | The REST API HTTP request method to update the case in the third-party system. Valid values are `patch`, `post`, and `put`. | [optional] [default to "put"] +**UpdateIncidentUrl** | **string** | The REST API URL to update the case by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. | +**ViewIncidentUrl** | **string** | The URL to view the case in the external system. You can use variables to add the external system ID or external system title to the URL. | + +## Methods + +### NewConfigPropertiesCasesWebhook + +`func NewConfigPropertiesCasesWebhook(createIncidentJson string, createIncidentResponseKey string, createIncidentUrl string, getIncidentResponseExternalTitleKey string, getIncidentUrl string, updateIncidentJson string, updateIncidentUrl string, viewIncidentUrl string, ) *ConfigPropertiesCasesWebhook` + +NewConfigPropertiesCasesWebhook instantiates a new ConfigPropertiesCasesWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesCasesWebhookWithDefaults + +`func NewConfigPropertiesCasesWebhookWithDefaults() *ConfigPropertiesCasesWebhook` + +NewConfigPropertiesCasesWebhookWithDefaults instantiates a new ConfigPropertiesCasesWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreateCommentJson + +`func (o *ConfigPropertiesCasesWebhook) GetCreateCommentJson() string` + +GetCreateCommentJson returns the CreateCommentJson field if non-nil, zero value otherwise. + +### GetCreateCommentJsonOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateCommentJsonOk() (*string, bool)` + +GetCreateCommentJsonOk returns a tuple with the CreateCommentJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateCommentJson + +`func (o *ConfigPropertiesCasesWebhook) SetCreateCommentJson(v string)` + +SetCreateCommentJson sets CreateCommentJson field to given value. + +### HasCreateCommentJson + +`func (o *ConfigPropertiesCasesWebhook) HasCreateCommentJson() bool` + +HasCreateCommentJson returns a boolean if a field has been set. + +### GetCreateCommentMethod + +`func (o *ConfigPropertiesCasesWebhook) GetCreateCommentMethod() string` + +GetCreateCommentMethod returns the CreateCommentMethod field if non-nil, zero value otherwise. + +### GetCreateCommentMethodOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateCommentMethodOk() (*string, bool)` + +GetCreateCommentMethodOk returns a tuple with the CreateCommentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateCommentMethod + +`func (o *ConfigPropertiesCasesWebhook) SetCreateCommentMethod(v string)` + +SetCreateCommentMethod sets CreateCommentMethod field to given value. + +### HasCreateCommentMethod + +`func (o *ConfigPropertiesCasesWebhook) HasCreateCommentMethod() bool` + +HasCreateCommentMethod returns a boolean if a field has been set. + +### GetCreateCommentUrl + +`func (o *ConfigPropertiesCasesWebhook) GetCreateCommentUrl() string` + +GetCreateCommentUrl returns the CreateCommentUrl field if non-nil, zero value otherwise. + +### GetCreateCommentUrlOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateCommentUrlOk() (*string, bool)` + +GetCreateCommentUrlOk returns a tuple with the CreateCommentUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateCommentUrl + +`func (o *ConfigPropertiesCasesWebhook) SetCreateCommentUrl(v string)` + +SetCreateCommentUrl sets CreateCommentUrl field to given value. + +### HasCreateCommentUrl + +`func (o *ConfigPropertiesCasesWebhook) HasCreateCommentUrl() bool` + +HasCreateCommentUrl returns a boolean if a field has been set. + +### GetCreateIncidentJson + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentJson() string` + +GetCreateIncidentJson returns the CreateIncidentJson field if non-nil, zero value otherwise. + +### GetCreateIncidentJsonOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentJsonOk() (*string, bool)` + +GetCreateIncidentJsonOk returns a tuple with the CreateIncidentJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIncidentJson + +`func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentJson(v string)` + +SetCreateIncidentJson sets CreateIncidentJson field to given value. + + +### GetCreateIncidentMethod + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentMethod() string` + +GetCreateIncidentMethod returns the CreateIncidentMethod field if non-nil, zero value otherwise. + +### GetCreateIncidentMethodOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentMethodOk() (*string, bool)` + +GetCreateIncidentMethodOk returns a tuple with the CreateIncidentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIncidentMethod + +`func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentMethod(v string)` + +SetCreateIncidentMethod sets CreateIncidentMethod field to given value. + +### HasCreateIncidentMethod + +`func (o *ConfigPropertiesCasesWebhook) HasCreateIncidentMethod() bool` + +HasCreateIncidentMethod returns a boolean if a field has been set. + +### GetCreateIncidentResponseKey + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentResponseKey() string` + +GetCreateIncidentResponseKey returns the CreateIncidentResponseKey field if non-nil, zero value otherwise. + +### GetCreateIncidentResponseKeyOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentResponseKeyOk() (*string, bool)` + +GetCreateIncidentResponseKeyOk returns a tuple with the CreateIncidentResponseKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIncidentResponseKey + +`func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentResponseKey(v string)` + +SetCreateIncidentResponseKey sets CreateIncidentResponseKey field to given value. + + +### GetCreateIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentUrl() string` + +GetCreateIncidentUrl returns the CreateIncidentUrl field if non-nil, zero value otherwise. + +### GetCreateIncidentUrlOk + +`func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentUrlOk() (*string, bool)` + +GetCreateIncidentUrlOk returns a tuple with the CreateIncidentUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentUrl(v string)` + +SetCreateIncidentUrl sets CreateIncidentUrl field to given value. + + +### GetGetIncidentResponseExternalTitleKey + +`func (o *ConfigPropertiesCasesWebhook) GetGetIncidentResponseExternalTitleKey() string` + +GetGetIncidentResponseExternalTitleKey returns the GetIncidentResponseExternalTitleKey field if non-nil, zero value otherwise. + +### GetGetIncidentResponseExternalTitleKeyOk + +`func (o *ConfigPropertiesCasesWebhook) GetGetIncidentResponseExternalTitleKeyOk() (*string, bool)` + +GetGetIncidentResponseExternalTitleKeyOk returns a tuple with the GetIncidentResponseExternalTitleKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetIncidentResponseExternalTitleKey + +`func (o *ConfigPropertiesCasesWebhook) SetGetIncidentResponseExternalTitleKey(v string)` + +SetGetIncidentResponseExternalTitleKey sets GetIncidentResponseExternalTitleKey field to given value. + + +### GetGetIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) GetGetIncidentUrl() string` + +GetGetIncidentUrl returns the GetIncidentUrl field if non-nil, zero value otherwise. + +### GetGetIncidentUrlOk + +`func (o *ConfigPropertiesCasesWebhook) GetGetIncidentUrlOk() (*string, bool)` + +GetGetIncidentUrlOk returns a tuple with the GetIncidentUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) SetGetIncidentUrl(v string)` + +SetGetIncidentUrl sets GetIncidentUrl field to given value. + + +### GetHasAuth + +`func (o *ConfigPropertiesCasesWebhook) GetHasAuth() bool` + +GetHasAuth returns the HasAuth field if non-nil, zero value otherwise. + +### GetHasAuthOk + +`func (o *ConfigPropertiesCasesWebhook) GetHasAuthOk() (*bool, bool)` + +GetHasAuthOk returns a tuple with the HasAuth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasAuth + +`func (o *ConfigPropertiesCasesWebhook) SetHasAuth(v bool)` + +SetHasAuth sets HasAuth field to given value. + +### HasHasAuth + +`func (o *ConfigPropertiesCasesWebhook) HasHasAuth() bool` + +HasHasAuth returns a boolean if a field has been set. + +### GetHeaders + +`func (o *ConfigPropertiesCasesWebhook) GetHeaders() string` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *ConfigPropertiesCasesWebhook) GetHeadersOk() (*string, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *ConfigPropertiesCasesWebhook) SetHeaders(v string)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *ConfigPropertiesCasesWebhook) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetUpdateIncidentJson + +`func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentJson() string` + +GetUpdateIncidentJson returns the UpdateIncidentJson field if non-nil, zero value otherwise. + +### GetUpdateIncidentJsonOk + +`func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentJsonOk() (*string, bool)` + +GetUpdateIncidentJsonOk returns a tuple with the UpdateIncidentJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateIncidentJson + +`func (o *ConfigPropertiesCasesWebhook) SetUpdateIncidentJson(v string)` + +SetUpdateIncidentJson sets UpdateIncidentJson field to given value. + + +### GetUpdateIncidentMethod + +`func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentMethod() string` + +GetUpdateIncidentMethod returns the UpdateIncidentMethod field if non-nil, zero value otherwise. + +### GetUpdateIncidentMethodOk + +`func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentMethodOk() (*string, bool)` + +GetUpdateIncidentMethodOk returns a tuple with the UpdateIncidentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateIncidentMethod + +`func (o *ConfigPropertiesCasesWebhook) SetUpdateIncidentMethod(v string)` + +SetUpdateIncidentMethod sets UpdateIncidentMethod field to given value. + +### HasUpdateIncidentMethod + +`func (o *ConfigPropertiesCasesWebhook) HasUpdateIncidentMethod() bool` + +HasUpdateIncidentMethod returns a boolean if a field has been set. + +### GetUpdateIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentUrl() string` + +GetUpdateIncidentUrl returns the UpdateIncidentUrl field if non-nil, zero value otherwise. + +### GetUpdateIncidentUrlOk + +`func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentUrlOk() (*string, bool)` + +GetUpdateIncidentUrlOk returns a tuple with the UpdateIncidentUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) SetUpdateIncidentUrl(v string)` + +SetUpdateIncidentUrl sets UpdateIncidentUrl field to given value. + + +### GetViewIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) GetViewIncidentUrl() string` + +GetViewIncidentUrl returns the ViewIncidentUrl field if non-nil, zero value otherwise. + +### GetViewIncidentUrlOk + +`func (o *ConfigPropertiesCasesWebhook) GetViewIncidentUrlOk() (*string, bool)` + +GetViewIncidentUrlOk returns a tuple with the ViewIncidentUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewIncidentUrl + +`func (o *ConfigPropertiesCasesWebhook) SetViewIncidentUrl(v string)` + +SetViewIncidentUrl sets ViewIncidentUrl field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesIndex.md b/generated/kibanaactions/docs/ConfigPropertiesIndex.md new file mode 100644 index 000000000..c524f25d4 --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesIndex.md @@ -0,0 +1,113 @@ +# ConfigPropertiesIndex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExecutionTimeField** | Pointer to **NullableString** | Specifies a field that will contain the time the alert condition was detected. | [optional] +**Index** | **string** | The Elasticsearch index to be written to. | +**Refresh** | Pointer to **bool** | The refresh policy for the write request, which affects when changes are made visible to search. Refer to the refresh setting for Elasticsearch document APIs. | [optional] [default to false] + +## Methods + +### NewConfigPropertiesIndex + +`func NewConfigPropertiesIndex(index string, ) *ConfigPropertiesIndex` + +NewConfigPropertiesIndex instantiates a new ConfigPropertiesIndex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesIndexWithDefaults + +`func NewConfigPropertiesIndexWithDefaults() *ConfigPropertiesIndex` + +NewConfigPropertiesIndexWithDefaults instantiates a new ConfigPropertiesIndex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExecutionTimeField + +`func (o *ConfigPropertiesIndex) GetExecutionTimeField() string` + +GetExecutionTimeField returns the ExecutionTimeField field if non-nil, zero value otherwise. + +### GetExecutionTimeFieldOk + +`func (o *ConfigPropertiesIndex) GetExecutionTimeFieldOk() (*string, bool)` + +GetExecutionTimeFieldOk returns a tuple with the ExecutionTimeField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionTimeField + +`func (o *ConfigPropertiesIndex) SetExecutionTimeField(v string)` + +SetExecutionTimeField sets ExecutionTimeField field to given value. + +### HasExecutionTimeField + +`func (o *ConfigPropertiesIndex) HasExecutionTimeField() bool` + +HasExecutionTimeField returns a boolean if a field has been set. + +### SetExecutionTimeFieldNil + +`func (o *ConfigPropertiesIndex) SetExecutionTimeFieldNil(b bool)` + + SetExecutionTimeFieldNil sets the value for ExecutionTimeField to be an explicit nil + +### UnsetExecutionTimeField +`func (o *ConfigPropertiesIndex) UnsetExecutionTimeField()` + +UnsetExecutionTimeField ensures that no value is present for ExecutionTimeField, not even an explicit nil +### GetIndex + +`func (o *ConfigPropertiesIndex) GetIndex() string` + +GetIndex returns the Index field if non-nil, zero value otherwise. + +### GetIndexOk + +`func (o *ConfigPropertiesIndex) GetIndexOk() (*string, bool)` + +GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndex + +`func (o *ConfigPropertiesIndex) SetIndex(v string)` + +SetIndex sets Index field to given value. + + +### GetRefresh + +`func (o *ConfigPropertiesIndex) GetRefresh() bool` + +GetRefresh returns the Refresh field if non-nil, zero value otherwise. + +### GetRefreshOk + +`func (o *ConfigPropertiesIndex) GetRefreshOk() (*bool, bool)` + +GetRefreshOk returns a tuple with the Refresh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefresh + +`func (o *ConfigPropertiesIndex) SetRefresh(v bool)` + +SetRefresh sets Refresh field to given value. + +### HasRefresh + +`func (o *ConfigPropertiesIndex) HasRefresh() bool` + +HasRefresh returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesJira.md b/generated/kibanaactions/docs/ConfigPropertiesJira.md new file mode 100644 index 000000000..5e704f1c2 --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesJira.md @@ -0,0 +1,72 @@ +# ConfigPropertiesJira + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiUrl** | **string** | The Jira instance URL. | +**ProjectKey** | **string** | The Jira project key. | + +## Methods + +### NewConfigPropertiesJira + +`func NewConfigPropertiesJira(apiUrl string, projectKey string, ) *ConfigPropertiesJira` + +NewConfigPropertiesJira instantiates a new ConfigPropertiesJira object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesJiraWithDefaults + +`func NewConfigPropertiesJiraWithDefaults() *ConfigPropertiesJira` + +NewConfigPropertiesJiraWithDefaults instantiates a new ConfigPropertiesJira object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiUrl + +`func (o *ConfigPropertiesJira) GetApiUrl() string` + +GetApiUrl returns the ApiUrl field if non-nil, zero value otherwise. + +### GetApiUrlOk + +`func (o *ConfigPropertiesJira) GetApiUrlOk() (*string, bool)` + +GetApiUrlOk returns a tuple with the ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiUrl + +`func (o *ConfigPropertiesJira) SetApiUrl(v string)` + +SetApiUrl sets ApiUrl field to given value. + + +### GetProjectKey + +`func (o *ConfigPropertiesJira) GetProjectKey() string` + +GetProjectKey returns the ProjectKey field if non-nil, zero value otherwise. + +### GetProjectKeyOk + +`func (o *ConfigPropertiesJira) GetProjectKeyOk() (*string, bool)` + +GetProjectKeyOk returns a tuple with the ProjectKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectKey + +`func (o *ConfigPropertiesJira) SetProjectKey(v string)` + +SetProjectKey sets ProjectKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesOpsgenie.md b/generated/kibanaactions/docs/ConfigPropertiesOpsgenie.md new file mode 100644 index 000000000..77f85a0f7 --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesOpsgenie.md @@ -0,0 +1,51 @@ +# ConfigPropertiesOpsgenie + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiUrl** | **string** | The Opsgenie URL. For example, `https://api.opsgenie.com` or `https://api.eu.opsgenie.com`. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. | + +## Methods + +### NewConfigPropertiesOpsgenie + +`func NewConfigPropertiesOpsgenie(apiUrl string, ) *ConfigPropertiesOpsgenie` + +NewConfigPropertiesOpsgenie instantiates a new ConfigPropertiesOpsgenie object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesOpsgenieWithDefaults + +`func NewConfigPropertiesOpsgenieWithDefaults() *ConfigPropertiesOpsgenie` + +NewConfigPropertiesOpsgenieWithDefaults instantiates a new ConfigPropertiesOpsgenie object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiUrl + +`func (o *ConfigPropertiesOpsgenie) GetApiUrl() string` + +GetApiUrl returns the ApiUrl field if non-nil, zero value otherwise. + +### GetApiUrlOk + +`func (o *ConfigPropertiesOpsgenie) GetApiUrlOk() (*string, bool)` + +GetApiUrlOk returns a tuple with the ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiUrl + +`func (o *ConfigPropertiesOpsgenie) SetApiUrl(v string)` + +SetApiUrl sets ApiUrl field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesResilient.md b/generated/kibanaactions/docs/ConfigPropertiesResilient.md new file mode 100644 index 000000000..3573cc5dd --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesResilient.md @@ -0,0 +1,72 @@ +# ConfigPropertiesResilient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiUrl** | **string** | The IBM Resilient instance URL. | +**OrgId** | **string** | The IBM Resilient organization ID. | + +## Methods + +### NewConfigPropertiesResilient + +`func NewConfigPropertiesResilient(apiUrl string, orgId string, ) *ConfigPropertiesResilient` + +NewConfigPropertiesResilient instantiates a new ConfigPropertiesResilient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesResilientWithDefaults + +`func NewConfigPropertiesResilientWithDefaults() *ConfigPropertiesResilient` + +NewConfigPropertiesResilientWithDefaults instantiates a new ConfigPropertiesResilient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiUrl + +`func (o *ConfigPropertiesResilient) GetApiUrl() string` + +GetApiUrl returns the ApiUrl field if non-nil, zero value otherwise. + +### GetApiUrlOk + +`func (o *ConfigPropertiesResilient) GetApiUrlOk() (*string, bool)` + +GetApiUrlOk returns a tuple with the ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiUrl + +`func (o *ConfigPropertiesResilient) SetApiUrl(v string)` + +SetApiUrl sets ApiUrl field to given value. + + +### GetOrgId + +`func (o *ConfigPropertiesResilient) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ConfigPropertiesResilient) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ConfigPropertiesResilient) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesServicenow.md b/generated/kibanaactions/docs/ConfigPropertiesServicenow.md new file mode 100644 index 000000000..07413b9ba --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesServicenow.md @@ -0,0 +1,181 @@ +# ConfigPropertiesServicenow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiUrl** | **string** | The ServiceNow instance URL. | +**ClientId** | Pointer to **string** | The client ID assigned to your OAuth application. This property is required when `isOAuth` is `true`. | [optional] +**IsOAuth** | Pointer to **bool** | The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth). | [optional] [default to false] +**JwtKeyId** | Pointer to **string** | The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`. | [optional] +**UserIdentifierValue** | Pointer to **string** | The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is `Email`, the user identifier should be the user's email address. This property is required when `isOAuth` is `true`. | [optional] +**UsesTableApi** | Pointer to **bool** | Determines whether the connector uses the Table API or the Import Set API. This property is supported only for ServiceNow ITSM and ServiceNow SecOps connectors. NOTE: If this property is set to `false`, the Elastic application should be installed in ServiceNow. | [optional] [default to true] + +## Methods + +### NewConfigPropertiesServicenow + +`func NewConfigPropertiesServicenow(apiUrl string, ) *ConfigPropertiesServicenow` + +NewConfigPropertiesServicenow instantiates a new ConfigPropertiesServicenow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesServicenowWithDefaults + +`func NewConfigPropertiesServicenowWithDefaults() *ConfigPropertiesServicenow` + +NewConfigPropertiesServicenowWithDefaults instantiates a new ConfigPropertiesServicenow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiUrl + +`func (o *ConfigPropertiesServicenow) GetApiUrl() string` + +GetApiUrl returns the ApiUrl field if non-nil, zero value otherwise. + +### GetApiUrlOk + +`func (o *ConfigPropertiesServicenow) GetApiUrlOk() (*string, bool)` + +GetApiUrlOk returns a tuple with the ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiUrl + +`func (o *ConfigPropertiesServicenow) SetApiUrl(v string)` + +SetApiUrl sets ApiUrl field to given value. + + +### GetClientId + +`func (o *ConfigPropertiesServicenow) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ConfigPropertiesServicenow) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ConfigPropertiesServicenow) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ConfigPropertiesServicenow) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetIsOAuth + +`func (o *ConfigPropertiesServicenow) GetIsOAuth() bool` + +GetIsOAuth returns the IsOAuth field if non-nil, zero value otherwise. + +### GetIsOAuthOk + +`func (o *ConfigPropertiesServicenow) GetIsOAuthOk() (*bool, bool)` + +GetIsOAuthOk returns a tuple with the IsOAuth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOAuth + +`func (o *ConfigPropertiesServicenow) SetIsOAuth(v bool)` + +SetIsOAuth sets IsOAuth field to given value. + +### HasIsOAuth + +`func (o *ConfigPropertiesServicenow) HasIsOAuth() bool` + +HasIsOAuth returns a boolean if a field has been set. + +### GetJwtKeyId + +`func (o *ConfigPropertiesServicenow) GetJwtKeyId() string` + +GetJwtKeyId returns the JwtKeyId field if non-nil, zero value otherwise. + +### GetJwtKeyIdOk + +`func (o *ConfigPropertiesServicenow) GetJwtKeyIdOk() (*string, bool)` + +GetJwtKeyIdOk returns a tuple with the JwtKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtKeyId + +`func (o *ConfigPropertiesServicenow) SetJwtKeyId(v string)` + +SetJwtKeyId sets JwtKeyId field to given value. + +### HasJwtKeyId + +`func (o *ConfigPropertiesServicenow) HasJwtKeyId() bool` + +HasJwtKeyId returns a boolean if a field has been set. + +### GetUserIdentifierValue + +`func (o *ConfigPropertiesServicenow) GetUserIdentifierValue() string` + +GetUserIdentifierValue returns the UserIdentifierValue field if non-nil, zero value otherwise. + +### GetUserIdentifierValueOk + +`func (o *ConfigPropertiesServicenow) GetUserIdentifierValueOk() (*string, bool)` + +GetUserIdentifierValueOk returns a tuple with the UserIdentifierValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIdentifierValue + +`func (o *ConfigPropertiesServicenow) SetUserIdentifierValue(v string)` + +SetUserIdentifierValue sets UserIdentifierValue field to given value. + +### HasUserIdentifierValue + +`func (o *ConfigPropertiesServicenow) HasUserIdentifierValue() bool` + +HasUserIdentifierValue returns a boolean if a field has been set. + +### GetUsesTableApi + +`func (o *ConfigPropertiesServicenow) GetUsesTableApi() bool` + +GetUsesTableApi returns the UsesTableApi field if non-nil, zero value otherwise. + +### GetUsesTableApiOk + +`func (o *ConfigPropertiesServicenow) GetUsesTableApiOk() (*bool, bool)` + +GetUsesTableApiOk returns a tuple with the UsesTableApi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsesTableApi + +`func (o *ConfigPropertiesServicenow) SetUsesTableApi(v bool)` + +SetUsesTableApi sets UsesTableApi field to given value. + +### HasUsesTableApi + +`func (o *ConfigPropertiesServicenow) HasUsesTableApi() bool` + +HasUsesTableApi returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesServicenowItom.md b/generated/kibanaactions/docs/ConfigPropertiesServicenowItom.md new file mode 100644 index 000000000..fee66e3db --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesServicenowItom.md @@ -0,0 +1,155 @@ +# ConfigPropertiesServicenowItom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiUrl** | **string** | The ServiceNow instance URL. | +**ClientId** | Pointer to **string** | The client ID assigned to your OAuth application. This property is required when `isOAuth` is `true`. | [optional] +**IsOAuth** | Pointer to **bool** | The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth). | [optional] [default to false] +**JwtKeyId** | Pointer to **string** | The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`. | [optional] +**UserIdentifierValue** | Pointer to **string** | The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is `Email`, the user identifier should be the user's email address. This property is required when `isOAuth` is `true`. | [optional] + +## Methods + +### NewConfigPropertiesServicenowItom + +`func NewConfigPropertiesServicenowItom(apiUrl string, ) *ConfigPropertiesServicenowItom` + +NewConfigPropertiesServicenowItom instantiates a new ConfigPropertiesServicenowItom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesServicenowItomWithDefaults + +`func NewConfigPropertiesServicenowItomWithDefaults() *ConfigPropertiesServicenowItom` + +NewConfigPropertiesServicenowItomWithDefaults instantiates a new ConfigPropertiesServicenowItom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiUrl + +`func (o *ConfigPropertiesServicenowItom) GetApiUrl() string` + +GetApiUrl returns the ApiUrl field if non-nil, zero value otherwise. + +### GetApiUrlOk + +`func (o *ConfigPropertiesServicenowItom) GetApiUrlOk() (*string, bool)` + +GetApiUrlOk returns a tuple with the ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiUrl + +`func (o *ConfigPropertiesServicenowItom) SetApiUrl(v string)` + +SetApiUrl sets ApiUrl field to given value. + + +### GetClientId + +`func (o *ConfigPropertiesServicenowItom) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ConfigPropertiesServicenowItom) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ConfigPropertiesServicenowItom) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ConfigPropertiesServicenowItom) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetIsOAuth + +`func (o *ConfigPropertiesServicenowItom) GetIsOAuth() bool` + +GetIsOAuth returns the IsOAuth field if non-nil, zero value otherwise. + +### GetIsOAuthOk + +`func (o *ConfigPropertiesServicenowItom) GetIsOAuthOk() (*bool, bool)` + +GetIsOAuthOk returns a tuple with the IsOAuth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOAuth + +`func (o *ConfigPropertiesServicenowItom) SetIsOAuth(v bool)` + +SetIsOAuth sets IsOAuth field to given value. + +### HasIsOAuth + +`func (o *ConfigPropertiesServicenowItom) HasIsOAuth() bool` + +HasIsOAuth returns a boolean if a field has been set. + +### GetJwtKeyId + +`func (o *ConfigPropertiesServicenowItom) GetJwtKeyId() string` + +GetJwtKeyId returns the JwtKeyId field if non-nil, zero value otherwise. + +### GetJwtKeyIdOk + +`func (o *ConfigPropertiesServicenowItom) GetJwtKeyIdOk() (*string, bool)` + +GetJwtKeyIdOk returns a tuple with the JwtKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtKeyId + +`func (o *ConfigPropertiesServicenowItom) SetJwtKeyId(v string)` + +SetJwtKeyId sets JwtKeyId field to given value. + +### HasJwtKeyId + +`func (o *ConfigPropertiesServicenowItom) HasJwtKeyId() bool` + +HasJwtKeyId returns a boolean if a field has been set. + +### GetUserIdentifierValue + +`func (o *ConfigPropertiesServicenowItom) GetUserIdentifierValue() string` + +GetUserIdentifierValue returns the UserIdentifierValue field if non-nil, zero value otherwise. + +### GetUserIdentifierValueOk + +`func (o *ConfigPropertiesServicenowItom) GetUserIdentifierValueOk() (*string, bool)` + +GetUserIdentifierValueOk returns a tuple with the UserIdentifierValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIdentifierValue + +`func (o *ConfigPropertiesServicenowItom) SetUserIdentifierValue(v string)` + +SetUserIdentifierValue sets UserIdentifierValue field to given value. + +### HasUserIdentifierValue + +`func (o *ConfigPropertiesServicenowItom) HasUserIdentifierValue() bool` + +HasUserIdentifierValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConfigPropertiesSwimlane.md b/generated/kibanaactions/docs/ConfigPropertiesSwimlane.md new file mode 100644 index 000000000..a020066bf --- /dev/null +++ b/generated/kibanaactions/docs/ConfigPropertiesSwimlane.md @@ -0,0 +1,119 @@ +# ConfigPropertiesSwimlane + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiUrl** | **string** | The Swimlane instance URL. | +**AppId** | **string** | The Swimlane application ID. | +**ConnectorType** | **string** | The type of connector. Valid values are `all`, `alerts`, and `cases`. | +**Mappings** | Pointer to [**ConnectorMappingsPropertiesForASwimlaneConnector**](ConnectorMappingsPropertiesForASwimlaneConnector.md) | | [optional] + +## Methods + +### NewConfigPropertiesSwimlane + +`func NewConfigPropertiesSwimlane(apiUrl string, appId string, connectorType string, ) *ConfigPropertiesSwimlane` + +NewConfigPropertiesSwimlane instantiates a new ConfigPropertiesSwimlane object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigPropertiesSwimlaneWithDefaults + +`func NewConfigPropertiesSwimlaneWithDefaults() *ConfigPropertiesSwimlane` + +NewConfigPropertiesSwimlaneWithDefaults instantiates a new ConfigPropertiesSwimlane object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiUrl + +`func (o *ConfigPropertiesSwimlane) GetApiUrl() string` + +GetApiUrl returns the ApiUrl field if non-nil, zero value otherwise. + +### GetApiUrlOk + +`func (o *ConfigPropertiesSwimlane) GetApiUrlOk() (*string, bool)` + +GetApiUrlOk returns a tuple with the ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiUrl + +`func (o *ConfigPropertiesSwimlane) SetApiUrl(v string)` + +SetApiUrl sets ApiUrl field to given value. + + +### GetAppId + +`func (o *ConfigPropertiesSwimlane) GetAppId() string` + +GetAppId returns the AppId field if non-nil, zero value otherwise. + +### GetAppIdOk + +`func (o *ConfigPropertiesSwimlane) GetAppIdOk() (*string, bool)` + +GetAppIdOk returns a tuple with the AppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppId + +`func (o *ConfigPropertiesSwimlane) SetAppId(v string)` + +SetAppId sets AppId field to given value. + + +### GetConnectorType + +`func (o *ConfigPropertiesSwimlane) GetConnectorType() string` + +GetConnectorType returns the ConnectorType field if non-nil, zero value otherwise. + +### GetConnectorTypeOk + +`func (o *ConfigPropertiesSwimlane) GetConnectorTypeOk() (*string, bool)` + +GetConnectorTypeOk returns a tuple with the ConnectorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorType + +`func (o *ConfigPropertiesSwimlane) SetConnectorType(v string)` + +SetConnectorType sets ConnectorType field to given value. + + +### GetMappings + +`func (o *ConfigPropertiesSwimlane) GetMappings() ConnectorMappingsPropertiesForASwimlaneConnector` + +GetMappings returns the Mappings field if non-nil, zero value otherwise. + +### GetMappingsOk + +`func (o *ConfigPropertiesSwimlane) GetMappingsOk() (*ConnectorMappingsPropertiesForASwimlaneConnector, bool)` + +GetMappingsOk returns a tuple with the Mappings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappings + +`func (o *ConfigPropertiesSwimlane) SetMappings(v ConnectorMappingsPropertiesForASwimlaneConnector)` + +SetMappings sets Mappings field to given value. + +### HasMappings + +`func (o *ConfigPropertiesSwimlane) HasMappings() bool` + +HasMappings returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorMappingsPropertiesForASwimlaneConnector.md b/generated/kibanaactions/docs/ConnectorMappingsPropertiesForASwimlaneConnector.md new file mode 100644 index 000000000..78d2db0b5 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorMappingsPropertiesForASwimlaneConnector.md @@ -0,0 +1,212 @@ +# ConnectorMappingsPropertiesForASwimlaneConnector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertIdConfig** | Pointer to [**AlertIdentifierMapping**](AlertIdentifierMapping.md) | | [optional] +**CaseIdConfig** | Pointer to [**CaseIdentifierMapping**](CaseIdentifierMapping.md) | | [optional] +**CaseNameConfig** | Pointer to [**CaseNameMapping**](CaseNameMapping.md) | | [optional] +**CommentsConfig** | Pointer to [**CaseCommentMapping**](CaseCommentMapping.md) | | [optional] +**DescriptionConfig** | Pointer to [**CaseDescriptionMapping**](CaseDescriptionMapping.md) | | [optional] +**RuleNameConfig** | Pointer to [**RuleNameMapping**](RuleNameMapping.md) | | [optional] +**SeverityConfig** | Pointer to [**SeverityMapping**](SeverityMapping.md) | | [optional] + +## Methods + +### NewConnectorMappingsPropertiesForASwimlaneConnector + +`func NewConnectorMappingsPropertiesForASwimlaneConnector() *ConnectorMappingsPropertiesForASwimlaneConnector` + +NewConnectorMappingsPropertiesForASwimlaneConnector instantiates a new ConnectorMappingsPropertiesForASwimlaneConnector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorMappingsPropertiesForASwimlaneConnectorWithDefaults + +`func NewConnectorMappingsPropertiesForASwimlaneConnectorWithDefaults() *ConnectorMappingsPropertiesForASwimlaneConnector` + +NewConnectorMappingsPropertiesForASwimlaneConnectorWithDefaults instantiates a new ConnectorMappingsPropertiesForASwimlaneConnector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertIdConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetAlertIdConfig() AlertIdentifierMapping` + +GetAlertIdConfig returns the AlertIdConfig field if non-nil, zero value otherwise. + +### GetAlertIdConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetAlertIdConfigOk() (*AlertIdentifierMapping, bool)` + +GetAlertIdConfigOk returns a tuple with the AlertIdConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertIdConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetAlertIdConfig(v AlertIdentifierMapping)` + +SetAlertIdConfig sets AlertIdConfig field to given value. + +### HasAlertIdConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasAlertIdConfig() bool` + +HasAlertIdConfig returns a boolean if a field has been set. + +### GetCaseIdConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseIdConfig() CaseIdentifierMapping` + +GetCaseIdConfig returns the CaseIdConfig field if non-nil, zero value otherwise. + +### GetCaseIdConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseIdConfigOk() (*CaseIdentifierMapping, bool)` + +GetCaseIdConfigOk returns a tuple with the CaseIdConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseIdConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetCaseIdConfig(v CaseIdentifierMapping)` + +SetCaseIdConfig sets CaseIdConfig field to given value. + +### HasCaseIdConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasCaseIdConfig() bool` + +HasCaseIdConfig returns a boolean if a field has been set. + +### GetCaseNameConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseNameConfig() CaseNameMapping` + +GetCaseNameConfig returns the CaseNameConfig field if non-nil, zero value otherwise. + +### GetCaseNameConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseNameConfigOk() (*CaseNameMapping, bool)` + +GetCaseNameConfigOk returns a tuple with the CaseNameConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseNameConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetCaseNameConfig(v CaseNameMapping)` + +SetCaseNameConfig sets CaseNameConfig field to given value. + +### HasCaseNameConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasCaseNameConfig() bool` + +HasCaseNameConfig returns a boolean if a field has been set. + +### GetCommentsConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCommentsConfig() CaseCommentMapping` + +GetCommentsConfig returns the CommentsConfig field if non-nil, zero value otherwise. + +### GetCommentsConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCommentsConfigOk() (*CaseCommentMapping, bool)` + +GetCommentsConfigOk returns a tuple with the CommentsConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentsConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetCommentsConfig(v CaseCommentMapping)` + +SetCommentsConfig sets CommentsConfig field to given value. + +### HasCommentsConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasCommentsConfig() bool` + +HasCommentsConfig returns a boolean if a field has been set. + +### GetDescriptionConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetDescriptionConfig() CaseDescriptionMapping` + +GetDescriptionConfig returns the DescriptionConfig field if non-nil, zero value otherwise. + +### GetDescriptionConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetDescriptionConfigOk() (*CaseDescriptionMapping, bool)` + +GetDescriptionConfigOk returns a tuple with the DescriptionConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescriptionConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetDescriptionConfig(v CaseDescriptionMapping)` + +SetDescriptionConfig sets DescriptionConfig field to given value. + +### HasDescriptionConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasDescriptionConfig() bool` + +HasDescriptionConfig returns a boolean if a field has been set. + +### GetRuleNameConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetRuleNameConfig() RuleNameMapping` + +GetRuleNameConfig returns the RuleNameConfig field if non-nil, zero value otherwise. + +### GetRuleNameConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetRuleNameConfigOk() (*RuleNameMapping, bool)` + +GetRuleNameConfigOk returns a tuple with the RuleNameConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleNameConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetRuleNameConfig(v RuleNameMapping)` + +SetRuleNameConfig sets RuleNameConfig field to given value. + +### HasRuleNameConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasRuleNameConfig() bool` + +HasRuleNameConfig returns a boolean if a field has been set. + +### GetSeverityConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetSeverityConfig() SeverityMapping` + +GetSeverityConfig returns the SeverityConfig field if non-nil, zero value otherwise. + +### GetSeverityConfigOk + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetSeverityConfigOk() (*SeverityMapping, bool)` + +GetSeverityConfigOk returns a tuple with the SeverityConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverityConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetSeverityConfig(v SeverityMapping)` + +SetSeverityConfig sets SeverityConfig field to given value. + +### HasSeverityConfig + +`func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasSeverityConfig() bool` + +HasSeverityConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponseProperties.md b/generated/kibanaactions/docs/ConnectorResponseProperties.md new file mode 100644 index 000000000..fc9e31f5d --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponseProperties.md @@ -0,0 +1,182 @@ +# ConnectorResponseProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.xmatters`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponseProperties + +`func NewConnectorResponseProperties(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponseProperties` + +NewConnectorResponseProperties instantiates a new ConnectorResponseProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesWithDefaults + +`func NewConnectorResponsePropertiesWithDefaults() *ConnectorResponseProperties` + +NewConnectorResponsePropertiesWithDefaults instantiates a new ConnectorResponseProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponseProperties) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponseProperties) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponseProperties) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponseProperties) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponseProperties) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponseProperties) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponseProperties) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponseProperties) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponseProperties) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponseProperties) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponseProperties) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponseProperties) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponseProperties) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponseProperties) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponseProperties) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponseProperties) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponseProperties) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponseProperties) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponseProperties) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponseProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponseProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponseProperties) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesCasesWebhook.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesCasesWebhook.md new file mode 100644 index 000000000..312fe881b --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesCasesWebhook.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesCasesWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesCasesWebhook**](ConfigPropertiesCasesWebhook.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesCasesWebhook + +`func NewConnectorResponsePropertiesCasesWebhook(config ConfigPropertiesCasesWebhook, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesCasesWebhook` + +NewConnectorResponsePropertiesCasesWebhook instantiates a new ConnectorResponsePropertiesCasesWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesCasesWebhookWithDefaults + +`func NewConnectorResponsePropertiesCasesWebhookWithDefaults() *ConnectorResponsePropertiesCasesWebhook` + +NewConnectorResponsePropertiesCasesWebhookWithDefaults instantiates a new ConnectorResponsePropertiesCasesWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetConfig() ConfigPropertiesCasesWebhook` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetConfigOk() (*ConfigPropertiesCasesWebhook, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetConfig(v ConfigPropertiesCasesWebhook)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesCasesWebhook) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesCasesWebhook) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesCasesWebhook) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesEmail.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesEmail.md new file mode 100644 index 000000000..8ec48945c --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesEmail.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesEmail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.email`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesEmail + +`func NewConnectorResponsePropertiesEmail(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesEmail` + +NewConnectorResponsePropertiesEmail instantiates a new ConnectorResponsePropertiesEmail object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesEmailWithDefaults + +`func NewConnectorResponsePropertiesEmailWithDefaults() *ConnectorResponsePropertiesEmail` + +NewConnectorResponsePropertiesEmailWithDefaults instantiates a new ConnectorResponsePropertiesEmail object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesEmail) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesEmail) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesEmail) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesEmail) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesEmail) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesEmail) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesEmail) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesEmail) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesEmail) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesEmail) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesEmail) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesEmail) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesEmail) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesEmail) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesEmail) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesEmail) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesEmail) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesEmail) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesEmail) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesEmail) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesEmail) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesEmail) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesIndex.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesIndex.md new file mode 100644 index 000000000..7022f0ca4 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesIndex.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesIndex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesIndex**](ConfigPropertiesIndex.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesIndex + +`func NewConnectorResponsePropertiesIndex(config ConfigPropertiesIndex, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesIndex` + +NewConnectorResponsePropertiesIndex instantiates a new ConnectorResponsePropertiesIndex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesIndexWithDefaults + +`func NewConnectorResponsePropertiesIndexWithDefaults() *ConnectorResponsePropertiesIndex` + +NewConnectorResponsePropertiesIndexWithDefaults instantiates a new ConnectorResponsePropertiesIndex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesIndex) GetConfig() ConfigPropertiesIndex` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesIndex) GetConfigOk() (*ConfigPropertiesIndex, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesIndex) SetConfig(v ConfigPropertiesIndex)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesIndex) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesIndex) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesIndex) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesIndex) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesIndex) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesIndex) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesIndex) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesIndex) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesIndex) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesIndex) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesIndex) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesIndex) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesIndex) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesIndex) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesIndex) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesIndex) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesIndex) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesIndex) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesIndex) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesJira.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesJira.md new file mode 100644 index 000000000..4b5c455f8 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesJira.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesJira + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesJira**](ConfigPropertiesJira.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesJira + +`func NewConnectorResponsePropertiesJira(config ConfigPropertiesJira, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesJira` + +NewConnectorResponsePropertiesJira instantiates a new ConnectorResponsePropertiesJira object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesJiraWithDefaults + +`func NewConnectorResponsePropertiesJiraWithDefaults() *ConnectorResponsePropertiesJira` + +NewConnectorResponsePropertiesJiraWithDefaults instantiates a new ConnectorResponsePropertiesJira object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesJira) GetConfig() ConfigPropertiesJira` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesJira) GetConfigOk() (*ConfigPropertiesJira, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesJira) SetConfig(v ConfigPropertiesJira)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesJira) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesJira) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesJira) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesJira) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesJira) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesJira) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesJira) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesJira) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesJira) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesJira) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesJira) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesJira) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesJira) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesJira) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesJira) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesJira) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesJira) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesJira) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesJira) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesOpsgenie.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesOpsgenie.md new file mode 100644 index 000000000..56ed8deaf --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesOpsgenie.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesOpsgenie + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesOpsgenie**](ConfigPropertiesOpsgenie.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesOpsgenie + +`func NewConnectorResponsePropertiesOpsgenie(config ConfigPropertiesOpsgenie, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesOpsgenie` + +NewConnectorResponsePropertiesOpsgenie instantiates a new ConnectorResponsePropertiesOpsgenie object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesOpsgenieWithDefaults + +`func NewConnectorResponsePropertiesOpsgenieWithDefaults() *ConnectorResponsePropertiesOpsgenie` + +NewConnectorResponsePropertiesOpsgenieWithDefaults instantiates a new ConnectorResponsePropertiesOpsgenie object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesOpsgenie) GetConfig() ConfigPropertiesOpsgenie` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetConfigOk() (*ConfigPropertiesOpsgenie, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesOpsgenie) SetConfig(v ConfigPropertiesOpsgenie)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesOpsgenie) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesOpsgenie) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesOpsgenie) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesOpsgenie) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesOpsgenie) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesOpsgenie) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesOpsgenie) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesOpsgenie) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesOpsgenie) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesOpsgenie) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesOpsgenie) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesPagerduty.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesPagerduty.md new file mode 100644 index 000000000..11d780bc5 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesPagerduty.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesPagerduty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.pagerduty`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesPagerduty + +`func NewConnectorResponsePropertiesPagerduty(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesPagerduty` + +NewConnectorResponsePropertiesPagerduty instantiates a new ConnectorResponsePropertiesPagerduty object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesPagerdutyWithDefaults + +`func NewConnectorResponsePropertiesPagerdutyWithDefaults() *ConnectorResponsePropertiesPagerduty` + +NewConnectorResponsePropertiesPagerdutyWithDefaults instantiates a new ConnectorResponsePropertiesPagerduty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesPagerduty) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesPagerduty) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesPagerduty) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesPagerduty) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesPagerduty) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesPagerduty) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesPagerduty) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesPagerduty) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesPagerduty) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesPagerduty) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesPagerduty) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesPagerduty) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesPagerduty) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesPagerduty) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesPagerduty) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesPagerduty) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesResilient.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesResilient.md new file mode 100644 index 000000000..2f1351883 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesResilient.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesResilient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesResilient**](ConfigPropertiesResilient.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesResilient + +`func NewConnectorResponsePropertiesResilient(config ConfigPropertiesResilient, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesResilient` + +NewConnectorResponsePropertiesResilient instantiates a new ConnectorResponsePropertiesResilient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesResilientWithDefaults + +`func NewConnectorResponsePropertiesResilientWithDefaults() *ConnectorResponsePropertiesResilient` + +NewConnectorResponsePropertiesResilientWithDefaults instantiates a new ConnectorResponsePropertiesResilient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesResilient) GetConfig() ConfigPropertiesResilient` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesResilient) GetConfigOk() (*ConfigPropertiesResilient, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesResilient) SetConfig(v ConfigPropertiesResilient)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesResilient) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesResilient) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesResilient) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesResilient) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesResilient) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesResilient) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesResilient) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesResilient) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesResilient) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesResilient) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesResilient) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesResilient) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesResilient) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesResilient) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesResilient) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesResilient) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesResilient) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesResilient) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesResilient) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesServerlog.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesServerlog.md new file mode 100644 index 000000000..1406ab7fa --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesServerlog.md @@ -0,0 +1,192 @@ +# ConnectorResponsePropertiesServerlog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesServerlog + +`func NewConnectorResponsePropertiesServerlog(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesServerlog` + +NewConnectorResponsePropertiesServerlog instantiates a new ConnectorResponsePropertiesServerlog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesServerlogWithDefaults + +`func NewConnectorResponsePropertiesServerlogWithDefaults() *ConnectorResponsePropertiesServerlog` + +NewConnectorResponsePropertiesServerlogWithDefaults instantiates a new ConnectorResponsePropertiesServerlog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesServerlog) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesServerlog) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesServerlog) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### SetConfigNil + +`func (o *ConnectorResponsePropertiesServerlog) SetConfigNil(b bool)` + + SetConfigNil sets the value for Config to be an explicit nil + +### UnsetConfig +`func (o *ConnectorResponsePropertiesServerlog) UnsetConfig()` + +UnsetConfig ensures that no value is present for Config, not even an explicit nil +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServerlog) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesServerlog) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServerlog) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesServerlog) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesServerlog) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesServerlog) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesServerlog) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesServerlog) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesServerlog) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServerlog) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesServerlog) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServerlog) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServerlog) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServerlog) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesServerlog) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServerlog) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesServerlog) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesServerlog) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesServerlog) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenow.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenow.md new file mode 100644 index 000000000..3d2d84495 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenow.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesServicenow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenow**](ConfigPropertiesServicenow.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesServicenow + +`func NewConnectorResponsePropertiesServicenow(config ConfigPropertiesServicenow, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesServicenow` + +NewConnectorResponsePropertiesServicenow instantiates a new ConnectorResponsePropertiesServicenow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesServicenowWithDefaults + +`func NewConnectorResponsePropertiesServicenowWithDefaults() *ConnectorResponsePropertiesServicenow` + +NewConnectorResponsePropertiesServicenowWithDefaults instantiates a new ConnectorResponsePropertiesServicenow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesServicenow) GetConfig() ConfigPropertiesServicenow` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesServicenow) GetConfigOk() (*ConfigPropertiesServicenow, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesServicenow) SetConfig(v ConfigPropertiesServicenow)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServicenow) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesServicenow) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServicenow) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesServicenow) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesServicenow) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesServicenow) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesServicenow) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesServicenow) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesServicenow) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenow) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesServicenow) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenow) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenow) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServicenow) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesServicenow) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServicenow) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesServicenow) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesServicenow) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesServicenow) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenowItom.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenowItom.md new file mode 100644 index 000000000..9cbf251d0 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenowItom.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesServicenowItom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenowItom**](ConfigPropertiesServicenowItom.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesServicenowItom + +`func NewConnectorResponsePropertiesServicenowItom(config ConfigPropertiesServicenowItom, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesServicenowItom` + +NewConnectorResponsePropertiesServicenowItom instantiates a new ConnectorResponsePropertiesServicenowItom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesServicenowItomWithDefaults + +`func NewConnectorResponsePropertiesServicenowItomWithDefaults() *ConnectorResponsePropertiesServicenowItom` + +NewConnectorResponsePropertiesServicenowItomWithDefaults instantiates a new ConnectorResponsePropertiesServicenowItom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesServicenowItom) GetConfig() ConfigPropertiesServicenowItom` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetConfigOk() (*ConfigPropertiesServicenowItom, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesServicenowItom) SetConfig(v ConfigPropertiesServicenowItom)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServicenowItom) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServicenowItom) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesServicenowItom) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesServicenowItom) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesServicenowItom) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenowItom) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenowItom) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServicenowItom) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesServicenowItom) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesServicenowItom) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesServicenowItom) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenowSir.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenowSir.md new file mode 100644 index 000000000..e7ff1fc5d --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesServicenowSir.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesServicenowSir + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenow**](ConfigPropertiesServicenow.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesServicenowSir + +`func NewConnectorResponsePropertiesServicenowSir(config ConfigPropertiesServicenow, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesServicenowSir` + +NewConnectorResponsePropertiesServicenowSir instantiates a new ConnectorResponsePropertiesServicenowSir object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesServicenowSirWithDefaults + +`func NewConnectorResponsePropertiesServicenowSirWithDefaults() *ConnectorResponsePropertiesServicenowSir` + +NewConnectorResponsePropertiesServicenowSirWithDefaults instantiates a new ConnectorResponsePropertiesServicenowSir object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesServicenowSir) GetConfig() ConfigPropertiesServicenow` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetConfigOk() (*ConfigPropertiesServicenow, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesServicenowSir) SetConfig(v ConfigPropertiesServicenow)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServicenowSir) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesServicenowSir) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesServicenowSir) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesServicenowSir) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesServicenowSir) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenowSir) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesServicenowSir) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesServicenowSir) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesServicenowSir) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesServicenowSir) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesServicenowSir) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesSlack.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesSlack.md new file mode 100644 index 000000000..f88435d2b --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesSlack.md @@ -0,0 +1,161 @@ +# ConnectorResponsePropertiesSlack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesSlack + +`func NewConnectorResponsePropertiesSlack(connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesSlack` + +NewConnectorResponsePropertiesSlack instantiates a new ConnectorResponsePropertiesSlack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesSlackWithDefaults + +`func NewConnectorResponsePropertiesSlackWithDefaults() *ConnectorResponsePropertiesSlack` + +NewConnectorResponsePropertiesSlackWithDefaults instantiates a new ConnectorResponsePropertiesSlack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesSlack) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesSlack) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesSlack) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesSlack) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesSlack) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesSlack) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesSlack) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesSlack) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesSlack) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesSlack) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesSlack) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesSlack) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesSlack) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesSlack) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesSlack) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesSlack) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesSlack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesSlack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesSlack) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesSwimlane.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesSwimlane.md new file mode 100644 index 000000000..53886014d --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesSwimlane.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesSwimlane + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesSwimlane**](ConfigPropertiesSwimlane.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesSwimlane + +`func NewConnectorResponsePropertiesSwimlane(config ConfigPropertiesSwimlane, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesSwimlane` + +NewConnectorResponsePropertiesSwimlane instantiates a new ConnectorResponsePropertiesSwimlane object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesSwimlaneWithDefaults + +`func NewConnectorResponsePropertiesSwimlaneWithDefaults() *ConnectorResponsePropertiesSwimlane` + +NewConnectorResponsePropertiesSwimlaneWithDefaults instantiates a new ConnectorResponsePropertiesSwimlane object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesSwimlane) GetConfig() ConfigPropertiesSwimlane` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetConfigOk() (*ConfigPropertiesSwimlane, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesSwimlane) SetConfig(v ConfigPropertiesSwimlane)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesSwimlane) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesSwimlane) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesSwimlane) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesSwimlane) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesSwimlane) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesSwimlane) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesSwimlane) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesSwimlane) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesSwimlane) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesSwimlane) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesSwimlane) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesSwimlane) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesSwimlane) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesSwimlane) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesTeams.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesTeams.md new file mode 100644 index 000000000..09f88d03a --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesTeams.md @@ -0,0 +1,161 @@ +# ConnectorResponsePropertiesTeams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesTeams + +`func NewConnectorResponsePropertiesTeams(connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesTeams` + +NewConnectorResponsePropertiesTeams instantiates a new ConnectorResponsePropertiesTeams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesTeamsWithDefaults + +`func NewConnectorResponsePropertiesTeamsWithDefaults() *ConnectorResponsePropertiesTeams` + +NewConnectorResponsePropertiesTeamsWithDefaults instantiates a new ConnectorResponsePropertiesTeams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesTeams) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesTeams) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesTeams) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesTeams) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesTeams) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesTeams) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesTeams) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesTeams) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesTeams) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesTeams) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesTeams) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesTeams) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesTeams) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesTeams) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesTeams) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesTeams) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesTeams) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesTeams) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesTeams) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesTines.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesTines.md new file mode 100644 index 000000000..e3e66ce75 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesTines.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesTines + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.tines`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesTines + +`func NewConnectorResponsePropertiesTines(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesTines` + +NewConnectorResponsePropertiesTines instantiates a new ConnectorResponsePropertiesTines object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesTinesWithDefaults + +`func NewConnectorResponsePropertiesTinesWithDefaults() *ConnectorResponsePropertiesTines` + +NewConnectorResponsePropertiesTinesWithDefaults instantiates a new ConnectorResponsePropertiesTines object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesTines) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesTines) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesTines) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesTines) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesTines) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesTines) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesTines) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesTines) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesTines) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesTines) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesTines) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesTines) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesTines) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesTines) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesTines) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesTines) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesTines) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesTines) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesTines) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesTines) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesTines) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesTines) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesWebhook.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesWebhook.md new file mode 100644 index 000000000..0578d3a8b --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesWebhook.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.webhook`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesWebhook + +`func NewConnectorResponsePropertiesWebhook(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesWebhook` + +NewConnectorResponsePropertiesWebhook instantiates a new ConnectorResponsePropertiesWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesWebhookWithDefaults + +`func NewConnectorResponsePropertiesWebhookWithDefaults() *ConnectorResponsePropertiesWebhook` + +NewConnectorResponsePropertiesWebhookWithDefaults instantiates a new ConnectorResponsePropertiesWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesWebhook) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesWebhook) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesWebhook) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesWebhook) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesWebhook) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesWebhook) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesWebhook) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesWebhook) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesWebhook) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesWebhook) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesWebhook) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesWebhook) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesWebhook) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesWebhook) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesWebhook) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesWebhook) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesWebhook) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesWebhook) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesWebhook) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesWebhook) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesWebhook) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesWebhook) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorResponsePropertiesXmatters.md b/generated/kibanaactions/docs/ConnectorResponsePropertiesXmatters.md new file mode 100644 index 000000000..6eba5164b --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorResponsePropertiesXmatters.md @@ -0,0 +1,182 @@ +# ConnectorResponsePropertiesXmatters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.xmatters`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewConnectorResponsePropertiesXmatters + +`func NewConnectorResponsePropertiesXmatters(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string, ) *ConnectorResponsePropertiesXmatters` + +NewConnectorResponsePropertiesXmatters instantiates a new ConnectorResponsePropertiesXmatters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConnectorResponsePropertiesXmattersWithDefaults + +`func NewConnectorResponsePropertiesXmattersWithDefaults() *ConnectorResponsePropertiesXmatters` + +NewConnectorResponsePropertiesXmattersWithDefaults instantiates a new ConnectorResponsePropertiesXmatters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *ConnectorResponsePropertiesXmatters) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ConnectorResponsePropertiesXmatters) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ConnectorResponsePropertiesXmatters) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorResponsePropertiesXmatters) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorResponsePropertiesXmatters) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorResponsePropertiesXmatters) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetId + +`func (o *ConnectorResponsePropertiesXmatters) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorResponsePropertiesXmatters) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ConnectorResponsePropertiesXmatters) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *ConnectorResponsePropertiesXmatters) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *ConnectorResponsePropertiesXmatters) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *ConnectorResponsePropertiesXmatters) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesXmatters) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *ConnectorResponsePropertiesXmatters) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *ConnectorResponsePropertiesXmatters) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *ConnectorResponsePropertiesXmatters) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *ConnectorResponsePropertiesXmatters) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *ConnectorResponsePropertiesXmatters) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *ConnectorResponsePropertiesXmatters) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *ConnectorResponsePropertiesXmatters) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorResponsePropertiesXmatters) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ConnectorResponsePropertiesXmatters) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorTypes.md b/generated/kibanaactions/docs/ConnectorTypes.md new file mode 100644 index 000000000..905aa4c79 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorTypes.md @@ -0,0 +1,43 @@ +# ConnectorTypes + +## Enum + + +* `CASES_WEBHOOK` (value: `".cases-webhook"`) + +* `EMAIL` (value: `".email"`) + +* `INDEX` (value: `".index"`) + +* `JIRA` (value: `".jira"`) + +* `OPSGENIE` (value: `".opsgenie"`) + +* `PAGERDUTY` (value: `".pagerduty"`) + +* `RESILIENT` (value: `".resilient"`) + +* `SERVICENOW` (value: `".servicenow"`) + +* `SERVICENOW_ITOM` (value: `".servicenow-itom"`) + +* `SERVICENOW_SIR` (value: `".servicenow-sir"`) + +* `SERVER_LOG` (value: `".server-log"`) + +* `SLACK` (value: `".slack"`) + +* `SWIMLANE` (value: `".swimlane"`) + +* `TEAMS` (value: `".teams"`) + +* `TINES` (value: `".tines"`) + +* `WEBHOOK` (value: `".webhook"`) + +* `XMATTERS` (value: `".xmatters"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/ConnectorsApi.md b/generated/kibanaactions/docs/ConnectorsApi.md new file mode 100644 index 000000000..98d260d62 --- /dev/null +++ b/generated/kibanaactions/docs/ConnectorsApi.md @@ -0,0 +1,1052 @@ +# \ConnectorsApi + +All URIs are relative to *http://localhost:5601* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateConnector**](ConnectorsApi.md#CreateConnector) | **Post** /s/{spaceId}/api/actions/connector | Creates a connector. +[**DeleteConnector**](ConnectorsApi.md#DeleteConnector) | **Delete** /s/{spaceId}/api/actions/connector/{connectorId} | Deletes a connector. +[**GetConnector**](ConnectorsApi.md#GetConnector) | **Get** /s/{spaceId}/api/actions/connector/{connectorId} | Retrieves a connector by ID. +[**GetConnectorTypes**](ConnectorsApi.md#GetConnectorTypes) | **Get** /s/{spaceId}/api/actions/connector_types | Retrieves a list of all connector types. +[**GetConnectors**](ConnectorsApi.md#GetConnectors) | **Get** /s/{spaceId}/api/actions/connectors | Retrieves all connectors. +[**LegacyCreateConnector**](ConnectorsApi.md#LegacyCreateConnector) | **Post** /s/{spaceId}/api/actions | Creates a connector. +[**LegacyDeleteConnector**](ConnectorsApi.md#LegacyDeleteConnector) | **Delete** /s/{spaceId}/api/actions/action/{actionId} | Deletes a connector. +[**LegacyGetConnector**](ConnectorsApi.md#LegacyGetConnector) | **Get** /s/{spaceId}/api/actions/action/{actionId} | Retrieves a connector by ID. +[**LegacyGetConnectorTypes**](ConnectorsApi.md#LegacyGetConnectorTypes) | **Get** /s/{spaceId}/api/actions/list_action_types | Retrieves a list of all connector types. +[**LegacyGetConnectors**](ConnectorsApi.md#LegacyGetConnectors) | **Get** /s/{spaceId}/api/actions | Retrieves all connectors. +[**LegacyRunConnector**](ConnectorsApi.md#LegacyRunConnector) | **Post** /s/{spaceId}/api/actions/action/{actionId}/_execute | Runs a connector. +[**LegacyUpdateConnector**](ConnectorsApi.md#LegacyUpdateConnector) | **Put** /s/{spaceId}/api/actions/action/{actionId} | Updates the attributes for a connector. +[**RunConnector**](ConnectorsApi.md#RunConnector) | **Post** /s/{spaceId}/api/actions/connector/{connectorId}/_execute | Runs a connector. +[**UpdateConnector**](ConnectorsApi.md#UpdateConnector) | **Put** /s/{spaceId}/api/actions/connector/{connectorId} | Updates the attributes for a connector. + + + +## CreateConnector + +> ConnectorResponseProperties CreateConnector(ctx, spaceId).KbnXsrf(kbnXsrf).CreateConnectorRequestBodyProperties(createConnectorRequestBodyProperties).Execute() + +Creates a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + createConnectorRequestBodyProperties := openapiclient.Create_connector_request_body_properties{CreateConnectorRequestCasesWebhook: openapiclient.NewCreateConnectorRequestCasesWebhook(*openapiclient.NewConfigPropertiesCasesWebhook("{"fields":{"summary":{"[object Object]":null},"description":{"[object Object]":null},"labels":{"[object Object]":null}}}", "CreateIncidentResponseKey_example", "CreateIncidentUrl_example", "GetIncidentResponseExternalTitleKey_example", "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.id}}}", "{"fields":{"summary":{"[object Object]":null},"description":{"[object Object]":null},"labels":{"[object Object]":null}}}", "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.ID}}}", "https://testing-jira.atlassian.net/browse/{{{external.system.title}}}"), ".cases-webhook", "my-connector")} // CreateConnectorRequestBodyProperties | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.CreateConnector(context.Background(), spaceId).KbnXsrf(kbnXsrf).CreateConnectorRequestBodyProperties(createConnectorRequestBodyProperties).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.CreateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnector`: ConnectorResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.CreateConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + **createConnectorRequestBodyProperties** | [**CreateConnectorRequestBodyProperties**](CreateConnectorRequestBodyProperties.md) | | + +### Return type + +[**ConnectorResponseProperties**](ConnectorResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteConnector + +> DeleteConnector(ctx, connectorId, spaceId).KbnXsrf(kbnXsrf).Execute() + +Deletes a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + connectorId := "df770e30-8b8b-11ed-a780-3b746c987a81" // string | An identifier for the connector. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ConnectorsApi.DeleteConnector(context.Background(), connectorId, spaceId).KbnXsrf(kbnXsrf).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.DeleteConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorId** | **string** | An identifier for the connector. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnector + +> ConnectorResponseProperties GetConnector(ctx, connectorId, spaceId).Execute() + +Retrieves a connector by ID. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + connectorId := "df770e30-8b8b-11ed-a780-3b746c987a81" // string | An identifier for the connector. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.GetConnector(context.Background(), connectorId, spaceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.GetConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnector`: ConnectorResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.GetConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorId** | **string** | An identifier for the connector. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ConnectorResponseProperties**](ConnectorResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorTypes + +> []GetConnectorTypesResponseBodyPropertiesInner GetConnectorTypes(ctx, spaceId).FeatureId(featureId).Execute() + +Retrieves a list of all connector types. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + featureId := openapiclient.features("alerting") // Features | A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases). (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.GetConnectorTypes(context.Background(), spaceId).FeatureId(featureId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.GetConnectorTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTypes`: []GetConnectorTypesResponseBodyPropertiesInner + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.GetConnectorTypes`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **featureId** | [**Features**](Features.md) | A filter to limit the retrieved connector types to those that support a specific feature (such as alerting or cases). | + +### Return type + +[**[]GetConnectorTypesResponseBodyPropertiesInner**](GetConnectorTypesResponseBodyPropertiesInner.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectors + +> []GetConnectorsResponseBodyProperties GetConnectors(ctx, spaceId).Execute() + +Retrieves all connectors. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.GetConnectors(context.Background(), spaceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.GetConnectors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectors`: []GetConnectorsResponseBodyProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.GetConnectors`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]GetConnectorsResponseBodyProperties**](GetConnectorsResponseBodyProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyCreateConnector + +> ActionResponseProperties LegacyCreateConnector(ctx, spaceId).KbnXsrf(kbnXsrf).LegacyCreateConnectorRequestProperties(legacyCreateConnectorRequestProperties).Execute() + +Creates a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + legacyCreateConnectorRequestProperties := *openapiclient.NewLegacyCreateConnectorRequestProperties() // LegacyCreateConnectorRequestProperties | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.LegacyCreateConnector(context.Background(), spaceId).KbnXsrf(kbnXsrf).LegacyCreateConnectorRequestProperties(legacyCreateConnectorRequestProperties).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyCreateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LegacyCreateConnector`: ActionResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.LegacyCreateConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyCreateConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + **legacyCreateConnectorRequestProperties** | [**LegacyCreateConnectorRequestProperties**](LegacyCreateConnectorRequestProperties.md) | | + +### Return type + +[**ActionResponseProperties**](ActionResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyDeleteConnector + +> LegacyDeleteConnector(ctx, actionId, spaceId).KbnXsrf(kbnXsrf).Execute() + +Deletes a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + actionId := "c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad" // string | An identifier for the action. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ConnectorsApi.LegacyDeleteConnector(context.Background(), actionId, spaceId).KbnXsrf(kbnXsrf).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyDeleteConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**actionId** | **string** | An identifier for the action. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyDeleteConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyGetConnector + +> ActionResponseProperties LegacyGetConnector(ctx, actionId, spaceId).Execute() + +Retrieves a connector by ID. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + actionId := "c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad" // string | An identifier for the action. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.LegacyGetConnector(context.Background(), actionId, spaceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyGetConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LegacyGetConnector`: ActionResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.LegacyGetConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**actionId** | **string** | An identifier for the action. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyGetConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ActionResponseProperties**](ActionResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyGetConnectorTypes + +> []LegacyGetConnectorTypesResponseBodyPropertiesInner LegacyGetConnectorTypes(ctx, spaceId).Execute() + +Retrieves a list of all connector types. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.LegacyGetConnectorTypes(context.Background(), spaceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyGetConnectorTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LegacyGetConnectorTypes`: []LegacyGetConnectorTypesResponseBodyPropertiesInner + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.LegacyGetConnectorTypes`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyGetConnectorTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]LegacyGetConnectorTypesResponseBodyPropertiesInner**](LegacyGetConnectorTypesResponseBodyPropertiesInner.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyGetConnectors + +> []ActionResponseProperties LegacyGetConnectors(ctx, spaceId).Execute() + +Retrieves all connectors. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.LegacyGetConnectors(context.Background(), spaceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyGetConnectors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LegacyGetConnectors`: []ActionResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.LegacyGetConnectors`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyGetConnectorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ActionResponseProperties**](ActionResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyRunConnector + +> LegacyRunConnector200Response LegacyRunConnector(ctx, actionId, spaceId).KbnXsrf(kbnXsrf).LegacyRunConnectorRequestBodyProperties(legacyRunConnectorRequestBodyProperties).Execute() + +Runs a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + actionId := "c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad" // string | An identifier for the action. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + legacyRunConnectorRequestBodyProperties := *openapiclient.NewLegacyRunConnectorRequestBodyProperties(map[string]interface{}(123)) // LegacyRunConnectorRequestBodyProperties | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.LegacyRunConnector(context.Background(), actionId, spaceId).KbnXsrf(kbnXsrf).LegacyRunConnectorRequestBodyProperties(legacyRunConnectorRequestBodyProperties).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyRunConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LegacyRunConnector`: LegacyRunConnector200Response + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.LegacyRunConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**actionId** | **string** | An identifier for the action. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyRunConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + + **legacyRunConnectorRequestBodyProperties** | [**LegacyRunConnectorRequestBodyProperties**](LegacyRunConnectorRequestBodyProperties.md) | | + +### Return type + +[**LegacyRunConnector200Response**](LegacyRunConnector200Response.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LegacyUpdateConnector + +> ActionResponseProperties LegacyUpdateConnector(ctx, actionId, spaceId).KbnXsrf(kbnXsrf).LegacyUpdateConnectorRequestBodyProperties(legacyUpdateConnectorRequestBodyProperties).Execute() + +Updates the attributes for a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + actionId := "c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad" // string | An identifier for the action. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + legacyUpdateConnectorRequestBodyProperties := *openapiclient.NewLegacyUpdateConnectorRequestBodyProperties() // LegacyUpdateConnectorRequestBodyProperties | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.LegacyUpdateConnector(context.Background(), actionId, spaceId).KbnXsrf(kbnXsrf).LegacyUpdateConnectorRequestBodyProperties(legacyUpdateConnectorRequestBodyProperties).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.LegacyUpdateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LegacyUpdateConnector`: ActionResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.LegacyUpdateConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**actionId** | **string** | An identifier for the action. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLegacyUpdateConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + + **legacyUpdateConnectorRequestBodyProperties** | [**LegacyUpdateConnectorRequestBodyProperties**](LegacyUpdateConnectorRequestBodyProperties.md) | | + +### Return type + +[**ActionResponseProperties**](ActionResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunConnector + +> RunConnector200Response RunConnector(ctx, connectorId, spaceId).KbnXsrf(kbnXsrf).RunConnectorRequestBodyProperties(runConnectorRequestBodyProperties).Execute() + +Runs a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + connectorId := "df770e30-8b8b-11ed-a780-3b746c987a81" // string | An identifier for the connector. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + runConnectorRequestBodyProperties := *openapiclient.NewRunConnectorRequestBodyProperties(openapiclient.Run_connector_request_body_properties_params{RunConnectorParamsDocuments: openapiclient.NewRunConnectorParamsDocuments([]map[string]interface{}{map[string]interface{}{"key": interface{}(123)}})}) // RunConnectorRequestBodyProperties | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.RunConnector(context.Background(), connectorId, spaceId).KbnXsrf(kbnXsrf).RunConnectorRequestBodyProperties(runConnectorRequestBodyProperties).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.RunConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunConnector`: RunConnector200Response + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.RunConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorId** | **string** | An identifier for the connector. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + + **runConnectorRequestBodyProperties** | [**RunConnectorRequestBodyProperties**](RunConnectorRequestBodyProperties.md) | | + +### Return type + +[**RunConnector200Response**](RunConnector200Response.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateConnector + +> ConnectorResponseProperties UpdateConnector(ctx, connectorId, spaceId).KbnXsrf(kbnXsrf).UpdateConnectorRequestBodyProperties(updateConnectorRequestBodyProperties).Execute() + +Updates the attributes for a connector. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/elastic/terraform-provider-elasticstack/kibanaactions" +) + +func main() { + kbnXsrf := "kbnXsrf_example" // string | Cross-site request forgery protection + connectorId := "df770e30-8b8b-11ed-a780-3b746c987a81" // string | An identifier for the connector. + spaceId := "default" // string | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. + updateConnectorRequestBodyProperties := openapiclient.Update_connector_request_body_properties{UpdateConnectorRequestCasesWebhook: openapiclient.NewUpdateConnectorRequestCasesWebhook(*openapiclient.NewConfigPropertiesCasesWebhook("{"fields":{"summary":{"[object Object]":null},"description":{"[object Object]":null},"labels":{"[object Object]":null}}}", "CreateIncidentResponseKey_example", "CreateIncidentUrl_example", "GetIncidentResponseExternalTitleKey_example", "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.id}}}", "{"fields":{"summary":{"[object Object]":null},"description":{"[object Object]":null},"labels":{"[object Object]":null}}}", "https://testing-jira.atlassian.net/rest/api/2/issue/{{{external.system.ID}}}", "https://testing-jira.atlassian.net/browse/{{{external.system.title}}}"), "my-connector")} // UpdateConnectorRequestBodyProperties | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConnectorsApi.UpdateConnector(context.Background(), connectorId, spaceId).KbnXsrf(kbnXsrf).UpdateConnectorRequestBodyProperties(updateConnectorRequestBodyProperties).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.UpdateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateConnector`: ConnectorResponseProperties + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.UpdateConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorId** | **string** | An identifier for the connector. | +**spaceId** | **string** | An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kbnXsrf** | **string** | Cross-site request forgery protection | + + + **updateConnectorRequestBodyProperties** | [**UpdateConnectorRequestBodyProperties**](UpdateConnectorRequestBodyProperties.md) | | + +### Return type + +[**ConnectorResponseProperties**](ConnectorResponseProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestBodyProperties.md b/generated/kibanaactions/docs/CreateConnectorRequestBodyProperties.md new file mode 100644 index 000000000..e9c3ff651 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestBodyProperties.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestBodyProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.xmatters`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.xmatters`. | + +## Methods + +### NewCreateConnectorRequestBodyProperties + +`func NewCreateConnectorRequestBodyProperties(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestBodyProperties` + +NewCreateConnectorRequestBodyProperties instantiates a new CreateConnectorRequestBodyProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestBodyPropertiesWithDefaults + +`func NewCreateConnectorRequestBodyPropertiesWithDefaults() *CreateConnectorRequestBodyProperties` + +NewCreateConnectorRequestBodyPropertiesWithDefaults instantiates a new CreateConnectorRequestBodyProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestBodyProperties) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestBodyProperties) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestBodyProperties) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestBodyProperties) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestBodyProperties) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestBodyProperties) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestBodyProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestBodyProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestBodyProperties) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestBodyProperties) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestBodyProperties) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestBodyProperties) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestCasesWebhook.md b/generated/kibanaactions/docs/CreateConnectorRequestCasesWebhook.md new file mode 100644 index 000000000..b9a2f3e9b --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestCasesWebhook.md @@ -0,0 +1,119 @@ +# CreateConnectorRequestCasesWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesCasesWebhook**](ConfigPropertiesCasesWebhook.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | Pointer to [**SecretsPropertiesCasesWebhook**](SecretsPropertiesCasesWebhook.md) | | [optional] + +## Methods + +### NewCreateConnectorRequestCasesWebhook + +`func NewCreateConnectorRequestCasesWebhook(config ConfigPropertiesCasesWebhook, connectorTypeId string, name string, ) *CreateConnectorRequestCasesWebhook` + +NewCreateConnectorRequestCasesWebhook instantiates a new CreateConnectorRequestCasesWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestCasesWebhookWithDefaults + +`func NewCreateConnectorRequestCasesWebhookWithDefaults() *CreateConnectorRequestCasesWebhook` + +NewCreateConnectorRequestCasesWebhookWithDefaults instantiates a new CreateConnectorRequestCasesWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestCasesWebhook) GetConfig() ConfigPropertiesCasesWebhook` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestCasesWebhook) GetConfigOk() (*ConfigPropertiesCasesWebhook, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestCasesWebhook) SetConfig(v ConfigPropertiesCasesWebhook)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestCasesWebhook) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestCasesWebhook) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestCasesWebhook) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestCasesWebhook) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestCasesWebhook) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestCasesWebhook) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestCasesWebhook) GetSecrets() SecretsPropertiesCasesWebhook` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestCasesWebhook) GetSecretsOk() (*SecretsPropertiesCasesWebhook, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestCasesWebhook) SetSecrets(v SecretsPropertiesCasesWebhook)` + +SetSecrets sets Secrets field to given value. + +### HasSecrets + +`func (o *CreateConnectorRequestCasesWebhook) HasSecrets() bool` + +HasSecrets returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestEmail.md b/generated/kibanaactions/docs/CreateConnectorRequestEmail.md new file mode 100644 index 000000000..d505849e4 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestEmail.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestEmail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.email`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.email`. | + +## Methods + +### NewCreateConnectorRequestEmail + +`func NewCreateConnectorRequestEmail(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestEmail` + +NewCreateConnectorRequestEmail instantiates a new CreateConnectorRequestEmail object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestEmailWithDefaults + +`func NewCreateConnectorRequestEmailWithDefaults() *CreateConnectorRequestEmail` + +NewCreateConnectorRequestEmailWithDefaults instantiates a new CreateConnectorRequestEmail object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestEmail) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestEmail) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestEmail) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestEmail) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestEmail) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestEmail) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestEmail) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestEmail) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestEmail) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestEmail) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestEmail) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestEmail) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestIndex.md b/generated/kibanaactions/docs/CreateConnectorRequestIndex.md new file mode 100644 index 000000000..83a09caf6 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestIndex.md @@ -0,0 +1,93 @@ +# CreateConnectorRequestIndex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesIndex**](ConfigPropertiesIndex.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewCreateConnectorRequestIndex + +`func NewCreateConnectorRequestIndex(config ConfigPropertiesIndex, connectorTypeId string, name string, ) *CreateConnectorRequestIndex` + +NewCreateConnectorRequestIndex instantiates a new CreateConnectorRequestIndex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestIndexWithDefaults + +`func NewCreateConnectorRequestIndexWithDefaults() *CreateConnectorRequestIndex` + +NewCreateConnectorRequestIndexWithDefaults instantiates a new CreateConnectorRequestIndex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestIndex) GetConfig() ConfigPropertiesIndex` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestIndex) GetConfigOk() (*ConfigPropertiesIndex, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestIndex) SetConfig(v ConfigPropertiesIndex)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestIndex) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestIndex) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestIndex) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestIndex) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestIndex) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestIndex) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestJira.md b/generated/kibanaactions/docs/CreateConnectorRequestJira.md new file mode 100644 index 000000000..f79f71f44 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestJira.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestJira + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesJira**](ConfigPropertiesJira.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesJira**](SecretsPropertiesJira.md) | | + +## Methods + +### NewCreateConnectorRequestJira + +`func NewCreateConnectorRequestJira(config ConfigPropertiesJira, connectorTypeId string, name string, secrets SecretsPropertiesJira, ) *CreateConnectorRequestJira` + +NewCreateConnectorRequestJira instantiates a new CreateConnectorRequestJira object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestJiraWithDefaults + +`func NewCreateConnectorRequestJiraWithDefaults() *CreateConnectorRequestJira` + +NewCreateConnectorRequestJiraWithDefaults instantiates a new CreateConnectorRequestJira object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestJira) GetConfig() ConfigPropertiesJira` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestJira) GetConfigOk() (*ConfigPropertiesJira, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestJira) SetConfig(v ConfigPropertiesJira)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestJira) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestJira) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestJira) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestJira) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestJira) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestJira) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestJira) GetSecrets() SecretsPropertiesJira` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestJira) GetSecretsOk() (*SecretsPropertiesJira, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestJira) SetSecrets(v SecretsPropertiesJira)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestOpsgenie.md b/generated/kibanaactions/docs/CreateConnectorRequestOpsgenie.md new file mode 100644 index 000000000..4c968540c --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestOpsgenie.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestOpsgenie + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesOpsgenie**](ConfigPropertiesOpsgenie.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesOpsgenie**](SecretsPropertiesOpsgenie.md) | | + +## Methods + +### NewCreateConnectorRequestOpsgenie + +`func NewCreateConnectorRequestOpsgenie(config ConfigPropertiesOpsgenie, connectorTypeId string, name string, secrets SecretsPropertiesOpsgenie, ) *CreateConnectorRequestOpsgenie` + +NewCreateConnectorRequestOpsgenie instantiates a new CreateConnectorRequestOpsgenie object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestOpsgenieWithDefaults + +`func NewCreateConnectorRequestOpsgenieWithDefaults() *CreateConnectorRequestOpsgenie` + +NewCreateConnectorRequestOpsgenieWithDefaults instantiates a new CreateConnectorRequestOpsgenie object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestOpsgenie) GetConfig() ConfigPropertiesOpsgenie` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestOpsgenie) GetConfigOk() (*ConfigPropertiesOpsgenie, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestOpsgenie) SetConfig(v ConfigPropertiesOpsgenie)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestOpsgenie) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestOpsgenie) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestOpsgenie) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestOpsgenie) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestOpsgenie) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestOpsgenie) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestOpsgenie) GetSecrets() SecretsPropertiesOpsgenie` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestOpsgenie) GetSecretsOk() (*SecretsPropertiesOpsgenie, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestOpsgenie) SetSecrets(v SecretsPropertiesOpsgenie)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestPagerduty.md b/generated/kibanaactions/docs/CreateConnectorRequestPagerduty.md new file mode 100644 index 000000000..ac97fdd5c --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestPagerduty.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestPagerduty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.pagerduty`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.pagerduty`. | + +## Methods + +### NewCreateConnectorRequestPagerduty + +`func NewCreateConnectorRequestPagerduty(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestPagerduty` + +NewCreateConnectorRequestPagerduty instantiates a new CreateConnectorRequestPagerduty object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestPagerdutyWithDefaults + +`func NewCreateConnectorRequestPagerdutyWithDefaults() *CreateConnectorRequestPagerduty` + +NewCreateConnectorRequestPagerdutyWithDefaults instantiates a new CreateConnectorRequestPagerduty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestPagerduty) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestPagerduty) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestPagerduty) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestPagerduty) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestPagerduty) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestPagerduty) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestPagerduty) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestPagerduty) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestPagerduty) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestPagerduty) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestPagerduty) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestPagerduty) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestResilient.md b/generated/kibanaactions/docs/CreateConnectorRequestResilient.md new file mode 100644 index 000000000..d9729d0cf --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestResilient.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestResilient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesResilient**](ConfigPropertiesResilient.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesResilient**](SecretsPropertiesResilient.md) | | + +## Methods + +### NewCreateConnectorRequestResilient + +`func NewCreateConnectorRequestResilient(config ConfigPropertiesResilient, connectorTypeId string, name string, secrets SecretsPropertiesResilient, ) *CreateConnectorRequestResilient` + +NewCreateConnectorRequestResilient instantiates a new CreateConnectorRequestResilient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestResilientWithDefaults + +`func NewCreateConnectorRequestResilientWithDefaults() *CreateConnectorRequestResilient` + +NewCreateConnectorRequestResilientWithDefaults instantiates a new CreateConnectorRequestResilient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestResilient) GetConfig() ConfigPropertiesResilient` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestResilient) GetConfigOk() (*ConfigPropertiesResilient, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestResilient) SetConfig(v ConfigPropertiesResilient)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestResilient) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestResilient) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestResilient) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestResilient) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestResilient) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestResilient) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestResilient) GetSecrets() SecretsPropertiesResilient` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestResilient) GetSecretsOk() (*SecretsPropertiesResilient, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestResilient) SetSecrets(v SecretsPropertiesResilient)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestServerlog.md b/generated/kibanaactions/docs/CreateConnectorRequestServerlog.md new file mode 100644 index 000000000..95eaf5cbc --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestServerlog.md @@ -0,0 +1,72 @@ +# CreateConnectorRequestServerlog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewCreateConnectorRequestServerlog + +`func NewCreateConnectorRequestServerlog(connectorTypeId string, name string, ) *CreateConnectorRequestServerlog` + +NewCreateConnectorRequestServerlog instantiates a new CreateConnectorRequestServerlog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestServerlogWithDefaults + +`func NewCreateConnectorRequestServerlogWithDefaults() *CreateConnectorRequestServerlog` + +NewCreateConnectorRequestServerlogWithDefaults instantiates a new CreateConnectorRequestServerlog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestServerlog) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestServerlog) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestServerlog) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestServerlog) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestServerlog) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestServerlog) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestServicenow.md b/generated/kibanaactions/docs/CreateConnectorRequestServicenow.md new file mode 100644 index 000000000..c6d0d4403 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestServicenow.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestServicenow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenow**](ConfigPropertiesServicenow.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesServicenow**](SecretsPropertiesServicenow.md) | | + +## Methods + +### NewCreateConnectorRequestServicenow + +`func NewCreateConnectorRequestServicenow(config ConfigPropertiesServicenow, connectorTypeId string, name string, secrets SecretsPropertiesServicenow, ) *CreateConnectorRequestServicenow` + +NewCreateConnectorRequestServicenow instantiates a new CreateConnectorRequestServicenow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestServicenowWithDefaults + +`func NewCreateConnectorRequestServicenowWithDefaults() *CreateConnectorRequestServicenow` + +NewCreateConnectorRequestServicenowWithDefaults instantiates a new CreateConnectorRequestServicenow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestServicenow) GetConfig() ConfigPropertiesServicenow` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestServicenow) GetConfigOk() (*ConfigPropertiesServicenow, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestServicenow) SetConfig(v ConfigPropertiesServicenow)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestServicenow) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestServicenow) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestServicenow) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestServicenow) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestServicenow) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestServicenow) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestServicenow) GetSecrets() SecretsPropertiesServicenow` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestServicenow) GetSecretsOk() (*SecretsPropertiesServicenow, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestServicenow) SetSecrets(v SecretsPropertiesServicenow)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestServicenowItom.md b/generated/kibanaactions/docs/CreateConnectorRequestServicenowItom.md new file mode 100644 index 000000000..c4c13f29b --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestServicenowItom.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestServicenowItom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenowItom**](ConfigPropertiesServicenowItom.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesServicenow**](SecretsPropertiesServicenow.md) | | + +## Methods + +### NewCreateConnectorRequestServicenowItom + +`func NewCreateConnectorRequestServicenowItom(config ConfigPropertiesServicenowItom, connectorTypeId string, name string, secrets SecretsPropertiesServicenow, ) *CreateConnectorRequestServicenowItom` + +NewCreateConnectorRequestServicenowItom instantiates a new CreateConnectorRequestServicenowItom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestServicenowItomWithDefaults + +`func NewCreateConnectorRequestServicenowItomWithDefaults() *CreateConnectorRequestServicenowItom` + +NewCreateConnectorRequestServicenowItomWithDefaults instantiates a new CreateConnectorRequestServicenowItom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestServicenowItom) GetConfig() ConfigPropertiesServicenowItom` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestServicenowItom) GetConfigOk() (*ConfigPropertiesServicenowItom, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestServicenowItom) SetConfig(v ConfigPropertiesServicenowItom)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestServicenowItom) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestServicenowItom) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestServicenowItom) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestServicenowItom) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestServicenowItom) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestServicenowItom) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestServicenowItom) GetSecrets() SecretsPropertiesServicenow` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestServicenowItom) GetSecretsOk() (*SecretsPropertiesServicenow, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestServicenowItom) SetSecrets(v SecretsPropertiesServicenow)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestServicenowSir.md b/generated/kibanaactions/docs/CreateConnectorRequestServicenowSir.md new file mode 100644 index 000000000..f5ea005ef --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestServicenowSir.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestServicenowSir + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenow**](ConfigPropertiesServicenow.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesServicenow**](SecretsPropertiesServicenow.md) | | + +## Methods + +### NewCreateConnectorRequestServicenowSir + +`func NewCreateConnectorRequestServicenowSir(config ConfigPropertiesServicenow, connectorTypeId string, name string, secrets SecretsPropertiesServicenow, ) *CreateConnectorRequestServicenowSir` + +NewCreateConnectorRequestServicenowSir instantiates a new CreateConnectorRequestServicenowSir object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestServicenowSirWithDefaults + +`func NewCreateConnectorRequestServicenowSirWithDefaults() *CreateConnectorRequestServicenowSir` + +NewCreateConnectorRequestServicenowSirWithDefaults instantiates a new CreateConnectorRequestServicenowSir object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestServicenowSir) GetConfig() ConfigPropertiesServicenow` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestServicenowSir) GetConfigOk() (*ConfigPropertiesServicenow, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestServicenowSir) SetConfig(v ConfigPropertiesServicenow)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestServicenowSir) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestServicenowSir) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestServicenowSir) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestServicenowSir) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestServicenowSir) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestServicenowSir) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestServicenowSir) GetSecrets() SecretsPropertiesServicenow` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestServicenowSir) GetSecretsOk() (*SecretsPropertiesServicenow, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestServicenowSir) SetSecrets(v SecretsPropertiesServicenow)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestSlack.md b/generated/kibanaactions/docs/CreateConnectorRequestSlack.md new file mode 100644 index 000000000..431c8db64 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestSlack.md @@ -0,0 +1,93 @@ +# CreateConnectorRequestSlack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.slack`. | + +## Methods + +### NewCreateConnectorRequestSlack + +`func NewCreateConnectorRequestSlack(connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestSlack` + +NewCreateConnectorRequestSlack instantiates a new CreateConnectorRequestSlack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestSlackWithDefaults + +`func NewCreateConnectorRequestSlackWithDefaults() *CreateConnectorRequestSlack` + +NewCreateConnectorRequestSlackWithDefaults instantiates a new CreateConnectorRequestSlack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestSlack) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestSlack) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestSlack) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestSlack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestSlack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestSlack) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestSlack) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestSlack) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestSlack) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestSwimlane.md b/generated/kibanaactions/docs/CreateConnectorRequestSwimlane.md new file mode 100644 index 000000000..fb78402cf --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestSwimlane.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestSwimlane + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesSwimlane**](ConfigPropertiesSwimlane.md) | | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesSwimlane**](SecretsPropertiesSwimlane.md) | | + +## Methods + +### NewCreateConnectorRequestSwimlane + +`func NewCreateConnectorRequestSwimlane(config ConfigPropertiesSwimlane, connectorTypeId string, name string, secrets SecretsPropertiesSwimlane, ) *CreateConnectorRequestSwimlane` + +NewCreateConnectorRequestSwimlane instantiates a new CreateConnectorRequestSwimlane object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestSwimlaneWithDefaults + +`func NewCreateConnectorRequestSwimlaneWithDefaults() *CreateConnectorRequestSwimlane` + +NewCreateConnectorRequestSwimlaneWithDefaults instantiates a new CreateConnectorRequestSwimlane object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestSwimlane) GetConfig() ConfigPropertiesSwimlane` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestSwimlane) GetConfigOk() (*ConfigPropertiesSwimlane, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestSwimlane) SetConfig(v ConfigPropertiesSwimlane)` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestSwimlane) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestSwimlane) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestSwimlane) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestSwimlane) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestSwimlane) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestSwimlane) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestSwimlane) GetSecrets() SecretsPropertiesSwimlane` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestSwimlane) GetSecretsOk() (*SecretsPropertiesSwimlane, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestSwimlane) SetSecrets(v SecretsPropertiesSwimlane)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestTeams.md b/generated/kibanaactions/docs/CreateConnectorRequestTeams.md new file mode 100644 index 000000000..682deb579 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestTeams.md @@ -0,0 +1,93 @@ +# CreateConnectorRequestTeams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.teams`. | + +## Methods + +### NewCreateConnectorRequestTeams + +`func NewCreateConnectorRequestTeams(connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestTeams` + +NewCreateConnectorRequestTeams instantiates a new CreateConnectorRequestTeams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestTeamsWithDefaults + +`func NewCreateConnectorRequestTeamsWithDefaults() *CreateConnectorRequestTeams` + +NewCreateConnectorRequestTeamsWithDefaults instantiates a new CreateConnectorRequestTeams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestTeams) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestTeams) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestTeams) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestTeams) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestTeams) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestTeams) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestTeams) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestTeams) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestTeams) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestTines.md b/generated/kibanaactions/docs/CreateConnectorRequestTines.md new file mode 100644 index 000000000..23851e441 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestTines.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestTines + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.tines`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.tines`. | + +## Methods + +### NewCreateConnectorRequestTines + +`func NewCreateConnectorRequestTines(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestTines` + +NewCreateConnectorRequestTines instantiates a new CreateConnectorRequestTines object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestTinesWithDefaults + +`func NewCreateConnectorRequestTinesWithDefaults() *CreateConnectorRequestTines` + +NewCreateConnectorRequestTinesWithDefaults instantiates a new CreateConnectorRequestTines object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestTines) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestTines) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestTines) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestTines) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestTines) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestTines) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestTines) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestTines) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestTines) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestTines) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestTines) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestTines) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestWebhook.md b/generated/kibanaactions/docs/CreateConnectorRequestWebhook.md new file mode 100644 index 000000000..3de369955 --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestWebhook.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.webhook`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.webhook`. | + +## Methods + +### NewCreateConnectorRequestWebhook + +`func NewCreateConnectorRequestWebhook(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestWebhook` + +NewCreateConnectorRequestWebhook instantiates a new CreateConnectorRequestWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestWebhookWithDefaults + +`func NewCreateConnectorRequestWebhookWithDefaults() *CreateConnectorRequestWebhook` + +NewCreateConnectorRequestWebhookWithDefaults instantiates a new CreateConnectorRequestWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestWebhook) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestWebhook) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestWebhook) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestWebhook) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestWebhook) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestWebhook) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestWebhook) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestWebhook) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestWebhook) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestWebhook) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestWebhook) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestWebhook) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/CreateConnectorRequestXmatters.md b/generated/kibanaactions/docs/CreateConnectorRequestXmatters.md new file mode 100644 index 000000000..1c75fceee --- /dev/null +++ b/generated/kibanaactions/docs/CreateConnectorRequestXmatters.md @@ -0,0 +1,114 @@ +# CreateConnectorRequestXmatters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **map[string]interface{}** | Defines properties for connectors when type is `.xmatters`. | +**ConnectorTypeId** | **string** | The type of connector. | +**Name** | **string** | The display name for the connector. | +**Secrets** | **map[string]interface{}** | Defines secrets for connectors when type is `.xmatters`. | + +## Methods + +### NewCreateConnectorRequestXmatters + +`func NewCreateConnectorRequestXmatters(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}, ) *CreateConnectorRequestXmatters` + +NewCreateConnectorRequestXmatters instantiates a new CreateConnectorRequestXmatters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateConnectorRequestXmattersWithDefaults + +`func NewCreateConnectorRequestXmattersWithDefaults() *CreateConnectorRequestXmatters` + +NewCreateConnectorRequestXmattersWithDefaults instantiates a new CreateConnectorRequestXmatters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *CreateConnectorRequestXmatters) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateConnectorRequestXmatters) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateConnectorRequestXmatters) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + + +### GetConnectorTypeId + +`func (o *CreateConnectorRequestXmatters) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *CreateConnectorRequestXmatters) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *CreateConnectorRequestXmatters) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetName + +`func (o *CreateConnectorRequestXmatters) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateConnectorRequestXmatters) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateConnectorRequestXmatters) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *CreateConnectorRequestXmatters) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *CreateConnectorRequestXmatters) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *CreateConnectorRequestXmatters) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/Features.md b/generated/kibanaactions/docs/Features.md new file mode 100644 index 000000000..571d97c2a --- /dev/null +++ b/generated/kibanaactions/docs/Features.md @@ -0,0 +1,17 @@ +# Features + +## Enum + + +* `ALERTING` (value: `"alerting"`) + +* `CASES` (value: `"cases"`) + +* `UPTIME` (value: `"uptime"`) + +* `SIEM` (value: `"siem"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/GetConnector404Response.md b/generated/kibanaactions/docs/GetConnector404Response.md new file mode 100644 index 000000000..b07a86dd4 --- /dev/null +++ b/generated/kibanaactions/docs/GetConnector404Response.md @@ -0,0 +1,108 @@ +# GetConnector404Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**StatusCode** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetConnector404Response + +`func NewGetConnector404Response() *GetConnector404Response` + +NewGetConnector404Response instantiates a new GetConnector404Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetConnector404ResponseWithDefaults + +`func NewGetConnector404ResponseWithDefaults() *GetConnector404Response` + +NewGetConnector404ResponseWithDefaults instantiates a new GetConnector404Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *GetConnector404Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetConnector404Response) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *GetConnector404Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetConnector404Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetMessage + +`func (o *GetConnector404Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *GetConnector404Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *GetConnector404Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *GetConnector404Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStatusCode + +`func (o *GetConnector404Response) GetStatusCode() int32` + +GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. + +### GetStatusCodeOk + +`func (o *GetConnector404Response) GetStatusCodeOk() (*int32, bool)` + +GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusCode + +`func (o *GetConnector404Response) SetStatusCode(v int32)` + +SetStatusCode sets StatusCode field to given value. + +### HasStatusCode + +`func (o *GetConnector404Response) HasStatusCode() bool` + +HasStatusCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/GetConnectorTypesResponseBodyPropertiesInner.md b/generated/kibanaactions/docs/GetConnectorTypesResponseBodyPropertiesInner.md new file mode 100644 index 000000000..2d833ac96 --- /dev/null +++ b/generated/kibanaactions/docs/GetConnectorTypesResponseBodyPropertiesInner.md @@ -0,0 +1,212 @@ +# GetConnectorTypesResponseBodyPropertiesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | Indicates whether the connector type is enabled in Kibana. | [optional] +**EnabledInConfig** | Pointer to **bool** | Indicates whether the connector type is enabled in the Kibana `.yml` file. | [optional] +**EnabledInLicense** | Pointer to **bool** | Indicates whether the connector is enabled in the license. | [optional] +**Id** | Pointer to [**ConnectorTypes**](ConnectorTypes.md) | | [optional] +**MinimumLicenseRequired** | Pointer to **string** | The license that is required to use the connector type. | [optional] +**Name** | Pointer to **string** | The name of the connector type. | [optional] +**SupportedFeatureIds** | Pointer to [**[]Features**](Features.md) | The Kibana features that are supported by the connector type. | [optional] + +## Methods + +### NewGetConnectorTypesResponseBodyPropertiesInner + +`func NewGetConnectorTypesResponseBodyPropertiesInner() *GetConnectorTypesResponseBodyPropertiesInner` + +NewGetConnectorTypesResponseBodyPropertiesInner instantiates a new GetConnectorTypesResponseBodyPropertiesInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetConnectorTypesResponseBodyPropertiesInnerWithDefaults + +`func NewGetConnectorTypesResponseBodyPropertiesInnerWithDefaults() *GetConnectorTypesResponseBodyPropertiesInner` + +NewGetConnectorTypesResponseBodyPropertiesInnerWithDefaults instantiates a new GetConnectorTypesResponseBodyPropertiesInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetEnabledInConfig + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfig() bool` + +GetEnabledInConfig returns the EnabledInConfig field if non-nil, zero value otherwise. + +### GetEnabledInConfigOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfigOk() (*bool, bool)` + +GetEnabledInConfigOk returns a tuple with the EnabledInConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledInConfig + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetEnabledInConfig(v bool)` + +SetEnabledInConfig sets EnabledInConfig field to given value. + +### HasEnabledInConfig + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasEnabledInConfig() bool` + +HasEnabledInConfig returns a boolean if a field has been set. + +### GetEnabledInLicense + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicense() bool` + +GetEnabledInLicense returns the EnabledInLicense field if non-nil, zero value otherwise. + +### GetEnabledInLicenseOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicenseOk() (*bool, bool)` + +GetEnabledInLicenseOk returns a tuple with the EnabledInLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledInLicense + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetEnabledInLicense(v bool)` + +SetEnabledInLicense sets EnabledInLicense field to given value. + +### HasEnabledInLicense + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasEnabledInLicense() bool` + +HasEnabledInLicense returns a boolean if a field has been set. + +### GetId + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetId() ConnectorTypes` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetIdOk() (*ConnectorTypes, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetId(v ConnectorTypes)` + +SetId sets Id field to given value. + +### HasId + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMinimumLicenseRequired + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequired() string` + +GetMinimumLicenseRequired returns the MinimumLicenseRequired field if non-nil, zero value otherwise. + +### GetMinimumLicenseRequiredOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequiredOk() (*string, bool)` + +GetMinimumLicenseRequiredOk returns a tuple with the MinimumLicenseRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumLicenseRequired + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetMinimumLicenseRequired(v string)` + +SetMinimumLicenseRequired sets MinimumLicenseRequired field to given value. + +### HasMinimumLicenseRequired + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasMinimumLicenseRequired() bool` + +HasMinimumLicenseRequired returns a boolean if a field has been set. + +### GetName + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSupportedFeatureIds + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetSupportedFeatureIds() []Features` + +GetSupportedFeatureIds returns the SupportedFeatureIds field if non-nil, zero value otherwise. + +### GetSupportedFeatureIdsOk + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) GetSupportedFeatureIdsOk() (*[]Features, bool)` + +GetSupportedFeatureIdsOk returns a tuple with the SupportedFeatureIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedFeatureIds + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) SetSupportedFeatureIds(v []Features)` + +SetSupportedFeatureIds sets SupportedFeatureIds field to given value. + +### HasSupportedFeatureIds + +`func (o *GetConnectorTypesResponseBodyPropertiesInner) HasSupportedFeatureIds() bool` + +HasSupportedFeatureIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/GetConnectorsResponseBodyProperties.md b/generated/kibanaactions/docs/GetConnectorsResponseBodyProperties.md new file mode 100644 index 000000000..ec44cbfcf --- /dev/null +++ b/generated/kibanaactions/docs/GetConnectorsResponseBodyProperties.md @@ -0,0 +1,218 @@ +# GetConnectorsResponseBodyProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorTypeId** | [**ConnectorTypes**](ConnectorTypes.md) | | +**Config** | Pointer to **map[string]interface{}** | The configuration for the connector. Configuration properties vary depending on the connector type. | [optional] +**Id** | **string** | The identifier for the connector. | +**IsDeprecated** | **bool** | Indicates whether the connector type is deprecated. | +**IsMissingSecrets** | Pointer to **bool** | Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. | [optional] +**IsPreconfigured** | **bool** | Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. | +**Name** | **string** | The display name for the connector. | +**ReferencedByCount** | **int32** | Indicates the number of saved objects that reference the connector. If `is_preconfigured` is true, this value is not calculated. | [default to 0] + +## Methods + +### NewGetConnectorsResponseBodyProperties + +`func NewGetConnectorsResponseBodyProperties(connectorTypeId ConnectorTypes, id string, isDeprecated bool, isPreconfigured bool, name string, referencedByCount int32, ) *GetConnectorsResponseBodyProperties` + +NewGetConnectorsResponseBodyProperties instantiates a new GetConnectorsResponseBodyProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetConnectorsResponseBodyPropertiesWithDefaults + +`func NewGetConnectorsResponseBodyPropertiesWithDefaults() *GetConnectorsResponseBodyProperties` + +NewGetConnectorsResponseBodyPropertiesWithDefaults instantiates a new GetConnectorsResponseBodyProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorTypeId + +`func (o *GetConnectorsResponseBodyProperties) GetConnectorTypeId() ConnectorTypes` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *GetConnectorsResponseBodyProperties) GetConnectorTypeIdOk() (*ConnectorTypes, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *GetConnectorsResponseBodyProperties) SetConnectorTypeId(v ConnectorTypes)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetConfig + +`func (o *GetConnectorsResponseBodyProperties) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *GetConnectorsResponseBodyProperties) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *GetConnectorsResponseBodyProperties) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *GetConnectorsResponseBodyProperties) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### SetConfigNil + +`func (o *GetConnectorsResponseBodyProperties) SetConfigNil(b bool)` + + SetConfigNil sets the value for Config to be an explicit nil + +### UnsetConfig +`func (o *GetConnectorsResponseBodyProperties) UnsetConfig()` + +UnsetConfig ensures that no value is present for Config, not even an explicit nil +### GetId + +`func (o *GetConnectorsResponseBodyProperties) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GetConnectorsResponseBodyProperties) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GetConnectorsResponseBodyProperties) SetId(v string)` + +SetId sets Id field to given value. + + +### GetIsDeprecated + +`func (o *GetConnectorsResponseBodyProperties) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *GetConnectorsResponseBodyProperties) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *GetConnectorsResponseBodyProperties) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsMissingSecrets + +`func (o *GetConnectorsResponseBodyProperties) GetIsMissingSecrets() bool` + +GetIsMissingSecrets returns the IsMissingSecrets field if non-nil, zero value otherwise. + +### GetIsMissingSecretsOk + +`func (o *GetConnectorsResponseBodyProperties) GetIsMissingSecretsOk() (*bool, bool)` + +GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMissingSecrets + +`func (o *GetConnectorsResponseBodyProperties) SetIsMissingSecrets(v bool)` + +SetIsMissingSecrets sets IsMissingSecrets field to given value. + +### HasIsMissingSecrets + +`func (o *GetConnectorsResponseBodyProperties) HasIsMissingSecrets() bool` + +HasIsMissingSecrets returns a boolean if a field has been set. + +### GetIsPreconfigured + +`func (o *GetConnectorsResponseBodyProperties) GetIsPreconfigured() bool` + +GetIsPreconfigured returns the IsPreconfigured field if non-nil, zero value otherwise. + +### GetIsPreconfiguredOk + +`func (o *GetConnectorsResponseBodyProperties) GetIsPreconfiguredOk() (*bool, bool)` + +GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPreconfigured + +`func (o *GetConnectorsResponseBodyProperties) SetIsPreconfigured(v bool)` + +SetIsPreconfigured sets IsPreconfigured field to given value. + + +### GetName + +`func (o *GetConnectorsResponseBodyProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetConnectorsResponseBodyProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GetConnectorsResponseBodyProperties) SetName(v string)` + +SetName sets Name field to given value. + + +### GetReferencedByCount + +`func (o *GetConnectorsResponseBodyProperties) GetReferencedByCount() int32` + +GetReferencedByCount returns the ReferencedByCount field if non-nil, zero value otherwise. + +### GetReferencedByCountOk + +`func (o *GetConnectorsResponseBodyProperties) GetReferencedByCountOk() (*int32, bool)` + +GetReferencedByCountOk returns a tuple with the ReferencedByCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferencedByCount + +`func (o *GetConnectorsResponseBodyProperties) SetReferencedByCount(v int32)` + +SetReferencedByCount sets ReferencedByCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/LegacyCreateConnectorRequestProperties.md b/generated/kibanaactions/docs/LegacyCreateConnectorRequestProperties.md new file mode 100644 index 000000000..2f2156054 --- /dev/null +++ b/generated/kibanaactions/docs/LegacyCreateConnectorRequestProperties.md @@ -0,0 +1,134 @@ +# LegacyCreateConnectorRequestProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActionTypeId** | Pointer to **string** | The connector type identifier. | [optional] +**Config** | Pointer to **map[string]interface{}** | The configuration for the connector. Configuration properties vary depending on the connector type. | [optional] +**Name** | Pointer to **string** | The display name for the connector. | [optional] +**Secrets** | Pointer to **map[string]interface{}** | The secrets configuration for the connector. Secrets configuration properties vary depending on the connector type. NOTE: Remember these values. You must provide them each time you update the connector. | [optional] + +## Methods + +### NewLegacyCreateConnectorRequestProperties + +`func NewLegacyCreateConnectorRequestProperties() *LegacyCreateConnectorRequestProperties` + +NewLegacyCreateConnectorRequestProperties instantiates a new LegacyCreateConnectorRequestProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyCreateConnectorRequestPropertiesWithDefaults + +`func NewLegacyCreateConnectorRequestPropertiesWithDefaults() *LegacyCreateConnectorRequestProperties` + +NewLegacyCreateConnectorRequestPropertiesWithDefaults instantiates a new LegacyCreateConnectorRequestProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActionTypeId + +`func (o *LegacyCreateConnectorRequestProperties) GetActionTypeId() string` + +GetActionTypeId returns the ActionTypeId field if non-nil, zero value otherwise. + +### GetActionTypeIdOk + +`func (o *LegacyCreateConnectorRequestProperties) GetActionTypeIdOk() (*string, bool)` + +GetActionTypeIdOk returns a tuple with the ActionTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionTypeId + +`func (o *LegacyCreateConnectorRequestProperties) SetActionTypeId(v string)` + +SetActionTypeId sets ActionTypeId field to given value. + +### HasActionTypeId + +`func (o *LegacyCreateConnectorRequestProperties) HasActionTypeId() bool` + +HasActionTypeId returns a boolean if a field has been set. + +### GetConfig + +`func (o *LegacyCreateConnectorRequestProperties) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *LegacyCreateConnectorRequestProperties) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *LegacyCreateConnectorRequestProperties) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *LegacyCreateConnectorRequestProperties) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetName + +`func (o *LegacyCreateConnectorRequestProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LegacyCreateConnectorRequestProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LegacyCreateConnectorRequestProperties) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LegacyCreateConnectorRequestProperties) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSecrets + +`func (o *LegacyCreateConnectorRequestProperties) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *LegacyCreateConnectorRequestProperties) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *LegacyCreateConnectorRequestProperties) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + +### HasSecrets + +`func (o *LegacyCreateConnectorRequestProperties) HasSecrets() bool` + +HasSecrets returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/LegacyGetConnectorTypesResponseBodyPropertiesInner.md b/generated/kibanaactions/docs/LegacyGetConnectorTypesResponseBodyPropertiesInner.md new file mode 100644 index 000000000..32c56b2ed --- /dev/null +++ b/generated/kibanaactions/docs/LegacyGetConnectorTypesResponseBodyPropertiesInner.md @@ -0,0 +1,186 @@ +# LegacyGetConnectorTypesResponseBodyPropertiesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | Indicates whether the connector type is enabled in Kibana. | [optional] +**EnabledInConfig** | Pointer to **bool** | Indicates whether the connector type is enabled in the Kibana `.yml` file. | [optional] +**EnabledInLicense** | Pointer to **bool** | Indicates whether the connector is enabled in the license. | [optional] +**Id** | Pointer to **string** | The unique identifier for the connector type. | [optional] +**MinimumLicenseRequired** | Pointer to **string** | The license that is required to use the connector type. | [optional] +**Name** | Pointer to **string** | The name of the connector type. | [optional] + +## Methods + +### NewLegacyGetConnectorTypesResponseBodyPropertiesInner + +`func NewLegacyGetConnectorTypesResponseBodyPropertiesInner() *LegacyGetConnectorTypesResponseBodyPropertiesInner` + +NewLegacyGetConnectorTypesResponseBodyPropertiesInner instantiates a new LegacyGetConnectorTypesResponseBodyPropertiesInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyGetConnectorTypesResponseBodyPropertiesInnerWithDefaults + +`func NewLegacyGetConnectorTypesResponseBodyPropertiesInnerWithDefaults() *LegacyGetConnectorTypesResponseBodyPropertiesInner` + +NewLegacyGetConnectorTypesResponseBodyPropertiesInnerWithDefaults instantiates a new LegacyGetConnectorTypesResponseBodyPropertiesInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetEnabledInConfig + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfig() bool` + +GetEnabledInConfig returns the EnabledInConfig field if non-nil, zero value otherwise. + +### GetEnabledInConfigOk + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfigOk() (*bool, bool)` + +GetEnabledInConfigOk returns a tuple with the EnabledInConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledInConfig + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetEnabledInConfig(v bool)` + +SetEnabledInConfig sets EnabledInConfig field to given value. + +### HasEnabledInConfig + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasEnabledInConfig() bool` + +HasEnabledInConfig returns a boolean if a field has been set. + +### GetEnabledInLicense + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicense() bool` + +GetEnabledInLicense returns the EnabledInLicense field if non-nil, zero value otherwise. + +### GetEnabledInLicenseOk + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicenseOk() (*bool, bool)` + +GetEnabledInLicenseOk returns a tuple with the EnabledInLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledInLicense + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetEnabledInLicense(v bool)` + +SetEnabledInLicense sets EnabledInLicense field to given value. + +### HasEnabledInLicense + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasEnabledInLicense() bool` + +HasEnabledInLicense returns a boolean if a field has been set. + +### GetId + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMinimumLicenseRequired + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequired() string` + +GetMinimumLicenseRequired returns the MinimumLicenseRequired field if non-nil, zero value otherwise. + +### GetMinimumLicenseRequiredOk + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequiredOk() (*string, bool)` + +GetMinimumLicenseRequiredOk returns a tuple with the MinimumLicenseRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumLicenseRequired + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetMinimumLicenseRequired(v string)` + +SetMinimumLicenseRequired sets MinimumLicenseRequired field to given value. + +### HasMinimumLicenseRequired + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasMinimumLicenseRequired() bool` + +HasMinimumLicenseRequired returns a boolean if a field has been set. + +### GetName + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/LegacyRunConnector200Response.md b/generated/kibanaactions/docs/LegacyRunConnector200Response.md new file mode 100644 index 000000000..17ca58a2e --- /dev/null +++ b/generated/kibanaactions/docs/LegacyRunConnector200Response.md @@ -0,0 +1,108 @@ +# LegacyRunConnector200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActionId** | Pointer to **string** | | [optional] +**Data** | Pointer to [**RunConnector200ResponseData**](RunConnector200ResponseData.md) | | [optional] +**Status** | Pointer to **string** | The status of the action. | [optional] + +## Methods + +### NewLegacyRunConnector200Response + +`func NewLegacyRunConnector200Response() *LegacyRunConnector200Response` + +NewLegacyRunConnector200Response instantiates a new LegacyRunConnector200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyRunConnector200ResponseWithDefaults + +`func NewLegacyRunConnector200ResponseWithDefaults() *LegacyRunConnector200Response` + +NewLegacyRunConnector200ResponseWithDefaults instantiates a new LegacyRunConnector200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActionId + +`func (o *LegacyRunConnector200Response) GetActionId() string` + +GetActionId returns the ActionId field if non-nil, zero value otherwise. + +### GetActionIdOk + +`func (o *LegacyRunConnector200Response) GetActionIdOk() (*string, bool)` + +GetActionIdOk returns a tuple with the ActionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionId + +`func (o *LegacyRunConnector200Response) SetActionId(v string)` + +SetActionId sets ActionId field to given value. + +### HasActionId + +`func (o *LegacyRunConnector200Response) HasActionId() bool` + +HasActionId returns a boolean if a field has been set. + +### GetData + +`func (o *LegacyRunConnector200Response) GetData() RunConnector200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LegacyRunConnector200Response) GetDataOk() (*RunConnector200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LegacyRunConnector200Response) SetData(v RunConnector200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LegacyRunConnector200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetStatus + +`func (o *LegacyRunConnector200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LegacyRunConnector200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *LegacyRunConnector200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LegacyRunConnector200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/LegacyRunConnectorRequestBodyProperties.md b/generated/kibanaactions/docs/LegacyRunConnectorRequestBodyProperties.md new file mode 100644 index 000000000..99b4047b7 --- /dev/null +++ b/generated/kibanaactions/docs/LegacyRunConnectorRequestBodyProperties.md @@ -0,0 +1,51 @@ +# LegacyRunConnectorRequestBodyProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Params** | **map[string]interface{}** | The parameters of the connector. Parameter properties vary depending on the connector type. | + +## Methods + +### NewLegacyRunConnectorRequestBodyProperties + +`func NewLegacyRunConnectorRequestBodyProperties(params map[string]interface{}, ) *LegacyRunConnectorRequestBodyProperties` + +NewLegacyRunConnectorRequestBodyProperties instantiates a new LegacyRunConnectorRequestBodyProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyRunConnectorRequestBodyPropertiesWithDefaults + +`func NewLegacyRunConnectorRequestBodyPropertiesWithDefaults() *LegacyRunConnectorRequestBodyProperties` + +NewLegacyRunConnectorRequestBodyPropertiesWithDefaults instantiates a new LegacyRunConnectorRequestBodyProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParams + +`func (o *LegacyRunConnectorRequestBodyProperties) GetParams() map[string]interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *LegacyRunConnectorRequestBodyProperties) GetParamsOk() (*map[string]interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *LegacyRunConnectorRequestBodyProperties) SetParams(v map[string]interface{})` + +SetParams sets Params field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/LegacyUpdateConnectorRequestBodyProperties.md b/generated/kibanaactions/docs/LegacyUpdateConnectorRequestBodyProperties.md new file mode 100644 index 000000000..ec69e2209 --- /dev/null +++ b/generated/kibanaactions/docs/LegacyUpdateConnectorRequestBodyProperties.md @@ -0,0 +1,108 @@ +# LegacyUpdateConnectorRequestBodyProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to **map[string]interface{}** | The new connector configuration. Configuration properties vary depending on the connector type. | [optional] +**Name** | Pointer to **string** | The new name for the connector. | [optional] +**Secrets** | Pointer to **map[string]interface{}** | The updated secrets configuration for the connector. Secrets properties vary depending on the connector type. | [optional] + +## Methods + +### NewLegacyUpdateConnectorRequestBodyProperties + +`func NewLegacyUpdateConnectorRequestBodyProperties() *LegacyUpdateConnectorRequestBodyProperties` + +NewLegacyUpdateConnectorRequestBodyProperties instantiates a new LegacyUpdateConnectorRequestBodyProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyUpdateConnectorRequestBodyPropertiesWithDefaults + +`func NewLegacyUpdateConnectorRequestBodyPropertiesWithDefaults() *LegacyUpdateConnectorRequestBodyProperties` + +NewLegacyUpdateConnectorRequestBodyPropertiesWithDefaults instantiates a new LegacyUpdateConnectorRequestBodyProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *LegacyUpdateConnectorRequestBodyProperties) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *LegacyUpdateConnectorRequestBodyProperties) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *LegacyUpdateConnectorRequestBodyProperties) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *LegacyUpdateConnectorRequestBodyProperties) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetName + +`func (o *LegacyUpdateConnectorRequestBodyProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LegacyUpdateConnectorRequestBodyProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LegacyUpdateConnectorRequestBodyProperties) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LegacyUpdateConnectorRequestBodyProperties) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSecrets + +`func (o *LegacyUpdateConnectorRequestBodyProperties) GetSecrets() map[string]interface{}` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *LegacyUpdateConnectorRequestBodyProperties) GetSecretsOk() (*map[string]interface{}, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *LegacyUpdateConnectorRequestBodyProperties) SetSecrets(v map[string]interface{})` + +SetSecrets sets Secrets field to given value. + +### HasSecrets + +`func (o *LegacyUpdateConnectorRequestBodyProperties) HasSecrets() bool` + +HasSecrets returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/Model401Response.md b/generated/kibanaactions/docs/Model401Response.md new file mode 100644 index 000000000..a53c5cd69 --- /dev/null +++ b/generated/kibanaactions/docs/Model401Response.md @@ -0,0 +1,108 @@ +# Model401Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**StatusCode** | Pointer to **int32** | | [optional] + +## Methods + +### NewModel401Response + +`func NewModel401Response() *Model401Response` + +NewModel401Response instantiates a new Model401Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModel401ResponseWithDefaults + +`func NewModel401ResponseWithDefaults() *Model401Response` + +NewModel401ResponseWithDefaults instantiates a new Model401Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *Model401Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *Model401Response) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *Model401Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *Model401Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetMessage + +`func (o *Model401Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *Model401Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *Model401Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *Model401Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStatusCode + +`func (o *Model401Response) GetStatusCode() int32` + +GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. + +### GetStatusCodeOk + +`func (o *Model401Response) GetStatusCodeOk() (*int32, bool)` + +GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusCode + +`func (o *Model401Response) SetStatusCode(v int32)` + +SetStatusCode sets StatusCode field to given value. + +### HasStatusCode + +`func (o *Model401Response) HasStatusCode() bool` + +HasStatusCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/Model404Response.md b/generated/kibanaactions/docs/Model404Response.md new file mode 100644 index 000000000..1bfd84837 --- /dev/null +++ b/generated/kibanaactions/docs/Model404Response.md @@ -0,0 +1,108 @@ +# Model404Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**StatusCode** | Pointer to **int32** | | [optional] + +## Methods + +### NewModel404Response + +`func NewModel404Response() *Model404Response` + +NewModel404Response instantiates a new Model404Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModel404ResponseWithDefaults + +`func NewModel404ResponseWithDefaults() *Model404Response` + +NewModel404ResponseWithDefaults instantiates a new Model404Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *Model404Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *Model404Response) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *Model404Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *Model404Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetMessage + +`func (o *Model404Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *Model404Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *Model404Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *Model404Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStatusCode + +`func (o *Model404Response) GetStatusCode() int32` + +GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. + +### GetStatusCodeOk + +`func (o *Model404Response) GetStatusCodeOk() (*int32, bool)` + +GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusCode + +`func (o *Model404Response) SetStatusCode(v int32)` + +SetStatusCode sets StatusCode field to given value. + +### HasStatusCode + +`func (o *Model404Response) HasStatusCode() bool` + +HasStatusCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RuleNameMapping.md b/generated/kibanaactions/docs/RuleNameMapping.md new file mode 100644 index 000000000..268f13731 --- /dev/null +++ b/generated/kibanaactions/docs/RuleNameMapping.md @@ -0,0 +1,114 @@ +# RuleNameMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewRuleNameMapping + +`func NewRuleNameMapping(fieldType string, id string, key string, name string, ) *RuleNameMapping` + +NewRuleNameMapping instantiates a new RuleNameMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRuleNameMappingWithDefaults + +`func NewRuleNameMappingWithDefaults() *RuleNameMapping` + +NewRuleNameMappingWithDefaults instantiates a new RuleNameMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *RuleNameMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *RuleNameMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *RuleNameMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *RuleNameMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RuleNameMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RuleNameMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *RuleNameMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *RuleNameMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *RuleNameMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *RuleNameMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RuleNameMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RuleNameMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnector200Response.md b/generated/kibanaactions/docs/RunConnector200Response.md new file mode 100644 index 000000000..8f052cbe0 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnector200Response.md @@ -0,0 +1,98 @@ +# RunConnector200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectorId** | **string** | The identifier for the connector. | +**Data** | Pointer to [**RunConnector200ResponseData**](RunConnector200ResponseData.md) | | [optional] +**Status** | **string** | The status of the action. | + +## Methods + +### NewRunConnector200Response + +`func NewRunConnector200Response(connectorId string, status string, ) *RunConnector200Response` + +NewRunConnector200Response instantiates a new RunConnector200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnector200ResponseWithDefaults + +`func NewRunConnector200ResponseWithDefaults() *RunConnector200Response` + +NewRunConnector200ResponseWithDefaults instantiates a new RunConnector200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConnectorId + +`func (o *RunConnector200Response) GetConnectorId() string` + +GetConnectorId returns the ConnectorId field if non-nil, zero value otherwise. + +### GetConnectorIdOk + +`func (o *RunConnector200Response) GetConnectorIdOk() (*string, bool)` + +GetConnectorIdOk returns a tuple with the ConnectorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorId + +`func (o *RunConnector200Response) SetConnectorId(v string)` + +SetConnectorId sets ConnectorId field to given value. + + +### GetData + +`func (o *RunConnector200Response) GetData() RunConnector200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *RunConnector200Response) GetDataOk() (*RunConnector200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *RunConnector200Response) SetData(v RunConnector200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *RunConnector200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetStatus + +`func (o *RunConnector200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RunConnector200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RunConnector200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnector200ResponseData.md b/generated/kibanaactions/docs/RunConnector200ResponseData.md new file mode 100644 index 000000000..328a89d2a --- /dev/null +++ b/generated/kibanaactions/docs/RunConnector200ResponseData.md @@ -0,0 +1,30 @@ +# RunConnector200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRunConnector200ResponseData + +`func NewRunConnector200ResponseData() *RunConnector200ResponseData` + +NewRunConnector200ResponseData instantiates a new RunConnector200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnector200ResponseDataWithDefaults + +`func NewRunConnector200ResponseDataWithDefaults() *RunConnector200ResponseData` + +NewRunConnector200ResponseDataWithDefaults instantiates a new RunConnector200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorParamsDocuments.md b/generated/kibanaactions/docs/RunConnectorParamsDocuments.md new file mode 100644 index 000000000..f94c70607 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorParamsDocuments.md @@ -0,0 +1,51 @@ +# RunConnectorParamsDocuments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Documents** | **[]map[string]interface{}** | The documents in JSON format for index connectors. | + +## Methods + +### NewRunConnectorParamsDocuments + +`func NewRunConnectorParamsDocuments(documents []map[string]interface{}, ) *RunConnectorParamsDocuments` + +NewRunConnectorParamsDocuments instantiates a new RunConnectorParamsDocuments object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorParamsDocumentsWithDefaults + +`func NewRunConnectorParamsDocumentsWithDefaults() *RunConnectorParamsDocuments` + +NewRunConnectorParamsDocumentsWithDefaults instantiates a new RunConnectorParamsDocuments object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDocuments + +`func (o *RunConnectorParamsDocuments) GetDocuments() []map[string]interface{}` + +GetDocuments returns the Documents field if non-nil, zero value otherwise. + +### GetDocumentsOk + +`func (o *RunConnectorParamsDocuments) GetDocumentsOk() (*[]map[string]interface{}, bool)` + +GetDocumentsOk returns a tuple with the Documents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocuments + +`func (o *RunConnectorParamsDocuments) SetDocuments(v []map[string]interface{})` + +SetDocuments sets Documents field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorParamsLevelMessage.md b/generated/kibanaactions/docs/RunConnectorParamsLevelMessage.md new file mode 100644 index 000000000..8350cddae --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorParamsLevelMessage.md @@ -0,0 +1,77 @@ +# RunConnectorParamsLevelMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Level** | Pointer to **string** | The log level of the message for server log connectors. | [optional] [default to "info"] +**Message** | **string** | The message for server log connectors. | + +## Methods + +### NewRunConnectorParamsLevelMessage + +`func NewRunConnectorParamsLevelMessage(message string, ) *RunConnectorParamsLevelMessage` + +NewRunConnectorParamsLevelMessage instantiates a new RunConnectorParamsLevelMessage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorParamsLevelMessageWithDefaults + +`func NewRunConnectorParamsLevelMessageWithDefaults() *RunConnectorParamsLevelMessage` + +NewRunConnectorParamsLevelMessageWithDefaults instantiates a new RunConnectorParamsLevelMessage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLevel + +`func (o *RunConnectorParamsLevelMessage) GetLevel() string` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *RunConnectorParamsLevelMessage) GetLevelOk() (*string, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *RunConnectorParamsLevelMessage) SetLevel(v string)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *RunConnectorParamsLevelMessage) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + +### GetMessage + +`func (o *RunConnectorParamsLevelMessage) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *RunConnectorParamsLevelMessage) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *RunConnectorParamsLevelMessage) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorRequestBodyProperties.md b/generated/kibanaactions/docs/RunConnectorRequestBodyProperties.md new file mode 100644 index 000000000..c0bcc5adc --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorRequestBodyProperties.md @@ -0,0 +1,51 @@ +# RunConnectorRequestBodyProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Params** | [**RunConnectorRequestBodyPropertiesParams**](RunConnectorRequestBodyPropertiesParams.md) | | + +## Methods + +### NewRunConnectorRequestBodyProperties + +`func NewRunConnectorRequestBodyProperties(params RunConnectorRequestBodyPropertiesParams, ) *RunConnectorRequestBodyProperties` + +NewRunConnectorRequestBodyProperties instantiates a new RunConnectorRequestBodyProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorRequestBodyPropertiesWithDefaults + +`func NewRunConnectorRequestBodyPropertiesWithDefaults() *RunConnectorRequestBodyProperties` + +NewRunConnectorRequestBodyPropertiesWithDefaults instantiates a new RunConnectorRequestBodyProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParams + +`func (o *RunConnectorRequestBodyProperties) GetParams() RunConnectorRequestBodyPropertiesParams` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *RunConnectorRequestBodyProperties) GetParamsOk() (*RunConnectorRequestBodyPropertiesParams, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *RunConnectorRequestBodyProperties) SetParams(v RunConnectorRequestBodyPropertiesParams)` + +SetParams sets Params field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorRequestBodyPropertiesParams.md b/generated/kibanaactions/docs/RunConnectorRequestBodyPropertiesParams.md new file mode 100644 index 000000000..9143c339a --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorRequestBodyPropertiesParams.md @@ -0,0 +1,98 @@ +# RunConnectorRequestBodyPropertiesParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Documents** | **[]map[string]interface{}** | The documents in JSON format for index connectors. | +**Level** | Pointer to **string** | The log level of the message for server log connectors. | [optional] [default to "info"] +**Message** | **string** | The message for server log connectors. | + +## Methods + +### NewRunConnectorRequestBodyPropertiesParams + +`func NewRunConnectorRequestBodyPropertiesParams(documents []map[string]interface{}, message string, ) *RunConnectorRequestBodyPropertiesParams` + +NewRunConnectorRequestBodyPropertiesParams instantiates a new RunConnectorRequestBodyPropertiesParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorRequestBodyPropertiesParamsWithDefaults + +`func NewRunConnectorRequestBodyPropertiesParamsWithDefaults() *RunConnectorRequestBodyPropertiesParams` + +NewRunConnectorRequestBodyPropertiesParamsWithDefaults instantiates a new RunConnectorRequestBodyPropertiesParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDocuments + +`func (o *RunConnectorRequestBodyPropertiesParams) GetDocuments() []map[string]interface{}` + +GetDocuments returns the Documents field if non-nil, zero value otherwise. + +### GetDocumentsOk + +`func (o *RunConnectorRequestBodyPropertiesParams) GetDocumentsOk() (*[]map[string]interface{}, bool)` + +GetDocumentsOk returns a tuple with the Documents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocuments + +`func (o *RunConnectorRequestBodyPropertiesParams) SetDocuments(v []map[string]interface{})` + +SetDocuments sets Documents field to given value. + + +### GetLevel + +`func (o *RunConnectorRequestBodyPropertiesParams) GetLevel() string` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *RunConnectorRequestBodyPropertiesParams) GetLevelOk() (*string, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *RunConnectorRequestBodyPropertiesParams) SetLevel(v string)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *RunConnectorRequestBodyPropertiesParams) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + +### GetMessage + +`func (o *RunConnectorRequestBodyPropertiesParams) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *RunConnectorRequestBodyPropertiesParams) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *RunConnectorRequestBodyPropertiesParams) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionAddevent.md b/generated/kibanaactions/docs/RunConnectorSubactionAddevent.md new file mode 100644 index 000000000..db137ca50 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionAddevent.md @@ -0,0 +1,77 @@ +# RunConnectorSubactionAddevent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | Pointer to [**RunConnectorSubactionAddeventSubActionParams**](RunConnectorSubactionAddeventSubActionParams.md) | | [optional] + +## Methods + +### NewRunConnectorSubactionAddevent + +`func NewRunConnectorSubactionAddevent(subAction string, ) *RunConnectorSubactionAddevent` + +NewRunConnectorSubactionAddevent instantiates a new RunConnectorSubactionAddevent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionAddeventWithDefaults + +`func NewRunConnectorSubactionAddeventWithDefaults() *RunConnectorSubactionAddevent` + +NewRunConnectorSubactionAddeventWithDefaults instantiates a new RunConnectorSubactionAddevent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionAddevent) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionAddevent) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionAddevent) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionAddevent) GetSubActionParams() RunConnectorSubactionAddeventSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionAddevent) GetSubActionParamsOk() (*RunConnectorSubactionAddeventSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionAddevent) SetSubActionParams(v RunConnectorSubactionAddeventSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + +### HasSubActionParams + +`func (o *RunConnectorSubactionAddevent) HasSubActionParams() bool` + +HasSubActionParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionAddeventSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionAddeventSubActionParams.md new file mode 100644 index 000000000..28280ca7f --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionAddeventSubActionParams.md @@ -0,0 +1,316 @@ +# RunConnectorSubactionAddeventSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalInfo** | Pointer to **string** | Additional information about the event. | [optional] +**Description** | Pointer to **string** | The details about the event. | [optional] +**EventClass** | Pointer to **string** | A specific instance of the source. | [optional] +**MessageKey** | Pointer to **string** | All actions sharing this key are associated with the same ServiceNow alert. The default value is `<rule ID>:<alert instance ID>`. | [optional] +**MetricName** | Pointer to **string** | The name of the metric. | [optional] +**Node** | Pointer to **string** | The host that the event was triggered for. | [optional] +**Resource** | Pointer to **string** | The name of the resource. | [optional] +**Severity** | Pointer to **string** | The severity of the event. | [optional] +**Source** | Pointer to **string** | The name of the event source type. | [optional] +**TimeOfEvent** | Pointer to **string** | The time of the event. | [optional] +**Type** | Pointer to **string** | The type of event. | [optional] + +## Methods + +### NewRunConnectorSubactionAddeventSubActionParams + +`func NewRunConnectorSubactionAddeventSubActionParams() *RunConnectorSubactionAddeventSubActionParams` + +NewRunConnectorSubactionAddeventSubActionParams instantiates a new RunConnectorSubactionAddeventSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionAddeventSubActionParamsWithDefaults + +`func NewRunConnectorSubactionAddeventSubActionParamsWithDefaults() *RunConnectorSubactionAddeventSubActionParams` + +NewRunConnectorSubactionAddeventSubActionParamsWithDefaults instantiates a new RunConnectorSubactionAddeventSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdditionalInfo + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetAdditionalInfo() string` + +GetAdditionalInfo returns the AdditionalInfo field if non-nil, zero value otherwise. + +### GetAdditionalInfoOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetAdditionalInfoOk() (*string, bool)` + +GetAdditionalInfoOk returns a tuple with the AdditionalInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalInfo + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetAdditionalInfo(v string)` + +SetAdditionalInfo sets AdditionalInfo field to given value. + +### HasAdditionalInfo + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasAdditionalInfo() bool` + +HasAdditionalInfo returns a boolean if a field has been set. + +### GetDescription + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEventClass + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetEventClass() string` + +GetEventClass returns the EventClass field if non-nil, zero value otherwise. + +### GetEventClassOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetEventClassOk() (*string, bool)` + +GetEventClassOk returns a tuple with the EventClass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventClass + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetEventClass(v string)` + +SetEventClass sets EventClass field to given value. + +### HasEventClass + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasEventClass() bool` + +HasEventClass returns a boolean if a field has been set. + +### GetMessageKey + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetMessageKey() string` + +GetMessageKey returns the MessageKey field if non-nil, zero value otherwise. + +### GetMessageKeyOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetMessageKeyOk() (*string, bool)` + +GetMessageKeyOk returns a tuple with the MessageKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageKey + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetMessageKey(v string)` + +SetMessageKey sets MessageKey field to given value. + +### HasMessageKey + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasMessageKey() bool` + +HasMessageKey returns a boolean if a field has been set. + +### GetMetricName + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetMetricName() string` + +GetMetricName returns the MetricName field if non-nil, zero value otherwise. + +### GetMetricNameOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetMetricNameOk() (*string, bool)` + +GetMetricNameOk returns a tuple with the MetricName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricName + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetMetricName(v string)` + +SetMetricName sets MetricName field to given value. + +### HasMetricName + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasMetricName() bool` + +HasMetricName returns a boolean if a field has been set. + +### GetNode + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetNode() string` + +GetNode returns the Node field if non-nil, zero value otherwise. + +### GetNodeOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetNodeOk() (*string, bool)` + +GetNodeOk returns a tuple with the Node field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNode + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetNode(v string)` + +SetNode sets Node field to given value. + +### HasNode + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasNode() bool` + +HasNode returns a boolean if a field has been set. + +### GetResource + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### GetSeverity + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetSeverity() string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetSeverityOk() (*string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetSeverity(v string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### GetSource + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetTimeOfEvent + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetTimeOfEvent() string` + +GetTimeOfEvent returns the TimeOfEvent field if non-nil, zero value otherwise. + +### GetTimeOfEventOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetTimeOfEventOk() (*string, bool)` + +GetTimeOfEventOk returns a tuple with the TimeOfEvent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeOfEvent + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetTimeOfEvent(v string)` + +SetTimeOfEvent sets TimeOfEvent field to given value. + +### HasTimeOfEvent + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasTimeOfEvent() bool` + +HasTimeOfEvent returns a boolean if a field has been set. + +### GetType + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RunConnectorSubactionAddeventSubActionParams) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RunConnectorSubactionAddeventSubActionParams) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RunConnectorSubactionAddeventSubActionParams) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionClosealert.md b/generated/kibanaactions/docs/RunConnectorSubactionClosealert.md new file mode 100644 index 000000000..8329373ec --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionClosealert.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionClosealert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionClosealertSubActionParams**](RunConnectorSubactionClosealertSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionClosealert + +`func NewRunConnectorSubactionClosealert(subAction string, subActionParams RunConnectorSubactionClosealertSubActionParams, ) *RunConnectorSubactionClosealert` + +NewRunConnectorSubactionClosealert instantiates a new RunConnectorSubactionClosealert object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionClosealertWithDefaults + +`func NewRunConnectorSubactionClosealertWithDefaults() *RunConnectorSubactionClosealert` + +NewRunConnectorSubactionClosealertWithDefaults instantiates a new RunConnectorSubactionClosealert object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionClosealert) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionClosealert) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionClosealert) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionClosealert) GetSubActionParams() RunConnectorSubactionClosealertSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionClosealert) GetSubActionParamsOk() (*RunConnectorSubactionClosealertSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionClosealert) SetSubActionParams(v RunConnectorSubactionClosealertSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionClosealertSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionClosealertSubActionParams.md new file mode 100644 index 000000000..d2871566c --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionClosealertSubActionParams.md @@ -0,0 +1,129 @@ +# RunConnectorSubactionClosealertSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | **string** | The unique identifier used for alert deduplication in Opsgenie. The alias must match the value used when creating the alert. | +**Note** | Pointer to **string** | Additional information for the alert. | [optional] +**Source** | Pointer to **string** | The display name for the source of the alert. | [optional] +**User** | Pointer to **string** | The display name for the owner. | [optional] + +## Methods + +### NewRunConnectorSubactionClosealertSubActionParams + +`func NewRunConnectorSubactionClosealertSubActionParams(alias string, ) *RunConnectorSubactionClosealertSubActionParams` + +NewRunConnectorSubactionClosealertSubActionParams instantiates a new RunConnectorSubactionClosealertSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionClosealertSubActionParamsWithDefaults + +`func NewRunConnectorSubactionClosealertSubActionParamsWithDefaults() *RunConnectorSubactionClosealertSubActionParams` + +NewRunConnectorSubactionClosealertSubActionParamsWithDefaults instantiates a new RunConnectorSubactionClosealertSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlias + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *RunConnectorSubactionClosealertSubActionParams) SetAlias(v string)` + +SetAlias sets Alias field to given value. + + +### GetNote + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetNote() string` + +GetNote returns the Note field if non-nil, zero value otherwise. + +### GetNoteOk + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetNoteOk() (*string, bool)` + +GetNoteOk returns a tuple with the Note field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNote + +`func (o *RunConnectorSubactionClosealertSubActionParams) SetNote(v string)` + +SetNote sets Note field to given value. + +### HasNote + +`func (o *RunConnectorSubactionClosealertSubActionParams) HasNote() bool` + +HasNote returns a boolean if a field has been set. + +### GetSource + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *RunConnectorSubactionClosealertSubActionParams) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *RunConnectorSubactionClosealertSubActionParams) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetUser + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *RunConnectorSubactionClosealertSubActionParams) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *RunConnectorSubactionClosealertSubActionParams) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *RunConnectorSubactionClosealertSubActionParams) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionCreatealert.md b/generated/kibanaactions/docs/RunConnectorSubactionCreatealert.md new file mode 100644 index 000000000..6528932a8 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionCreatealert.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionCreatealert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionCreatealertSubActionParams**](RunConnectorSubactionCreatealertSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionCreatealert + +`func NewRunConnectorSubactionCreatealert(subAction string, subActionParams RunConnectorSubactionCreatealertSubActionParams, ) *RunConnectorSubactionCreatealert` + +NewRunConnectorSubactionCreatealert instantiates a new RunConnectorSubactionCreatealert object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionCreatealertWithDefaults + +`func NewRunConnectorSubactionCreatealertWithDefaults() *RunConnectorSubactionCreatealert` + +NewRunConnectorSubactionCreatealertWithDefaults instantiates a new RunConnectorSubactionCreatealert object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionCreatealert) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionCreatealert) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionCreatealert) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionCreatealert) GetSubActionParams() RunConnectorSubactionCreatealertSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionCreatealert) GetSubActionParamsOk() (*RunConnectorSubactionCreatealertSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionCreatealert) SetSubActionParams(v RunConnectorSubactionCreatealertSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParams.md new file mode 100644 index 000000000..24b3da7ef --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParams.md @@ -0,0 +1,363 @@ +# RunConnectorSubactionCreatealertSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | Pointer to **[]string** | The custom actions available to the alert. | [optional] +**Alias** | Pointer to **string** | The unique identifier used for alert deduplication in Opsgenie. | [optional] +**Description** | Pointer to **string** | A description that provides detailed information about the alert. | [optional] +**Details** | Pointer to **map[string]interface{}** | The custom properties of the alert. | [optional] +**Entity** | Pointer to **string** | The domain of the alert. For example, the application or server name. | [optional] +**Message** | **string** | The alert message. | +**Note** | Pointer to **string** | Additional information for the alert. | [optional] +**Priority** | Pointer to **string** | The priority level for the alert. | [optional] +**Responders** | Pointer to [**[]RunConnectorSubactionCreatealertSubActionParamsRespondersInner**](RunConnectorSubactionCreatealertSubActionParamsRespondersInner.md) | The entities to receive notifications about the alert. If `type` is `user`, either `id` or `username` is required. If `type` is `team`, either `id` or `name` is required. | [optional] +**Source** | Pointer to **string** | The display name for the source of the alert. | [optional] +**Tags** | Pointer to **[]string** | The tags for the alert. | [optional] +**User** | Pointer to **string** | The display name for the owner. | [optional] +**VisibleTo** | Pointer to [**[]RunConnectorSubactionCreatealertSubActionParamsVisibleToInner**](RunConnectorSubactionCreatealertSubActionParamsVisibleToInner.md) | The teams and users that the alert will be visible to without sending a notification. Only one of `id`, `name`, or `username` is required. | [optional] + +## Methods + +### NewRunConnectorSubactionCreatealertSubActionParams + +`func NewRunConnectorSubactionCreatealertSubActionParams(message string, ) *RunConnectorSubactionCreatealertSubActionParams` + +NewRunConnectorSubactionCreatealertSubActionParams instantiates a new RunConnectorSubactionCreatealertSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionCreatealertSubActionParamsWithDefaults + +`func NewRunConnectorSubactionCreatealertSubActionParamsWithDefaults() *RunConnectorSubactionCreatealertSubActionParams` + +NewRunConnectorSubactionCreatealertSubActionParamsWithDefaults instantiates a new RunConnectorSubactionCreatealertSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActions + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetActions() []string` + +GetActions returns the Actions field if non-nil, zero value otherwise. + +### GetActionsOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetActionsOk() (*[]string, bool)` + +GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActions + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetActions(v []string)` + +SetActions sets Actions field to given value. + +### HasActions + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasActions() bool` + +HasActions returns a boolean if a field has been set. + +### GetAlias + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetDescription + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDetails + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetDetails() map[string]interface{}` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetDetailsOk() (*map[string]interface{}, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetDetails(v map[string]interface{})` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + +### GetEntity + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetEntity() string` + +GetEntity returns the Entity field if non-nil, zero value otherwise. + +### GetEntityOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetEntityOk() (*string, bool)` + +GetEntityOk returns a tuple with the Entity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntity + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetEntity(v string)` + +SetEntity sets Entity field to given value. + +### HasEntity + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasEntity() bool` + +HasEntity returns a boolean if a field has been set. + +### GetMessage + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetNote + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetNote() string` + +GetNote returns the Note field if non-nil, zero value otherwise. + +### GetNoteOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetNoteOk() (*string, bool)` + +GetNoteOk returns a tuple with the Note field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNote + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetNote(v string)` + +SetNote sets Note field to given value. + +### HasNote + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasNote() bool` + +HasNote returns a boolean if a field has been set. + +### GetPriority + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetPriority() string` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetPriorityOk() (*string, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetPriority(v string)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetResponders + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetResponders() []RunConnectorSubactionCreatealertSubActionParamsRespondersInner` + +GetResponders returns the Responders field if non-nil, zero value otherwise. + +### GetRespondersOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetRespondersOk() (*[]RunConnectorSubactionCreatealertSubActionParamsRespondersInner, bool)` + +GetRespondersOk returns a tuple with the Responders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponders + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetResponders(v []RunConnectorSubactionCreatealertSubActionParamsRespondersInner)` + +SetResponders sets Responders field to given value. + +### HasResponders + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasResponders() bool` + +HasResponders returns a boolean if a field has been set. + +### GetSource + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetTags + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUser + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetVisibleTo + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetVisibleTo() []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner` + +GetVisibleTo returns the VisibleTo field if non-nil, zero value otherwise. + +### GetVisibleToOk + +`func (o *RunConnectorSubactionCreatealertSubActionParams) GetVisibleToOk() (*[]RunConnectorSubactionCreatealertSubActionParamsVisibleToInner, bool)` + +GetVisibleToOk returns a tuple with the VisibleTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVisibleTo + +`func (o *RunConnectorSubactionCreatealertSubActionParams) SetVisibleTo(v []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner)` + +SetVisibleTo sets VisibleTo field to given value. + +### HasVisibleTo + +`func (o *RunConnectorSubactionCreatealertSubActionParams) HasVisibleTo() bool` + +HasVisibleTo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParamsRespondersInner.md b/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParamsRespondersInner.md new file mode 100644 index 000000000..1eef38bf9 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParamsRespondersInner.md @@ -0,0 +1,134 @@ +# RunConnectorSubactionCreatealertSubActionParamsRespondersInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The identifier for the entity. | [optional] +**Name** | Pointer to **string** | The name of the entity. | [optional] +**Type** | Pointer to **string** | The type of responders, in this case `escalation`. | [optional] +**Username** | Pointer to **string** | A valid email address for the user. | [optional] + +## Methods + +### NewRunConnectorSubactionCreatealertSubActionParamsRespondersInner + +`func NewRunConnectorSubactionCreatealertSubActionParamsRespondersInner() *RunConnectorSubactionCreatealertSubActionParamsRespondersInner` + +NewRunConnectorSubactionCreatealertSubActionParamsRespondersInner instantiates a new RunConnectorSubactionCreatealertSubActionParamsRespondersInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionCreatealertSubActionParamsRespondersInnerWithDefaults + +`func NewRunConnectorSubactionCreatealertSubActionParamsRespondersInnerWithDefaults() *RunConnectorSubactionCreatealertSubActionParamsRespondersInner` + +NewRunConnectorSubactionCreatealertSubActionParamsRespondersInnerWithDefaults instantiates a new RunConnectorSubactionCreatealertSubActionParamsRespondersInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUsername + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParamsVisibleToInner.md b/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParamsVisibleToInner.md new file mode 100644 index 000000000..b829f3de6 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionCreatealertSubActionParamsVisibleToInner.md @@ -0,0 +1,129 @@ +# RunConnectorSubactionCreatealertSubActionParamsVisibleToInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The identifier for the entity. | [optional] +**Name** | Pointer to **string** | The name of the entity. | [optional] +**Type** | **string** | Valid values are `team` and `user`. | +**Username** | Pointer to **string** | The user name. This property is required only when the `type` is `user`. | [optional] + +## Methods + +### NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInner + +`func NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInner(type_ string, ) *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner` + +NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInner instantiates a new RunConnectorSubactionCreatealertSubActionParamsVisibleToInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInnerWithDefaults + +`func NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInnerWithDefaults() *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner` + +NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInnerWithDefaults instantiates a new RunConnectorSubactionCreatealertSubActionParamsVisibleToInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUsername + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionFieldsbyissuetype.md b/generated/kibanaactions/docs/RunConnectorSubactionFieldsbyissuetype.md new file mode 100644 index 000000000..d511ea0df --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionFieldsbyissuetype.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionFieldsbyissuetype + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionFieldsbyissuetypeSubActionParams**](RunConnectorSubactionFieldsbyissuetypeSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionFieldsbyissuetype + +`func NewRunConnectorSubactionFieldsbyissuetype(subAction string, subActionParams RunConnectorSubactionFieldsbyissuetypeSubActionParams, ) *RunConnectorSubactionFieldsbyissuetype` + +NewRunConnectorSubactionFieldsbyissuetype instantiates a new RunConnectorSubactionFieldsbyissuetype object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionFieldsbyissuetypeWithDefaults + +`func NewRunConnectorSubactionFieldsbyissuetypeWithDefaults() *RunConnectorSubactionFieldsbyissuetype` + +NewRunConnectorSubactionFieldsbyissuetypeWithDefaults instantiates a new RunConnectorSubactionFieldsbyissuetype object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionFieldsbyissuetype) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionFieldsbyissuetype) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionFieldsbyissuetype) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionFieldsbyissuetype) GetSubActionParams() RunConnectorSubactionFieldsbyissuetypeSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionFieldsbyissuetype) GetSubActionParamsOk() (*RunConnectorSubactionFieldsbyissuetypeSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionFieldsbyissuetype) SetSubActionParams(v RunConnectorSubactionFieldsbyissuetypeSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionFieldsbyissuetypeSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionFieldsbyissuetypeSubActionParams.md new file mode 100644 index 000000000..2de07280e --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionFieldsbyissuetypeSubActionParams.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionFieldsbyissuetypeSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The Jira issue type identifier. | + +## Methods + +### NewRunConnectorSubactionFieldsbyissuetypeSubActionParams + +`func NewRunConnectorSubactionFieldsbyissuetypeSubActionParams(id string, ) *RunConnectorSubactionFieldsbyissuetypeSubActionParams` + +NewRunConnectorSubactionFieldsbyissuetypeSubActionParams instantiates a new RunConnectorSubactionFieldsbyissuetypeSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionFieldsbyissuetypeSubActionParamsWithDefaults + +`func NewRunConnectorSubactionFieldsbyissuetypeSubActionParamsWithDefaults() *RunConnectorSubactionFieldsbyissuetypeSubActionParams` + +NewRunConnectorSubactionFieldsbyissuetypeSubActionParamsWithDefaults instantiates a new RunConnectorSubactionFieldsbyissuetypeSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RunConnectorSubactionFieldsbyissuetypeSubActionParams) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RunConnectorSubactionFieldsbyissuetypeSubActionParams) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RunConnectorSubactionFieldsbyissuetypeSubActionParams) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionGetchoices.md b/generated/kibanaactions/docs/RunConnectorSubactionGetchoices.md new file mode 100644 index 000000000..f5a7039ad --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionGetchoices.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionGetchoices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionGetchoicesSubActionParams**](RunConnectorSubactionGetchoicesSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionGetchoices + +`func NewRunConnectorSubactionGetchoices(subAction string, subActionParams RunConnectorSubactionGetchoicesSubActionParams, ) *RunConnectorSubactionGetchoices` + +NewRunConnectorSubactionGetchoices instantiates a new RunConnectorSubactionGetchoices object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionGetchoicesWithDefaults + +`func NewRunConnectorSubactionGetchoicesWithDefaults() *RunConnectorSubactionGetchoices` + +NewRunConnectorSubactionGetchoicesWithDefaults instantiates a new RunConnectorSubactionGetchoices object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionGetchoices) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionGetchoices) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionGetchoices) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionGetchoices) GetSubActionParams() RunConnectorSubactionGetchoicesSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionGetchoices) GetSubActionParamsOk() (*RunConnectorSubactionGetchoicesSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionGetchoices) SetSubActionParams(v RunConnectorSubactionGetchoicesSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionGetchoicesSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionGetchoicesSubActionParams.md new file mode 100644 index 000000000..7b85cf71e --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionGetchoicesSubActionParams.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionGetchoicesSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fields** | **[]string** | An array of fields. | + +## Methods + +### NewRunConnectorSubactionGetchoicesSubActionParams + +`func NewRunConnectorSubactionGetchoicesSubActionParams(fields []string, ) *RunConnectorSubactionGetchoicesSubActionParams` + +NewRunConnectorSubactionGetchoicesSubActionParams instantiates a new RunConnectorSubactionGetchoicesSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionGetchoicesSubActionParamsWithDefaults + +`func NewRunConnectorSubactionGetchoicesSubActionParamsWithDefaults() *RunConnectorSubactionGetchoicesSubActionParams` + +NewRunConnectorSubactionGetchoicesSubActionParamsWithDefaults instantiates a new RunConnectorSubactionGetchoicesSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFields + +`func (o *RunConnectorSubactionGetchoicesSubActionParams) GetFields() []string` + +GetFields returns the Fields field if non-nil, zero value otherwise. + +### GetFieldsOk + +`func (o *RunConnectorSubactionGetchoicesSubActionParams) GetFieldsOk() (*[]string, bool)` + +GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFields + +`func (o *RunConnectorSubactionGetchoicesSubActionParams) SetFields(v []string)` + +SetFields sets Fields field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionGetfields.md b/generated/kibanaactions/docs/RunConnectorSubactionGetfields.md new file mode 100644 index 000000000..06f830c97 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionGetfields.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionGetfields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | + +## Methods + +### NewRunConnectorSubactionGetfields + +`func NewRunConnectorSubactionGetfields(subAction string, ) *RunConnectorSubactionGetfields` + +NewRunConnectorSubactionGetfields instantiates a new RunConnectorSubactionGetfields object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionGetfieldsWithDefaults + +`func NewRunConnectorSubactionGetfieldsWithDefaults() *RunConnectorSubactionGetfields` + +NewRunConnectorSubactionGetfieldsWithDefaults instantiates a new RunConnectorSubactionGetfields object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionGetfields) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionGetfields) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionGetfields) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionGetincident.md b/generated/kibanaactions/docs/RunConnectorSubactionGetincident.md new file mode 100644 index 000000000..1a0822d89 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionGetincident.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionGetincident + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionGetincidentSubActionParams**](RunConnectorSubactionGetincidentSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionGetincident + +`func NewRunConnectorSubactionGetincident(subAction string, subActionParams RunConnectorSubactionGetincidentSubActionParams, ) *RunConnectorSubactionGetincident` + +NewRunConnectorSubactionGetincident instantiates a new RunConnectorSubactionGetincident object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionGetincidentWithDefaults + +`func NewRunConnectorSubactionGetincidentWithDefaults() *RunConnectorSubactionGetincident` + +NewRunConnectorSubactionGetincidentWithDefaults instantiates a new RunConnectorSubactionGetincident object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionGetincident) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionGetincident) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionGetincident) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionGetincident) GetSubActionParams() RunConnectorSubactionGetincidentSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionGetincident) GetSubActionParamsOk() (*RunConnectorSubactionGetincidentSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionGetincident) SetSubActionParams(v RunConnectorSubactionGetincidentSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionGetincidentSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionGetincidentSubActionParams.md new file mode 100644 index 000000000..b7988fad3 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionGetincidentSubActionParams.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionGetincidentSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalId** | **string** | The Jira, ServiceNow ITSM, or ServiceNow SecOps issue identifier. | + +## Methods + +### NewRunConnectorSubactionGetincidentSubActionParams + +`func NewRunConnectorSubactionGetincidentSubActionParams(externalId string, ) *RunConnectorSubactionGetincidentSubActionParams` + +NewRunConnectorSubactionGetincidentSubActionParams instantiates a new RunConnectorSubactionGetincidentSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionGetincidentSubActionParamsWithDefaults + +`func NewRunConnectorSubactionGetincidentSubActionParamsWithDefaults() *RunConnectorSubactionGetincidentSubActionParams` + +NewRunConnectorSubactionGetincidentSubActionParamsWithDefaults instantiates a new RunConnectorSubactionGetincidentSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExternalId + +`func (o *RunConnectorSubactionGetincidentSubActionParams) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *RunConnectorSubactionGetincidentSubActionParams) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *RunConnectorSubactionGetincidentSubActionParams) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionIssue.md b/generated/kibanaactions/docs/RunConnectorSubactionIssue.md new file mode 100644 index 000000000..6111a7305 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionIssue.md @@ -0,0 +1,77 @@ +# RunConnectorSubactionIssue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | Pointer to [**RunConnectorSubactionIssueSubActionParams**](RunConnectorSubactionIssueSubActionParams.md) | | [optional] + +## Methods + +### NewRunConnectorSubactionIssue + +`func NewRunConnectorSubactionIssue(subAction string, ) *RunConnectorSubactionIssue` + +NewRunConnectorSubactionIssue instantiates a new RunConnectorSubactionIssue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionIssueWithDefaults + +`func NewRunConnectorSubactionIssueWithDefaults() *RunConnectorSubactionIssue` + +NewRunConnectorSubactionIssueWithDefaults instantiates a new RunConnectorSubactionIssue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionIssue) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionIssue) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionIssue) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionIssue) GetSubActionParams() RunConnectorSubactionIssueSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionIssue) GetSubActionParamsOk() (*RunConnectorSubactionIssueSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionIssue) SetSubActionParams(v RunConnectorSubactionIssueSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + +### HasSubActionParams + +`func (o *RunConnectorSubactionIssue) HasSubActionParams() bool` + +HasSubActionParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionIssueSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionIssueSubActionParams.md new file mode 100644 index 000000000..43d16c388 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionIssueSubActionParams.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionIssueSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The Jira issue identifier. | + +## Methods + +### NewRunConnectorSubactionIssueSubActionParams + +`func NewRunConnectorSubactionIssueSubActionParams(id string, ) *RunConnectorSubactionIssueSubActionParams` + +NewRunConnectorSubactionIssueSubActionParams instantiates a new RunConnectorSubactionIssueSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionIssueSubActionParamsWithDefaults + +`func NewRunConnectorSubactionIssueSubActionParamsWithDefaults() *RunConnectorSubactionIssueSubActionParams` + +NewRunConnectorSubactionIssueSubActionParamsWithDefaults instantiates a new RunConnectorSubactionIssueSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RunConnectorSubactionIssueSubActionParams) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RunConnectorSubactionIssueSubActionParams) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RunConnectorSubactionIssueSubActionParams) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionIssues.md b/generated/kibanaactions/docs/RunConnectorSubactionIssues.md new file mode 100644 index 000000000..09eb8b903 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionIssues.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionIssues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionIssuesSubActionParams**](RunConnectorSubactionIssuesSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionIssues + +`func NewRunConnectorSubactionIssues(subAction string, subActionParams RunConnectorSubactionIssuesSubActionParams, ) *RunConnectorSubactionIssues` + +NewRunConnectorSubactionIssues instantiates a new RunConnectorSubactionIssues object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionIssuesWithDefaults + +`func NewRunConnectorSubactionIssuesWithDefaults() *RunConnectorSubactionIssues` + +NewRunConnectorSubactionIssuesWithDefaults instantiates a new RunConnectorSubactionIssues object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionIssues) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionIssues) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionIssues) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionIssues) GetSubActionParams() RunConnectorSubactionIssuesSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionIssues) GetSubActionParamsOk() (*RunConnectorSubactionIssuesSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionIssues) SetSubActionParams(v RunConnectorSubactionIssuesSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionIssuesSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionIssuesSubActionParams.md new file mode 100644 index 000000000..26e087deb --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionIssuesSubActionParams.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionIssuesSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | The title of the Jira issue. | + +## Methods + +### NewRunConnectorSubactionIssuesSubActionParams + +`func NewRunConnectorSubactionIssuesSubActionParams(title string, ) *RunConnectorSubactionIssuesSubActionParams` + +NewRunConnectorSubactionIssuesSubActionParams instantiates a new RunConnectorSubactionIssuesSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionIssuesSubActionParamsWithDefaults + +`func NewRunConnectorSubactionIssuesSubActionParamsWithDefaults() *RunConnectorSubactionIssuesSubActionParams` + +NewRunConnectorSubactionIssuesSubActionParamsWithDefaults instantiates a new RunConnectorSubactionIssuesSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTitle + +`func (o *RunConnectorSubactionIssuesSubActionParams) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *RunConnectorSubactionIssuesSubActionParams) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *RunConnectorSubactionIssuesSubActionParams) SetTitle(v string)` + +SetTitle sets Title field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionIssuetypes.md b/generated/kibanaactions/docs/RunConnectorSubactionIssuetypes.md new file mode 100644 index 000000000..6c8d0ef9a --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionIssuetypes.md @@ -0,0 +1,51 @@ +# RunConnectorSubactionIssuetypes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | + +## Methods + +### NewRunConnectorSubactionIssuetypes + +`func NewRunConnectorSubactionIssuetypes(subAction string, ) *RunConnectorSubactionIssuetypes` + +NewRunConnectorSubactionIssuetypes instantiates a new RunConnectorSubactionIssuetypes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionIssuetypesWithDefaults + +`func NewRunConnectorSubactionIssuetypesWithDefaults() *RunConnectorSubactionIssuetypes` + +NewRunConnectorSubactionIssuetypesWithDefaults instantiates a new RunConnectorSubactionIssuetypes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionIssuetypes) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionIssuetypes) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionIssuetypes) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoservice.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoservice.md new file mode 100644 index 000000000..fcf2c9055 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoservice.md @@ -0,0 +1,72 @@ +# RunConnectorSubactionPushtoservice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionPushtoserviceSubActionParams**](RunConnectorSubactionPushtoserviceSubActionParams.md) | | + +## Methods + +### NewRunConnectorSubactionPushtoservice + +`func NewRunConnectorSubactionPushtoservice(subAction string, subActionParams RunConnectorSubactionPushtoserviceSubActionParams, ) *RunConnectorSubactionPushtoservice` + +NewRunConnectorSubactionPushtoservice instantiates a new RunConnectorSubactionPushtoservice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceWithDefaults + +`func NewRunConnectorSubactionPushtoserviceWithDefaults() *RunConnectorSubactionPushtoservice` + +NewRunConnectorSubactionPushtoserviceWithDefaults instantiates a new RunConnectorSubactionPushtoservice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *RunConnectorSubactionPushtoservice) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *RunConnectorSubactionPushtoservice) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *RunConnectorSubactionPushtoservice) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *RunConnectorSubactionPushtoservice) GetSubActionParams() RunConnectorSubactionPushtoserviceSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *RunConnectorSubactionPushtoservice) GetSubActionParamsOk() (*RunConnectorSubactionPushtoserviceSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *RunConnectorSubactionPushtoservice) SetSubActionParams(v RunConnectorSubactionPushtoserviceSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParams.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParams.md new file mode 100644 index 000000000..a1d5b0e62 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParams.md @@ -0,0 +1,82 @@ +# RunConnectorSubactionPushtoserviceSubActionParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comments** | Pointer to [**[]RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner**](RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner.md) | Additional information that is sent to Jira, ServiceNow ITSM, ServiceNow SecOps, or Swimlane. | [optional] +**Incident** | Pointer to [**RunConnectorSubactionPushtoserviceSubActionParamsIncident**](RunConnectorSubactionPushtoserviceSubActionParamsIncident.md) | | [optional] + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParams + +`func NewRunConnectorSubactionPushtoserviceSubActionParams() *RunConnectorSubactionPushtoserviceSubActionParams` + +NewRunConnectorSubactionPushtoserviceSubActionParams instantiates a new RunConnectorSubactionPushtoserviceSubActionParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParams` + +NewRunConnectorSubactionPushtoserviceSubActionParamsWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComments + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetComments() []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetCommentsOk() (*[]RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) SetComments(v []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetIncident + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetIncident() RunConnectorSubactionPushtoserviceSubActionParamsIncident` + +GetIncident returns the Incident field if non-nil, zero value otherwise. + +### GetIncidentOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetIncidentOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncident, bool)` + +GetIncidentOk returns a tuple with the Incident field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncident + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) SetIncident(v RunConnectorSubactionPushtoserviceSubActionParamsIncident)` + +SetIncident sets Incident field to given value. + +### HasIncident + +`func (o *RunConnectorSubactionPushtoserviceSubActionParams) HasIncident() bool` + +HasIncident returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner.md new file mode 100644 index 000000000..8721338d1 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner.md @@ -0,0 +1,82 @@ +# RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | Pointer to **string** | A comment related to the incident. For example, describe how to troubleshoot the issue. | [optional] +**CommentId** | Pointer to **int32** | A unique identifier for the comment. | [optional] + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner() *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner` + +NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInnerWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInnerWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner` + +NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInnerWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComment + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCommentId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetCommentId() int32` + +GetCommentId returns the CommentId field if non-nil, zero value otherwise. + +### GetCommentIdOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetCommentIdOk() (*int32, bool)` + +GetCommentIdOk returns a tuple with the CommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) SetCommentId(v int32)` + +SetCommentId sets CommentId field to given value. + +### HasCommentId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) HasCommentId() bool` + +HasCommentId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncident.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncident.md new file mode 100644 index 000000000..7d6b6927a --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncident.md @@ -0,0 +1,654 @@ +# RunConnectorSubactionPushtoserviceSubActionParamsIncident + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **string** | The alert identifier for Swimlane connectors. | [optional] +**CaseId** | Pointer to **string** | The case identifier for the incident for Swimlane connectors. | [optional] +**CaseName** | Pointer to **string** | The case name for the incident for Swimlane connectors. | [optional] +**Category** | Pointer to **string** | The category of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. | [optional] +**CorrelationDisplay** | Pointer to **string** | A descriptive label of the alert for correlation purposes for ServiceNow ITSM and ServiceNow SecOps connectors. | [optional] +**CorrelationId** | Pointer to **string** | The correlation identifier for the security incident for ServiceNow ITSM and ServiveNow SecOps connectors. Connectors using the same correlation ID are associated with the same ServiceNow incident. This value determines whether a new ServiceNow incident is created or an existing one is updated. Modifying this value is optional; if not modified, the rule ID and alert ID are combined as `{{ruleID}}:{{alert ID}}` to form the correlation ID value in ServiceNow. The maximum character length for this value is 100 characters. NOTE: Using the default configuration of `{{ruleID}}:{{alert ID}}` ensures that ServiceNow creates a separate incident record for every generated alert that uses a unique alert ID. If the rule generates multiple alerts that use the same alert IDs, ServiceNow creates and continually updates a single incident record for the alert. | [optional] +**Description** | Pointer to **string** | The description of the incident for Jira, ServiceNow ITSM, ServiceNow SecOps, and Swimlane connectors. | [optional] +**DestIp** | Pointer to [**RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp**](RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp.md) | | [optional] +**ExternalId** | Pointer to **string** | The Jira, ServiceNow ITSM, or ServiceNow SecOps issue identifier. If present, the incident is updated. Otherwise, a new incident is created. | [optional] +**Impact** | Pointer to **string** | The impact of the incident for ServiceNow ITSM connectors. | [optional] +**IssueType** | Pointer to **int32** | The type of incident for Jira connectors. For example, 10006. To obtain the list of valid values, set `subAction` to `issueTypes`. | [optional] +**Labels** | Pointer to **[]string** | The labels for the incident for Jira connectors. NOTE: Labels cannot contain spaces. | [optional] +**MalwareHash** | Pointer to [**RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash**](RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash.md) | | [optional] +**MalwareUrl** | Pointer to [**RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl**](RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl.md) | | [optional] +**Parent** | Pointer to **string** | The ID or key of the parent issue for Jira connectors. Applies only to `Sub-task` types of issues. | [optional] +**Priority** | Pointer to **string** | The priority of the incident in Jira and ServiceNow SecOps connectors. | [optional] +**RuleName** | Pointer to **string** | The rule name for Swimlane connectors. | [optional] +**Severity** | Pointer to **string** | The severity of the incident for ServiceNow ITSM and Swimlane connectors. | [optional] +**ShortDescription** | Pointer to **string** | A short description of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. It is used for searching the contents of the knowledge base. | [optional] +**SourceIp** | Pointer to [**RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp**](RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp.md) | | [optional] +**Subcategory** | Pointer to **string** | The subcategory of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. | [optional] +**Summary** | Pointer to **string** | A summary of the incident for Jira connectors. | [optional] +**Title** | Pointer to **string** | A title for the incident for Jira connectors. It is used for searching the contents of the knowledge base. | [optional] +**Urgency** | Pointer to **string** | The urgency of the incident for ServiceNow ITSM connectors. | [optional] + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncident + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncident() *RunConnectorSubactionPushtoserviceSubActionParamsIncident` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncident instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncident object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsIncident` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncident object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetAlertId() string` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetAlertIdOk() (*string, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetAlertId(v string)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetCaseId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseId() string` + +GetCaseId returns the CaseId field if non-nil, zero value otherwise. + +### GetCaseIdOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseIdOk() (*string, bool)` + +GetCaseIdOk returns a tuple with the CaseId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCaseId(v string)` + +SetCaseId sets CaseId field to given value. + +### HasCaseId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCaseId() bool` + +HasCaseId returns a boolean if a field has been set. + +### GetCaseName + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseName() string` + +GetCaseName returns the CaseName field if non-nil, zero value otherwise. + +### GetCaseNameOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseNameOk() (*string, bool)` + +GetCaseNameOk returns a tuple with the CaseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseName + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCaseName(v string)` + +SetCaseName sets CaseName field to given value. + +### HasCaseName + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCaseName() bool` + +HasCaseName returns a boolean if a field has been set. + +### GetCategory + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetCorrelationDisplay + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationDisplay() string` + +GetCorrelationDisplay returns the CorrelationDisplay field if non-nil, zero value otherwise. + +### GetCorrelationDisplayOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationDisplayOk() (*string, bool)` + +GetCorrelationDisplayOk returns a tuple with the CorrelationDisplay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelationDisplay + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCorrelationDisplay(v string)` + +SetCorrelationDisplay sets CorrelationDisplay field to given value. + +### HasCorrelationDisplay + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCorrelationDisplay() bool` + +HasCorrelationDisplay returns a boolean if a field has been set. + +### GetCorrelationId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationId() string` + +GetCorrelationId returns the CorrelationId field if non-nil, zero value otherwise. + +### GetCorrelationIdOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationIdOk() (*string, bool)` + +GetCorrelationIdOk returns a tuple with the CorrelationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelationId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCorrelationId(v string)` + +SetCorrelationId sets CorrelationId field to given value. + +### HasCorrelationId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCorrelationId() bool` + +HasCorrelationId returns a boolean if a field has been set. + +### GetDescription + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDestIp + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDestIp() RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp` + +GetDestIp returns the DestIp field if non-nil, zero value otherwise. + +### GetDestIpOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDestIpOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp, bool)` + +GetDestIpOk returns a tuple with the DestIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestIp + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetDestIp(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp)` + +SetDestIp sets DestIp field to given value. + +### HasDestIp + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasDestIp() bool` + +HasDestIp returns a boolean if a field has been set. + +### GetExternalId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetImpact + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetImpact() string` + +GetImpact returns the Impact field if non-nil, zero value otherwise. + +### GetImpactOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetImpactOk() (*string, bool)` + +GetImpactOk returns a tuple with the Impact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImpact + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetImpact(v string)` + +SetImpact sets Impact field to given value. + +### HasImpact + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasImpact() bool` + +HasImpact returns a boolean if a field has been set. + +### GetIssueType + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetIssueType() int32` + +GetIssueType returns the IssueType field if non-nil, zero value otherwise. + +### GetIssueTypeOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetIssueTypeOk() (*int32, bool)` + +GetIssueTypeOk returns a tuple with the IssueType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssueType + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetIssueType(v int32)` + +SetIssueType sets IssueType field to given value. + +### HasIssueType + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasIssueType() bool` + +HasIssueType returns a boolean if a field has been set. + +### GetLabels + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetMalwareHash + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareHash() RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash` + +GetMalwareHash returns the MalwareHash field if non-nil, zero value otherwise. + +### GetMalwareHashOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareHashOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash, bool)` + +GetMalwareHashOk returns a tuple with the MalwareHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMalwareHash + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetMalwareHash(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash)` + +SetMalwareHash sets MalwareHash field to given value. + +### HasMalwareHash + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasMalwareHash() bool` + +HasMalwareHash returns a boolean if a field has been set. + +### GetMalwareUrl + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareUrl() RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl` + +GetMalwareUrl returns the MalwareUrl field if non-nil, zero value otherwise. + +### GetMalwareUrlOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareUrlOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl, bool)` + +GetMalwareUrlOk returns a tuple with the MalwareUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMalwareUrl + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetMalwareUrl(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl)` + +SetMalwareUrl sets MalwareUrl field to given value. + +### HasMalwareUrl + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasMalwareUrl() bool` + +HasMalwareUrl returns a boolean if a field has been set. + +### GetParent + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetParent() string` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetParentOk() (*string, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetParent(v string)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### GetPriority + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetPriority() string` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetPriorityOk() (*string, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetPriority(v string)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetRuleName + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetRuleName() string` + +GetRuleName returns the RuleName field if non-nil, zero value otherwise. + +### GetRuleNameOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetRuleNameOk() (*string, bool)` + +GetRuleNameOk returns a tuple with the RuleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleName + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetRuleName(v string)` + +SetRuleName sets RuleName field to given value. + +### HasRuleName + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasRuleName() bool` + +HasRuleName returns a boolean if a field has been set. + +### GetSeverity + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSeverity() string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSeverityOk() (*string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSeverity(v string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### GetShortDescription + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetShortDescription() string` + +GetShortDescription returns the ShortDescription field if non-nil, zero value otherwise. + +### GetShortDescriptionOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetShortDescriptionOk() (*string, bool)` + +GetShortDescriptionOk returns a tuple with the ShortDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortDescription + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetShortDescription(v string)` + +SetShortDescription sets ShortDescription field to given value. + +### HasShortDescription + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasShortDescription() bool` + +HasShortDescription returns a boolean if a field has been set. + +### GetSourceIp + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSourceIp() RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp` + +GetSourceIp returns the SourceIp field if non-nil, zero value otherwise. + +### GetSourceIpOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSourceIpOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp, bool)` + +GetSourceIpOk returns a tuple with the SourceIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceIp + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSourceIp(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp)` + +SetSourceIp sets SourceIp field to given value. + +### HasSourceIp + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSourceIp() bool` + +HasSourceIp returns a boolean if a field has been set. + +### GetSubcategory + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSubcategory() string` + +GetSubcategory returns the Subcategory field if non-nil, zero value otherwise. + +### GetSubcategoryOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSubcategoryOk() (*string, bool)` + +GetSubcategoryOk returns a tuple with the Subcategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubcategory + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSubcategory(v string)` + +SetSubcategory sets Subcategory field to given value. + +### HasSubcategory + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSubcategory() bool` + +HasSubcategory returns a boolean if a field has been set. + +### GetSummary + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetTitle + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUrgency + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetUrgency() string` + +GetUrgency returns the Urgency field if non-nil, zero value otherwise. + +### GetUrgencyOk + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetUrgencyOk() (*string, bool)` + +GetUrgencyOk returns a tuple with the Urgency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrgency + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetUrgency(v string)` + +SetUrgency sets Urgency field to given value. + +### HasUrgency + +`func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasUrgency() bool` + +HasUrgency returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp.md new file mode 100644 index 000000000..50f6e1317 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp.md @@ -0,0 +1,30 @@ +# RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIpWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIpWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIpWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash.md new file mode 100644 index 000000000..af1d7ccce --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash.md @@ -0,0 +1,30 @@ +# RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHashWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHashWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHashWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl.md new file mode 100644 index 000000000..a44bf61a4 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl.md @@ -0,0 +1,30 @@ +# RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrlWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrlWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrlWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp.md b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp.md new file mode 100644 index 000000000..535ad6189 --- /dev/null +++ b/generated/kibanaactions/docs/RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp.md @@ -0,0 +1,30 @@ +# RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIpWithDefaults + +`func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIpWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp` + +NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIpWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SecretsPropertiesCasesWebhook.md b/generated/kibanaactions/docs/SecretsPropertiesCasesWebhook.md new file mode 100644 index 000000000..8ff0bdac4 --- /dev/null +++ b/generated/kibanaactions/docs/SecretsPropertiesCasesWebhook.md @@ -0,0 +1,82 @@ +# SecretsPropertiesCasesWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Password** | Pointer to **string** | The password for HTTP basic authentication. If `hasAuth` is set to `true`, this property is required. | [optional] +**User** | Pointer to **string** | The username for HTTP basic authentication. If `hasAuth` is set to `true`, this property is required. | [optional] + +## Methods + +### NewSecretsPropertiesCasesWebhook + +`func NewSecretsPropertiesCasesWebhook() *SecretsPropertiesCasesWebhook` + +NewSecretsPropertiesCasesWebhook instantiates a new SecretsPropertiesCasesWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretsPropertiesCasesWebhookWithDefaults + +`func NewSecretsPropertiesCasesWebhookWithDefaults() *SecretsPropertiesCasesWebhook` + +NewSecretsPropertiesCasesWebhookWithDefaults instantiates a new SecretsPropertiesCasesWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPassword + +`func (o *SecretsPropertiesCasesWebhook) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SecretsPropertiesCasesWebhook) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SecretsPropertiesCasesWebhook) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *SecretsPropertiesCasesWebhook) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUser + +`func (o *SecretsPropertiesCasesWebhook) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *SecretsPropertiesCasesWebhook) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *SecretsPropertiesCasesWebhook) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *SecretsPropertiesCasesWebhook) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SecretsPropertiesJira.md b/generated/kibanaactions/docs/SecretsPropertiesJira.md new file mode 100644 index 000000000..ae3ab197d --- /dev/null +++ b/generated/kibanaactions/docs/SecretsPropertiesJira.md @@ -0,0 +1,72 @@ +# SecretsPropertiesJira + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiToken** | **string** | The Jira API authentication token for HTTP basic authentication. | +**Email** | **string** | The account email for HTTP Basic authentication. | + +## Methods + +### NewSecretsPropertiesJira + +`func NewSecretsPropertiesJira(apiToken string, email string, ) *SecretsPropertiesJira` + +NewSecretsPropertiesJira instantiates a new SecretsPropertiesJira object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretsPropertiesJiraWithDefaults + +`func NewSecretsPropertiesJiraWithDefaults() *SecretsPropertiesJira` + +NewSecretsPropertiesJiraWithDefaults instantiates a new SecretsPropertiesJira object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiToken + +`func (o *SecretsPropertiesJira) GetApiToken() string` + +GetApiToken returns the ApiToken field if non-nil, zero value otherwise. + +### GetApiTokenOk + +`func (o *SecretsPropertiesJira) GetApiTokenOk() (*string, bool)` + +GetApiTokenOk returns a tuple with the ApiToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiToken + +`func (o *SecretsPropertiesJira) SetApiToken(v string)` + +SetApiToken sets ApiToken field to given value. + + +### GetEmail + +`func (o *SecretsPropertiesJira) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *SecretsPropertiesJira) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *SecretsPropertiesJira) SetEmail(v string)` + +SetEmail sets Email field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SecretsPropertiesOpsgenie.md b/generated/kibanaactions/docs/SecretsPropertiesOpsgenie.md new file mode 100644 index 000000000..a4116129f --- /dev/null +++ b/generated/kibanaactions/docs/SecretsPropertiesOpsgenie.md @@ -0,0 +1,51 @@ +# SecretsPropertiesOpsgenie + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | The Opsgenie API authentication key for HTTP Basic authentication. | + +## Methods + +### NewSecretsPropertiesOpsgenie + +`func NewSecretsPropertiesOpsgenie(apiKey string, ) *SecretsPropertiesOpsgenie` + +NewSecretsPropertiesOpsgenie instantiates a new SecretsPropertiesOpsgenie object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretsPropertiesOpsgenieWithDefaults + +`func NewSecretsPropertiesOpsgenieWithDefaults() *SecretsPropertiesOpsgenie` + +NewSecretsPropertiesOpsgenieWithDefaults instantiates a new SecretsPropertiesOpsgenie object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiKey + +`func (o *SecretsPropertiesOpsgenie) GetApiKey() string` + +GetApiKey returns the ApiKey field if non-nil, zero value otherwise. + +### GetApiKeyOk + +`func (o *SecretsPropertiesOpsgenie) GetApiKeyOk() (*string, bool)` + +GetApiKeyOk returns a tuple with the ApiKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKey + +`func (o *SecretsPropertiesOpsgenie) SetApiKey(v string)` + +SetApiKey sets ApiKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SecretsPropertiesResilient.md b/generated/kibanaactions/docs/SecretsPropertiesResilient.md new file mode 100644 index 000000000..d8bf1ba85 --- /dev/null +++ b/generated/kibanaactions/docs/SecretsPropertiesResilient.md @@ -0,0 +1,72 @@ +# SecretsPropertiesResilient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKeyId** | **string** | The authentication key ID for HTTP Basic authentication. | +**ApiKeySecret** | **string** | The authentication key secret for HTTP Basic authentication. | + +## Methods + +### NewSecretsPropertiesResilient + +`func NewSecretsPropertiesResilient(apiKeyId string, apiKeySecret string, ) *SecretsPropertiesResilient` + +NewSecretsPropertiesResilient instantiates a new SecretsPropertiesResilient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretsPropertiesResilientWithDefaults + +`func NewSecretsPropertiesResilientWithDefaults() *SecretsPropertiesResilient` + +NewSecretsPropertiesResilientWithDefaults instantiates a new SecretsPropertiesResilient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiKeyId + +`func (o *SecretsPropertiesResilient) GetApiKeyId() string` + +GetApiKeyId returns the ApiKeyId field if non-nil, zero value otherwise. + +### GetApiKeyIdOk + +`func (o *SecretsPropertiesResilient) GetApiKeyIdOk() (*string, bool)` + +GetApiKeyIdOk returns a tuple with the ApiKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKeyId + +`func (o *SecretsPropertiesResilient) SetApiKeyId(v string)` + +SetApiKeyId sets ApiKeyId field to given value. + + +### GetApiKeySecret + +`func (o *SecretsPropertiesResilient) GetApiKeySecret() string` + +GetApiKeySecret returns the ApiKeySecret field if non-nil, zero value otherwise. + +### GetApiKeySecretOk + +`func (o *SecretsPropertiesResilient) GetApiKeySecretOk() (*string, bool)` + +GetApiKeySecretOk returns a tuple with the ApiKeySecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKeySecret + +`func (o *SecretsPropertiesResilient) SetApiKeySecret(v string)` + +SetApiKeySecret sets ApiKeySecret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SecretsPropertiesServicenow.md b/generated/kibanaactions/docs/SecretsPropertiesServicenow.md new file mode 100644 index 000000000..62278c963 --- /dev/null +++ b/generated/kibanaactions/docs/SecretsPropertiesServicenow.md @@ -0,0 +1,160 @@ +# SecretsPropertiesServicenow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientSecret** | Pointer to **string** | The client secret assigned to your OAuth application. This property is required when `isOAuth` is `true`. | [optional] +**Password** | Pointer to **string** | The password for HTTP basic authentication. This property is required when `isOAuth` is `false`. | [optional] +**PrivateKey** | Pointer to **string** | The RSA private key that you created for use in ServiceNow. This property is required when `isOAuth` is `true`. | [optional] +**PrivateKeyPassword** | Pointer to **string** | The password for the RSA private key. This property is required when `isOAuth` is `true` and you set a password on your private key. | [optional] +**Username** | Pointer to **string** | The username for HTTP basic authentication. This property is required when `isOAuth` is `false`. | [optional] + +## Methods + +### NewSecretsPropertiesServicenow + +`func NewSecretsPropertiesServicenow() *SecretsPropertiesServicenow` + +NewSecretsPropertiesServicenow instantiates a new SecretsPropertiesServicenow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretsPropertiesServicenowWithDefaults + +`func NewSecretsPropertiesServicenowWithDefaults() *SecretsPropertiesServicenow` + +NewSecretsPropertiesServicenowWithDefaults instantiates a new SecretsPropertiesServicenow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientSecret + +`func (o *SecretsPropertiesServicenow) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *SecretsPropertiesServicenow) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *SecretsPropertiesServicenow) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *SecretsPropertiesServicenow) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetPassword + +`func (o *SecretsPropertiesServicenow) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SecretsPropertiesServicenow) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SecretsPropertiesServicenow) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *SecretsPropertiesServicenow) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetPrivateKey + +`func (o *SecretsPropertiesServicenow) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *SecretsPropertiesServicenow) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *SecretsPropertiesServicenow) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *SecretsPropertiesServicenow) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### GetPrivateKeyPassword + +`func (o *SecretsPropertiesServicenow) GetPrivateKeyPassword() string` + +GetPrivateKeyPassword returns the PrivateKeyPassword field if non-nil, zero value otherwise. + +### GetPrivateKeyPasswordOk + +`func (o *SecretsPropertiesServicenow) GetPrivateKeyPasswordOk() (*string, bool)` + +GetPrivateKeyPasswordOk returns a tuple with the PrivateKeyPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyPassword + +`func (o *SecretsPropertiesServicenow) SetPrivateKeyPassword(v string)` + +SetPrivateKeyPassword sets PrivateKeyPassword field to given value. + +### HasPrivateKeyPassword + +`func (o *SecretsPropertiesServicenow) HasPrivateKeyPassword() bool` + +HasPrivateKeyPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *SecretsPropertiesServicenow) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SecretsPropertiesServicenow) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SecretsPropertiesServicenow) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SecretsPropertiesServicenow) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SecretsPropertiesSwimlane.md b/generated/kibanaactions/docs/SecretsPropertiesSwimlane.md new file mode 100644 index 000000000..12881fb69 --- /dev/null +++ b/generated/kibanaactions/docs/SecretsPropertiesSwimlane.md @@ -0,0 +1,56 @@ +# SecretsPropertiesSwimlane + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiToken** | Pointer to **string** | Swimlane API authentication token. | [optional] + +## Methods + +### NewSecretsPropertiesSwimlane + +`func NewSecretsPropertiesSwimlane() *SecretsPropertiesSwimlane` + +NewSecretsPropertiesSwimlane instantiates a new SecretsPropertiesSwimlane object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretsPropertiesSwimlaneWithDefaults + +`func NewSecretsPropertiesSwimlaneWithDefaults() *SecretsPropertiesSwimlane` + +NewSecretsPropertiesSwimlaneWithDefaults instantiates a new SecretsPropertiesSwimlane object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiToken + +`func (o *SecretsPropertiesSwimlane) GetApiToken() string` + +GetApiToken returns the ApiToken field if non-nil, zero value otherwise. + +### GetApiTokenOk + +`func (o *SecretsPropertiesSwimlane) GetApiTokenOk() (*string, bool)` + +GetApiTokenOk returns a tuple with the ApiToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiToken + +`func (o *SecretsPropertiesSwimlane) SetApiToken(v string)` + +SetApiToken sets ApiToken field to given value. + +### HasApiToken + +`func (o *SecretsPropertiesSwimlane) HasApiToken() bool` + +HasApiToken returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SeverityMapping.md b/generated/kibanaactions/docs/SeverityMapping.md new file mode 100644 index 000000000..9d057b2f9 --- /dev/null +++ b/generated/kibanaactions/docs/SeverityMapping.md @@ -0,0 +1,114 @@ +# SeverityMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The type of field in Swimlane. | +**Id** | **string** | The identifier for the field in Swimlane. | +**Key** | **string** | The key for the field in Swimlane. | +**Name** | **string** | The name of the field in Swimlane. | + +## Methods + +### NewSeverityMapping + +`func NewSeverityMapping(fieldType string, id string, key string, name string, ) *SeverityMapping` + +NewSeverityMapping instantiates a new SeverityMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSeverityMappingWithDefaults + +`func NewSeverityMappingWithDefaults() *SeverityMapping` + +NewSeverityMappingWithDefaults instantiates a new SeverityMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldType + +`func (o *SeverityMapping) GetFieldType() string` + +GetFieldType returns the FieldType field if non-nil, zero value otherwise. + +### GetFieldTypeOk + +`func (o *SeverityMapping) GetFieldTypeOk() (*string, bool)` + +GetFieldTypeOk returns a tuple with the FieldType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldType + +`func (o *SeverityMapping) SetFieldType(v string)` + +SetFieldType sets FieldType field to given value. + + +### GetId + +`func (o *SeverityMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SeverityMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SeverityMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *SeverityMapping) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SeverityMapping) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SeverityMapping) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *SeverityMapping) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SeverityMapping) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SeverityMapping) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/SubactionParameters.md b/generated/kibanaactions/docs/SubactionParameters.md new file mode 100644 index 000000000..2c2327e89 --- /dev/null +++ b/generated/kibanaactions/docs/SubactionParameters.md @@ -0,0 +1,72 @@ +# SubactionParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubAction** | **string** | The action to test. | +**SubActionParams** | [**RunConnectorSubactionPushtoserviceSubActionParams**](RunConnectorSubactionPushtoserviceSubActionParams.md) | | + +## Methods + +### NewSubactionParameters + +`func NewSubactionParameters(subAction string, subActionParams RunConnectorSubactionPushtoserviceSubActionParams, ) *SubactionParameters` + +NewSubactionParameters instantiates a new SubactionParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubactionParametersWithDefaults + +`func NewSubactionParametersWithDefaults() *SubactionParameters` + +NewSubactionParametersWithDefaults instantiates a new SubactionParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubAction + +`func (o *SubactionParameters) GetSubAction() string` + +GetSubAction returns the SubAction field if non-nil, zero value otherwise. + +### GetSubActionOk + +`func (o *SubactionParameters) GetSubActionOk() (*string, bool)` + +GetSubActionOk returns a tuple with the SubAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubAction + +`func (o *SubactionParameters) SetSubAction(v string)` + +SetSubAction sets SubAction field to given value. + + +### GetSubActionParams + +`func (o *SubactionParameters) GetSubActionParams() RunConnectorSubactionPushtoserviceSubActionParams` + +GetSubActionParams returns the SubActionParams field if non-nil, zero value otherwise. + +### GetSubActionParamsOk + +`func (o *SubactionParameters) GetSubActionParamsOk() (*RunConnectorSubactionPushtoserviceSubActionParams, bool)` + +GetSubActionParamsOk returns a tuple with the SubActionParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubActionParams + +`func (o *SubactionParameters) SetSubActionParams(v RunConnectorSubactionPushtoserviceSubActionParams)` + +SetSubActionParams sets SubActionParams field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnector400Response.md b/generated/kibanaactions/docs/UpdateConnector400Response.md new file mode 100644 index 000000000..fd9c67d90 --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnector400Response.md @@ -0,0 +1,108 @@ +# UpdateConnector400Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**StatusCode** | Pointer to **int32** | | [optional] + +## Methods + +### NewUpdateConnector400Response + +`func NewUpdateConnector400Response() *UpdateConnector400Response` + +NewUpdateConnector400Response instantiates a new UpdateConnector400Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnector400ResponseWithDefaults + +`func NewUpdateConnector400ResponseWithDefaults() *UpdateConnector400Response` + +NewUpdateConnector400ResponseWithDefaults instantiates a new UpdateConnector400Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *UpdateConnector400Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *UpdateConnector400Response) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *UpdateConnector400Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *UpdateConnector400Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetMessage + +`func (o *UpdateConnector400Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *UpdateConnector400Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *UpdateConnector400Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *UpdateConnector400Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStatusCode + +`func (o *UpdateConnector400Response) GetStatusCode() int32` + +GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. + +### GetStatusCodeOk + +`func (o *UpdateConnector400Response) GetStatusCodeOk() (*int32, bool)` + +GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusCode + +`func (o *UpdateConnector400Response) SetStatusCode(v int32)` + +SetStatusCode sets StatusCode field to given value. + +### HasStatusCode + +`func (o *UpdateConnector400Response) HasStatusCode() bool` + +HasStatusCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestBodyProperties.md b/generated/kibanaactions/docs/UpdateConnectorRequestBodyProperties.md new file mode 100644 index 000000000..c6f7835ed --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestBodyProperties.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestBodyProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesSwimlane**](ConfigPropertiesSwimlane.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesSwimlane**](SecretsPropertiesSwimlane.md) | | + +## Methods + +### NewUpdateConnectorRequestBodyProperties + +`func NewUpdateConnectorRequestBodyProperties(config ConfigPropertiesSwimlane, name string, secrets SecretsPropertiesSwimlane, ) *UpdateConnectorRequestBodyProperties` + +NewUpdateConnectorRequestBodyProperties instantiates a new UpdateConnectorRequestBodyProperties object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestBodyPropertiesWithDefaults + +`func NewUpdateConnectorRequestBodyPropertiesWithDefaults() *UpdateConnectorRequestBodyProperties` + +NewUpdateConnectorRequestBodyPropertiesWithDefaults instantiates a new UpdateConnectorRequestBodyProperties object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestBodyProperties) GetConfig() ConfigPropertiesSwimlane` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestBodyProperties) GetConfigOk() (*ConfigPropertiesSwimlane, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestBodyProperties) SetConfig(v ConfigPropertiesSwimlane)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestBodyProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestBodyProperties) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestBodyProperties) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestBodyProperties) GetSecrets() SecretsPropertiesSwimlane` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestBodyProperties) GetSecretsOk() (*SecretsPropertiesSwimlane, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestBodyProperties) SetSecrets(v SecretsPropertiesSwimlane)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestCasesWebhook.md b/generated/kibanaactions/docs/UpdateConnectorRequestCasesWebhook.md new file mode 100644 index 000000000..70a302752 --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestCasesWebhook.md @@ -0,0 +1,98 @@ +# UpdateConnectorRequestCasesWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesCasesWebhook**](ConfigPropertiesCasesWebhook.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | Pointer to [**SecretsPropertiesCasesWebhook**](SecretsPropertiesCasesWebhook.md) | | [optional] + +## Methods + +### NewUpdateConnectorRequestCasesWebhook + +`func NewUpdateConnectorRequestCasesWebhook(config ConfigPropertiesCasesWebhook, name string, ) *UpdateConnectorRequestCasesWebhook` + +NewUpdateConnectorRequestCasesWebhook instantiates a new UpdateConnectorRequestCasesWebhook object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestCasesWebhookWithDefaults + +`func NewUpdateConnectorRequestCasesWebhookWithDefaults() *UpdateConnectorRequestCasesWebhook` + +NewUpdateConnectorRequestCasesWebhookWithDefaults instantiates a new UpdateConnectorRequestCasesWebhook object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestCasesWebhook) GetConfig() ConfigPropertiesCasesWebhook` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestCasesWebhook) GetConfigOk() (*ConfigPropertiesCasesWebhook, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestCasesWebhook) SetConfig(v ConfigPropertiesCasesWebhook)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestCasesWebhook) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestCasesWebhook) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestCasesWebhook) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestCasesWebhook) GetSecrets() SecretsPropertiesCasesWebhook` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestCasesWebhook) GetSecretsOk() (*SecretsPropertiesCasesWebhook, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestCasesWebhook) SetSecrets(v SecretsPropertiesCasesWebhook)` + +SetSecrets sets Secrets field to given value. + +### HasSecrets + +`func (o *UpdateConnectorRequestCasesWebhook) HasSecrets() bool` + +HasSecrets returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestIndex.md b/generated/kibanaactions/docs/UpdateConnectorRequestIndex.md new file mode 100644 index 000000000..eb9c989ff --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestIndex.md @@ -0,0 +1,72 @@ +# UpdateConnectorRequestIndex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesIndex**](ConfigPropertiesIndex.md) | | +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewUpdateConnectorRequestIndex + +`func NewUpdateConnectorRequestIndex(config ConfigPropertiesIndex, name string, ) *UpdateConnectorRequestIndex` + +NewUpdateConnectorRequestIndex instantiates a new UpdateConnectorRequestIndex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestIndexWithDefaults + +`func NewUpdateConnectorRequestIndexWithDefaults() *UpdateConnectorRequestIndex` + +NewUpdateConnectorRequestIndexWithDefaults instantiates a new UpdateConnectorRequestIndex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestIndex) GetConfig() ConfigPropertiesIndex` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestIndex) GetConfigOk() (*ConfigPropertiesIndex, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestIndex) SetConfig(v ConfigPropertiesIndex)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestIndex) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestIndex) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestIndex) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestJira.md b/generated/kibanaactions/docs/UpdateConnectorRequestJira.md new file mode 100644 index 000000000..85aadd4d3 --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestJira.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestJira + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesJira**](ConfigPropertiesJira.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesJira**](SecretsPropertiesJira.md) | | + +## Methods + +### NewUpdateConnectorRequestJira + +`func NewUpdateConnectorRequestJira(config ConfigPropertiesJira, name string, secrets SecretsPropertiesJira, ) *UpdateConnectorRequestJira` + +NewUpdateConnectorRequestJira instantiates a new UpdateConnectorRequestJira object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestJiraWithDefaults + +`func NewUpdateConnectorRequestJiraWithDefaults() *UpdateConnectorRequestJira` + +NewUpdateConnectorRequestJiraWithDefaults instantiates a new UpdateConnectorRequestJira object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestJira) GetConfig() ConfigPropertiesJira` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestJira) GetConfigOk() (*ConfigPropertiesJira, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestJira) SetConfig(v ConfigPropertiesJira)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestJira) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestJira) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestJira) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestJira) GetSecrets() SecretsPropertiesJira` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestJira) GetSecretsOk() (*SecretsPropertiesJira, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestJira) SetSecrets(v SecretsPropertiesJira)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestOpsgenie.md b/generated/kibanaactions/docs/UpdateConnectorRequestOpsgenie.md new file mode 100644 index 000000000..b2700341e --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestOpsgenie.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestOpsgenie + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesOpsgenie**](ConfigPropertiesOpsgenie.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesOpsgenie**](SecretsPropertiesOpsgenie.md) | | + +## Methods + +### NewUpdateConnectorRequestOpsgenie + +`func NewUpdateConnectorRequestOpsgenie(config ConfigPropertiesOpsgenie, name string, secrets SecretsPropertiesOpsgenie, ) *UpdateConnectorRequestOpsgenie` + +NewUpdateConnectorRequestOpsgenie instantiates a new UpdateConnectorRequestOpsgenie object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestOpsgenieWithDefaults + +`func NewUpdateConnectorRequestOpsgenieWithDefaults() *UpdateConnectorRequestOpsgenie` + +NewUpdateConnectorRequestOpsgenieWithDefaults instantiates a new UpdateConnectorRequestOpsgenie object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestOpsgenie) GetConfig() ConfigPropertiesOpsgenie` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestOpsgenie) GetConfigOk() (*ConfigPropertiesOpsgenie, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestOpsgenie) SetConfig(v ConfigPropertiesOpsgenie)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestOpsgenie) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestOpsgenie) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestOpsgenie) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestOpsgenie) GetSecrets() SecretsPropertiesOpsgenie` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestOpsgenie) GetSecretsOk() (*SecretsPropertiesOpsgenie, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestOpsgenie) SetSecrets(v SecretsPropertiesOpsgenie)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestResilient.md b/generated/kibanaactions/docs/UpdateConnectorRequestResilient.md new file mode 100644 index 000000000..0b095b429 --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestResilient.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestResilient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesResilient**](ConfigPropertiesResilient.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesResilient**](SecretsPropertiesResilient.md) | | + +## Methods + +### NewUpdateConnectorRequestResilient + +`func NewUpdateConnectorRequestResilient(config ConfigPropertiesResilient, name string, secrets SecretsPropertiesResilient, ) *UpdateConnectorRequestResilient` + +NewUpdateConnectorRequestResilient instantiates a new UpdateConnectorRequestResilient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestResilientWithDefaults + +`func NewUpdateConnectorRequestResilientWithDefaults() *UpdateConnectorRequestResilient` + +NewUpdateConnectorRequestResilientWithDefaults instantiates a new UpdateConnectorRequestResilient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestResilient) GetConfig() ConfigPropertiesResilient` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestResilient) GetConfigOk() (*ConfigPropertiesResilient, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestResilient) SetConfig(v ConfigPropertiesResilient)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestResilient) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestResilient) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestResilient) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestResilient) GetSecrets() SecretsPropertiesResilient` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestResilient) GetSecretsOk() (*SecretsPropertiesResilient, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestResilient) SetSecrets(v SecretsPropertiesResilient)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestServerlog.md b/generated/kibanaactions/docs/UpdateConnectorRequestServerlog.md new file mode 100644 index 000000000..c0471ed4a --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestServerlog.md @@ -0,0 +1,51 @@ +# UpdateConnectorRequestServerlog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The display name for the connector. | + +## Methods + +### NewUpdateConnectorRequestServerlog + +`func NewUpdateConnectorRequestServerlog(name string, ) *UpdateConnectorRequestServerlog` + +NewUpdateConnectorRequestServerlog instantiates a new UpdateConnectorRequestServerlog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestServerlogWithDefaults + +`func NewUpdateConnectorRequestServerlogWithDefaults() *UpdateConnectorRequestServerlog` + +NewUpdateConnectorRequestServerlogWithDefaults instantiates a new UpdateConnectorRequestServerlog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *UpdateConnectorRequestServerlog) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestServerlog) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestServerlog) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestServicenow.md b/generated/kibanaactions/docs/UpdateConnectorRequestServicenow.md new file mode 100644 index 000000000..b767622f8 --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestServicenow.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestServicenow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenow**](ConfigPropertiesServicenow.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesServicenow**](SecretsPropertiesServicenow.md) | | + +## Methods + +### NewUpdateConnectorRequestServicenow + +`func NewUpdateConnectorRequestServicenow(config ConfigPropertiesServicenow, name string, secrets SecretsPropertiesServicenow, ) *UpdateConnectorRequestServicenow` + +NewUpdateConnectorRequestServicenow instantiates a new UpdateConnectorRequestServicenow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestServicenowWithDefaults + +`func NewUpdateConnectorRequestServicenowWithDefaults() *UpdateConnectorRequestServicenow` + +NewUpdateConnectorRequestServicenowWithDefaults instantiates a new UpdateConnectorRequestServicenow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestServicenow) GetConfig() ConfigPropertiesServicenow` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestServicenow) GetConfigOk() (*ConfigPropertiesServicenow, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestServicenow) SetConfig(v ConfigPropertiesServicenow)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestServicenow) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestServicenow) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestServicenow) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestServicenow) GetSecrets() SecretsPropertiesServicenow` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestServicenow) GetSecretsOk() (*SecretsPropertiesServicenow, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestServicenow) SetSecrets(v SecretsPropertiesServicenow)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestServicenowItom.md b/generated/kibanaactions/docs/UpdateConnectorRequestServicenowItom.md new file mode 100644 index 000000000..4bd1756cb --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestServicenowItom.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestServicenowItom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesServicenowItom**](ConfigPropertiesServicenowItom.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesServicenow**](SecretsPropertiesServicenow.md) | | + +## Methods + +### NewUpdateConnectorRequestServicenowItom + +`func NewUpdateConnectorRequestServicenowItom(config ConfigPropertiesServicenowItom, name string, secrets SecretsPropertiesServicenow, ) *UpdateConnectorRequestServicenowItom` + +NewUpdateConnectorRequestServicenowItom instantiates a new UpdateConnectorRequestServicenowItom object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestServicenowItomWithDefaults + +`func NewUpdateConnectorRequestServicenowItomWithDefaults() *UpdateConnectorRequestServicenowItom` + +NewUpdateConnectorRequestServicenowItomWithDefaults instantiates a new UpdateConnectorRequestServicenowItom object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestServicenowItom) GetConfig() ConfigPropertiesServicenowItom` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestServicenowItom) GetConfigOk() (*ConfigPropertiesServicenowItom, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestServicenowItom) SetConfig(v ConfigPropertiesServicenowItom)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestServicenowItom) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestServicenowItom) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestServicenowItom) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestServicenowItom) GetSecrets() SecretsPropertiesServicenow` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestServicenowItom) GetSecretsOk() (*SecretsPropertiesServicenow, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestServicenowItom) SetSecrets(v SecretsPropertiesServicenow)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/docs/UpdateConnectorRequestSwimlane.md b/generated/kibanaactions/docs/UpdateConnectorRequestSwimlane.md new file mode 100644 index 000000000..5a2ad0323 --- /dev/null +++ b/generated/kibanaactions/docs/UpdateConnectorRequestSwimlane.md @@ -0,0 +1,93 @@ +# UpdateConnectorRequestSwimlane + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**ConfigPropertiesSwimlane**](ConfigPropertiesSwimlane.md) | | +**Name** | **string** | The display name for the connector. | +**Secrets** | [**SecretsPropertiesSwimlane**](SecretsPropertiesSwimlane.md) | | + +## Methods + +### NewUpdateConnectorRequestSwimlane + +`func NewUpdateConnectorRequestSwimlane(config ConfigPropertiesSwimlane, name string, secrets SecretsPropertiesSwimlane, ) *UpdateConnectorRequestSwimlane` + +NewUpdateConnectorRequestSwimlane instantiates a new UpdateConnectorRequestSwimlane object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateConnectorRequestSwimlaneWithDefaults + +`func NewUpdateConnectorRequestSwimlaneWithDefaults() *UpdateConnectorRequestSwimlane` + +NewUpdateConnectorRequestSwimlaneWithDefaults instantiates a new UpdateConnectorRequestSwimlane object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *UpdateConnectorRequestSwimlane) GetConfig() ConfigPropertiesSwimlane` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateConnectorRequestSwimlane) GetConfigOk() (*ConfigPropertiesSwimlane, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateConnectorRequestSwimlane) SetConfig(v ConfigPropertiesSwimlane)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *UpdateConnectorRequestSwimlane) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateConnectorRequestSwimlane) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateConnectorRequestSwimlane) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecrets + +`func (o *UpdateConnectorRequestSwimlane) GetSecrets() SecretsPropertiesSwimlane` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *UpdateConnectorRequestSwimlane) GetSecretsOk() (*SecretsPropertiesSwimlane, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *UpdateConnectorRequestSwimlane) SetSecrets(v SecretsPropertiesSwimlane)` + +SetSecrets sets Secrets field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/kibanaactions/git_push.sh b/generated/kibanaactions/git_push.sh new file mode 100644 index 000000000..9c304b700 --- /dev/null +++ b/generated/kibanaactions/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="elastic" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="terraform-provider-elasticstack" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/generated/kibanaactions/model_401_response.go b/generated/kibanaactions/model_401_response.go new file mode 100644 index 000000000..8cd8e8e61 --- /dev/null +++ b/generated/kibanaactions/model_401_response.go @@ -0,0 +1,196 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the Model401Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Model401Response{} + +// Model401Response struct for Model401Response +type Model401Response struct { + Error *string `json:"error,omitempty"` + Message *string `json:"message,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty"` +} + +// NewModel401Response instantiates a new Model401Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModel401Response() *Model401Response { + this := Model401Response{} + return &this +} + +// NewModel401ResponseWithDefaults instantiates a new Model401Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModel401ResponseWithDefaults() *Model401Response { + this := Model401Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *Model401Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model401Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *Model401Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *Model401Response) SetError(v string) { + o.Error = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *Model401Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model401Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *Model401Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *Model401Response) SetMessage(v string) { + o.Message = &v +} + +// GetStatusCode returns the StatusCode field value if set, zero value otherwise. +func (o *Model401Response) GetStatusCode() int32 { + if o == nil || IsNil(o.StatusCode) { + var ret int32 + return ret + } + return *o.StatusCode +} + +// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model401Response) GetStatusCodeOk() (*int32, bool) { + if o == nil || IsNil(o.StatusCode) { + return nil, false + } + return o.StatusCode, true +} + +// HasStatusCode returns a boolean if a field has been set. +func (o *Model401Response) HasStatusCode() bool { + if o != nil && !IsNil(o.StatusCode) { + return true + } + + return false +} + +// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. +func (o *Model401Response) SetStatusCode(v int32) { + o.StatusCode = &v +} + +func (o Model401Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Model401Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.StatusCode) { + toSerialize["statusCode"] = o.StatusCode + } + return toSerialize, nil +} + +type NullableModel401Response struct { + value *Model401Response + isSet bool +} + +func (v NullableModel401Response) Get() *Model401Response { + return v.value +} + +func (v *NullableModel401Response) Set(val *Model401Response) { + v.value = val + v.isSet = true +} + +func (v NullableModel401Response) IsSet() bool { + return v.isSet +} + +func (v *NullableModel401Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModel401Response(val *Model401Response) *NullableModel401Response { + return &NullableModel401Response{value: val, isSet: true} +} + +func (v NullableModel401Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModel401Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_404_response.go b/generated/kibanaactions/model_404_response.go new file mode 100644 index 000000000..2cfda38f7 --- /dev/null +++ b/generated/kibanaactions/model_404_response.go @@ -0,0 +1,196 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the Model404Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Model404Response{} + +// Model404Response struct for Model404Response +type Model404Response struct { + Error *string `json:"error,omitempty"` + Message *string `json:"message,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty"` +} + +// NewModel404Response instantiates a new Model404Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModel404Response() *Model404Response { + this := Model404Response{} + return &this +} + +// NewModel404ResponseWithDefaults instantiates a new Model404Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModel404ResponseWithDefaults() *Model404Response { + this := Model404Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *Model404Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model404Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *Model404Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *Model404Response) SetError(v string) { + o.Error = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *Model404Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model404Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *Model404Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *Model404Response) SetMessage(v string) { + o.Message = &v +} + +// GetStatusCode returns the StatusCode field value if set, zero value otherwise. +func (o *Model404Response) GetStatusCode() int32 { + if o == nil || IsNil(o.StatusCode) { + var ret int32 + return ret + } + return *o.StatusCode +} + +// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model404Response) GetStatusCodeOk() (*int32, bool) { + if o == nil || IsNil(o.StatusCode) { + return nil, false + } + return o.StatusCode, true +} + +// HasStatusCode returns a boolean if a field has been set. +func (o *Model404Response) HasStatusCode() bool { + if o != nil && !IsNil(o.StatusCode) { + return true + } + + return false +} + +// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. +func (o *Model404Response) SetStatusCode(v int32) { + o.StatusCode = &v +} + +func (o Model404Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Model404Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.StatusCode) { + toSerialize["statusCode"] = o.StatusCode + } + return toSerialize, nil +} + +type NullableModel404Response struct { + value *Model404Response + isSet bool +} + +func (v NullableModel404Response) Get() *Model404Response { + return v.value +} + +func (v *NullableModel404Response) Set(val *Model404Response) { + v.value = val + v.isSet = true +} + +func (v NullableModel404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableModel404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModel404Response(val *Model404Response) *NullableModel404Response { + return &NullableModel404Response{value: val, isSet: true} +} + +func (v NullableModel404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModel404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_action_response_properties.go b/generated/kibanaactions/model_action_response_properties.go new file mode 100644 index 000000000..5975f3575 --- /dev/null +++ b/generated/kibanaactions/model_action_response_properties.go @@ -0,0 +1,343 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ActionResponseProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ActionResponseProperties{} + +// ActionResponseProperties The properties vary depending on the action type. +type ActionResponseProperties struct { + ActionTypeId *string `json:"actionTypeId,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` + Id *string `json:"id,omitempty"` + // Indicates whether the action type is deprecated. + IsDeprecated *bool `json:"isDeprecated,omitempty"` + // Indicates whether secrets are missing for the action. + IsMissingSecrets *bool `json:"isMissingSecrets,omitempty"` + // Indicates whether it is a preconfigured action. + IsPreconfigured *bool `json:"isPreconfigured,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewActionResponseProperties instantiates a new ActionResponseProperties object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewActionResponseProperties() *ActionResponseProperties { + this := ActionResponseProperties{} + return &this +} + +// NewActionResponsePropertiesWithDefaults instantiates a new ActionResponseProperties object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewActionResponsePropertiesWithDefaults() *ActionResponseProperties { + this := ActionResponseProperties{} + return &this +} + +// GetActionTypeId returns the ActionTypeId field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetActionTypeId() string { + if o == nil || IsNil(o.ActionTypeId) { + var ret string + return ret + } + return *o.ActionTypeId +} + +// GetActionTypeIdOk returns a tuple with the ActionTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetActionTypeIdOk() (*string, bool) { + if o == nil || IsNil(o.ActionTypeId) { + return nil, false + } + return o.ActionTypeId, true +} + +// HasActionTypeId returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasActionTypeId() bool { + if o != nil && !IsNil(o.ActionTypeId) { + return true + } + + return false +} + +// SetActionTypeId gets a reference to the given string and assigns it to the ActionTypeId field. +func (o *ActionResponseProperties) SetActionTypeId(v string) { + o.ActionTypeId = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetConfig() map[string]interface{} { + if o == nil || IsNil(o.Config) { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *ActionResponseProperties) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ActionResponseProperties) SetId(v string) { + o.Id = &v +} + +// GetIsDeprecated returns the IsDeprecated field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetIsDeprecated() bool { + if o == nil || IsNil(o.IsDeprecated) { + var ret bool + return ret + } + return *o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetIsDeprecatedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeprecated) { + return nil, false + } + return o.IsDeprecated, true +} + +// HasIsDeprecated returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasIsDeprecated() bool { + if o != nil && !IsNil(o.IsDeprecated) { + return true + } + + return false +} + +// SetIsDeprecated gets a reference to the given bool and assigns it to the IsDeprecated field. +func (o *ActionResponseProperties) SetIsDeprecated(v bool) { + o.IsDeprecated = &v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ActionResponseProperties) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetIsPreconfigured() bool { + if o == nil || IsNil(o.IsPreconfigured) { + var ret bool + return ret + } + return *o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil || IsNil(o.IsPreconfigured) { + return nil, false + } + return o.IsPreconfigured, true +} + +// HasIsPreconfigured returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasIsPreconfigured() bool { + if o != nil && !IsNil(o.IsPreconfigured) { + return true + } + + return false +} + +// SetIsPreconfigured gets a reference to the given bool and assigns it to the IsPreconfigured field. +func (o *ActionResponseProperties) SetIsPreconfigured(v bool) { + o.IsPreconfigured = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ActionResponseProperties) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ActionResponseProperties) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ActionResponseProperties) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ActionResponseProperties) SetName(v string) { + o.Name = &v +} + +func (o ActionResponseProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ActionResponseProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ActionTypeId) { + toSerialize["actionTypeId"] = o.ActionTypeId + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IsDeprecated) { + toSerialize["isDeprecated"] = o.IsDeprecated + } + if !IsNil(o.IsMissingSecrets) { + toSerialize["isMissingSecrets"] = o.IsMissingSecrets + } + if !IsNil(o.IsPreconfigured) { + toSerialize["isPreconfigured"] = o.IsPreconfigured + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableActionResponseProperties struct { + value *ActionResponseProperties + isSet bool +} + +func (v NullableActionResponseProperties) Get() *ActionResponseProperties { + return v.value +} + +func (v *NullableActionResponseProperties) Set(val *ActionResponseProperties) { + v.value = val + v.isSet = true +} + +func (v NullableActionResponseProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableActionResponseProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableActionResponseProperties(val *ActionResponseProperties) *NullableActionResponseProperties { + return &NullableActionResponseProperties{value: val, isSet: true} +} + +func (v NullableActionResponseProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableActionResponseProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_alert_identifier_mapping.go b/generated/kibanaactions/model_alert_identifier_mapping.go new file mode 100644 index 000000000..34711268e --- /dev/null +++ b/generated/kibanaactions/model_alert_identifier_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the AlertIdentifierMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertIdentifierMapping{} + +// AlertIdentifierMapping Mapping for the alert ID. +type AlertIdentifierMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewAlertIdentifierMapping instantiates a new AlertIdentifierMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertIdentifierMapping(fieldType string, id string, key string, name string) *AlertIdentifierMapping { + this := AlertIdentifierMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewAlertIdentifierMappingWithDefaults instantiates a new AlertIdentifierMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertIdentifierMappingWithDefaults() *AlertIdentifierMapping { + this := AlertIdentifierMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *AlertIdentifierMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *AlertIdentifierMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *AlertIdentifierMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *AlertIdentifierMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *AlertIdentifierMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *AlertIdentifierMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *AlertIdentifierMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *AlertIdentifierMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *AlertIdentifierMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *AlertIdentifierMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AlertIdentifierMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AlertIdentifierMapping) SetName(v string) { + o.Name = v +} + +func (o AlertIdentifierMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertIdentifierMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableAlertIdentifierMapping struct { + value *AlertIdentifierMapping + isSet bool +} + +func (v NullableAlertIdentifierMapping) Get() *AlertIdentifierMapping { + return v.value +} + +func (v *NullableAlertIdentifierMapping) Set(val *AlertIdentifierMapping) { + v.value = val + v.isSet = true +} + +func (v NullableAlertIdentifierMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertIdentifierMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertIdentifierMapping(val *AlertIdentifierMapping) *NullableAlertIdentifierMapping { + return &NullableAlertIdentifierMapping{value: val, isSet: true} +} + +func (v NullableAlertIdentifierMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertIdentifierMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_case_comment_mapping.go b/generated/kibanaactions/model_case_comment_mapping.go new file mode 100644 index 000000000..0cccbf690 --- /dev/null +++ b/generated/kibanaactions/model_case_comment_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CaseCommentMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CaseCommentMapping{} + +// CaseCommentMapping Mapping for the case comments. +type CaseCommentMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewCaseCommentMapping instantiates a new CaseCommentMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCaseCommentMapping(fieldType string, id string, key string, name string) *CaseCommentMapping { + this := CaseCommentMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewCaseCommentMappingWithDefaults instantiates a new CaseCommentMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaseCommentMappingWithDefaults() *CaseCommentMapping { + this := CaseCommentMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *CaseCommentMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *CaseCommentMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *CaseCommentMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *CaseCommentMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CaseCommentMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CaseCommentMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *CaseCommentMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *CaseCommentMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *CaseCommentMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *CaseCommentMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CaseCommentMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CaseCommentMapping) SetName(v string) { + o.Name = v +} + +func (o CaseCommentMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CaseCommentMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableCaseCommentMapping struct { + value *CaseCommentMapping + isSet bool +} + +func (v NullableCaseCommentMapping) Get() *CaseCommentMapping { + return v.value +} + +func (v *NullableCaseCommentMapping) Set(val *CaseCommentMapping) { + v.value = val + v.isSet = true +} + +func (v NullableCaseCommentMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableCaseCommentMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCaseCommentMapping(val *CaseCommentMapping) *NullableCaseCommentMapping { + return &NullableCaseCommentMapping{value: val, isSet: true} +} + +func (v NullableCaseCommentMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCaseCommentMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_case_description_mapping.go b/generated/kibanaactions/model_case_description_mapping.go new file mode 100644 index 000000000..67f9c3b3b --- /dev/null +++ b/generated/kibanaactions/model_case_description_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CaseDescriptionMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CaseDescriptionMapping{} + +// CaseDescriptionMapping Mapping for the case description. +type CaseDescriptionMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewCaseDescriptionMapping instantiates a new CaseDescriptionMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCaseDescriptionMapping(fieldType string, id string, key string, name string) *CaseDescriptionMapping { + this := CaseDescriptionMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewCaseDescriptionMappingWithDefaults instantiates a new CaseDescriptionMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaseDescriptionMappingWithDefaults() *CaseDescriptionMapping { + this := CaseDescriptionMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *CaseDescriptionMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *CaseDescriptionMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *CaseDescriptionMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *CaseDescriptionMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CaseDescriptionMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CaseDescriptionMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *CaseDescriptionMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *CaseDescriptionMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *CaseDescriptionMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *CaseDescriptionMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CaseDescriptionMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CaseDescriptionMapping) SetName(v string) { + o.Name = v +} + +func (o CaseDescriptionMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CaseDescriptionMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableCaseDescriptionMapping struct { + value *CaseDescriptionMapping + isSet bool +} + +func (v NullableCaseDescriptionMapping) Get() *CaseDescriptionMapping { + return v.value +} + +func (v *NullableCaseDescriptionMapping) Set(val *CaseDescriptionMapping) { + v.value = val + v.isSet = true +} + +func (v NullableCaseDescriptionMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableCaseDescriptionMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCaseDescriptionMapping(val *CaseDescriptionMapping) *NullableCaseDescriptionMapping { + return &NullableCaseDescriptionMapping{value: val, isSet: true} +} + +func (v NullableCaseDescriptionMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCaseDescriptionMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_case_identifier_mapping.go b/generated/kibanaactions/model_case_identifier_mapping.go new file mode 100644 index 000000000..82616eb7c --- /dev/null +++ b/generated/kibanaactions/model_case_identifier_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CaseIdentifierMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CaseIdentifierMapping{} + +// CaseIdentifierMapping Mapping for the case ID. +type CaseIdentifierMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewCaseIdentifierMapping instantiates a new CaseIdentifierMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCaseIdentifierMapping(fieldType string, id string, key string, name string) *CaseIdentifierMapping { + this := CaseIdentifierMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewCaseIdentifierMappingWithDefaults instantiates a new CaseIdentifierMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaseIdentifierMappingWithDefaults() *CaseIdentifierMapping { + this := CaseIdentifierMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *CaseIdentifierMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *CaseIdentifierMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *CaseIdentifierMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *CaseIdentifierMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CaseIdentifierMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CaseIdentifierMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *CaseIdentifierMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *CaseIdentifierMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *CaseIdentifierMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *CaseIdentifierMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CaseIdentifierMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CaseIdentifierMapping) SetName(v string) { + o.Name = v +} + +func (o CaseIdentifierMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CaseIdentifierMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableCaseIdentifierMapping struct { + value *CaseIdentifierMapping + isSet bool +} + +func (v NullableCaseIdentifierMapping) Get() *CaseIdentifierMapping { + return v.value +} + +func (v *NullableCaseIdentifierMapping) Set(val *CaseIdentifierMapping) { + v.value = val + v.isSet = true +} + +func (v NullableCaseIdentifierMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableCaseIdentifierMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCaseIdentifierMapping(val *CaseIdentifierMapping) *NullableCaseIdentifierMapping { + return &NullableCaseIdentifierMapping{value: val, isSet: true} +} + +func (v NullableCaseIdentifierMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCaseIdentifierMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_case_name_mapping.go b/generated/kibanaactions/model_case_name_mapping.go new file mode 100644 index 000000000..27ccc4cc4 --- /dev/null +++ b/generated/kibanaactions/model_case_name_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CaseNameMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CaseNameMapping{} + +// CaseNameMapping Mapping for the case name. +type CaseNameMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewCaseNameMapping instantiates a new CaseNameMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCaseNameMapping(fieldType string, id string, key string, name string) *CaseNameMapping { + this := CaseNameMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewCaseNameMappingWithDefaults instantiates a new CaseNameMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaseNameMappingWithDefaults() *CaseNameMapping { + this := CaseNameMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *CaseNameMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *CaseNameMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *CaseNameMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *CaseNameMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CaseNameMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CaseNameMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *CaseNameMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *CaseNameMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *CaseNameMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *CaseNameMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CaseNameMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CaseNameMapping) SetName(v string) { + o.Name = v +} + +func (o CaseNameMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CaseNameMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableCaseNameMapping struct { + value *CaseNameMapping + isSet bool +} + +func (v NullableCaseNameMapping) Get() *CaseNameMapping { + return v.value +} + +func (v *NullableCaseNameMapping) Set(val *CaseNameMapping) { + v.value = val + v.isSet = true +} + +func (v NullableCaseNameMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableCaseNameMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCaseNameMapping(val *CaseNameMapping) *NullableCaseNameMapping { + return &NullableCaseNameMapping{value: val, isSet: true} +} + +func (v NullableCaseNameMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCaseNameMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_cases_webhook.go b/generated/kibanaactions/model_config_properties_cases_webhook.go new file mode 100644 index 000000000..b11fdae41 --- /dev/null +++ b/generated/kibanaactions/model_config_properties_cases_webhook.go @@ -0,0 +1,587 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesCasesWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesCasesWebhook{} + +// ConfigPropertiesCasesWebhook Defines properties for connectors when type is `.cases-webhook`. +type ConfigPropertiesCasesWebhook struct { + // A JSON payload sent to the create comment URL to create a case comment. You can use variables to add Kibana Cases data to the payload. The required variable is `case.comment`. Due to Mustache template variables (the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated once the Mustache variables have been placed when the REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. + CreateCommentJson *string `json:"createCommentJson,omitempty"` + // The REST API HTTP request method to create a case comment in the third-party system. Valid values are `patch`, `post`, and `put`. + CreateCommentMethod *string `json:"createCommentMethod,omitempty"` + // The REST API URL to create a case comment by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the `xpack.actions.allowedHosts setting`, add the hostname to the allowed hosts. + CreateCommentUrl *string `json:"createCommentUrl,omitempty"` + // A JSON payload sent to the create case URL to create a case. You can use variables to add case data to the payload. Required variables are `case.title` and `case.description`. Due to Mustache template variables (which is the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. + CreateIncidentJson string `json:"createIncidentJson"` + // The REST API HTTP request method to create a case in the third-party system. Valid values are `patch`, `post`, and `put`. + CreateIncidentMethod *string `json:"createIncidentMethod,omitempty"` + // The JSON key in the create case response that contains the external case ID. + CreateIncidentResponseKey string `json:"createIncidentResponseKey"` + // The REST API URL to create a case in the third-party system. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. + CreateIncidentUrl string `json:"createIncidentUrl"` + // The JSON key in get case response that contains the external case title. + GetIncidentResponseExternalTitleKey string `json:"getIncidentResponseExternalTitleKey"` + // The REST API URL to get the case by ID from the third-party system. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. You can use a variable to add the external system ID to the URL. Due to Mustache template variables (the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. + GetIncidentUrl string `json:"getIncidentUrl"` + // If true, a username and password for login type authentication must be provided. + HasAuth *bool `json:"hasAuth,omitempty"` + // A set of key-value pairs sent as headers with the request URLs for the create case, update case, get case, and create comment methods. + Headers *string `json:"headers,omitempty"` + // The JSON payload sent to the update case URL to update the case. You can use variables to add Kibana Cases data to the payload. Required variables are `case.title` and `case.description`. Due to Mustache template variables (which is the text enclosed in triple braces, for example, `{{{case.title}}}`), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. + UpdateIncidentJson string `json:"updateIncidentJson"` + // The REST API HTTP request method to update the case in the third-party system. Valid values are `patch`, `post`, and `put`. + UpdateIncidentMethod *string `json:"updateIncidentMethod,omitempty"` + // The REST API URL to update the case by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. + UpdateIncidentUrl string `json:"updateIncidentUrl"` + // The URL to view the case in the external system. You can use variables to add the external system ID or external system title to the URL. + ViewIncidentUrl string `json:"viewIncidentUrl"` +} + +// NewConfigPropertiesCasesWebhook instantiates a new ConfigPropertiesCasesWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesCasesWebhook(createIncidentJson string, createIncidentResponseKey string, createIncidentUrl string, getIncidentResponseExternalTitleKey string, getIncidentUrl string, updateIncidentJson string, updateIncidentUrl string, viewIncidentUrl string) *ConfigPropertiesCasesWebhook { + this := ConfigPropertiesCasesWebhook{} + var createCommentMethod string = "put" + this.CreateCommentMethod = &createCommentMethod + this.CreateIncidentJson = createIncidentJson + var createIncidentMethod string = "post" + this.CreateIncidentMethod = &createIncidentMethod + this.CreateIncidentResponseKey = createIncidentResponseKey + this.CreateIncidentUrl = createIncidentUrl + this.GetIncidentResponseExternalTitleKey = getIncidentResponseExternalTitleKey + this.GetIncidentUrl = getIncidentUrl + var hasAuth bool = true + this.HasAuth = &hasAuth + this.UpdateIncidentJson = updateIncidentJson + var updateIncidentMethod string = "put" + this.UpdateIncidentMethod = &updateIncidentMethod + this.UpdateIncidentUrl = updateIncidentUrl + this.ViewIncidentUrl = viewIncidentUrl + return &this +} + +// NewConfigPropertiesCasesWebhookWithDefaults instantiates a new ConfigPropertiesCasesWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesCasesWebhookWithDefaults() *ConfigPropertiesCasesWebhook { + this := ConfigPropertiesCasesWebhook{} + var createCommentMethod string = "put" + this.CreateCommentMethod = &createCommentMethod + var createIncidentMethod string = "post" + this.CreateIncidentMethod = &createIncidentMethod + var hasAuth bool = true + this.HasAuth = &hasAuth + var updateIncidentMethod string = "put" + this.UpdateIncidentMethod = &updateIncidentMethod + return &this +} + +// GetCreateCommentJson returns the CreateCommentJson field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetCreateCommentJson() string { + if o == nil || IsNil(o.CreateCommentJson) { + var ret string + return ret + } + return *o.CreateCommentJson +} + +// GetCreateCommentJsonOk returns a tuple with the CreateCommentJson field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateCommentJsonOk() (*string, bool) { + if o == nil || IsNil(o.CreateCommentJson) { + return nil, false + } + return o.CreateCommentJson, true +} + +// HasCreateCommentJson returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasCreateCommentJson() bool { + if o != nil && !IsNil(o.CreateCommentJson) { + return true + } + + return false +} + +// SetCreateCommentJson gets a reference to the given string and assigns it to the CreateCommentJson field. +func (o *ConfigPropertiesCasesWebhook) SetCreateCommentJson(v string) { + o.CreateCommentJson = &v +} + +// GetCreateCommentMethod returns the CreateCommentMethod field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetCreateCommentMethod() string { + if o == nil || IsNil(o.CreateCommentMethod) { + var ret string + return ret + } + return *o.CreateCommentMethod +} + +// GetCreateCommentMethodOk returns a tuple with the CreateCommentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateCommentMethodOk() (*string, bool) { + if o == nil || IsNil(o.CreateCommentMethod) { + return nil, false + } + return o.CreateCommentMethod, true +} + +// HasCreateCommentMethod returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasCreateCommentMethod() bool { + if o != nil && !IsNil(o.CreateCommentMethod) { + return true + } + + return false +} + +// SetCreateCommentMethod gets a reference to the given string and assigns it to the CreateCommentMethod field. +func (o *ConfigPropertiesCasesWebhook) SetCreateCommentMethod(v string) { + o.CreateCommentMethod = &v +} + +// GetCreateCommentUrl returns the CreateCommentUrl field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetCreateCommentUrl() string { + if o == nil || IsNil(o.CreateCommentUrl) { + var ret string + return ret + } + return *o.CreateCommentUrl +} + +// GetCreateCommentUrlOk returns a tuple with the CreateCommentUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateCommentUrlOk() (*string, bool) { + if o == nil || IsNil(o.CreateCommentUrl) { + return nil, false + } + return o.CreateCommentUrl, true +} + +// HasCreateCommentUrl returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasCreateCommentUrl() bool { + if o != nil && !IsNil(o.CreateCommentUrl) { + return true + } + + return false +} + +// SetCreateCommentUrl gets a reference to the given string and assigns it to the CreateCommentUrl field. +func (o *ConfigPropertiesCasesWebhook) SetCreateCommentUrl(v string) { + o.CreateCommentUrl = &v +} + +// GetCreateIncidentJson returns the CreateIncidentJson field value +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentJson() string { + if o == nil { + var ret string + return ret + } + + return o.CreateIncidentJson +} + +// GetCreateIncidentJsonOk returns a tuple with the CreateIncidentJson field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentJsonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreateIncidentJson, true +} + +// SetCreateIncidentJson sets field value +func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentJson(v string) { + o.CreateIncidentJson = v +} + +// GetCreateIncidentMethod returns the CreateIncidentMethod field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentMethod() string { + if o == nil || IsNil(o.CreateIncidentMethod) { + var ret string + return ret + } + return *o.CreateIncidentMethod +} + +// GetCreateIncidentMethodOk returns a tuple with the CreateIncidentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentMethodOk() (*string, bool) { + if o == nil || IsNil(o.CreateIncidentMethod) { + return nil, false + } + return o.CreateIncidentMethod, true +} + +// HasCreateIncidentMethod returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasCreateIncidentMethod() bool { + if o != nil && !IsNil(o.CreateIncidentMethod) { + return true + } + + return false +} + +// SetCreateIncidentMethod gets a reference to the given string and assigns it to the CreateIncidentMethod field. +func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentMethod(v string) { + o.CreateIncidentMethod = &v +} + +// GetCreateIncidentResponseKey returns the CreateIncidentResponseKey field value +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentResponseKey() string { + if o == nil { + var ret string + return ret + } + + return o.CreateIncidentResponseKey +} + +// GetCreateIncidentResponseKeyOk returns a tuple with the CreateIncidentResponseKey field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentResponseKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreateIncidentResponseKey, true +} + +// SetCreateIncidentResponseKey sets field value +func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentResponseKey(v string) { + o.CreateIncidentResponseKey = v +} + +// GetCreateIncidentUrl returns the CreateIncidentUrl field value +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentUrl() string { + if o == nil { + var ret string + return ret + } + + return o.CreateIncidentUrl +} + +// GetCreateIncidentUrlOk returns a tuple with the CreateIncidentUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetCreateIncidentUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreateIncidentUrl, true +} + +// SetCreateIncidentUrl sets field value +func (o *ConfigPropertiesCasesWebhook) SetCreateIncidentUrl(v string) { + o.CreateIncidentUrl = v +} + +// GetGetIncidentResponseExternalTitleKey returns the GetIncidentResponseExternalTitleKey field value +func (o *ConfigPropertiesCasesWebhook) GetGetIncidentResponseExternalTitleKey() string { + if o == nil { + var ret string + return ret + } + + return o.GetIncidentResponseExternalTitleKey +} + +// GetGetIncidentResponseExternalTitleKeyOk returns a tuple with the GetIncidentResponseExternalTitleKey field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetGetIncidentResponseExternalTitleKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GetIncidentResponseExternalTitleKey, true +} + +// SetGetIncidentResponseExternalTitleKey sets field value +func (o *ConfigPropertiesCasesWebhook) SetGetIncidentResponseExternalTitleKey(v string) { + o.GetIncidentResponseExternalTitleKey = v +} + +// GetGetIncidentUrl returns the GetIncidentUrl field value +func (o *ConfigPropertiesCasesWebhook) GetGetIncidentUrl() string { + if o == nil { + var ret string + return ret + } + + return o.GetIncidentUrl +} + +// GetGetIncidentUrlOk returns a tuple with the GetIncidentUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetGetIncidentUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GetIncidentUrl, true +} + +// SetGetIncidentUrl sets field value +func (o *ConfigPropertiesCasesWebhook) SetGetIncidentUrl(v string) { + o.GetIncidentUrl = v +} + +// GetHasAuth returns the HasAuth field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetHasAuth() bool { + if o == nil || IsNil(o.HasAuth) { + var ret bool + return ret + } + return *o.HasAuth +} + +// GetHasAuthOk returns a tuple with the HasAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetHasAuthOk() (*bool, bool) { + if o == nil || IsNil(o.HasAuth) { + return nil, false + } + return o.HasAuth, true +} + +// HasHasAuth returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasHasAuth() bool { + if o != nil && !IsNil(o.HasAuth) { + return true + } + + return false +} + +// SetHasAuth gets a reference to the given bool and assigns it to the HasAuth field. +func (o *ConfigPropertiesCasesWebhook) SetHasAuth(v bool) { + o.HasAuth = &v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetHeaders() string { + if o == nil || IsNil(o.Headers) { + var ret string + return ret + } + return *o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetHeadersOk() (*string, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given string and assigns it to the Headers field. +func (o *ConfigPropertiesCasesWebhook) SetHeaders(v string) { + o.Headers = &v +} + +// GetUpdateIncidentJson returns the UpdateIncidentJson field value +func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentJson() string { + if o == nil { + var ret string + return ret + } + + return o.UpdateIncidentJson +} + +// GetUpdateIncidentJsonOk returns a tuple with the UpdateIncidentJson field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentJsonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdateIncidentJson, true +} + +// SetUpdateIncidentJson sets field value +func (o *ConfigPropertiesCasesWebhook) SetUpdateIncidentJson(v string) { + o.UpdateIncidentJson = v +} + +// GetUpdateIncidentMethod returns the UpdateIncidentMethod field value if set, zero value otherwise. +func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentMethod() string { + if o == nil || IsNil(o.UpdateIncidentMethod) { + var ret string + return ret + } + return *o.UpdateIncidentMethod +} + +// GetUpdateIncidentMethodOk returns a tuple with the UpdateIncidentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentMethodOk() (*string, bool) { + if o == nil || IsNil(o.UpdateIncidentMethod) { + return nil, false + } + return o.UpdateIncidentMethod, true +} + +// HasUpdateIncidentMethod returns a boolean if a field has been set. +func (o *ConfigPropertiesCasesWebhook) HasUpdateIncidentMethod() bool { + if o != nil && !IsNil(o.UpdateIncidentMethod) { + return true + } + + return false +} + +// SetUpdateIncidentMethod gets a reference to the given string and assigns it to the UpdateIncidentMethod field. +func (o *ConfigPropertiesCasesWebhook) SetUpdateIncidentMethod(v string) { + o.UpdateIncidentMethod = &v +} + +// GetUpdateIncidentUrl returns the UpdateIncidentUrl field value +func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentUrl() string { + if o == nil { + var ret string + return ret + } + + return o.UpdateIncidentUrl +} + +// GetUpdateIncidentUrlOk returns a tuple with the UpdateIncidentUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetUpdateIncidentUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdateIncidentUrl, true +} + +// SetUpdateIncidentUrl sets field value +func (o *ConfigPropertiesCasesWebhook) SetUpdateIncidentUrl(v string) { + o.UpdateIncidentUrl = v +} + +// GetViewIncidentUrl returns the ViewIncidentUrl field value +func (o *ConfigPropertiesCasesWebhook) GetViewIncidentUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ViewIncidentUrl +} + +// GetViewIncidentUrlOk returns a tuple with the ViewIncidentUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesCasesWebhook) GetViewIncidentUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ViewIncidentUrl, true +} + +// SetViewIncidentUrl sets field value +func (o *ConfigPropertiesCasesWebhook) SetViewIncidentUrl(v string) { + o.ViewIncidentUrl = v +} + +func (o ConfigPropertiesCasesWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesCasesWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreateCommentJson) { + toSerialize["createCommentJson"] = o.CreateCommentJson + } + if !IsNil(o.CreateCommentMethod) { + toSerialize["createCommentMethod"] = o.CreateCommentMethod + } + if !IsNil(o.CreateCommentUrl) { + toSerialize["createCommentUrl"] = o.CreateCommentUrl + } + toSerialize["createIncidentJson"] = o.CreateIncidentJson + if !IsNil(o.CreateIncidentMethod) { + toSerialize["createIncidentMethod"] = o.CreateIncidentMethod + } + toSerialize["createIncidentResponseKey"] = o.CreateIncidentResponseKey + toSerialize["createIncidentUrl"] = o.CreateIncidentUrl + toSerialize["getIncidentResponseExternalTitleKey"] = o.GetIncidentResponseExternalTitleKey + toSerialize["getIncidentUrl"] = o.GetIncidentUrl + if !IsNil(o.HasAuth) { + toSerialize["hasAuth"] = o.HasAuth + } + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + toSerialize["updateIncidentJson"] = o.UpdateIncidentJson + if !IsNil(o.UpdateIncidentMethod) { + toSerialize["updateIncidentMethod"] = o.UpdateIncidentMethod + } + toSerialize["updateIncidentUrl"] = o.UpdateIncidentUrl + toSerialize["viewIncidentUrl"] = o.ViewIncidentUrl + return toSerialize, nil +} + +type NullableConfigPropertiesCasesWebhook struct { + value *ConfigPropertiesCasesWebhook + isSet bool +} + +func (v NullableConfigPropertiesCasesWebhook) Get() *ConfigPropertiesCasesWebhook { + return v.value +} + +func (v *NullableConfigPropertiesCasesWebhook) Set(val *ConfigPropertiesCasesWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesCasesWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesCasesWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesCasesWebhook(val *ConfigPropertiesCasesWebhook) *NullableConfigPropertiesCasesWebhook { + return &NullableConfigPropertiesCasesWebhook{value: val, isSet: true} +} + +func (v NullableConfigPropertiesCasesWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesCasesWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_index.go b/generated/kibanaactions/model_config_properties_index.go new file mode 100644 index 000000000..8cbaf5e87 --- /dev/null +++ b/generated/kibanaactions/model_config_properties_index.go @@ -0,0 +1,205 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesIndex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesIndex{} + +// ConfigPropertiesIndex Defines properties for connectors when type is `.index`. +type ConfigPropertiesIndex struct { + // Specifies a field that will contain the time the alert condition was detected. + ExecutionTimeField NullableString `json:"executionTimeField,omitempty"` + // The Elasticsearch index to be written to. + Index string `json:"index"` + // The refresh policy for the write request, which affects when changes are made visible to search. Refer to the refresh setting for Elasticsearch document APIs. + Refresh *bool `json:"refresh,omitempty"` +} + +// NewConfigPropertiesIndex instantiates a new ConfigPropertiesIndex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesIndex(index string) *ConfigPropertiesIndex { + this := ConfigPropertiesIndex{} + this.Index = index + var refresh bool = false + this.Refresh = &refresh + return &this +} + +// NewConfigPropertiesIndexWithDefaults instantiates a new ConfigPropertiesIndex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesIndexWithDefaults() *ConfigPropertiesIndex { + this := ConfigPropertiesIndex{} + var refresh bool = false + this.Refresh = &refresh + return &this +} + +// GetExecutionTimeField returns the ExecutionTimeField field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigPropertiesIndex) GetExecutionTimeField() string { + if o == nil || IsNil(o.ExecutionTimeField.Get()) { + var ret string + return ret + } + return *o.ExecutionTimeField.Get() +} + +// GetExecutionTimeFieldOk returns a tuple with the ExecutionTimeField field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigPropertiesIndex) GetExecutionTimeFieldOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExecutionTimeField.Get(), o.ExecutionTimeField.IsSet() +} + +// HasExecutionTimeField returns a boolean if a field has been set. +func (o *ConfigPropertiesIndex) HasExecutionTimeField() bool { + if o != nil && o.ExecutionTimeField.IsSet() { + return true + } + + return false +} + +// SetExecutionTimeField gets a reference to the given NullableString and assigns it to the ExecutionTimeField field. +func (o *ConfigPropertiesIndex) SetExecutionTimeField(v string) { + o.ExecutionTimeField.Set(&v) +} + +// SetExecutionTimeFieldNil sets the value for ExecutionTimeField to be an explicit nil +func (o *ConfigPropertiesIndex) SetExecutionTimeFieldNil() { + o.ExecutionTimeField.Set(nil) +} + +// UnsetExecutionTimeField ensures that no value is present for ExecutionTimeField, not even an explicit nil +func (o *ConfigPropertiesIndex) UnsetExecutionTimeField() { + o.ExecutionTimeField.Unset() +} + +// GetIndex returns the Index field value +func (o *ConfigPropertiesIndex) GetIndex() string { + if o == nil { + var ret string + return ret + } + + return o.Index +} + +// GetIndexOk returns a tuple with the Index field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesIndex) GetIndexOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Index, true +} + +// SetIndex sets field value +func (o *ConfigPropertiesIndex) SetIndex(v string) { + o.Index = v +} + +// GetRefresh returns the Refresh field value if set, zero value otherwise. +func (o *ConfigPropertiesIndex) GetRefresh() bool { + if o == nil || IsNil(o.Refresh) { + var ret bool + return ret + } + return *o.Refresh +} + +// GetRefreshOk returns a tuple with the Refresh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesIndex) GetRefreshOk() (*bool, bool) { + if o == nil || IsNil(o.Refresh) { + return nil, false + } + return o.Refresh, true +} + +// HasRefresh returns a boolean if a field has been set. +func (o *ConfigPropertiesIndex) HasRefresh() bool { + if o != nil && !IsNil(o.Refresh) { + return true + } + + return false +} + +// SetRefresh gets a reference to the given bool and assigns it to the Refresh field. +func (o *ConfigPropertiesIndex) SetRefresh(v bool) { + o.Refresh = &v +} + +func (o ConfigPropertiesIndex) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesIndex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ExecutionTimeField.IsSet() { + toSerialize["executionTimeField"] = o.ExecutionTimeField.Get() + } + toSerialize["index"] = o.Index + if !IsNil(o.Refresh) { + toSerialize["refresh"] = o.Refresh + } + return toSerialize, nil +} + +type NullableConfigPropertiesIndex struct { + value *ConfigPropertiesIndex + isSet bool +} + +func (v NullableConfigPropertiesIndex) Get() *ConfigPropertiesIndex { + return v.value +} + +func (v *NullableConfigPropertiesIndex) Set(val *ConfigPropertiesIndex) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesIndex) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesIndex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesIndex(val *ConfigPropertiesIndex) *NullableConfigPropertiesIndex { + return &NullableConfigPropertiesIndex{value: val, isSet: true} +} + +func (v NullableConfigPropertiesIndex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesIndex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_jira.go b/generated/kibanaactions/model_config_properties_jira.go new file mode 100644 index 000000000..5924396ac --- /dev/null +++ b/generated/kibanaactions/model_config_properties_jira.go @@ -0,0 +1,144 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesJira type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesJira{} + +// ConfigPropertiesJira Defines properties for connectors when type is `.jira`. +type ConfigPropertiesJira struct { + // The Jira instance URL. + ApiUrl string `json:"apiUrl"` + // The Jira project key. + ProjectKey string `json:"projectKey"` +} + +// NewConfigPropertiesJira instantiates a new ConfigPropertiesJira object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesJira(apiUrl string, projectKey string) *ConfigPropertiesJira { + this := ConfigPropertiesJira{} + this.ApiUrl = apiUrl + this.ProjectKey = projectKey + return &this +} + +// NewConfigPropertiesJiraWithDefaults instantiates a new ConfigPropertiesJira object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesJiraWithDefaults() *ConfigPropertiesJira { + this := ConfigPropertiesJira{} + return &this +} + +// GetApiUrl returns the ApiUrl field value +func (o *ConfigPropertiesJira) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesJira) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *ConfigPropertiesJira) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetProjectKey returns the ProjectKey field value +func (o *ConfigPropertiesJira) GetProjectKey() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectKey +} + +// GetProjectKeyOk returns a tuple with the ProjectKey field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesJira) GetProjectKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectKey, true +} + +// SetProjectKey sets field value +func (o *ConfigPropertiesJira) SetProjectKey(v string) { + o.ProjectKey = v +} + +func (o ConfigPropertiesJira) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesJira) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + toSerialize["projectKey"] = o.ProjectKey + return toSerialize, nil +} + +type NullableConfigPropertiesJira struct { + value *ConfigPropertiesJira + isSet bool +} + +func (v NullableConfigPropertiesJira) Get() *ConfigPropertiesJira { + return v.value +} + +func (v *NullableConfigPropertiesJira) Set(val *ConfigPropertiesJira) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesJira) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesJira) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesJira(val *ConfigPropertiesJira) *NullableConfigPropertiesJira { + return &NullableConfigPropertiesJira{value: val, isSet: true} +} + +func (v NullableConfigPropertiesJira) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesJira) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_opsgenie.go b/generated/kibanaactions/model_config_properties_opsgenie.go new file mode 100644 index 000000000..37bfde227 --- /dev/null +++ b/generated/kibanaactions/model_config_properties_opsgenie.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesOpsgenie type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesOpsgenie{} + +// ConfigPropertiesOpsgenie Defines properties for connectors when type is `.opsgenie`. +type ConfigPropertiesOpsgenie struct { + // The Opsgenie URL. For example, `https://api.opsgenie.com` or `https://api.eu.opsgenie.com`. If you are using the `xpack.actions.allowedHosts` setting, add the hostname to the allowed hosts. + ApiUrl string `json:"apiUrl"` +} + +// NewConfigPropertiesOpsgenie instantiates a new ConfigPropertiesOpsgenie object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesOpsgenie(apiUrl string) *ConfigPropertiesOpsgenie { + this := ConfigPropertiesOpsgenie{} + this.ApiUrl = apiUrl + return &this +} + +// NewConfigPropertiesOpsgenieWithDefaults instantiates a new ConfigPropertiesOpsgenie object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesOpsgenieWithDefaults() *ConfigPropertiesOpsgenie { + this := ConfigPropertiesOpsgenie{} + return &this +} + +// GetApiUrl returns the ApiUrl field value +func (o *ConfigPropertiesOpsgenie) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesOpsgenie) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *ConfigPropertiesOpsgenie) SetApiUrl(v string) { + o.ApiUrl = v +} + +func (o ConfigPropertiesOpsgenie) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesOpsgenie) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + return toSerialize, nil +} + +type NullableConfigPropertiesOpsgenie struct { + value *ConfigPropertiesOpsgenie + isSet bool +} + +func (v NullableConfigPropertiesOpsgenie) Get() *ConfigPropertiesOpsgenie { + return v.value +} + +func (v *NullableConfigPropertiesOpsgenie) Set(val *ConfigPropertiesOpsgenie) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesOpsgenie) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesOpsgenie) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesOpsgenie(val *ConfigPropertiesOpsgenie) *NullableConfigPropertiesOpsgenie { + return &NullableConfigPropertiesOpsgenie{value: val, isSet: true} +} + +func (v NullableConfigPropertiesOpsgenie) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesOpsgenie) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_resilient.go b/generated/kibanaactions/model_config_properties_resilient.go new file mode 100644 index 000000000..963cb6472 --- /dev/null +++ b/generated/kibanaactions/model_config_properties_resilient.go @@ -0,0 +1,144 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesResilient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesResilient{} + +// ConfigPropertiesResilient Defines properties for connectors when type is `.resilient`. +type ConfigPropertiesResilient struct { + // The IBM Resilient instance URL. + ApiUrl string `json:"apiUrl"` + // The IBM Resilient organization ID. + OrgId string `json:"orgId"` +} + +// NewConfigPropertiesResilient instantiates a new ConfigPropertiesResilient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesResilient(apiUrl string, orgId string) *ConfigPropertiesResilient { + this := ConfigPropertiesResilient{} + this.ApiUrl = apiUrl + this.OrgId = orgId + return &this +} + +// NewConfigPropertiesResilientWithDefaults instantiates a new ConfigPropertiesResilient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesResilientWithDefaults() *ConfigPropertiesResilient { + this := ConfigPropertiesResilient{} + return &this +} + +// GetApiUrl returns the ApiUrl field value +func (o *ConfigPropertiesResilient) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesResilient) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *ConfigPropertiesResilient) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetOrgId returns the OrgId field value +func (o *ConfigPropertiesResilient) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesResilient) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *ConfigPropertiesResilient) SetOrgId(v string) { + o.OrgId = v +} + +func (o ConfigPropertiesResilient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesResilient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + toSerialize["orgId"] = o.OrgId + return toSerialize, nil +} + +type NullableConfigPropertiesResilient struct { + value *ConfigPropertiesResilient + isSet bool +} + +func (v NullableConfigPropertiesResilient) Get() *ConfigPropertiesResilient { + return v.value +} + +func (v *NullableConfigPropertiesResilient) Set(val *ConfigPropertiesResilient) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesResilient) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesResilient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesResilient(val *ConfigPropertiesResilient) *NullableConfigPropertiesResilient { + return &NullableConfigPropertiesResilient{value: val, isSet: true} +} + +func (v NullableConfigPropertiesResilient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesResilient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_servicenow.go b/generated/kibanaactions/model_config_properties_servicenow.go new file mode 100644 index 000000000..75be2f2e3 --- /dev/null +++ b/generated/kibanaactions/model_config_properties_servicenow.go @@ -0,0 +1,309 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesServicenow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesServicenow{} + +// ConfigPropertiesServicenow Defines properties for connectors when type is `.servicenow`. +type ConfigPropertiesServicenow struct { + // The ServiceNow instance URL. + ApiUrl string `json:"apiUrl"` + // The client ID assigned to your OAuth application. This property is required when `isOAuth` is `true`. + ClientId *string `json:"clientId,omitempty"` + // The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth). + IsOAuth *bool `json:"isOAuth,omitempty"` + // The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`. + JwtKeyId *string `json:"jwtKeyId,omitempty"` + // The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is `Email`, the user identifier should be the user's email address. This property is required when `isOAuth` is `true`. + UserIdentifierValue *string `json:"userIdentifierValue,omitempty"` + // Determines whether the connector uses the Table API or the Import Set API. This property is supported only for ServiceNow ITSM and ServiceNow SecOps connectors. NOTE: If this property is set to `false`, the Elastic application should be installed in ServiceNow. + UsesTableApi *bool `json:"usesTableApi,omitempty"` +} + +// NewConfigPropertiesServicenow instantiates a new ConfigPropertiesServicenow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesServicenow(apiUrl string) *ConfigPropertiesServicenow { + this := ConfigPropertiesServicenow{} + this.ApiUrl = apiUrl + var isOAuth bool = false + this.IsOAuth = &isOAuth + var usesTableApi bool = true + this.UsesTableApi = &usesTableApi + return &this +} + +// NewConfigPropertiesServicenowWithDefaults instantiates a new ConfigPropertiesServicenow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesServicenowWithDefaults() *ConfigPropertiesServicenow { + this := ConfigPropertiesServicenow{} + var isOAuth bool = false + this.IsOAuth = &isOAuth + var usesTableApi bool = true + this.UsesTableApi = &usesTableApi + return &this +} + +// GetApiUrl returns the ApiUrl field value +func (o *ConfigPropertiesServicenow) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenow) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *ConfigPropertiesServicenow) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenow) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenow) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenow) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ConfigPropertiesServicenow) SetClientId(v string) { + o.ClientId = &v +} + +// GetIsOAuth returns the IsOAuth field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenow) GetIsOAuth() bool { + if o == nil || IsNil(o.IsOAuth) { + var ret bool + return ret + } + return *o.IsOAuth +} + +// GetIsOAuthOk returns a tuple with the IsOAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenow) GetIsOAuthOk() (*bool, bool) { + if o == nil || IsNil(o.IsOAuth) { + return nil, false + } + return o.IsOAuth, true +} + +// HasIsOAuth returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenow) HasIsOAuth() bool { + if o != nil && !IsNil(o.IsOAuth) { + return true + } + + return false +} + +// SetIsOAuth gets a reference to the given bool and assigns it to the IsOAuth field. +func (o *ConfigPropertiesServicenow) SetIsOAuth(v bool) { + o.IsOAuth = &v +} + +// GetJwtKeyId returns the JwtKeyId field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenow) GetJwtKeyId() string { + if o == nil || IsNil(o.JwtKeyId) { + var ret string + return ret + } + return *o.JwtKeyId +} + +// GetJwtKeyIdOk returns a tuple with the JwtKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenow) GetJwtKeyIdOk() (*string, bool) { + if o == nil || IsNil(o.JwtKeyId) { + return nil, false + } + return o.JwtKeyId, true +} + +// HasJwtKeyId returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenow) HasJwtKeyId() bool { + if o != nil && !IsNil(o.JwtKeyId) { + return true + } + + return false +} + +// SetJwtKeyId gets a reference to the given string and assigns it to the JwtKeyId field. +func (o *ConfigPropertiesServicenow) SetJwtKeyId(v string) { + o.JwtKeyId = &v +} + +// GetUserIdentifierValue returns the UserIdentifierValue field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenow) GetUserIdentifierValue() string { + if o == nil || IsNil(o.UserIdentifierValue) { + var ret string + return ret + } + return *o.UserIdentifierValue +} + +// GetUserIdentifierValueOk returns a tuple with the UserIdentifierValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenow) GetUserIdentifierValueOk() (*string, bool) { + if o == nil || IsNil(o.UserIdentifierValue) { + return nil, false + } + return o.UserIdentifierValue, true +} + +// HasUserIdentifierValue returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenow) HasUserIdentifierValue() bool { + if o != nil && !IsNil(o.UserIdentifierValue) { + return true + } + + return false +} + +// SetUserIdentifierValue gets a reference to the given string and assigns it to the UserIdentifierValue field. +func (o *ConfigPropertiesServicenow) SetUserIdentifierValue(v string) { + o.UserIdentifierValue = &v +} + +// GetUsesTableApi returns the UsesTableApi field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenow) GetUsesTableApi() bool { + if o == nil || IsNil(o.UsesTableApi) { + var ret bool + return ret + } + return *o.UsesTableApi +} + +// GetUsesTableApiOk returns a tuple with the UsesTableApi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenow) GetUsesTableApiOk() (*bool, bool) { + if o == nil || IsNil(o.UsesTableApi) { + return nil, false + } + return o.UsesTableApi, true +} + +// HasUsesTableApi returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenow) HasUsesTableApi() bool { + if o != nil && !IsNil(o.UsesTableApi) { + return true + } + + return false +} + +// SetUsesTableApi gets a reference to the given bool and assigns it to the UsesTableApi field. +func (o *ConfigPropertiesServicenow) SetUsesTableApi(v bool) { + o.UsesTableApi = &v +} + +func (o ConfigPropertiesServicenow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesServicenow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.IsOAuth) { + toSerialize["isOAuth"] = o.IsOAuth + } + if !IsNil(o.JwtKeyId) { + toSerialize["jwtKeyId"] = o.JwtKeyId + } + if !IsNil(o.UserIdentifierValue) { + toSerialize["userIdentifierValue"] = o.UserIdentifierValue + } + if !IsNil(o.UsesTableApi) { + toSerialize["usesTableApi"] = o.UsesTableApi + } + return toSerialize, nil +} + +type NullableConfigPropertiesServicenow struct { + value *ConfigPropertiesServicenow + isSet bool +} + +func (v NullableConfigPropertiesServicenow) Get() *ConfigPropertiesServicenow { + return v.value +} + +func (v *NullableConfigPropertiesServicenow) Set(val *ConfigPropertiesServicenow) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesServicenow) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesServicenow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesServicenow(val *ConfigPropertiesServicenow) *NullableConfigPropertiesServicenow { + return &NullableConfigPropertiesServicenow{value: val, isSet: true} +} + +func (v NullableConfigPropertiesServicenow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesServicenow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_servicenow_itom.go b/generated/kibanaactions/model_config_properties_servicenow_itom.go new file mode 100644 index 000000000..7fcb061b0 --- /dev/null +++ b/generated/kibanaactions/model_config_properties_servicenow_itom.go @@ -0,0 +1,268 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesServicenowItom type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesServicenowItom{} + +// ConfigPropertiesServicenowItom Defines properties for connectors when type is `.servicenow`. +type ConfigPropertiesServicenowItom struct { + // The ServiceNow instance URL. + ApiUrl string `json:"apiUrl"` + // The client ID assigned to your OAuth application. This property is required when `isOAuth` is `true`. + ClientId *string `json:"clientId,omitempty"` + // The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth). + IsOAuth *bool `json:"isOAuth,omitempty"` + // The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when `isOAuth` is `true`. + JwtKeyId *string `json:"jwtKeyId,omitempty"` + // The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is `Email`, the user identifier should be the user's email address. This property is required when `isOAuth` is `true`. + UserIdentifierValue *string `json:"userIdentifierValue,omitempty"` +} + +// NewConfigPropertiesServicenowItom instantiates a new ConfigPropertiesServicenowItom object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesServicenowItom(apiUrl string) *ConfigPropertiesServicenowItom { + this := ConfigPropertiesServicenowItom{} + this.ApiUrl = apiUrl + var isOAuth bool = false + this.IsOAuth = &isOAuth + return &this +} + +// NewConfigPropertiesServicenowItomWithDefaults instantiates a new ConfigPropertiesServicenowItom object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesServicenowItomWithDefaults() *ConfigPropertiesServicenowItom { + this := ConfigPropertiesServicenowItom{} + var isOAuth bool = false + this.IsOAuth = &isOAuth + return &this +} + +// GetApiUrl returns the ApiUrl field value +func (o *ConfigPropertiesServicenowItom) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenowItom) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *ConfigPropertiesServicenowItom) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenowItom) GetClientId() string { + if o == nil || IsNil(o.ClientId) { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenowItom) GetClientIdOk() (*string, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenowItom) HasClientId() bool { + if o != nil && !IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ConfigPropertiesServicenowItom) SetClientId(v string) { + o.ClientId = &v +} + +// GetIsOAuth returns the IsOAuth field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenowItom) GetIsOAuth() bool { + if o == nil || IsNil(o.IsOAuth) { + var ret bool + return ret + } + return *o.IsOAuth +} + +// GetIsOAuthOk returns a tuple with the IsOAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenowItom) GetIsOAuthOk() (*bool, bool) { + if o == nil || IsNil(o.IsOAuth) { + return nil, false + } + return o.IsOAuth, true +} + +// HasIsOAuth returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenowItom) HasIsOAuth() bool { + if o != nil && !IsNil(o.IsOAuth) { + return true + } + + return false +} + +// SetIsOAuth gets a reference to the given bool and assigns it to the IsOAuth field. +func (o *ConfigPropertiesServicenowItom) SetIsOAuth(v bool) { + o.IsOAuth = &v +} + +// GetJwtKeyId returns the JwtKeyId field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenowItom) GetJwtKeyId() string { + if o == nil || IsNil(o.JwtKeyId) { + var ret string + return ret + } + return *o.JwtKeyId +} + +// GetJwtKeyIdOk returns a tuple with the JwtKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenowItom) GetJwtKeyIdOk() (*string, bool) { + if o == nil || IsNil(o.JwtKeyId) { + return nil, false + } + return o.JwtKeyId, true +} + +// HasJwtKeyId returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenowItom) HasJwtKeyId() bool { + if o != nil && !IsNil(o.JwtKeyId) { + return true + } + + return false +} + +// SetJwtKeyId gets a reference to the given string and assigns it to the JwtKeyId field. +func (o *ConfigPropertiesServicenowItom) SetJwtKeyId(v string) { + o.JwtKeyId = &v +} + +// GetUserIdentifierValue returns the UserIdentifierValue field value if set, zero value otherwise. +func (o *ConfigPropertiesServicenowItom) GetUserIdentifierValue() string { + if o == nil || IsNil(o.UserIdentifierValue) { + var ret string + return ret + } + return *o.UserIdentifierValue +} + +// GetUserIdentifierValueOk returns a tuple with the UserIdentifierValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesServicenowItom) GetUserIdentifierValueOk() (*string, bool) { + if o == nil || IsNil(o.UserIdentifierValue) { + return nil, false + } + return o.UserIdentifierValue, true +} + +// HasUserIdentifierValue returns a boolean if a field has been set. +func (o *ConfigPropertiesServicenowItom) HasUserIdentifierValue() bool { + if o != nil && !IsNil(o.UserIdentifierValue) { + return true + } + + return false +} + +// SetUserIdentifierValue gets a reference to the given string and assigns it to the UserIdentifierValue field. +func (o *ConfigPropertiesServicenowItom) SetUserIdentifierValue(v string) { + o.UserIdentifierValue = &v +} + +func (o ConfigPropertiesServicenowItom) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesServicenowItom) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + if !IsNil(o.ClientId) { + toSerialize["clientId"] = o.ClientId + } + if !IsNil(o.IsOAuth) { + toSerialize["isOAuth"] = o.IsOAuth + } + if !IsNil(o.JwtKeyId) { + toSerialize["jwtKeyId"] = o.JwtKeyId + } + if !IsNil(o.UserIdentifierValue) { + toSerialize["userIdentifierValue"] = o.UserIdentifierValue + } + return toSerialize, nil +} + +type NullableConfigPropertiesServicenowItom struct { + value *ConfigPropertiesServicenowItom + isSet bool +} + +func (v NullableConfigPropertiesServicenowItom) Get() *ConfigPropertiesServicenowItom { + return v.value +} + +func (v *NullableConfigPropertiesServicenowItom) Set(val *ConfigPropertiesServicenowItom) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesServicenowItom) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesServicenowItom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesServicenowItom(val *ConfigPropertiesServicenowItom) *NullableConfigPropertiesServicenowItom { + return &NullableConfigPropertiesServicenowItom{value: val, isSet: true} +} + +func (v NullableConfigPropertiesServicenowItom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesServicenowItom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_config_properties_swimlane.go b/generated/kibanaactions/model_config_properties_swimlane.go new file mode 100644 index 000000000..5f7e80cae --- /dev/null +++ b/generated/kibanaactions/model_config_properties_swimlane.go @@ -0,0 +1,208 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConfigPropertiesSwimlane type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigPropertiesSwimlane{} + +// ConfigPropertiesSwimlane Defines properties for connectors when type is `.swimlane`. +type ConfigPropertiesSwimlane struct { + // The Swimlane instance URL. + ApiUrl string `json:"apiUrl"` + // The Swimlane application ID. + AppId string `json:"appId"` + // The type of connector. Valid values are `all`, `alerts`, and `cases`. + ConnectorType string `json:"connectorType"` + Mappings *ConnectorMappingsPropertiesForASwimlaneConnector `json:"mappings,omitempty"` +} + +// NewConfigPropertiesSwimlane instantiates a new ConfigPropertiesSwimlane object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigPropertiesSwimlane(apiUrl string, appId string, connectorType string) *ConfigPropertiesSwimlane { + this := ConfigPropertiesSwimlane{} + this.ApiUrl = apiUrl + this.AppId = appId + this.ConnectorType = connectorType + return &this +} + +// NewConfigPropertiesSwimlaneWithDefaults instantiates a new ConfigPropertiesSwimlane object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigPropertiesSwimlaneWithDefaults() *ConfigPropertiesSwimlane { + this := ConfigPropertiesSwimlane{} + return &this +} + +// GetApiUrl returns the ApiUrl field value +func (o *ConfigPropertiesSwimlane) GetApiUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ApiUrl +} + +// GetApiUrlOk returns a tuple with the ApiUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesSwimlane) GetApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiUrl, true +} + +// SetApiUrl sets field value +func (o *ConfigPropertiesSwimlane) SetApiUrl(v string) { + o.ApiUrl = v +} + +// GetAppId returns the AppId field value +func (o *ConfigPropertiesSwimlane) GetAppId() string { + if o == nil { + var ret string + return ret + } + + return o.AppId +} + +// GetAppIdOk returns a tuple with the AppId field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesSwimlane) GetAppIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AppId, true +} + +// SetAppId sets field value +func (o *ConfigPropertiesSwimlane) SetAppId(v string) { + o.AppId = v +} + +// GetConnectorType returns the ConnectorType field value +func (o *ConfigPropertiesSwimlane) GetConnectorType() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorType +} + +// GetConnectorTypeOk returns a tuple with the ConnectorType field value +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesSwimlane) GetConnectorTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorType, true +} + +// SetConnectorType sets field value +func (o *ConfigPropertiesSwimlane) SetConnectorType(v string) { + o.ConnectorType = v +} + +// GetMappings returns the Mappings field value if set, zero value otherwise. +func (o *ConfigPropertiesSwimlane) GetMappings() ConnectorMappingsPropertiesForASwimlaneConnector { + if o == nil || IsNil(o.Mappings) { + var ret ConnectorMappingsPropertiesForASwimlaneConnector + return ret + } + return *o.Mappings +} + +// GetMappingsOk returns a tuple with the Mappings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigPropertiesSwimlane) GetMappingsOk() (*ConnectorMappingsPropertiesForASwimlaneConnector, bool) { + if o == nil || IsNil(o.Mappings) { + return nil, false + } + return o.Mappings, true +} + +// HasMappings returns a boolean if a field has been set. +func (o *ConfigPropertiesSwimlane) HasMappings() bool { + if o != nil && !IsNil(o.Mappings) { + return true + } + + return false +} + +// SetMappings gets a reference to the given ConnectorMappingsPropertiesForASwimlaneConnector and assigns it to the Mappings field. +func (o *ConfigPropertiesSwimlane) SetMappings(v ConnectorMappingsPropertiesForASwimlaneConnector) { + o.Mappings = &v +} + +func (o ConfigPropertiesSwimlane) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigPropertiesSwimlane) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiUrl"] = o.ApiUrl + toSerialize["appId"] = o.AppId + toSerialize["connectorType"] = o.ConnectorType + if !IsNil(o.Mappings) { + toSerialize["mappings"] = o.Mappings + } + return toSerialize, nil +} + +type NullableConfigPropertiesSwimlane struct { + value *ConfigPropertiesSwimlane + isSet bool +} + +func (v NullableConfigPropertiesSwimlane) Get() *ConfigPropertiesSwimlane { + return v.value +} + +func (v *NullableConfigPropertiesSwimlane) Set(val *ConfigPropertiesSwimlane) { + v.value = val + v.isSet = true +} + +func (v NullableConfigPropertiesSwimlane) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigPropertiesSwimlane) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigPropertiesSwimlane(val *ConfigPropertiesSwimlane) *NullableConfigPropertiesSwimlane { + return &NullableConfigPropertiesSwimlane{value: val, isSet: true} +} + +func (v NullableConfigPropertiesSwimlane) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigPropertiesSwimlane) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_mappings_properties_for_a_swimlane_connector.go b/generated/kibanaactions/model_connector_mappings_properties_for_a_swimlane_connector.go new file mode 100644 index 000000000..c5f624a25 --- /dev/null +++ b/generated/kibanaactions/model_connector_mappings_properties_for_a_swimlane_connector.go @@ -0,0 +1,340 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorMappingsPropertiesForASwimlaneConnector type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorMappingsPropertiesForASwimlaneConnector{} + +// ConnectorMappingsPropertiesForASwimlaneConnector The field mapping. +type ConnectorMappingsPropertiesForASwimlaneConnector struct { + AlertIdConfig *AlertIdentifierMapping `json:"alertIdConfig,omitempty"` + CaseIdConfig *CaseIdentifierMapping `json:"caseIdConfig,omitempty"` + CaseNameConfig *CaseNameMapping `json:"caseNameConfig,omitempty"` + CommentsConfig *CaseCommentMapping `json:"commentsConfig,omitempty"` + DescriptionConfig *CaseDescriptionMapping `json:"descriptionConfig,omitempty"` + RuleNameConfig *RuleNameMapping `json:"ruleNameConfig,omitempty"` + SeverityConfig *SeverityMapping `json:"severityConfig,omitempty"` +} + +// NewConnectorMappingsPropertiesForASwimlaneConnector instantiates a new ConnectorMappingsPropertiesForASwimlaneConnector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorMappingsPropertiesForASwimlaneConnector() *ConnectorMappingsPropertiesForASwimlaneConnector { + this := ConnectorMappingsPropertiesForASwimlaneConnector{} + return &this +} + +// NewConnectorMappingsPropertiesForASwimlaneConnectorWithDefaults instantiates a new ConnectorMappingsPropertiesForASwimlaneConnector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorMappingsPropertiesForASwimlaneConnectorWithDefaults() *ConnectorMappingsPropertiesForASwimlaneConnector { + this := ConnectorMappingsPropertiesForASwimlaneConnector{} + return &this +} + +// GetAlertIdConfig returns the AlertIdConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetAlertIdConfig() AlertIdentifierMapping { + if o == nil || IsNil(o.AlertIdConfig) { + var ret AlertIdentifierMapping + return ret + } + return *o.AlertIdConfig +} + +// GetAlertIdConfigOk returns a tuple with the AlertIdConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetAlertIdConfigOk() (*AlertIdentifierMapping, bool) { + if o == nil || IsNil(o.AlertIdConfig) { + return nil, false + } + return o.AlertIdConfig, true +} + +// HasAlertIdConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasAlertIdConfig() bool { + if o != nil && !IsNil(o.AlertIdConfig) { + return true + } + + return false +} + +// SetAlertIdConfig gets a reference to the given AlertIdentifierMapping and assigns it to the AlertIdConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetAlertIdConfig(v AlertIdentifierMapping) { + o.AlertIdConfig = &v +} + +// GetCaseIdConfig returns the CaseIdConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseIdConfig() CaseIdentifierMapping { + if o == nil || IsNil(o.CaseIdConfig) { + var ret CaseIdentifierMapping + return ret + } + return *o.CaseIdConfig +} + +// GetCaseIdConfigOk returns a tuple with the CaseIdConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseIdConfigOk() (*CaseIdentifierMapping, bool) { + if o == nil || IsNil(o.CaseIdConfig) { + return nil, false + } + return o.CaseIdConfig, true +} + +// HasCaseIdConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasCaseIdConfig() bool { + if o != nil && !IsNil(o.CaseIdConfig) { + return true + } + + return false +} + +// SetCaseIdConfig gets a reference to the given CaseIdentifierMapping and assigns it to the CaseIdConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetCaseIdConfig(v CaseIdentifierMapping) { + o.CaseIdConfig = &v +} + +// GetCaseNameConfig returns the CaseNameConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseNameConfig() CaseNameMapping { + if o == nil || IsNil(o.CaseNameConfig) { + var ret CaseNameMapping + return ret + } + return *o.CaseNameConfig +} + +// GetCaseNameConfigOk returns a tuple with the CaseNameConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCaseNameConfigOk() (*CaseNameMapping, bool) { + if o == nil || IsNil(o.CaseNameConfig) { + return nil, false + } + return o.CaseNameConfig, true +} + +// HasCaseNameConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasCaseNameConfig() bool { + if o != nil && !IsNil(o.CaseNameConfig) { + return true + } + + return false +} + +// SetCaseNameConfig gets a reference to the given CaseNameMapping and assigns it to the CaseNameConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetCaseNameConfig(v CaseNameMapping) { + o.CaseNameConfig = &v +} + +// GetCommentsConfig returns the CommentsConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCommentsConfig() CaseCommentMapping { + if o == nil || IsNil(o.CommentsConfig) { + var ret CaseCommentMapping + return ret + } + return *o.CommentsConfig +} + +// GetCommentsConfigOk returns a tuple with the CommentsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetCommentsConfigOk() (*CaseCommentMapping, bool) { + if o == nil || IsNil(o.CommentsConfig) { + return nil, false + } + return o.CommentsConfig, true +} + +// HasCommentsConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasCommentsConfig() bool { + if o != nil && !IsNil(o.CommentsConfig) { + return true + } + + return false +} + +// SetCommentsConfig gets a reference to the given CaseCommentMapping and assigns it to the CommentsConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetCommentsConfig(v CaseCommentMapping) { + o.CommentsConfig = &v +} + +// GetDescriptionConfig returns the DescriptionConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetDescriptionConfig() CaseDescriptionMapping { + if o == nil || IsNil(o.DescriptionConfig) { + var ret CaseDescriptionMapping + return ret + } + return *o.DescriptionConfig +} + +// GetDescriptionConfigOk returns a tuple with the DescriptionConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetDescriptionConfigOk() (*CaseDescriptionMapping, bool) { + if o == nil || IsNil(o.DescriptionConfig) { + return nil, false + } + return o.DescriptionConfig, true +} + +// HasDescriptionConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasDescriptionConfig() bool { + if o != nil && !IsNil(o.DescriptionConfig) { + return true + } + + return false +} + +// SetDescriptionConfig gets a reference to the given CaseDescriptionMapping and assigns it to the DescriptionConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetDescriptionConfig(v CaseDescriptionMapping) { + o.DescriptionConfig = &v +} + +// GetRuleNameConfig returns the RuleNameConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetRuleNameConfig() RuleNameMapping { + if o == nil || IsNil(o.RuleNameConfig) { + var ret RuleNameMapping + return ret + } + return *o.RuleNameConfig +} + +// GetRuleNameConfigOk returns a tuple with the RuleNameConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetRuleNameConfigOk() (*RuleNameMapping, bool) { + if o == nil || IsNil(o.RuleNameConfig) { + return nil, false + } + return o.RuleNameConfig, true +} + +// HasRuleNameConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasRuleNameConfig() bool { + if o != nil && !IsNil(o.RuleNameConfig) { + return true + } + + return false +} + +// SetRuleNameConfig gets a reference to the given RuleNameMapping and assigns it to the RuleNameConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetRuleNameConfig(v RuleNameMapping) { + o.RuleNameConfig = &v +} + +// GetSeverityConfig returns the SeverityConfig field value if set, zero value otherwise. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetSeverityConfig() SeverityMapping { + if o == nil || IsNil(o.SeverityConfig) { + var ret SeverityMapping + return ret + } + return *o.SeverityConfig +} + +// GetSeverityConfigOk returns a tuple with the SeverityConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) GetSeverityConfigOk() (*SeverityMapping, bool) { + if o == nil || IsNil(o.SeverityConfig) { + return nil, false + } + return o.SeverityConfig, true +} + +// HasSeverityConfig returns a boolean if a field has been set. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) HasSeverityConfig() bool { + if o != nil && !IsNil(o.SeverityConfig) { + return true + } + + return false +} + +// SetSeverityConfig gets a reference to the given SeverityMapping and assigns it to the SeverityConfig field. +func (o *ConnectorMappingsPropertiesForASwimlaneConnector) SetSeverityConfig(v SeverityMapping) { + o.SeverityConfig = &v +} + +func (o ConnectorMappingsPropertiesForASwimlaneConnector) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorMappingsPropertiesForASwimlaneConnector) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlertIdConfig) { + toSerialize["alertIdConfig"] = o.AlertIdConfig + } + if !IsNil(o.CaseIdConfig) { + toSerialize["caseIdConfig"] = o.CaseIdConfig + } + if !IsNil(o.CaseNameConfig) { + toSerialize["caseNameConfig"] = o.CaseNameConfig + } + if !IsNil(o.CommentsConfig) { + toSerialize["commentsConfig"] = o.CommentsConfig + } + if !IsNil(o.DescriptionConfig) { + toSerialize["descriptionConfig"] = o.DescriptionConfig + } + if !IsNil(o.RuleNameConfig) { + toSerialize["ruleNameConfig"] = o.RuleNameConfig + } + if !IsNil(o.SeverityConfig) { + toSerialize["severityConfig"] = o.SeverityConfig + } + return toSerialize, nil +} + +type NullableConnectorMappingsPropertiesForASwimlaneConnector struct { + value *ConnectorMappingsPropertiesForASwimlaneConnector + isSet bool +} + +func (v NullableConnectorMappingsPropertiesForASwimlaneConnector) Get() *ConnectorMappingsPropertiesForASwimlaneConnector { + return v.value +} + +func (v *NullableConnectorMappingsPropertiesForASwimlaneConnector) Set(val *ConnectorMappingsPropertiesForASwimlaneConnector) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorMappingsPropertiesForASwimlaneConnector) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorMappingsPropertiesForASwimlaneConnector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorMappingsPropertiesForASwimlaneConnector(val *ConnectorMappingsPropertiesForASwimlaneConnector) *NullableConnectorMappingsPropertiesForASwimlaneConnector { + return &NullableConnectorMappingsPropertiesForASwimlaneConnector{value: val, isSet: true} +} + +func (v NullableConnectorMappingsPropertiesForASwimlaneConnector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorMappingsPropertiesForASwimlaneConnector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties.go b/generated/kibanaactions/model_connector_response_properties.go new file mode 100644 index 000000000..6b174f9d4 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties.go @@ -0,0 +1,595 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// ConnectorResponseProperties - The properties vary depending on the connector type. +type ConnectorResponseProperties struct { + ConnectorResponsePropertiesCasesWebhook *ConnectorResponsePropertiesCasesWebhook + ConnectorResponsePropertiesEmail *ConnectorResponsePropertiesEmail + ConnectorResponsePropertiesIndex *ConnectorResponsePropertiesIndex + ConnectorResponsePropertiesJira *ConnectorResponsePropertiesJira + ConnectorResponsePropertiesOpsgenie *ConnectorResponsePropertiesOpsgenie + ConnectorResponsePropertiesPagerduty *ConnectorResponsePropertiesPagerduty + ConnectorResponsePropertiesResilient *ConnectorResponsePropertiesResilient + ConnectorResponsePropertiesServerlog *ConnectorResponsePropertiesServerlog + ConnectorResponsePropertiesServicenow *ConnectorResponsePropertiesServicenow + ConnectorResponsePropertiesServicenowItom *ConnectorResponsePropertiesServicenowItom + ConnectorResponsePropertiesServicenowSir *ConnectorResponsePropertiesServicenowSir + ConnectorResponsePropertiesSlack *ConnectorResponsePropertiesSlack + ConnectorResponsePropertiesSwimlane *ConnectorResponsePropertiesSwimlane + ConnectorResponsePropertiesTeams *ConnectorResponsePropertiesTeams + ConnectorResponsePropertiesTines *ConnectorResponsePropertiesTines + ConnectorResponsePropertiesWebhook *ConnectorResponsePropertiesWebhook + ConnectorResponsePropertiesXmatters *ConnectorResponsePropertiesXmatters +} + +// ConnectorResponsePropertiesCasesWebhookAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesCasesWebhook wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesCasesWebhookAsConnectorResponseProperties(v *ConnectorResponsePropertiesCasesWebhook) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesCasesWebhook: v, + } +} + +// ConnectorResponsePropertiesEmailAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesEmail wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesEmailAsConnectorResponseProperties(v *ConnectorResponsePropertiesEmail) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesEmail: v, + } +} + +// ConnectorResponsePropertiesIndexAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesIndex wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesIndexAsConnectorResponseProperties(v *ConnectorResponsePropertiesIndex) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesIndex: v, + } +} + +// ConnectorResponsePropertiesJiraAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesJira wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesJiraAsConnectorResponseProperties(v *ConnectorResponsePropertiesJira) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesJira: v, + } +} + +// ConnectorResponsePropertiesOpsgenieAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesOpsgenie wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesOpsgenieAsConnectorResponseProperties(v *ConnectorResponsePropertiesOpsgenie) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesOpsgenie: v, + } +} + +// ConnectorResponsePropertiesPagerdutyAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesPagerduty wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesPagerdutyAsConnectorResponseProperties(v *ConnectorResponsePropertiesPagerduty) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesPagerduty: v, + } +} + +// ConnectorResponsePropertiesResilientAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesResilient wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesResilientAsConnectorResponseProperties(v *ConnectorResponsePropertiesResilient) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesResilient: v, + } +} + +// ConnectorResponsePropertiesServerlogAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesServerlog wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesServerlogAsConnectorResponseProperties(v *ConnectorResponsePropertiesServerlog) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesServerlog: v, + } +} + +// ConnectorResponsePropertiesServicenowAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesServicenow wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesServicenowAsConnectorResponseProperties(v *ConnectorResponsePropertiesServicenow) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesServicenow: v, + } +} + +// ConnectorResponsePropertiesServicenowItomAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesServicenowItom wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesServicenowItomAsConnectorResponseProperties(v *ConnectorResponsePropertiesServicenowItom) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesServicenowItom: v, + } +} + +// ConnectorResponsePropertiesServicenowSirAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesServicenowSir wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesServicenowSirAsConnectorResponseProperties(v *ConnectorResponsePropertiesServicenowSir) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesServicenowSir: v, + } +} + +// ConnectorResponsePropertiesSlackAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesSlack wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesSlackAsConnectorResponseProperties(v *ConnectorResponsePropertiesSlack) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesSlack: v, + } +} + +// ConnectorResponsePropertiesSwimlaneAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesSwimlane wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesSwimlaneAsConnectorResponseProperties(v *ConnectorResponsePropertiesSwimlane) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesSwimlane: v, + } +} + +// ConnectorResponsePropertiesTeamsAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesTeams wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesTeamsAsConnectorResponseProperties(v *ConnectorResponsePropertiesTeams) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesTeams: v, + } +} + +// ConnectorResponsePropertiesTinesAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesTines wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesTinesAsConnectorResponseProperties(v *ConnectorResponsePropertiesTines) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesTines: v, + } +} + +// ConnectorResponsePropertiesWebhookAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesWebhook wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesWebhookAsConnectorResponseProperties(v *ConnectorResponsePropertiesWebhook) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesWebhook: v, + } +} + +// ConnectorResponsePropertiesXmattersAsConnectorResponseProperties is a convenience function that returns ConnectorResponsePropertiesXmatters wrapped in ConnectorResponseProperties +func ConnectorResponsePropertiesXmattersAsConnectorResponseProperties(v *ConnectorResponsePropertiesXmatters) ConnectorResponseProperties { + return ConnectorResponseProperties{ + ConnectorResponsePropertiesXmatters: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ConnectorResponseProperties) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ConnectorResponsePropertiesCasesWebhook + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesCasesWebhook) + if err == nil { + jsonConnectorResponsePropertiesCasesWebhook, _ := json.Marshal(dst.ConnectorResponsePropertiesCasesWebhook) + if string(jsonConnectorResponsePropertiesCasesWebhook) == "{}" { // empty struct + dst.ConnectorResponsePropertiesCasesWebhook = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesCasesWebhook = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesEmail + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesEmail) + if err == nil { + jsonConnectorResponsePropertiesEmail, _ := json.Marshal(dst.ConnectorResponsePropertiesEmail) + if string(jsonConnectorResponsePropertiesEmail) == "{}" { // empty struct + dst.ConnectorResponsePropertiesEmail = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesEmail = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesIndex + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesIndex) + if err == nil { + jsonConnectorResponsePropertiesIndex, _ := json.Marshal(dst.ConnectorResponsePropertiesIndex) + if string(jsonConnectorResponsePropertiesIndex) == "{}" { // empty struct + dst.ConnectorResponsePropertiesIndex = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesIndex = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesJira + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesJira) + if err == nil { + jsonConnectorResponsePropertiesJira, _ := json.Marshal(dst.ConnectorResponsePropertiesJira) + if string(jsonConnectorResponsePropertiesJira) == "{}" { // empty struct + dst.ConnectorResponsePropertiesJira = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesJira = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesOpsgenie + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesOpsgenie) + if err == nil { + jsonConnectorResponsePropertiesOpsgenie, _ := json.Marshal(dst.ConnectorResponsePropertiesOpsgenie) + if string(jsonConnectorResponsePropertiesOpsgenie) == "{}" { // empty struct + dst.ConnectorResponsePropertiesOpsgenie = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesOpsgenie = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesPagerduty + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesPagerduty) + if err == nil { + jsonConnectorResponsePropertiesPagerduty, _ := json.Marshal(dst.ConnectorResponsePropertiesPagerduty) + if string(jsonConnectorResponsePropertiesPagerduty) == "{}" { // empty struct + dst.ConnectorResponsePropertiesPagerduty = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesPagerduty = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesResilient + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesResilient) + if err == nil { + jsonConnectorResponsePropertiesResilient, _ := json.Marshal(dst.ConnectorResponsePropertiesResilient) + if string(jsonConnectorResponsePropertiesResilient) == "{}" { // empty struct + dst.ConnectorResponsePropertiesResilient = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesResilient = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesServerlog + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesServerlog) + if err == nil { + jsonConnectorResponsePropertiesServerlog, _ := json.Marshal(dst.ConnectorResponsePropertiesServerlog) + if string(jsonConnectorResponsePropertiesServerlog) == "{}" { // empty struct + dst.ConnectorResponsePropertiesServerlog = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesServerlog = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesServicenow + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesServicenow) + if err == nil { + jsonConnectorResponsePropertiesServicenow, _ := json.Marshal(dst.ConnectorResponsePropertiesServicenow) + if string(jsonConnectorResponsePropertiesServicenow) == "{}" { // empty struct + dst.ConnectorResponsePropertiesServicenow = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesServicenow = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesServicenowItom + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesServicenowItom) + if err == nil { + jsonConnectorResponsePropertiesServicenowItom, _ := json.Marshal(dst.ConnectorResponsePropertiesServicenowItom) + if string(jsonConnectorResponsePropertiesServicenowItom) == "{}" { // empty struct + dst.ConnectorResponsePropertiesServicenowItom = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesServicenowItom = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesServicenowSir + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesServicenowSir) + if err == nil { + jsonConnectorResponsePropertiesServicenowSir, _ := json.Marshal(dst.ConnectorResponsePropertiesServicenowSir) + if string(jsonConnectorResponsePropertiesServicenowSir) == "{}" { // empty struct + dst.ConnectorResponsePropertiesServicenowSir = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesServicenowSir = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesSlack + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesSlack) + if err == nil { + jsonConnectorResponsePropertiesSlack, _ := json.Marshal(dst.ConnectorResponsePropertiesSlack) + if string(jsonConnectorResponsePropertiesSlack) == "{}" { // empty struct + dst.ConnectorResponsePropertiesSlack = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesSlack = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesSwimlane + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesSwimlane) + if err == nil { + jsonConnectorResponsePropertiesSwimlane, _ := json.Marshal(dst.ConnectorResponsePropertiesSwimlane) + if string(jsonConnectorResponsePropertiesSwimlane) == "{}" { // empty struct + dst.ConnectorResponsePropertiesSwimlane = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesSwimlane = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesTeams + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesTeams) + if err == nil { + jsonConnectorResponsePropertiesTeams, _ := json.Marshal(dst.ConnectorResponsePropertiesTeams) + if string(jsonConnectorResponsePropertiesTeams) == "{}" { // empty struct + dst.ConnectorResponsePropertiesTeams = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesTeams = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesTines + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesTines) + if err == nil { + jsonConnectorResponsePropertiesTines, _ := json.Marshal(dst.ConnectorResponsePropertiesTines) + if string(jsonConnectorResponsePropertiesTines) == "{}" { // empty struct + dst.ConnectorResponsePropertiesTines = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesTines = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesWebhook + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesWebhook) + if err == nil { + jsonConnectorResponsePropertiesWebhook, _ := json.Marshal(dst.ConnectorResponsePropertiesWebhook) + if string(jsonConnectorResponsePropertiesWebhook) == "{}" { // empty struct + dst.ConnectorResponsePropertiesWebhook = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesWebhook = nil + } + + // try to unmarshal data into ConnectorResponsePropertiesXmatters + err = newStrictDecoder(data).Decode(&dst.ConnectorResponsePropertiesXmatters) + if err == nil { + jsonConnectorResponsePropertiesXmatters, _ := json.Marshal(dst.ConnectorResponsePropertiesXmatters) + if string(jsonConnectorResponsePropertiesXmatters) == "{}" { // empty struct + dst.ConnectorResponsePropertiesXmatters = nil + } else { + match++ + } + } else { + dst.ConnectorResponsePropertiesXmatters = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ConnectorResponsePropertiesCasesWebhook = nil + dst.ConnectorResponsePropertiesEmail = nil + dst.ConnectorResponsePropertiesIndex = nil + dst.ConnectorResponsePropertiesJira = nil + dst.ConnectorResponsePropertiesOpsgenie = nil + dst.ConnectorResponsePropertiesPagerduty = nil + dst.ConnectorResponsePropertiesResilient = nil + dst.ConnectorResponsePropertiesServerlog = nil + dst.ConnectorResponsePropertiesServicenow = nil + dst.ConnectorResponsePropertiesServicenowItom = nil + dst.ConnectorResponsePropertiesServicenowSir = nil + dst.ConnectorResponsePropertiesSlack = nil + dst.ConnectorResponsePropertiesSwimlane = nil + dst.ConnectorResponsePropertiesTeams = nil + dst.ConnectorResponsePropertiesTines = nil + dst.ConnectorResponsePropertiesWebhook = nil + dst.ConnectorResponsePropertiesXmatters = nil + + return fmt.Errorf("data matches more than one schema in oneOf(ConnectorResponseProperties)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(ConnectorResponseProperties)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ConnectorResponseProperties) MarshalJSON() ([]byte, error) { + if src.ConnectorResponsePropertiesCasesWebhook != nil { + return json.Marshal(&src.ConnectorResponsePropertiesCasesWebhook) + } + + if src.ConnectorResponsePropertiesEmail != nil { + return json.Marshal(&src.ConnectorResponsePropertiesEmail) + } + + if src.ConnectorResponsePropertiesIndex != nil { + return json.Marshal(&src.ConnectorResponsePropertiesIndex) + } + + if src.ConnectorResponsePropertiesJira != nil { + return json.Marshal(&src.ConnectorResponsePropertiesJira) + } + + if src.ConnectorResponsePropertiesOpsgenie != nil { + return json.Marshal(&src.ConnectorResponsePropertiesOpsgenie) + } + + if src.ConnectorResponsePropertiesPagerduty != nil { + return json.Marshal(&src.ConnectorResponsePropertiesPagerduty) + } + + if src.ConnectorResponsePropertiesResilient != nil { + return json.Marshal(&src.ConnectorResponsePropertiesResilient) + } + + if src.ConnectorResponsePropertiesServerlog != nil { + return json.Marshal(&src.ConnectorResponsePropertiesServerlog) + } + + if src.ConnectorResponsePropertiesServicenow != nil { + return json.Marshal(&src.ConnectorResponsePropertiesServicenow) + } + + if src.ConnectorResponsePropertiesServicenowItom != nil { + return json.Marshal(&src.ConnectorResponsePropertiesServicenowItom) + } + + if src.ConnectorResponsePropertiesServicenowSir != nil { + return json.Marshal(&src.ConnectorResponsePropertiesServicenowSir) + } + + if src.ConnectorResponsePropertiesSlack != nil { + return json.Marshal(&src.ConnectorResponsePropertiesSlack) + } + + if src.ConnectorResponsePropertiesSwimlane != nil { + return json.Marshal(&src.ConnectorResponsePropertiesSwimlane) + } + + if src.ConnectorResponsePropertiesTeams != nil { + return json.Marshal(&src.ConnectorResponsePropertiesTeams) + } + + if src.ConnectorResponsePropertiesTines != nil { + return json.Marshal(&src.ConnectorResponsePropertiesTines) + } + + if src.ConnectorResponsePropertiesWebhook != nil { + return json.Marshal(&src.ConnectorResponsePropertiesWebhook) + } + + if src.ConnectorResponsePropertiesXmatters != nil { + return json.Marshal(&src.ConnectorResponsePropertiesXmatters) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ConnectorResponseProperties) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ConnectorResponsePropertiesCasesWebhook != nil { + return obj.ConnectorResponsePropertiesCasesWebhook + } + + if obj.ConnectorResponsePropertiesEmail != nil { + return obj.ConnectorResponsePropertiesEmail + } + + if obj.ConnectorResponsePropertiesIndex != nil { + return obj.ConnectorResponsePropertiesIndex + } + + if obj.ConnectorResponsePropertiesJira != nil { + return obj.ConnectorResponsePropertiesJira + } + + if obj.ConnectorResponsePropertiesOpsgenie != nil { + return obj.ConnectorResponsePropertiesOpsgenie + } + + if obj.ConnectorResponsePropertiesPagerduty != nil { + return obj.ConnectorResponsePropertiesPagerduty + } + + if obj.ConnectorResponsePropertiesResilient != nil { + return obj.ConnectorResponsePropertiesResilient + } + + if obj.ConnectorResponsePropertiesServerlog != nil { + return obj.ConnectorResponsePropertiesServerlog + } + + if obj.ConnectorResponsePropertiesServicenow != nil { + return obj.ConnectorResponsePropertiesServicenow + } + + if obj.ConnectorResponsePropertiesServicenowItom != nil { + return obj.ConnectorResponsePropertiesServicenowItom + } + + if obj.ConnectorResponsePropertiesServicenowSir != nil { + return obj.ConnectorResponsePropertiesServicenowSir + } + + if obj.ConnectorResponsePropertiesSlack != nil { + return obj.ConnectorResponsePropertiesSlack + } + + if obj.ConnectorResponsePropertiesSwimlane != nil { + return obj.ConnectorResponsePropertiesSwimlane + } + + if obj.ConnectorResponsePropertiesTeams != nil { + return obj.ConnectorResponsePropertiesTeams + } + + if obj.ConnectorResponsePropertiesTines != nil { + return obj.ConnectorResponsePropertiesTines + } + + if obj.ConnectorResponsePropertiesWebhook != nil { + return obj.ConnectorResponsePropertiesWebhook + } + + if obj.ConnectorResponsePropertiesXmatters != nil { + return obj.ConnectorResponsePropertiesXmatters + } + + // all schemas are nil + return nil +} + +type NullableConnectorResponseProperties struct { + value *ConnectorResponseProperties + isSet bool +} + +func (v NullableConnectorResponseProperties) Get() *ConnectorResponseProperties { + return v.value +} + +func (v *NullableConnectorResponseProperties) Set(val *ConnectorResponseProperties) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponseProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponseProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponseProperties(val *ConnectorResponseProperties) *NullableConnectorResponseProperties { + return &NullableConnectorResponseProperties{value: val, isSet: true} +} + +func (v NullableConnectorResponseProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponseProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_cases_webhook.go b/generated/kibanaactions/model_connector_response_properties_cases_webhook.go new file mode 100644 index 000000000..cda33eb29 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_cases_webhook.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesCasesWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesCasesWebhook{} + +// ConnectorResponsePropertiesCasesWebhook struct for ConnectorResponsePropertiesCasesWebhook +type ConnectorResponsePropertiesCasesWebhook struct { + Config ConfigPropertiesCasesWebhook `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesCasesWebhook instantiates a new ConnectorResponsePropertiesCasesWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesCasesWebhook(config ConfigPropertiesCasesWebhook, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesCasesWebhook { + this := ConnectorResponsePropertiesCasesWebhook{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesCasesWebhookWithDefaults instantiates a new ConnectorResponsePropertiesCasesWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesCasesWebhookWithDefaults() *ConnectorResponsePropertiesCasesWebhook { + this := ConnectorResponsePropertiesCasesWebhook{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesCasesWebhook) GetConfig() ConfigPropertiesCasesWebhook { + if o == nil { + var ret ConfigPropertiesCasesWebhook + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetConfigOk() (*ConfigPropertiesCasesWebhook, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesCasesWebhook) SetConfig(v ConfigPropertiesCasesWebhook) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesCasesWebhook) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesCasesWebhook) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesCasesWebhook) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesCasesWebhook) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesCasesWebhook) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesCasesWebhook) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesCasesWebhook) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesCasesWebhook) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesCasesWebhook) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesCasesWebhook) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesCasesWebhook) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesCasesWebhook) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesCasesWebhook) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesCasesWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesCasesWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesCasesWebhook struct { + value *ConnectorResponsePropertiesCasesWebhook + isSet bool +} + +func (v NullableConnectorResponsePropertiesCasesWebhook) Get() *ConnectorResponsePropertiesCasesWebhook { + return v.value +} + +func (v *NullableConnectorResponsePropertiesCasesWebhook) Set(val *ConnectorResponsePropertiesCasesWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesCasesWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesCasesWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesCasesWebhook(val *ConnectorResponsePropertiesCasesWebhook) *NullableConnectorResponsePropertiesCasesWebhook { + return &NullableConnectorResponsePropertiesCasesWebhook{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesCasesWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesCasesWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_email.go b/generated/kibanaactions/model_connector_response_properties_email.go new file mode 100644 index 000000000..3bca15cc6 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_email.go @@ -0,0 +1,293 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesEmail type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesEmail{} + +// ConnectorResponsePropertiesEmail struct for ConnectorResponsePropertiesEmail +type ConnectorResponsePropertiesEmail struct { + // Defines properties for connectors when type is `.email`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesEmail instantiates a new ConnectorResponsePropertiesEmail object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesEmail(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesEmail { + this := ConnectorResponsePropertiesEmail{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesEmailWithDefaults instantiates a new ConnectorResponsePropertiesEmail object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesEmailWithDefaults() *ConnectorResponsePropertiesEmail { + this := ConnectorResponsePropertiesEmail{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesEmail) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesEmail) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesEmail) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesEmail) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesEmail) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesEmail) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesEmail) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesEmail) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesEmail) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesEmail) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesEmail) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesEmail) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesEmail) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesEmail) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesEmail) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesEmail) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesEmail) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesEmail) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesEmail struct { + value *ConnectorResponsePropertiesEmail + isSet bool +} + +func (v NullableConnectorResponsePropertiesEmail) Get() *ConnectorResponsePropertiesEmail { + return v.value +} + +func (v *NullableConnectorResponsePropertiesEmail) Set(val *ConnectorResponsePropertiesEmail) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesEmail) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesEmail) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesEmail(val *ConnectorResponsePropertiesEmail) *NullableConnectorResponsePropertiesEmail { + return &NullableConnectorResponsePropertiesEmail{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesEmail) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesEmail) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_index.go b/generated/kibanaactions/model_connector_response_properties_index.go new file mode 100644 index 000000000..b02b655a0 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_index.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesIndex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesIndex{} + +// ConnectorResponsePropertiesIndex struct for ConnectorResponsePropertiesIndex +type ConnectorResponsePropertiesIndex struct { + Config ConfigPropertiesIndex `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesIndex instantiates a new ConnectorResponsePropertiesIndex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesIndex(config ConfigPropertiesIndex, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesIndex { + this := ConnectorResponsePropertiesIndex{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesIndexWithDefaults instantiates a new ConnectorResponsePropertiesIndex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesIndexWithDefaults() *ConnectorResponsePropertiesIndex { + this := ConnectorResponsePropertiesIndex{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesIndex) GetConfig() ConfigPropertiesIndex { + if o == nil { + var ret ConfigPropertiesIndex + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetConfigOk() (*ConfigPropertiesIndex, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesIndex) SetConfig(v ConfigPropertiesIndex) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesIndex) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesIndex) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesIndex) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesIndex) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesIndex) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesIndex) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesIndex) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesIndex) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesIndex) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesIndex) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesIndex) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesIndex) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesIndex) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesIndex) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesIndex) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesIndex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesIndex struct { + value *ConnectorResponsePropertiesIndex + isSet bool +} + +func (v NullableConnectorResponsePropertiesIndex) Get() *ConnectorResponsePropertiesIndex { + return v.value +} + +func (v *NullableConnectorResponsePropertiesIndex) Set(val *ConnectorResponsePropertiesIndex) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesIndex) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesIndex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesIndex(val *ConnectorResponsePropertiesIndex) *NullableConnectorResponsePropertiesIndex { + return &NullableConnectorResponsePropertiesIndex{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesIndex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesIndex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_jira.go b/generated/kibanaactions/model_connector_response_properties_jira.go new file mode 100644 index 000000000..fe00c61b1 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_jira.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesJira type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesJira{} + +// ConnectorResponsePropertiesJira struct for ConnectorResponsePropertiesJira +type ConnectorResponsePropertiesJira struct { + Config ConfigPropertiesJira `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesJira instantiates a new ConnectorResponsePropertiesJira object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesJira(config ConfigPropertiesJira, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesJira { + this := ConnectorResponsePropertiesJira{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesJiraWithDefaults instantiates a new ConnectorResponsePropertiesJira object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesJiraWithDefaults() *ConnectorResponsePropertiesJira { + this := ConnectorResponsePropertiesJira{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesJira) GetConfig() ConfigPropertiesJira { + if o == nil { + var ret ConfigPropertiesJira + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetConfigOk() (*ConfigPropertiesJira, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesJira) SetConfig(v ConfigPropertiesJira) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesJira) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesJira) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesJira) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesJira) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesJira) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesJira) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesJira) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesJira) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesJira) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesJira) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesJira) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesJira) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesJira) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesJira) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesJira) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesJira) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesJira struct { + value *ConnectorResponsePropertiesJira + isSet bool +} + +func (v NullableConnectorResponsePropertiesJira) Get() *ConnectorResponsePropertiesJira { + return v.value +} + +func (v *NullableConnectorResponsePropertiesJira) Set(val *ConnectorResponsePropertiesJira) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesJira) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesJira) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesJira(val *ConnectorResponsePropertiesJira) *NullableConnectorResponsePropertiesJira { + return &NullableConnectorResponsePropertiesJira{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesJira) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesJira) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_opsgenie.go b/generated/kibanaactions/model_connector_response_properties_opsgenie.go new file mode 100644 index 000000000..476a42867 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_opsgenie.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesOpsgenie type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesOpsgenie{} + +// ConnectorResponsePropertiesOpsgenie struct for ConnectorResponsePropertiesOpsgenie +type ConnectorResponsePropertiesOpsgenie struct { + Config ConfigPropertiesOpsgenie `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesOpsgenie instantiates a new ConnectorResponsePropertiesOpsgenie object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesOpsgenie(config ConfigPropertiesOpsgenie, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesOpsgenie { + this := ConnectorResponsePropertiesOpsgenie{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesOpsgenieWithDefaults instantiates a new ConnectorResponsePropertiesOpsgenie object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesOpsgenieWithDefaults() *ConnectorResponsePropertiesOpsgenie { + this := ConnectorResponsePropertiesOpsgenie{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesOpsgenie) GetConfig() ConfigPropertiesOpsgenie { + if o == nil { + var ret ConfigPropertiesOpsgenie + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetConfigOk() (*ConfigPropertiesOpsgenie, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesOpsgenie) SetConfig(v ConfigPropertiesOpsgenie) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesOpsgenie) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesOpsgenie) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesOpsgenie) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesOpsgenie) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesOpsgenie) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesOpsgenie) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesOpsgenie) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesOpsgenie) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesOpsgenie) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesOpsgenie) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesOpsgenie) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesOpsgenie) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesOpsgenie) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesOpsgenie) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesOpsgenie) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesOpsgenie) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesOpsgenie struct { + value *ConnectorResponsePropertiesOpsgenie + isSet bool +} + +func (v NullableConnectorResponsePropertiesOpsgenie) Get() *ConnectorResponsePropertiesOpsgenie { + return v.value +} + +func (v *NullableConnectorResponsePropertiesOpsgenie) Set(val *ConnectorResponsePropertiesOpsgenie) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesOpsgenie) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesOpsgenie) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesOpsgenie(val *ConnectorResponsePropertiesOpsgenie) *NullableConnectorResponsePropertiesOpsgenie { + return &NullableConnectorResponsePropertiesOpsgenie{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesOpsgenie) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesOpsgenie) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_pagerduty.go b/generated/kibanaactions/model_connector_response_properties_pagerduty.go new file mode 100644 index 000000000..101dfbf60 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_pagerduty.go @@ -0,0 +1,293 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesPagerduty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesPagerduty{} + +// ConnectorResponsePropertiesPagerduty struct for ConnectorResponsePropertiesPagerduty +type ConnectorResponsePropertiesPagerduty struct { + // Defines properties for connectors when type is `.pagerduty`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesPagerduty instantiates a new ConnectorResponsePropertiesPagerduty object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesPagerduty(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesPagerduty { + this := ConnectorResponsePropertiesPagerduty{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesPagerdutyWithDefaults instantiates a new ConnectorResponsePropertiesPagerduty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesPagerdutyWithDefaults() *ConnectorResponsePropertiesPagerduty { + this := ConnectorResponsePropertiesPagerduty{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesPagerduty) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesPagerduty) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesPagerduty) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesPagerduty) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesPagerduty) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesPagerduty) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesPagerduty) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesPagerduty) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesPagerduty) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesPagerduty) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesPagerduty) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesPagerduty) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesPagerduty) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesPagerduty) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesPagerduty) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesPagerduty) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesPagerduty) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesPagerduty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesPagerduty struct { + value *ConnectorResponsePropertiesPagerduty + isSet bool +} + +func (v NullableConnectorResponsePropertiesPagerduty) Get() *ConnectorResponsePropertiesPagerduty { + return v.value +} + +func (v *NullableConnectorResponsePropertiesPagerduty) Set(val *ConnectorResponsePropertiesPagerduty) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesPagerduty) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesPagerduty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesPagerduty(val *ConnectorResponsePropertiesPagerduty) *NullableConnectorResponsePropertiesPagerduty { + return &NullableConnectorResponsePropertiesPagerduty{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesPagerduty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesPagerduty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_resilient.go b/generated/kibanaactions/model_connector_response_properties_resilient.go new file mode 100644 index 000000000..de9ebb696 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_resilient.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesResilient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesResilient{} + +// ConnectorResponsePropertiesResilient struct for ConnectorResponsePropertiesResilient +type ConnectorResponsePropertiesResilient struct { + Config ConfigPropertiesResilient `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesResilient instantiates a new ConnectorResponsePropertiesResilient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesResilient(config ConfigPropertiesResilient, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesResilient { + this := ConnectorResponsePropertiesResilient{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesResilientWithDefaults instantiates a new ConnectorResponsePropertiesResilient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesResilientWithDefaults() *ConnectorResponsePropertiesResilient { + this := ConnectorResponsePropertiesResilient{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesResilient) GetConfig() ConfigPropertiesResilient { + if o == nil { + var ret ConfigPropertiesResilient + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetConfigOk() (*ConfigPropertiesResilient, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesResilient) SetConfig(v ConfigPropertiesResilient) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesResilient) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesResilient) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesResilient) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesResilient) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesResilient) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesResilient) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesResilient) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesResilient) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesResilient) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesResilient) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesResilient) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesResilient) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesResilient) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesResilient) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesResilient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesResilient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesResilient struct { + value *ConnectorResponsePropertiesResilient + isSet bool +} + +func (v NullableConnectorResponsePropertiesResilient) Get() *ConnectorResponsePropertiesResilient { + return v.value +} + +func (v *NullableConnectorResponsePropertiesResilient) Set(val *ConnectorResponsePropertiesResilient) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesResilient) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesResilient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesResilient(val *ConnectorResponsePropertiesResilient) *NullableConnectorResponsePropertiesResilient { + return &NullableConnectorResponsePropertiesResilient{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesResilient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesResilient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_serverlog.go b/generated/kibanaactions/model_connector_response_properties_serverlog.go new file mode 100644 index 000000000..9c0be92e1 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_serverlog.go @@ -0,0 +1,296 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesServerlog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesServerlog{} + +// ConnectorResponsePropertiesServerlog struct for ConnectorResponsePropertiesServerlog +type ConnectorResponsePropertiesServerlog struct { + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesServerlog instantiates a new ConnectorResponsePropertiesServerlog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesServerlog(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesServerlog { + this := ConnectorResponsePropertiesServerlog{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesServerlogWithDefaults instantiates a new ConnectorResponsePropertiesServerlog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesServerlogWithDefaults() *ConnectorResponsePropertiesServerlog { + this := ConnectorResponsePropertiesServerlog{} + return &this +} + +// GetConfig returns the Config field value +// If the value is explicit nil, the zero value for map[string]interface{} will be returned +func (o *ConnectorResponsePropertiesServerlog) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConnectorResponsePropertiesServerlog) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesServerlog) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesServerlog) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServerlog) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesServerlog) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesServerlog) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServerlog) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesServerlog) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesServerlog) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServerlog) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesServerlog) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesServerlog) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServerlog) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesServerlog) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesServerlog) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesServerlog) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServerlog) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesServerlog) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesServerlog) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServerlog) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesServerlog) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesServerlog) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesServerlog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Config != nil { + toSerialize["config"] = o.Config + } + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesServerlog struct { + value *ConnectorResponsePropertiesServerlog + isSet bool +} + +func (v NullableConnectorResponsePropertiesServerlog) Get() *ConnectorResponsePropertiesServerlog { + return v.value +} + +func (v *NullableConnectorResponsePropertiesServerlog) Set(val *ConnectorResponsePropertiesServerlog) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesServerlog) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesServerlog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesServerlog(val *ConnectorResponsePropertiesServerlog) *NullableConnectorResponsePropertiesServerlog { + return &NullableConnectorResponsePropertiesServerlog{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesServerlog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesServerlog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_servicenow.go b/generated/kibanaactions/model_connector_response_properties_servicenow.go new file mode 100644 index 000000000..d1dab1332 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_servicenow.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesServicenow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesServicenow{} + +// ConnectorResponsePropertiesServicenow struct for ConnectorResponsePropertiesServicenow +type ConnectorResponsePropertiesServicenow struct { + Config ConfigPropertiesServicenow `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesServicenow instantiates a new ConnectorResponsePropertiesServicenow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesServicenow(config ConfigPropertiesServicenow, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesServicenow { + this := ConnectorResponsePropertiesServicenow{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesServicenowWithDefaults instantiates a new ConnectorResponsePropertiesServicenow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesServicenowWithDefaults() *ConnectorResponsePropertiesServicenow { + this := ConnectorResponsePropertiesServicenow{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesServicenow) GetConfig() ConfigPropertiesServicenow { + if o == nil { + var ret ConfigPropertiesServicenow + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetConfigOk() (*ConfigPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesServicenow) SetConfig(v ConfigPropertiesServicenow) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesServicenow) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesServicenow) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesServicenow) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesServicenow) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesServicenow) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesServicenow) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesServicenow) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesServicenow) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesServicenow) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesServicenow) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesServicenow) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesServicenow) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenow) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesServicenow) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesServicenow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesServicenow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesServicenow struct { + value *ConnectorResponsePropertiesServicenow + isSet bool +} + +func (v NullableConnectorResponsePropertiesServicenow) Get() *ConnectorResponsePropertiesServicenow { + return v.value +} + +func (v *NullableConnectorResponsePropertiesServicenow) Set(val *ConnectorResponsePropertiesServicenow) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesServicenow) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesServicenow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesServicenow(val *ConnectorResponsePropertiesServicenow) *NullableConnectorResponsePropertiesServicenow { + return &NullableConnectorResponsePropertiesServicenow{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesServicenow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesServicenow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_servicenow_itom.go b/generated/kibanaactions/model_connector_response_properties_servicenow_itom.go new file mode 100644 index 000000000..fffdfa152 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_servicenow_itom.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesServicenowItom type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesServicenowItom{} + +// ConnectorResponsePropertiesServicenowItom struct for ConnectorResponsePropertiesServicenowItom +type ConnectorResponsePropertiesServicenowItom struct { + Config ConfigPropertiesServicenowItom `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesServicenowItom instantiates a new ConnectorResponsePropertiesServicenowItom object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesServicenowItom(config ConfigPropertiesServicenowItom, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesServicenowItom { + this := ConnectorResponsePropertiesServicenowItom{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesServicenowItomWithDefaults instantiates a new ConnectorResponsePropertiesServicenowItom object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesServicenowItomWithDefaults() *ConnectorResponsePropertiesServicenowItom { + this := ConnectorResponsePropertiesServicenowItom{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesServicenowItom) GetConfig() ConfigPropertiesServicenowItom { + if o == nil { + var ret ConfigPropertiesServicenowItom + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetConfigOk() (*ConfigPropertiesServicenowItom, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesServicenowItom) SetConfig(v ConfigPropertiesServicenowItom) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesServicenowItom) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesServicenowItom) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesServicenowItom) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesServicenowItom) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesServicenowItom) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesServicenowItom) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesServicenowItom) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesServicenowItom) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesServicenowItom) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesServicenowItom) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesServicenowItom) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesServicenowItom) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowItom) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesServicenowItom) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesServicenowItom) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesServicenowItom) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesServicenowItom struct { + value *ConnectorResponsePropertiesServicenowItom + isSet bool +} + +func (v NullableConnectorResponsePropertiesServicenowItom) Get() *ConnectorResponsePropertiesServicenowItom { + return v.value +} + +func (v *NullableConnectorResponsePropertiesServicenowItom) Set(val *ConnectorResponsePropertiesServicenowItom) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesServicenowItom) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesServicenowItom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesServicenowItom(val *ConnectorResponsePropertiesServicenowItom) *NullableConnectorResponsePropertiesServicenowItom { + return &NullableConnectorResponsePropertiesServicenowItom{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesServicenowItom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesServicenowItom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_servicenow_sir.go b/generated/kibanaactions/model_connector_response_properties_servicenow_sir.go new file mode 100644 index 000000000..544f20cf6 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_servicenow_sir.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesServicenowSir type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesServicenowSir{} + +// ConnectorResponsePropertiesServicenowSir struct for ConnectorResponsePropertiesServicenowSir +type ConnectorResponsePropertiesServicenowSir struct { + Config ConfigPropertiesServicenow `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesServicenowSir instantiates a new ConnectorResponsePropertiesServicenowSir object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesServicenowSir(config ConfigPropertiesServicenow, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesServicenowSir { + this := ConnectorResponsePropertiesServicenowSir{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesServicenowSirWithDefaults instantiates a new ConnectorResponsePropertiesServicenowSir object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesServicenowSirWithDefaults() *ConnectorResponsePropertiesServicenowSir { + this := ConnectorResponsePropertiesServicenowSir{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesServicenowSir) GetConfig() ConfigPropertiesServicenow { + if o == nil { + var ret ConfigPropertiesServicenow + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetConfigOk() (*ConfigPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesServicenowSir) SetConfig(v ConfigPropertiesServicenow) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesServicenowSir) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesServicenowSir) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesServicenowSir) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesServicenowSir) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesServicenowSir) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesServicenowSir) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesServicenowSir) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesServicenowSir) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesServicenowSir) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesServicenowSir) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesServicenowSir) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesServicenowSir) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesServicenowSir) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesServicenowSir) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesServicenowSir) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesServicenowSir) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesServicenowSir struct { + value *ConnectorResponsePropertiesServicenowSir + isSet bool +} + +func (v NullableConnectorResponsePropertiesServicenowSir) Get() *ConnectorResponsePropertiesServicenowSir { + return v.value +} + +func (v *NullableConnectorResponsePropertiesServicenowSir) Set(val *ConnectorResponsePropertiesServicenowSir) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesServicenowSir) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesServicenowSir) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesServicenowSir(val *ConnectorResponsePropertiesServicenowSir) *NullableConnectorResponsePropertiesServicenowSir { + return &NullableConnectorResponsePropertiesServicenowSir{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesServicenowSir) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesServicenowSir) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_slack.go b/generated/kibanaactions/model_connector_response_properties_slack.go new file mode 100644 index 000000000..340c2b385 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_slack.go @@ -0,0 +1,265 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesSlack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesSlack{} + +// ConnectorResponsePropertiesSlack struct for ConnectorResponsePropertiesSlack +type ConnectorResponsePropertiesSlack struct { + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesSlack instantiates a new ConnectorResponsePropertiesSlack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesSlack(connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesSlack { + this := ConnectorResponsePropertiesSlack{} + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesSlackWithDefaults instantiates a new ConnectorResponsePropertiesSlack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesSlackWithDefaults() *ConnectorResponsePropertiesSlack { + this := ConnectorResponsePropertiesSlack{} + return &this +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesSlack) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSlack) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesSlack) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesSlack) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSlack) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesSlack) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesSlack) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSlack) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesSlack) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesSlack) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSlack) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesSlack) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesSlack) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesSlack) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSlack) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesSlack) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesSlack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSlack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesSlack) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesSlack) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesSlack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesSlack struct { + value *ConnectorResponsePropertiesSlack + isSet bool +} + +func (v NullableConnectorResponsePropertiesSlack) Get() *ConnectorResponsePropertiesSlack { + return v.value +} + +func (v *NullableConnectorResponsePropertiesSlack) Set(val *ConnectorResponsePropertiesSlack) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesSlack) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesSlack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesSlack(val *ConnectorResponsePropertiesSlack) *NullableConnectorResponsePropertiesSlack { + return &NullableConnectorResponsePropertiesSlack{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesSlack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesSlack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_swimlane.go b/generated/kibanaactions/model_connector_response_properties_swimlane.go new file mode 100644 index 000000000..aea61e63d --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_swimlane.go @@ -0,0 +1,292 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesSwimlane type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesSwimlane{} + +// ConnectorResponsePropertiesSwimlane struct for ConnectorResponsePropertiesSwimlane +type ConnectorResponsePropertiesSwimlane struct { + Config ConfigPropertiesSwimlane `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesSwimlane instantiates a new ConnectorResponsePropertiesSwimlane object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesSwimlane(config ConfigPropertiesSwimlane, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesSwimlane { + this := ConnectorResponsePropertiesSwimlane{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesSwimlaneWithDefaults instantiates a new ConnectorResponsePropertiesSwimlane object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesSwimlaneWithDefaults() *ConnectorResponsePropertiesSwimlane { + this := ConnectorResponsePropertiesSwimlane{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesSwimlane) GetConfig() ConfigPropertiesSwimlane { + if o == nil { + var ret ConfigPropertiesSwimlane + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetConfigOk() (*ConfigPropertiesSwimlane, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesSwimlane) SetConfig(v ConfigPropertiesSwimlane) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesSwimlane) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesSwimlane) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesSwimlane) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesSwimlane) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesSwimlane) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesSwimlane) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesSwimlane) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesSwimlane) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesSwimlane) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesSwimlane) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesSwimlane) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesSwimlane) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesSwimlane) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesSwimlane) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesSwimlane) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesSwimlane) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesSwimlane struct { + value *ConnectorResponsePropertiesSwimlane + isSet bool +} + +func (v NullableConnectorResponsePropertiesSwimlane) Get() *ConnectorResponsePropertiesSwimlane { + return v.value +} + +func (v *NullableConnectorResponsePropertiesSwimlane) Set(val *ConnectorResponsePropertiesSwimlane) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesSwimlane) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesSwimlane) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesSwimlane(val *ConnectorResponsePropertiesSwimlane) *NullableConnectorResponsePropertiesSwimlane { + return &NullableConnectorResponsePropertiesSwimlane{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesSwimlane) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesSwimlane) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_teams.go b/generated/kibanaactions/model_connector_response_properties_teams.go new file mode 100644 index 000000000..10c2c2f18 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_teams.go @@ -0,0 +1,265 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesTeams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesTeams{} + +// ConnectorResponsePropertiesTeams struct for ConnectorResponsePropertiesTeams +type ConnectorResponsePropertiesTeams struct { + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesTeams instantiates a new ConnectorResponsePropertiesTeams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesTeams(connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesTeams { + this := ConnectorResponsePropertiesTeams{} + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesTeamsWithDefaults instantiates a new ConnectorResponsePropertiesTeams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesTeamsWithDefaults() *ConnectorResponsePropertiesTeams { + this := ConnectorResponsePropertiesTeams{} + return &this +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesTeams) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTeams) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesTeams) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesTeams) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTeams) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesTeams) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesTeams) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTeams) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesTeams) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesTeams) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTeams) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesTeams) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesTeams) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesTeams) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTeams) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesTeams) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesTeams) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTeams) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesTeams) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesTeams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesTeams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesTeams struct { + value *ConnectorResponsePropertiesTeams + isSet bool +} + +func (v NullableConnectorResponsePropertiesTeams) Get() *ConnectorResponsePropertiesTeams { + return v.value +} + +func (v *NullableConnectorResponsePropertiesTeams) Set(val *ConnectorResponsePropertiesTeams) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesTeams) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesTeams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesTeams(val *ConnectorResponsePropertiesTeams) *NullableConnectorResponsePropertiesTeams { + return &NullableConnectorResponsePropertiesTeams{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesTeams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesTeams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_tines.go b/generated/kibanaactions/model_connector_response_properties_tines.go new file mode 100644 index 000000000..6de1bf76e --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_tines.go @@ -0,0 +1,293 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesTines type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesTines{} + +// ConnectorResponsePropertiesTines struct for ConnectorResponsePropertiesTines +type ConnectorResponsePropertiesTines struct { + // Defines properties for connectors when type is `.tines`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesTines instantiates a new ConnectorResponsePropertiesTines object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesTines(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesTines { + this := ConnectorResponsePropertiesTines{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesTinesWithDefaults instantiates a new ConnectorResponsePropertiesTines object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesTinesWithDefaults() *ConnectorResponsePropertiesTines { + this := ConnectorResponsePropertiesTines{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesTines) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesTines) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesTines) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesTines) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesTines) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesTines) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesTines) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesTines) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesTines) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesTines) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesTines) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesTines) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesTines) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesTines) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesTines) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesTines) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesTines) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesTines) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesTines struct { + value *ConnectorResponsePropertiesTines + isSet bool +} + +func (v NullableConnectorResponsePropertiesTines) Get() *ConnectorResponsePropertiesTines { + return v.value +} + +func (v *NullableConnectorResponsePropertiesTines) Set(val *ConnectorResponsePropertiesTines) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesTines) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesTines) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesTines(val *ConnectorResponsePropertiesTines) *NullableConnectorResponsePropertiesTines { + return &NullableConnectorResponsePropertiesTines{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesTines) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesTines) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_webhook.go b/generated/kibanaactions/model_connector_response_properties_webhook.go new file mode 100644 index 000000000..9f64f57c1 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_webhook.go @@ -0,0 +1,293 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesWebhook{} + +// ConnectorResponsePropertiesWebhook struct for ConnectorResponsePropertiesWebhook +type ConnectorResponsePropertiesWebhook struct { + // Defines properties for connectors when type is `.webhook`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesWebhook instantiates a new ConnectorResponsePropertiesWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesWebhook(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesWebhook { + this := ConnectorResponsePropertiesWebhook{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesWebhookWithDefaults instantiates a new ConnectorResponsePropertiesWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesWebhookWithDefaults() *ConnectorResponsePropertiesWebhook { + this := ConnectorResponsePropertiesWebhook{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesWebhook) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesWebhook) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesWebhook) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesWebhook) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesWebhook) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesWebhook) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesWebhook) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesWebhook) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesWebhook) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesWebhook) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesWebhook) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesWebhook) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesWebhook) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesWebhook) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesWebhook) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesWebhook) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesWebhook struct { + value *ConnectorResponsePropertiesWebhook + isSet bool +} + +func (v NullableConnectorResponsePropertiesWebhook) Get() *ConnectorResponsePropertiesWebhook { + return v.value +} + +func (v *NullableConnectorResponsePropertiesWebhook) Set(val *ConnectorResponsePropertiesWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesWebhook(val *ConnectorResponsePropertiesWebhook) *NullableConnectorResponsePropertiesWebhook { + return &NullableConnectorResponsePropertiesWebhook{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_response_properties_xmatters.go b/generated/kibanaactions/model_connector_response_properties_xmatters.go new file mode 100644 index 000000000..9b3c42e91 --- /dev/null +++ b/generated/kibanaactions/model_connector_response_properties_xmatters.go @@ -0,0 +1,293 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the ConnectorResponsePropertiesXmatters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorResponsePropertiesXmatters{} + +// ConnectorResponsePropertiesXmatters struct for ConnectorResponsePropertiesXmatters +type ConnectorResponsePropertiesXmatters struct { + // Defines properties for connectors when type is `.xmatters`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewConnectorResponsePropertiesXmatters instantiates a new ConnectorResponsePropertiesXmatters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorResponsePropertiesXmatters(config map[string]interface{}, connectorTypeId string, id string, isDeprecated bool, isPreconfigured bool, name string) *ConnectorResponsePropertiesXmatters { + this := ConnectorResponsePropertiesXmatters{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + return &this +} + +// NewConnectorResponsePropertiesXmattersWithDefaults instantiates a new ConnectorResponsePropertiesXmatters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorResponsePropertiesXmattersWithDefaults() *ConnectorResponsePropertiesXmatters { + this := ConnectorResponsePropertiesXmatters{} + return &this +} + +// GetConfig returns the Config field value +func (o *ConnectorResponsePropertiesXmatters) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *ConnectorResponsePropertiesXmatters) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorResponsePropertiesXmatters) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorResponsePropertiesXmatters) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetId returns the Id field value +func (o *ConnectorResponsePropertiesXmatters) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorResponsePropertiesXmatters) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *ConnectorResponsePropertiesXmatters) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *ConnectorResponsePropertiesXmatters) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *ConnectorResponsePropertiesXmatters) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *ConnectorResponsePropertiesXmatters) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *ConnectorResponsePropertiesXmatters) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *ConnectorResponsePropertiesXmatters) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *ConnectorResponsePropertiesXmatters) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *ConnectorResponsePropertiesXmatters) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ConnectorResponsePropertiesXmatters) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorResponsePropertiesXmatters) SetName(v string) { + o.Name = v +} + +func (o ConnectorResponsePropertiesXmatters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorResponsePropertiesXmatters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableConnectorResponsePropertiesXmatters struct { + value *ConnectorResponsePropertiesXmatters + isSet bool +} + +func (v NullableConnectorResponsePropertiesXmatters) Get() *ConnectorResponsePropertiesXmatters { + return v.value +} + +func (v *NullableConnectorResponsePropertiesXmatters) Set(val *ConnectorResponsePropertiesXmatters) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorResponsePropertiesXmatters) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorResponsePropertiesXmatters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorResponsePropertiesXmatters(val *ConnectorResponsePropertiesXmatters) *NullableConnectorResponsePropertiesXmatters { + return &NullableConnectorResponsePropertiesXmatters{value: val, isSet: true} +} + +func (v NullableConnectorResponsePropertiesXmatters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorResponsePropertiesXmatters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_connector_types.go b/generated/kibanaactions/model_connector_types.go new file mode 100644 index 000000000..e85a4504b --- /dev/null +++ b/generated/kibanaactions/model_connector_types.go @@ -0,0 +1,140 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// ConnectorTypes The type of connector. For example, `.email`, `.index`, `.jira`, `.opsgenie`, or `.server-log`. +type ConnectorTypes string + +// List of connector_types +const ( + CASES_WEBHOOK ConnectorTypes = ".cases-webhook" + EMAIL ConnectorTypes = ".email" + INDEX ConnectorTypes = ".index" + JIRA ConnectorTypes = ".jira" + OPSGENIE ConnectorTypes = ".opsgenie" + PAGERDUTY ConnectorTypes = ".pagerduty" + RESILIENT ConnectorTypes = ".resilient" + SERVICENOW ConnectorTypes = ".servicenow" + SERVICENOW_ITOM ConnectorTypes = ".servicenow-itom" + SERVICENOW_SIR ConnectorTypes = ".servicenow-sir" + SERVER_LOG ConnectorTypes = ".server-log" + SLACK ConnectorTypes = ".slack" + SWIMLANE ConnectorTypes = ".swimlane" + TEAMS ConnectorTypes = ".teams" + TINES ConnectorTypes = ".tines" + WEBHOOK ConnectorTypes = ".webhook" + XMATTERS ConnectorTypes = ".xmatters" +) + +// All allowed values of ConnectorTypes enum +var AllowedConnectorTypesEnumValues = []ConnectorTypes{ + ".cases-webhook", + ".email", + ".index", + ".jira", + ".opsgenie", + ".pagerduty", + ".resilient", + ".servicenow", + ".servicenow-itom", + ".servicenow-sir", + ".server-log", + ".slack", + ".swimlane", + ".teams", + ".tines", + ".webhook", + ".xmatters", +} + +func (v *ConnectorTypes) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectorTypes(value) + for _, existing := range AllowedConnectorTypesEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectorTypes", value) +} + +// NewConnectorTypesFromValue returns a pointer to a valid ConnectorTypes +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectorTypesFromValue(v string) (*ConnectorTypes, error) { + ev := ConnectorTypes(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectorTypes: valid values are %v", v, AllowedConnectorTypesEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectorTypes) IsValid() bool { + for _, existing := range AllowedConnectorTypesEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to connector_types value +func (v ConnectorTypes) Ptr() *ConnectorTypes { + return &v +} + +type NullableConnectorTypes struct { + value *ConnectorTypes + isSet bool +} + +func (v NullableConnectorTypes) Get() *ConnectorTypes { + return v.value +} + +func (v *NullableConnectorTypes) Set(val *ConnectorTypes) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTypes) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTypes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTypes(val *ConnectorTypes) *NullableConnectorTypes { + return &NullableConnectorTypes{value: val, isSet: true} +} + +func (v NullableConnectorTypes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTypes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_body_properties.go b/generated/kibanaactions/model_create_connector_request_body_properties.go new file mode 100644 index 000000000..14a27e592 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_body_properties.go @@ -0,0 +1,595 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// CreateConnectorRequestBodyProperties - The properties vary depending on the connector type. +type CreateConnectorRequestBodyProperties struct { + CreateConnectorRequestCasesWebhook *CreateConnectorRequestCasesWebhook + CreateConnectorRequestEmail *CreateConnectorRequestEmail + CreateConnectorRequestIndex *CreateConnectorRequestIndex + CreateConnectorRequestJira *CreateConnectorRequestJira + CreateConnectorRequestOpsgenie *CreateConnectorRequestOpsgenie + CreateConnectorRequestPagerduty *CreateConnectorRequestPagerduty + CreateConnectorRequestResilient *CreateConnectorRequestResilient + CreateConnectorRequestServerlog *CreateConnectorRequestServerlog + CreateConnectorRequestServicenow *CreateConnectorRequestServicenow + CreateConnectorRequestServicenowItom *CreateConnectorRequestServicenowItom + CreateConnectorRequestServicenowSir *CreateConnectorRequestServicenowSir + CreateConnectorRequestSlack *CreateConnectorRequestSlack + CreateConnectorRequestSwimlane *CreateConnectorRequestSwimlane + CreateConnectorRequestTeams *CreateConnectorRequestTeams + CreateConnectorRequestTines *CreateConnectorRequestTines + CreateConnectorRequestWebhook *CreateConnectorRequestWebhook + CreateConnectorRequestXmatters *CreateConnectorRequestXmatters +} + +// CreateConnectorRequestCasesWebhookAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestCasesWebhook wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestCasesWebhookAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestCasesWebhook) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestCasesWebhook: v, + } +} + +// CreateConnectorRequestEmailAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestEmail wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestEmailAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestEmail) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestEmail: v, + } +} + +// CreateConnectorRequestIndexAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestIndex wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestIndexAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestIndex) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestIndex: v, + } +} + +// CreateConnectorRequestJiraAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestJira wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestJiraAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestJira) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestJira: v, + } +} + +// CreateConnectorRequestOpsgenieAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestOpsgenie wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestOpsgenieAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestOpsgenie) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestOpsgenie: v, + } +} + +// CreateConnectorRequestPagerdutyAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestPagerduty wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestPagerdutyAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestPagerduty) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestPagerduty: v, + } +} + +// CreateConnectorRequestResilientAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestResilient wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestResilientAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestResilient) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestResilient: v, + } +} + +// CreateConnectorRequestServerlogAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestServerlog wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestServerlogAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestServerlog) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestServerlog: v, + } +} + +// CreateConnectorRequestServicenowAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestServicenow wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestServicenowAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestServicenow) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestServicenow: v, + } +} + +// CreateConnectorRequestServicenowItomAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestServicenowItom wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestServicenowItomAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestServicenowItom) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestServicenowItom: v, + } +} + +// CreateConnectorRequestServicenowSirAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestServicenowSir wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestServicenowSirAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestServicenowSir) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestServicenowSir: v, + } +} + +// CreateConnectorRequestSlackAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestSlack wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestSlackAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestSlack) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestSlack: v, + } +} + +// CreateConnectorRequestSwimlaneAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestSwimlane wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestSwimlaneAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestSwimlane) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestSwimlane: v, + } +} + +// CreateConnectorRequestTeamsAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestTeams wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestTeamsAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestTeams) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestTeams: v, + } +} + +// CreateConnectorRequestTinesAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestTines wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestTinesAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestTines) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestTines: v, + } +} + +// CreateConnectorRequestWebhookAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestWebhook wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestWebhookAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestWebhook) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestWebhook: v, + } +} + +// CreateConnectorRequestXmattersAsCreateConnectorRequestBodyProperties is a convenience function that returns CreateConnectorRequestXmatters wrapped in CreateConnectorRequestBodyProperties +func CreateConnectorRequestXmattersAsCreateConnectorRequestBodyProperties(v *CreateConnectorRequestXmatters) CreateConnectorRequestBodyProperties { + return CreateConnectorRequestBodyProperties{ + CreateConnectorRequestXmatters: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CreateConnectorRequestBodyProperties) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into CreateConnectorRequestCasesWebhook + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestCasesWebhook) + if err == nil { + jsonCreateConnectorRequestCasesWebhook, _ := json.Marshal(dst.CreateConnectorRequestCasesWebhook) + if string(jsonCreateConnectorRequestCasesWebhook) == "{}" { // empty struct + dst.CreateConnectorRequestCasesWebhook = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestCasesWebhook = nil + } + + // try to unmarshal data into CreateConnectorRequestEmail + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestEmail) + if err == nil { + jsonCreateConnectorRequestEmail, _ := json.Marshal(dst.CreateConnectorRequestEmail) + if string(jsonCreateConnectorRequestEmail) == "{}" { // empty struct + dst.CreateConnectorRequestEmail = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestEmail = nil + } + + // try to unmarshal data into CreateConnectorRequestIndex + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestIndex) + if err == nil { + jsonCreateConnectorRequestIndex, _ := json.Marshal(dst.CreateConnectorRequestIndex) + if string(jsonCreateConnectorRequestIndex) == "{}" { // empty struct + dst.CreateConnectorRequestIndex = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestIndex = nil + } + + // try to unmarshal data into CreateConnectorRequestJira + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestJira) + if err == nil { + jsonCreateConnectorRequestJira, _ := json.Marshal(dst.CreateConnectorRequestJira) + if string(jsonCreateConnectorRequestJira) == "{}" { // empty struct + dst.CreateConnectorRequestJira = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestJira = nil + } + + // try to unmarshal data into CreateConnectorRequestOpsgenie + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestOpsgenie) + if err == nil { + jsonCreateConnectorRequestOpsgenie, _ := json.Marshal(dst.CreateConnectorRequestOpsgenie) + if string(jsonCreateConnectorRequestOpsgenie) == "{}" { // empty struct + dst.CreateConnectorRequestOpsgenie = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestOpsgenie = nil + } + + // try to unmarshal data into CreateConnectorRequestPagerduty + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestPagerduty) + if err == nil { + jsonCreateConnectorRequestPagerduty, _ := json.Marshal(dst.CreateConnectorRequestPagerduty) + if string(jsonCreateConnectorRequestPagerduty) == "{}" { // empty struct + dst.CreateConnectorRequestPagerduty = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestPagerduty = nil + } + + // try to unmarshal data into CreateConnectorRequestResilient + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestResilient) + if err == nil { + jsonCreateConnectorRequestResilient, _ := json.Marshal(dst.CreateConnectorRequestResilient) + if string(jsonCreateConnectorRequestResilient) == "{}" { // empty struct + dst.CreateConnectorRequestResilient = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestResilient = nil + } + + // try to unmarshal data into CreateConnectorRequestServerlog + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestServerlog) + if err == nil { + jsonCreateConnectorRequestServerlog, _ := json.Marshal(dst.CreateConnectorRequestServerlog) + if string(jsonCreateConnectorRequestServerlog) == "{}" { // empty struct + dst.CreateConnectorRequestServerlog = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestServerlog = nil + } + + // try to unmarshal data into CreateConnectorRequestServicenow + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestServicenow) + if err == nil { + jsonCreateConnectorRequestServicenow, _ := json.Marshal(dst.CreateConnectorRequestServicenow) + if string(jsonCreateConnectorRequestServicenow) == "{}" { // empty struct + dst.CreateConnectorRequestServicenow = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestServicenow = nil + } + + // try to unmarshal data into CreateConnectorRequestServicenowItom + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestServicenowItom) + if err == nil { + jsonCreateConnectorRequestServicenowItom, _ := json.Marshal(dst.CreateConnectorRequestServicenowItom) + if string(jsonCreateConnectorRequestServicenowItom) == "{}" { // empty struct + dst.CreateConnectorRequestServicenowItom = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestServicenowItom = nil + } + + // try to unmarshal data into CreateConnectorRequestServicenowSir + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestServicenowSir) + if err == nil { + jsonCreateConnectorRequestServicenowSir, _ := json.Marshal(dst.CreateConnectorRequestServicenowSir) + if string(jsonCreateConnectorRequestServicenowSir) == "{}" { // empty struct + dst.CreateConnectorRequestServicenowSir = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestServicenowSir = nil + } + + // try to unmarshal data into CreateConnectorRequestSlack + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestSlack) + if err == nil { + jsonCreateConnectorRequestSlack, _ := json.Marshal(dst.CreateConnectorRequestSlack) + if string(jsonCreateConnectorRequestSlack) == "{}" { // empty struct + dst.CreateConnectorRequestSlack = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestSlack = nil + } + + // try to unmarshal data into CreateConnectorRequestSwimlane + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestSwimlane) + if err == nil { + jsonCreateConnectorRequestSwimlane, _ := json.Marshal(dst.CreateConnectorRequestSwimlane) + if string(jsonCreateConnectorRequestSwimlane) == "{}" { // empty struct + dst.CreateConnectorRequestSwimlane = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestSwimlane = nil + } + + // try to unmarshal data into CreateConnectorRequestTeams + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestTeams) + if err == nil { + jsonCreateConnectorRequestTeams, _ := json.Marshal(dst.CreateConnectorRequestTeams) + if string(jsonCreateConnectorRequestTeams) == "{}" { // empty struct + dst.CreateConnectorRequestTeams = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestTeams = nil + } + + // try to unmarshal data into CreateConnectorRequestTines + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestTines) + if err == nil { + jsonCreateConnectorRequestTines, _ := json.Marshal(dst.CreateConnectorRequestTines) + if string(jsonCreateConnectorRequestTines) == "{}" { // empty struct + dst.CreateConnectorRequestTines = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestTines = nil + } + + // try to unmarshal data into CreateConnectorRequestWebhook + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestWebhook) + if err == nil { + jsonCreateConnectorRequestWebhook, _ := json.Marshal(dst.CreateConnectorRequestWebhook) + if string(jsonCreateConnectorRequestWebhook) == "{}" { // empty struct + dst.CreateConnectorRequestWebhook = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestWebhook = nil + } + + // try to unmarshal data into CreateConnectorRequestXmatters + err = newStrictDecoder(data).Decode(&dst.CreateConnectorRequestXmatters) + if err == nil { + jsonCreateConnectorRequestXmatters, _ := json.Marshal(dst.CreateConnectorRequestXmatters) + if string(jsonCreateConnectorRequestXmatters) == "{}" { // empty struct + dst.CreateConnectorRequestXmatters = nil + } else { + match++ + } + } else { + dst.CreateConnectorRequestXmatters = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.CreateConnectorRequestCasesWebhook = nil + dst.CreateConnectorRequestEmail = nil + dst.CreateConnectorRequestIndex = nil + dst.CreateConnectorRequestJira = nil + dst.CreateConnectorRequestOpsgenie = nil + dst.CreateConnectorRequestPagerduty = nil + dst.CreateConnectorRequestResilient = nil + dst.CreateConnectorRequestServerlog = nil + dst.CreateConnectorRequestServicenow = nil + dst.CreateConnectorRequestServicenowItom = nil + dst.CreateConnectorRequestServicenowSir = nil + dst.CreateConnectorRequestSlack = nil + dst.CreateConnectorRequestSwimlane = nil + dst.CreateConnectorRequestTeams = nil + dst.CreateConnectorRequestTines = nil + dst.CreateConnectorRequestWebhook = nil + dst.CreateConnectorRequestXmatters = nil + + return fmt.Errorf("data matches more than one schema in oneOf(CreateConnectorRequestBodyProperties)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(CreateConnectorRequestBodyProperties)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CreateConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + if src.CreateConnectorRequestCasesWebhook != nil { + return json.Marshal(&src.CreateConnectorRequestCasesWebhook) + } + + if src.CreateConnectorRequestEmail != nil { + return json.Marshal(&src.CreateConnectorRequestEmail) + } + + if src.CreateConnectorRequestIndex != nil { + return json.Marshal(&src.CreateConnectorRequestIndex) + } + + if src.CreateConnectorRequestJira != nil { + return json.Marshal(&src.CreateConnectorRequestJira) + } + + if src.CreateConnectorRequestOpsgenie != nil { + return json.Marshal(&src.CreateConnectorRequestOpsgenie) + } + + if src.CreateConnectorRequestPagerduty != nil { + return json.Marshal(&src.CreateConnectorRequestPagerduty) + } + + if src.CreateConnectorRequestResilient != nil { + return json.Marshal(&src.CreateConnectorRequestResilient) + } + + if src.CreateConnectorRequestServerlog != nil { + return json.Marshal(&src.CreateConnectorRequestServerlog) + } + + if src.CreateConnectorRequestServicenow != nil { + return json.Marshal(&src.CreateConnectorRequestServicenow) + } + + if src.CreateConnectorRequestServicenowItom != nil { + return json.Marshal(&src.CreateConnectorRequestServicenowItom) + } + + if src.CreateConnectorRequestServicenowSir != nil { + return json.Marshal(&src.CreateConnectorRequestServicenowSir) + } + + if src.CreateConnectorRequestSlack != nil { + return json.Marshal(&src.CreateConnectorRequestSlack) + } + + if src.CreateConnectorRequestSwimlane != nil { + return json.Marshal(&src.CreateConnectorRequestSwimlane) + } + + if src.CreateConnectorRequestTeams != nil { + return json.Marshal(&src.CreateConnectorRequestTeams) + } + + if src.CreateConnectorRequestTines != nil { + return json.Marshal(&src.CreateConnectorRequestTines) + } + + if src.CreateConnectorRequestWebhook != nil { + return json.Marshal(&src.CreateConnectorRequestWebhook) + } + + if src.CreateConnectorRequestXmatters != nil { + return json.Marshal(&src.CreateConnectorRequestXmatters) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CreateConnectorRequestBodyProperties) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.CreateConnectorRequestCasesWebhook != nil { + return obj.CreateConnectorRequestCasesWebhook + } + + if obj.CreateConnectorRequestEmail != nil { + return obj.CreateConnectorRequestEmail + } + + if obj.CreateConnectorRequestIndex != nil { + return obj.CreateConnectorRequestIndex + } + + if obj.CreateConnectorRequestJira != nil { + return obj.CreateConnectorRequestJira + } + + if obj.CreateConnectorRequestOpsgenie != nil { + return obj.CreateConnectorRequestOpsgenie + } + + if obj.CreateConnectorRequestPagerduty != nil { + return obj.CreateConnectorRequestPagerduty + } + + if obj.CreateConnectorRequestResilient != nil { + return obj.CreateConnectorRequestResilient + } + + if obj.CreateConnectorRequestServerlog != nil { + return obj.CreateConnectorRequestServerlog + } + + if obj.CreateConnectorRequestServicenow != nil { + return obj.CreateConnectorRequestServicenow + } + + if obj.CreateConnectorRequestServicenowItom != nil { + return obj.CreateConnectorRequestServicenowItom + } + + if obj.CreateConnectorRequestServicenowSir != nil { + return obj.CreateConnectorRequestServicenowSir + } + + if obj.CreateConnectorRequestSlack != nil { + return obj.CreateConnectorRequestSlack + } + + if obj.CreateConnectorRequestSwimlane != nil { + return obj.CreateConnectorRequestSwimlane + } + + if obj.CreateConnectorRequestTeams != nil { + return obj.CreateConnectorRequestTeams + } + + if obj.CreateConnectorRequestTines != nil { + return obj.CreateConnectorRequestTines + } + + if obj.CreateConnectorRequestWebhook != nil { + return obj.CreateConnectorRequestWebhook + } + + if obj.CreateConnectorRequestXmatters != nil { + return obj.CreateConnectorRequestXmatters + } + + // all schemas are nil + return nil +} + +type NullableCreateConnectorRequestBodyProperties struct { + value *CreateConnectorRequestBodyProperties + isSet bool +} + +func (v NullableCreateConnectorRequestBodyProperties) Get() *CreateConnectorRequestBodyProperties { + return v.value +} + +func (v *NullableCreateConnectorRequestBodyProperties) Set(val *CreateConnectorRequestBodyProperties) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestBodyProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestBodyProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestBodyProperties(val *CreateConnectorRequestBodyProperties) *NullableCreateConnectorRequestBodyProperties { + return &NullableCreateConnectorRequestBodyProperties{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestBodyProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_cases_webhook.go b/generated/kibanaactions/model_create_connector_request_cases_webhook.go new file mode 100644 index 000000000..75903cce2 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_cases_webhook.go @@ -0,0 +1,207 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestCasesWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestCasesWebhook{} + +// CreateConnectorRequestCasesWebhook The Webhook - Case Management connector uses axios to send POST, PUT, and GET requests to a case management RESTful API web service. +type CreateConnectorRequestCasesWebhook struct { + Config ConfigPropertiesCasesWebhook `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets *SecretsPropertiesCasesWebhook `json:"secrets,omitempty"` +} + +// NewCreateConnectorRequestCasesWebhook instantiates a new CreateConnectorRequestCasesWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestCasesWebhook(config ConfigPropertiesCasesWebhook, connectorTypeId string, name string) *CreateConnectorRequestCasesWebhook { + this := CreateConnectorRequestCasesWebhook{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + return &this +} + +// NewCreateConnectorRequestCasesWebhookWithDefaults instantiates a new CreateConnectorRequestCasesWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestCasesWebhookWithDefaults() *CreateConnectorRequestCasesWebhook { + this := CreateConnectorRequestCasesWebhook{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestCasesWebhook) GetConfig() ConfigPropertiesCasesWebhook { + if o == nil { + var ret ConfigPropertiesCasesWebhook + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestCasesWebhook) GetConfigOk() (*ConfigPropertiesCasesWebhook, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestCasesWebhook) SetConfig(v ConfigPropertiesCasesWebhook) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestCasesWebhook) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestCasesWebhook) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestCasesWebhook) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestCasesWebhook) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestCasesWebhook) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestCasesWebhook) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value if set, zero value otherwise. +func (o *CreateConnectorRequestCasesWebhook) GetSecrets() SecretsPropertiesCasesWebhook { + if o == nil || IsNil(o.Secrets) { + var ret SecretsPropertiesCasesWebhook + return ret + } + return *o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestCasesWebhook) GetSecretsOk() (*SecretsPropertiesCasesWebhook, bool) { + if o == nil || IsNil(o.Secrets) { + return nil, false + } + return o.Secrets, true +} + +// HasSecrets returns a boolean if a field has been set. +func (o *CreateConnectorRequestCasesWebhook) HasSecrets() bool { + if o != nil && !IsNil(o.Secrets) { + return true + } + + return false +} + +// SetSecrets gets a reference to the given SecretsPropertiesCasesWebhook and assigns it to the Secrets field. +func (o *CreateConnectorRequestCasesWebhook) SetSecrets(v SecretsPropertiesCasesWebhook) { + o.Secrets = &v +} + +func (o CreateConnectorRequestCasesWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestCasesWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + if !IsNil(o.Secrets) { + toSerialize["secrets"] = o.Secrets + } + return toSerialize, nil +} + +type NullableCreateConnectorRequestCasesWebhook struct { + value *CreateConnectorRequestCasesWebhook + isSet bool +} + +func (v NullableCreateConnectorRequestCasesWebhook) Get() *CreateConnectorRequestCasesWebhook { + return v.value +} + +func (v *NullableCreateConnectorRequestCasesWebhook) Set(val *CreateConnectorRequestCasesWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestCasesWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestCasesWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestCasesWebhook(val *CreateConnectorRequestCasesWebhook) *NullableCreateConnectorRequestCasesWebhook { + return &NullableCreateConnectorRequestCasesWebhook{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestCasesWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestCasesWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_email.go b/generated/kibanaactions/model_create_connector_request_email.go new file mode 100644 index 000000000..c5c2a5b66 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_email.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestEmail type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestEmail{} + +// CreateConnectorRequestEmail The email connector uses the SMTP protocol to send mail messages, using an integration of Nodemailer. An exception is Microsoft Exchange, which uses HTTP protocol for sending emails, Send mail. Email message text is sent as both plain text and html text. +type CreateConnectorRequestEmail struct { + // Defines properties for connectors when type is `.email`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.email`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestEmail instantiates a new CreateConnectorRequestEmail object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestEmail(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestEmail { + this := CreateConnectorRequestEmail{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestEmailWithDefaults instantiates a new CreateConnectorRequestEmail object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestEmailWithDefaults() *CreateConnectorRequestEmail { + this := CreateConnectorRequestEmail{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestEmail) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestEmail) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestEmail) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestEmail) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestEmail) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestEmail) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestEmail) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestEmail) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestEmail) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestEmail) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestEmail) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestEmail) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestEmail) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestEmail) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestEmail struct { + value *CreateConnectorRequestEmail + isSet bool +} + +func (v NullableCreateConnectorRequestEmail) Get() *CreateConnectorRequestEmail { + return v.value +} + +func (v *NullableCreateConnectorRequestEmail) Set(val *CreateConnectorRequestEmail) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestEmail) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestEmail) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestEmail(val *CreateConnectorRequestEmail) *NullableCreateConnectorRequestEmail { + return &NullableCreateConnectorRequestEmail{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestEmail) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestEmail) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_index.go b/generated/kibanaactions/model_create_connector_request_index.go new file mode 100644 index 000000000..04ed98ab5 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_index.go @@ -0,0 +1,171 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestIndex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestIndex{} + +// CreateConnectorRequestIndex The index connector indexes a document into Elasticsearch. +type CreateConnectorRequestIndex struct { + Config ConfigPropertiesIndex `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewCreateConnectorRequestIndex instantiates a new CreateConnectorRequestIndex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestIndex(config ConfigPropertiesIndex, connectorTypeId string, name string) *CreateConnectorRequestIndex { + this := CreateConnectorRequestIndex{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + return &this +} + +// NewCreateConnectorRequestIndexWithDefaults instantiates a new CreateConnectorRequestIndex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestIndexWithDefaults() *CreateConnectorRequestIndex { + this := CreateConnectorRequestIndex{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestIndex) GetConfig() ConfigPropertiesIndex { + if o == nil { + var ret ConfigPropertiesIndex + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestIndex) GetConfigOk() (*ConfigPropertiesIndex, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestIndex) SetConfig(v ConfigPropertiesIndex) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestIndex) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestIndex) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestIndex) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestIndex) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestIndex) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestIndex) SetName(v string) { + o.Name = v +} + +func (o CreateConnectorRequestIndex) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestIndex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableCreateConnectorRequestIndex struct { + value *CreateConnectorRequestIndex + isSet bool +} + +func (v NullableCreateConnectorRequestIndex) Get() *CreateConnectorRequestIndex { + return v.value +} + +func (v *NullableCreateConnectorRequestIndex) Set(val *CreateConnectorRequestIndex) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestIndex) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestIndex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestIndex(val *CreateConnectorRequestIndex) *NullableCreateConnectorRequestIndex { + return &NullableCreateConnectorRequestIndex{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestIndex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestIndex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_jira.go b/generated/kibanaactions/model_create_connector_request_jira.go new file mode 100644 index 000000000..6e7884067 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_jira.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestJira type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestJira{} + +// CreateConnectorRequestJira The Jira connector uses the REST API v2 to create Jira issues. +type CreateConnectorRequestJira struct { + Config ConfigPropertiesJira `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesJira `json:"secrets"` +} + +// NewCreateConnectorRequestJira instantiates a new CreateConnectorRequestJira object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestJira(config ConfigPropertiesJira, connectorTypeId string, name string, secrets SecretsPropertiesJira) *CreateConnectorRequestJira { + this := CreateConnectorRequestJira{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestJiraWithDefaults instantiates a new CreateConnectorRequestJira object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestJiraWithDefaults() *CreateConnectorRequestJira { + this := CreateConnectorRequestJira{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestJira) GetConfig() ConfigPropertiesJira { + if o == nil { + var ret ConfigPropertiesJira + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestJira) GetConfigOk() (*ConfigPropertiesJira, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestJira) SetConfig(v ConfigPropertiesJira) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestJira) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestJira) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestJira) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestJira) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestJira) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestJira) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestJira) GetSecrets() SecretsPropertiesJira { + if o == nil { + var ret SecretsPropertiesJira + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestJira) GetSecretsOk() (*SecretsPropertiesJira, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestJira) SetSecrets(v SecretsPropertiesJira) { + o.Secrets = v +} + +func (o CreateConnectorRequestJira) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestJira) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestJira struct { + value *CreateConnectorRequestJira + isSet bool +} + +func (v NullableCreateConnectorRequestJira) Get() *CreateConnectorRequestJira { + return v.value +} + +func (v *NullableCreateConnectorRequestJira) Set(val *CreateConnectorRequestJira) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestJira) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestJira) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestJira(val *CreateConnectorRequestJira) *NullableCreateConnectorRequestJira { + return &NullableCreateConnectorRequestJira{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestJira) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestJira) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_opsgenie.go b/generated/kibanaactions/model_create_connector_request_opsgenie.go new file mode 100644 index 000000000..9cd4631d2 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_opsgenie.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestOpsgenie type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestOpsgenie{} + +// CreateConnectorRequestOpsgenie The Opsgenie connector uses the Opsgenie alert API. +type CreateConnectorRequestOpsgenie struct { + Config ConfigPropertiesOpsgenie `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesOpsgenie `json:"secrets"` +} + +// NewCreateConnectorRequestOpsgenie instantiates a new CreateConnectorRequestOpsgenie object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestOpsgenie(config ConfigPropertiesOpsgenie, connectorTypeId string, name string, secrets SecretsPropertiesOpsgenie) *CreateConnectorRequestOpsgenie { + this := CreateConnectorRequestOpsgenie{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestOpsgenieWithDefaults instantiates a new CreateConnectorRequestOpsgenie object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestOpsgenieWithDefaults() *CreateConnectorRequestOpsgenie { + this := CreateConnectorRequestOpsgenie{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestOpsgenie) GetConfig() ConfigPropertiesOpsgenie { + if o == nil { + var ret ConfigPropertiesOpsgenie + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestOpsgenie) GetConfigOk() (*ConfigPropertiesOpsgenie, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestOpsgenie) SetConfig(v ConfigPropertiesOpsgenie) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestOpsgenie) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestOpsgenie) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestOpsgenie) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestOpsgenie) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestOpsgenie) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestOpsgenie) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestOpsgenie) GetSecrets() SecretsPropertiesOpsgenie { + if o == nil { + var ret SecretsPropertiesOpsgenie + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestOpsgenie) GetSecretsOk() (*SecretsPropertiesOpsgenie, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestOpsgenie) SetSecrets(v SecretsPropertiesOpsgenie) { + o.Secrets = v +} + +func (o CreateConnectorRequestOpsgenie) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestOpsgenie) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestOpsgenie struct { + value *CreateConnectorRequestOpsgenie + isSet bool +} + +func (v NullableCreateConnectorRequestOpsgenie) Get() *CreateConnectorRequestOpsgenie { + return v.value +} + +func (v *NullableCreateConnectorRequestOpsgenie) Set(val *CreateConnectorRequestOpsgenie) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestOpsgenie) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestOpsgenie) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestOpsgenie(val *CreateConnectorRequestOpsgenie) *NullableCreateConnectorRequestOpsgenie { + return &NullableCreateConnectorRequestOpsgenie{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestOpsgenie) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestOpsgenie) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_pagerduty.go b/generated/kibanaactions/model_create_connector_request_pagerduty.go new file mode 100644 index 000000000..3e9518d49 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_pagerduty.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestPagerduty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestPagerduty{} + +// CreateConnectorRequestPagerduty The PagerDuty connector uses the v2 Events API to trigger, acknowledge, and resolve PagerDuty alerts. +type CreateConnectorRequestPagerduty struct { + // Defines properties for connectors when type is `.pagerduty`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.pagerduty`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestPagerduty instantiates a new CreateConnectorRequestPagerduty object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestPagerduty(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestPagerduty { + this := CreateConnectorRequestPagerduty{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestPagerdutyWithDefaults instantiates a new CreateConnectorRequestPagerduty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestPagerdutyWithDefaults() *CreateConnectorRequestPagerduty { + this := CreateConnectorRequestPagerduty{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestPagerduty) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestPagerduty) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestPagerduty) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestPagerduty) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestPagerduty) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestPagerduty) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestPagerduty) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestPagerduty) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestPagerduty) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestPagerduty) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestPagerduty) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestPagerduty) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestPagerduty) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestPagerduty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestPagerduty struct { + value *CreateConnectorRequestPagerduty + isSet bool +} + +func (v NullableCreateConnectorRequestPagerduty) Get() *CreateConnectorRequestPagerduty { + return v.value +} + +func (v *NullableCreateConnectorRequestPagerduty) Set(val *CreateConnectorRequestPagerduty) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestPagerduty) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestPagerduty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestPagerduty(val *CreateConnectorRequestPagerduty) *NullableCreateConnectorRequestPagerduty { + return &NullableCreateConnectorRequestPagerduty{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestPagerduty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestPagerduty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_resilient.go b/generated/kibanaactions/model_create_connector_request_resilient.go new file mode 100644 index 000000000..4c33b53af --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_resilient.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestResilient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestResilient{} + +// CreateConnectorRequestResilient The IBM Resilient connector uses the RESILIENT REST v2 to create IBM Resilient incidents. +type CreateConnectorRequestResilient struct { + Config ConfigPropertiesResilient `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesResilient `json:"secrets"` +} + +// NewCreateConnectorRequestResilient instantiates a new CreateConnectorRequestResilient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestResilient(config ConfigPropertiesResilient, connectorTypeId string, name string, secrets SecretsPropertiesResilient) *CreateConnectorRequestResilient { + this := CreateConnectorRequestResilient{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestResilientWithDefaults instantiates a new CreateConnectorRequestResilient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestResilientWithDefaults() *CreateConnectorRequestResilient { + this := CreateConnectorRequestResilient{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestResilient) GetConfig() ConfigPropertiesResilient { + if o == nil { + var ret ConfigPropertiesResilient + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestResilient) GetConfigOk() (*ConfigPropertiesResilient, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestResilient) SetConfig(v ConfigPropertiesResilient) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestResilient) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestResilient) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestResilient) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestResilient) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestResilient) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestResilient) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestResilient) GetSecrets() SecretsPropertiesResilient { + if o == nil { + var ret SecretsPropertiesResilient + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestResilient) GetSecretsOk() (*SecretsPropertiesResilient, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestResilient) SetSecrets(v SecretsPropertiesResilient) { + o.Secrets = v +} + +func (o CreateConnectorRequestResilient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestResilient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestResilient struct { + value *CreateConnectorRequestResilient + isSet bool +} + +func (v NullableCreateConnectorRequestResilient) Get() *CreateConnectorRequestResilient { + return v.value +} + +func (v *NullableCreateConnectorRequestResilient) Set(val *CreateConnectorRequestResilient) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestResilient) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestResilient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestResilient(val *CreateConnectorRequestResilient) *NullableCreateConnectorRequestResilient { + return &NullableCreateConnectorRequestResilient{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestResilient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestResilient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_serverlog.go b/generated/kibanaactions/model_create_connector_request_serverlog.go new file mode 100644 index 000000000..7453ae227 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_serverlog.go @@ -0,0 +1,144 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestServerlog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestServerlog{} + +// CreateConnectorRequestServerlog This connector writes an entry to the Kibana server log. +type CreateConnectorRequestServerlog struct { + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewCreateConnectorRequestServerlog instantiates a new CreateConnectorRequestServerlog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestServerlog(connectorTypeId string, name string) *CreateConnectorRequestServerlog { + this := CreateConnectorRequestServerlog{} + this.ConnectorTypeId = connectorTypeId + this.Name = name + return &this +} + +// NewCreateConnectorRequestServerlogWithDefaults instantiates a new CreateConnectorRequestServerlog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestServerlogWithDefaults() *CreateConnectorRequestServerlog { + this := CreateConnectorRequestServerlog{} + return &this +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestServerlog) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServerlog) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestServerlog) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestServerlog) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServerlog) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestServerlog) SetName(v string) { + o.Name = v +} + +func (o CreateConnectorRequestServerlog) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestServerlog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableCreateConnectorRequestServerlog struct { + value *CreateConnectorRequestServerlog + isSet bool +} + +func (v NullableCreateConnectorRequestServerlog) Get() *CreateConnectorRequestServerlog { + return v.value +} + +func (v *NullableCreateConnectorRequestServerlog) Set(val *CreateConnectorRequestServerlog) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestServerlog) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestServerlog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestServerlog(val *CreateConnectorRequestServerlog) *NullableCreateConnectorRequestServerlog { + return &NullableCreateConnectorRequestServerlog{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestServerlog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestServerlog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_servicenow.go b/generated/kibanaactions/model_create_connector_request_servicenow.go new file mode 100644 index 000000000..64b5d67b8 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_servicenow.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestServicenow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestServicenow{} + +// CreateConnectorRequestServicenow The ServiceNow ITSM connector uses the import set API to create ServiceNow incidents. You can use the connector for rule actions and cases. +type CreateConnectorRequestServicenow struct { + Config ConfigPropertiesServicenow `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesServicenow `json:"secrets"` +} + +// NewCreateConnectorRequestServicenow instantiates a new CreateConnectorRequestServicenow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestServicenow(config ConfigPropertiesServicenow, connectorTypeId string, name string, secrets SecretsPropertiesServicenow) *CreateConnectorRequestServicenow { + this := CreateConnectorRequestServicenow{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestServicenowWithDefaults instantiates a new CreateConnectorRequestServicenow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestServicenowWithDefaults() *CreateConnectorRequestServicenow { + this := CreateConnectorRequestServicenow{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestServicenow) GetConfig() ConfigPropertiesServicenow { + if o == nil { + var ret ConfigPropertiesServicenow + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenow) GetConfigOk() (*ConfigPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestServicenow) SetConfig(v ConfigPropertiesServicenow) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestServicenow) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenow) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestServicenow) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestServicenow) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenow) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestServicenow) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestServicenow) GetSecrets() SecretsPropertiesServicenow { + if o == nil { + var ret SecretsPropertiesServicenow + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenow) GetSecretsOk() (*SecretsPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestServicenow) SetSecrets(v SecretsPropertiesServicenow) { + o.Secrets = v +} + +func (o CreateConnectorRequestServicenow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestServicenow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestServicenow struct { + value *CreateConnectorRequestServicenow + isSet bool +} + +func (v NullableCreateConnectorRequestServicenow) Get() *CreateConnectorRequestServicenow { + return v.value +} + +func (v *NullableCreateConnectorRequestServicenow) Set(val *CreateConnectorRequestServicenow) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestServicenow) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestServicenow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestServicenow(val *CreateConnectorRequestServicenow) *NullableCreateConnectorRequestServicenow { + return &NullableCreateConnectorRequestServicenow{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestServicenow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestServicenow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_servicenow_itom.go b/generated/kibanaactions/model_create_connector_request_servicenow_itom.go new file mode 100644 index 000000000..7099c44ae --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_servicenow_itom.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestServicenowItom type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestServicenowItom{} + +// CreateConnectorRequestServicenowItom The ServiceNow ITOM connector uses the event API to create ServiceNow events. You can use the connector for rule actions. +type CreateConnectorRequestServicenowItom struct { + Config ConfigPropertiesServicenowItom `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesServicenow `json:"secrets"` +} + +// NewCreateConnectorRequestServicenowItom instantiates a new CreateConnectorRequestServicenowItom object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestServicenowItom(config ConfigPropertiesServicenowItom, connectorTypeId string, name string, secrets SecretsPropertiesServicenow) *CreateConnectorRequestServicenowItom { + this := CreateConnectorRequestServicenowItom{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestServicenowItomWithDefaults instantiates a new CreateConnectorRequestServicenowItom object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestServicenowItomWithDefaults() *CreateConnectorRequestServicenowItom { + this := CreateConnectorRequestServicenowItom{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestServicenowItom) GetConfig() ConfigPropertiesServicenowItom { + if o == nil { + var ret ConfigPropertiesServicenowItom + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowItom) GetConfigOk() (*ConfigPropertiesServicenowItom, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestServicenowItom) SetConfig(v ConfigPropertiesServicenowItom) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestServicenowItom) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowItom) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestServicenowItom) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestServicenowItom) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowItom) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestServicenowItom) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestServicenowItom) GetSecrets() SecretsPropertiesServicenow { + if o == nil { + var ret SecretsPropertiesServicenow + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowItom) GetSecretsOk() (*SecretsPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestServicenowItom) SetSecrets(v SecretsPropertiesServicenow) { + o.Secrets = v +} + +func (o CreateConnectorRequestServicenowItom) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestServicenowItom) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestServicenowItom struct { + value *CreateConnectorRequestServicenowItom + isSet bool +} + +func (v NullableCreateConnectorRequestServicenowItom) Get() *CreateConnectorRequestServicenowItom { + return v.value +} + +func (v *NullableCreateConnectorRequestServicenowItom) Set(val *CreateConnectorRequestServicenowItom) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestServicenowItom) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestServicenowItom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestServicenowItom(val *CreateConnectorRequestServicenowItom) *NullableCreateConnectorRequestServicenowItom { + return &NullableCreateConnectorRequestServicenowItom{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestServicenowItom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestServicenowItom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_servicenow_sir.go b/generated/kibanaactions/model_create_connector_request_servicenow_sir.go new file mode 100644 index 000000000..b02258539 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_servicenow_sir.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestServicenowSir type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestServicenowSir{} + +// CreateConnectorRequestServicenowSir The ServiceNow SecOps connector uses the import set API to create ServiceNow security incidents. You can use the connector for rule actions and cases. +type CreateConnectorRequestServicenowSir struct { + Config ConfigPropertiesServicenow `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesServicenow `json:"secrets"` +} + +// NewCreateConnectorRequestServicenowSir instantiates a new CreateConnectorRequestServicenowSir object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestServicenowSir(config ConfigPropertiesServicenow, connectorTypeId string, name string, secrets SecretsPropertiesServicenow) *CreateConnectorRequestServicenowSir { + this := CreateConnectorRequestServicenowSir{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestServicenowSirWithDefaults instantiates a new CreateConnectorRequestServicenowSir object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestServicenowSirWithDefaults() *CreateConnectorRequestServicenowSir { + this := CreateConnectorRequestServicenowSir{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestServicenowSir) GetConfig() ConfigPropertiesServicenow { + if o == nil { + var ret ConfigPropertiesServicenow + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowSir) GetConfigOk() (*ConfigPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestServicenowSir) SetConfig(v ConfigPropertiesServicenow) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestServicenowSir) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowSir) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestServicenowSir) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestServicenowSir) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowSir) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestServicenowSir) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestServicenowSir) GetSecrets() SecretsPropertiesServicenow { + if o == nil { + var ret SecretsPropertiesServicenow + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestServicenowSir) GetSecretsOk() (*SecretsPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestServicenowSir) SetSecrets(v SecretsPropertiesServicenow) { + o.Secrets = v +} + +func (o CreateConnectorRequestServicenowSir) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestServicenowSir) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestServicenowSir struct { + value *CreateConnectorRequestServicenowSir + isSet bool +} + +func (v NullableCreateConnectorRequestServicenowSir) Get() *CreateConnectorRequestServicenowSir { + return v.value +} + +func (v *NullableCreateConnectorRequestServicenowSir) Set(val *CreateConnectorRequestServicenowSir) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestServicenowSir) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestServicenowSir) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestServicenowSir(val *CreateConnectorRequestServicenowSir) *NullableCreateConnectorRequestServicenowSir { + return &NullableCreateConnectorRequestServicenowSir{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestServicenowSir) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestServicenowSir) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_slack.go b/generated/kibanaactions/model_create_connector_request_slack.go new file mode 100644 index 000000000..db1405ab3 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_slack.go @@ -0,0 +1,172 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestSlack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestSlack{} + +// CreateConnectorRequestSlack The Slack connector uses Slack Incoming Webhooks. +type CreateConnectorRequestSlack struct { + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.slack`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestSlack instantiates a new CreateConnectorRequestSlack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestSlack(connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestSlack { + this := CreateConnectorRequestSlack{} + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestSlackWithDefaults instantiates a new CreateConnectorRequestSlack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestSlackWithDefaults() *CreateConnectorRequestSlack { + this := CreateConnectorRequestSlack{} + return &this +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestSlack) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSlack) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestSlack) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestSlack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSlack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestSlack) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestSlack) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSlack) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestSlack) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestSlack) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestSlack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestSlack struct { + value *CreateConnectorRequestSlack + isSet bool +} + +func (v NullableCreateConnectorRequestSlack) Get() *CreateConnectorRequestSlack { + return v.value +} + +func (v *NullableCreateConnectorRequestSlack) Set(val *CreateConnectorRequestSlack) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestSlack) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestSlack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestSlack(val *CreateConnectorRequestSlack) *NullableCreateConnectorRequestSlack { + return &NullableCreateConnectorRequestSlack{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestSlack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestSlack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_swimlane.go b/generated/kibanaactions/model_create_connector_request_swimlane.go new file mode 100644 index 000000000..1db9b1ca8 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_swimlane.go @@ -0,0 +1,198 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestSwimlane type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestSwimlane{} + +// CreateConnectorRequestSwimlane The Swimlane connector uses the Swimlane REST API to create Swimlane records. +type CreateConnectorRequestSwimlane struct { + Config ConfigPropertiesSwimlane `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesSwimlane `json:"secrets"` +} + +// NewCreateConnectorRequestSwimlane instantiates a new CreateConnectorRequestSwimlane object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestSwimlane(config ConfigPropertiesSwimlane, connectorTypeId string, name string, secrets SecretsPropertiesSwimlane) *CreateConnectorRequestSwimlane { + this := CreateConnectorRequestSwimlane{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestSwimlaneWithDefaults instantiates a new CreateConnectorRequestSwimlane object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestSwimlaneWithDefaults() *CreateConnectorRequestSwimlane { + this := CreateConnectorRequestSwimlane{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestSwimlane) GetConfig() ConfigPropertiesSwimlane { + if o == nil { + var ret ConfigPropertiesSwimlane + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSwimlane) GetConfigOk() (*ConfigPropertiesSwimlane, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestSwimlane) SetConfig(v ConfigPropertiesSwimlane) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestSwimlane) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSwimlane) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestSwimlane) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestSwimlane) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSwimlane) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestSwimlane) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestSwimlane) GetSecrets() SecretsPropertiesSwimlane { + if o == nil { + var ret SecretsPropertiesSwimlane + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestSwimlane) GetSecretsOk() (*SecretsPropertiesSwimlane, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestSwimlane) SetSecrets(v SecretsPropertiesSwimlane) { + o.Secrets = v +} + +func (o CreateConnectorRequestSwimlane) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestSwimlane) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestSwimlane struct { + value *CreateConnectorRequestSwimlane + isSet bool +} + +func (v NullableCreateConnectorRequestSwimlane) Get() *CreateConnectorRequestSwimlane { + return v.value +} + +func (v *NullableCreateConnectorRequestSwimlane) Set(val *CreateConnectorRequestSwimlane) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestSwimlane) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestSwimlane) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestSwimlane(val *CreateConnectorRequestSwimlane) *NullableCreateConnectorRequestSwimlane { + return &NullableCreateConnectorRequestSwimlane{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestSwimlane) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestSwimlane) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_teams.go b/generated/kibanaactions/model_create_connector_request_teams.go new file mode 100644 index 000000000..f41d2828e --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_teams.go @@ -0,0 +1,172 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestTeams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestTeams{} + +// CreateConnectorRequestTeams The Microsoft Teams connector uses Incoming Webhooks. +type CreateConnectorRequestTeams struct { + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.teams`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestTeams instantiates a new CreateConnectorRequestTeams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestTeams(connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestTeams { + this := CreateConnectorRequestTeams{} + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestTeamsWithDefaults instantiates a new CreateConnectorRequestTeams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestTeamsWithDefaults() *CreateConnectorRequestTeams { + this := CreateConnectorRequestTeams{} + return &this +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestTeams) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTeams) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestTeams) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestTeams) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTeams) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestTeams) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestTeams) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTeams) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestTeams) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestTeams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestTeams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestTeams struct { + value *CreateConnectorRequestTeams + isSet bool +} + +func (v NullableCreateConnectorRequestTeams) Get() *CreateConnectorRequestTeams { + return v.value +} + +func (v *NullableCreateConnectorRequestTeams) Set(val *CreateConnectorRequestTeams) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestTeams) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestTeams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestTeams(val *CreateConnectorRequestTeams) *NullableCreateConnectorRequestTeams { + return &NullableCreateConnectorRequestTeams{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestTeams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestTeams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_tines.go b/generated/kibanaactions/model_create_connector_request_tines.go new file mode 100644 index 000000000..91cb98feb --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_tines.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestTines type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestTines{} + +// CreateConnectorRequestTines The Tines connector uses Tines Webhook actions to send events via POST request. +type CreateConnectorRequestTines struct { + // Defines properties for connectors when type is `.tines`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.tines`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestTines instantiates a new CreateConnectorRequestTines object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestTines(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestTines { + this := CreateConnectorRequestTines{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestTinesWithDefaults instantiates a new CreateConnectorRequestTines object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestTinesWithDefaults() *CreateConnectorRequestTines { + this := CreateConnectorRequestTines{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestTines) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTines) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestTines) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestTines) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTines) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestTines) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestTines) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTines) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestTines) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestTines) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestTines) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestTines) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestTines) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestTines) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestTines struct { + value *CreateConnectorRequestTines + isSet bool +} + +func (v NullableCreateConnectorRequestTines) Get() *CreateConnectorRequestTines { + return v.value +} + +func (v *NullableCreateConnectorRequestTines) Set(val *CreateConnectorRequestTines) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestTines) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestTines) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestTines(val *CreateConnectorRequestTines) *NullableCreateConnectorRequestTines { + return &NullableCreateConnectorRequestTines{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestTines) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestTines) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_webhook.go b/generated/kibanaactions/model_create_connector_request_webhook.go new file mode 100644 index 000000000..557f3d4d8 --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_webhook.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestWebhook{} + +// CreateConnectorRequestWebhook The Webhook connector uses axios to send a POST or PUT request to a web service. +type CreateConnectorRequestWebhook struct { + // Defines properties for connectors when type is `.webhook`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.webhook`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestWebhook instantiates a new CreateConnectorRequestWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestWebhook(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestWebhook { + this := CreateConnectorRequestWebhook{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestWebhookWithDefaults instantiates a new CreateConnectorRequestWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestWebhookWithDefaults() *CreateConnectorRequestWebhook { + this := CreateConnectorRequestWebhook{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestWebhook) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestWebhook) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestWebhook) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestWebhook) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestWebhook) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestWebhook) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestWebhook) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestWebhook) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestWebhook) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestWebhook) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestWebhook) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestWebhook) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestWebhook struct { + value *CreateConnectorRequestWebhook + isSet bool +} + +func (v NullableCreateConnectorRequestWebhook) Get() *CreateConnectorRequestWebhook { + return v.value +} + +func (v *NullableCreateConnectorRequestWebhook) Set(val *CreateConnectorRequestWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestWebhook(val *CreateConnectorRequestWebhook) *NullableCreateConnectorRequestWebhook { + return &NullableCreateConnectorRequestWebhook{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_create_connector_request_xmatters.go b/generated/kibanaactions/model_create_connector_request_xmatters.go new file mode 100644 index 000000000..caf80dbca --- /dev/null +++ b/generated/kibanaactions/model_create_connector_request_xmatters.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequestXmatters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequestXmatters{} + +// CreateConnectorRequestXmatters The xMatters connector uses the xMatters Workflow for Elastic to send actionable alerts to on-call xMatters resources. +type CreateConnectorRequestXmatters struct { + // Defines properties for connectors when type is `.xmatters`. + Config map[string]interface{} `json:"config"` + // The type of connector. + ConnectorTypeId string `json:"connector_type_id"` + // The display name for the connector. + Name string `json:"name"` + // Defines secrets for connectors when type is `.xmatters`. + Secrets map[string]interface{} `json:"secrets"` +} + +// NewCreateConnectorRequestXmatters instantiates a new CreateConnectorRequestXmatters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequestXmatters(config map[string]interface{}, connectorTypeId string, name string, secrets map[string]interface{}) *CreateConnectorRequestXmatters { + this := CreateConnectorRequestXmatters{} + this.Config = config + this.ConnectorTypeId = connectorTypeId + this.Name = name + this.Secrets = secrets + return &this +} + +// NewCreateConnectorRequestXmattersWithDefaults instantiates a new CreateConnectorRequestXmatters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestXmattersWithDefaults() *CreateConnectorRequestXmatters { + this := CreateConnectorRequestXmatters{} + return &this +} + +// GetConfig returns the Config field value +func (o *CreateConnectorRequestXmatters) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestXmatters) GetConfigOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// SetConfig sets field value +func (o *CreateConnectorRequestXmatters) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *CreateConnectorRequestXmatters) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestXmatters) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *CreateConnectorRequestXmatters) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetName returns the Name field value +func (o *CreateConnectorRequestXmatters) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestXmatters) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateConnectorRequestXmatters) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *CreateConnectorRequestXmatters) GetSecrets() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequestXmatters) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// SetSecrets sets field value +func (o *CreateConnectorRequestXmatters) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o CreateConnectorRequestXmatters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequestXmatters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["connector_type_id"] = o.ConnectorTypeId + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableCreateConnectorRequestXmatters struct { + value *CreateConnectorRequestXmatters + isSet bool +} + +func (v NullableCreateConnectorRequestXmatters) Get() *CreateConnectorRequestXmatters { + return v.value +} + +func (v *NullableCreateConnectorRequestXmatters) Set(val *CreateConnectorRequestXmatters) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequestXmatters) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequestXmatters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequestXmatters(val *CreateConnectorRequestXmatters) *NullableCreateConnectorRequestXmatters { + return &NullableCreateConnectorRequestXmatters{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequestXmatters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequestXmatters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_features.go b/generated/kibanaactions/model_features.go new file mode 100644 index 000000000..ea1353179 --- /dev/null +++ b/generated/kibanaactions/model_features.go @@ -0,0 +1,114 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// Features The feature that uses the connector. Valid values are `alerting`, `cases`, `uptime`, and `siem`. +type Features string + +// List of features +const ( + ALERTING Features = "alerting" + CASES Features = "cases" + UPTIME Features = "uptime" + SIEM Features = "siem" +) + +// All allowed values of Features enum +var AllowedFeaturesEnumValues = []Features{ + "alerting", + "cases", + "uptime", + "siem", +} + +func (v *Features) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Features(value) + for _, existing := range AllowedFeaturesEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Features", value) +} + +// NewFeaturesFromValue returns a pointer to a valid Features +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewFeaturesFromValue(v string) (*Features, error) { + ev := Features(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Features: valid values are %v", v, AllowedFeaturesEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Features) IsValid() bool { + for _, existing := range AllowedFeaturesEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to features value +func (v Features) Ptr() *Features { + return &v +} + +type NullableFeatures struct { + value *Features + isSet bool +} + +func (v NullableFeatures) Get() *Features { + return v.value +} + +func (v *NullableFeatures) Set(val *Features) { + v.value = val + v.isSet = true +} + +func (v NullableFeatures) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatures) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatures(val *Features) *NullableFeatures { + return &NullableFeatures{value: val, isSet: true} +} + +func (v NullableFeatures) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatures) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_get_connector_404_response.go b/generated/kibanaactions/model_get_connector_404_response.go new file mode 100644 index 000000000..bec60f5bd --- /dev/null +++ b/generated/kibanaactions/model_get_connector_404_response.go @@ -0,0 +1,196 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the GetConnector404Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetConnector404Response{} + +// GetConnector404Response struct for GetConnector404Response +type GetConnector404Response struct { + Error *string `json:"error,omitempty"` + Message *string `json:"message,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty"` +} + +// NewGetConnector404Response instantiates a new GetConnector404Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetConnector404Response() *GetConnector404Response { + this := GetConnector404Response{} + return &this +} + +// NewGetConnector404ResponseWithDefaults instantiates a new GetConnector404Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetConnector404ResponseWithDefaults() *GetConnector404Response { + this := GetConnector404Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *GetConnector404Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnector404Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *GetConnector404Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *GetConnector404Response) SetError(v string) { + o.Error = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetConnector404Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnector404Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetConnector404Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetConnector404Response) SetMessage(v string) { + o.Message = &v +} + +// GetStatusCode returns the StatusCode field value if set, zero value otherwise. +func (o *GetConnector404Response) GetStatusCode() int32 { + if o == nil || IsNil(o.StatusCode) { + var ret int32 + return ret + } + return *o.StatusCode +} + +// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnector404Response) GetStatusCodeOk() (*int32, bool) { + if o == nil || IsNil(o.StatusCode) { + return nil, false + } + return o.StatusCode, true +} + +// HasStatusCode returns a boolean if a field has been set. +func (o *GetConnector404Response) HasStatusCode() bool { + if o != nil && !IsNil(o.StatusCode) { + return true + } + + return false +} + +// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. +func (o *GetConnector404Response) SetStatusCode(v int32) { + o.StatusCode = &v +} + +func (o GetConnector404Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetConnector404Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.StatusCode) { + toSerialize["statusCode"] = o.StatusCode + } + return toSerialize, nil +} + +type NullableGetConnector404Response struct { + value *GetConnector404Response + isSet bool +} + +func (v NullableGetConnector404Response) Get() *GetConnector404Response { + return v.value +} + +func (v *NullableGetConnector404Response) Set(val *GetConnector404Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetConnector404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetConnector404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetConnector404Response(val *GetConnector404Response) *NullableGetConnector404Response { + return &NullableGetConnector404Response{value: val, isSet: true} +} + +func (v NullableGetConnector404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetConnector404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_get_connector_types_response_body_properties_inner.go b/generated/kibanaactions/model_get_connector_types_response_body_properties_inner.go new file mode 100644 index 000000000..3822e540b --- /dev/null +++ b/generated/kibanaactions/model_get_connector_types_response_body_properties_inner.go @@ -0,0 +1,346 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the GetConnectorTypesResponseBodyPropertiesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetConnectorTypesResponseBodyPropertiesInner{} + +// GetConnectorTypesResponseBodyPropertiesInner struct for GetConnectorTypesResponseBodyPropertiesInner +type GetConnectorTypesResponseBodyPropertiesInner struct { + // Indicates whether the connector type is enabled in Kibana. + Enabled *bool `json:"enabled,omitempty"` + // Indicates whether the connector type is enabled in the Kibana `.yml` file. + EnabledInConfig *bool `json:"enabled_in_config,omitempty"` + // Indicates whether the connector is enabled in the license. + EnabledInLicense *bool `json:"enabled_in_license,omitempty"` + Id *ConnectorTypes `json:"id,omitempty"` + // The license that is required to use the connector type. + MinimumLicenseRequired *string `json:"minimum_license_required,omitempty"` + // The name of the connector type. + Name *string `json:"name,omitempty"` + // The Kibana features that are supported by the connector type. + SupportedFeatureIds []Features `json:"supported_feature_ids,omitempty"` +} + +// NewGetConnectorTypesResponseBodyPropertiesInner instantiates a new GetConnectorTypesResponseBodyPropertiesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetConnectorTypesResponseBodyPropertiesInner() *GetConnectorTypesResponseBodyPropertiesInner { + this := GetConnectorTypesResponseBodyPropertiesInner{} + return &this +} + +// NewGetConnectorTypesResponseBodyPropertiesInnerWithDefaults instantiates a new GetConnectorTypesResponseBodyPropertiesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetConnectorTypesResponseBodyPropertiesInnerWithDefaults() *GetConnectorTypesResponseBodyPropertiesInner { + this := GetConnectorTypesResponseBodyPropertiesInner{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetEnabledInConfig returns the EnabledInConfig field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfig() bool { + if o == nil || IsNil(o.EnabledInConfig) { + var ret bool + return ret + } + return *o.EnabledInConfig +} + +// GetEnabledInConfigOk returns a tuple with the EnabledInConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfigOk() (*bool, bool) { + if o == nil || IsNil(o.EnabledInConfig) { + return nil, false + } + return o.EnabledInConfig, true +} + +// HasEnabledInConfig returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasEnabledInConfig() bool { + if o != nil && !IsNil(o.EnabledInConfig) { + return true + } + + return false +} + +// SetEnabledInConfig gets a reference to the given bool and assigns it to the EnabledInConfig field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetEnabledInConfig(v bool) { + o.EnabledInConfig = &v +} + +// GetEnabledInLicense returns the EnabledInLicense field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicense() bool { + if o == nil || IsNil(o.EnabledInLicense) { + var ret bool + return ret + } + return *o.EnabledInLicense +} + +// GetEnabledInLicenseOk returns a tuple with the EnabledInLicense field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicenseOk() (*bool, bool) { + if o == nil || IsNil(o.EnabledInLicense) { + return nil, false + } + return o.EnabledInLicense, true +} + +// HasEnabledInLicense returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasEnabledInLicense() bool { + if o != nil && !IsNil(o.EnabledInLicense) { + return true + } + + return false +} + +// SetEnabledInLicense gets a reference to the given bool and assigns it to the EnabledInLicense field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetEnabledInLicense(v bool) { + o.EnabledInLicense = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetId() ConnectorTypes { + if o == nil || IsNil(o.Id) { + var ret ConnectorTypes + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetIdOk() (*ConnectorTypes, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given ConnectorTypes and assigns it to the Id field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetId(v ConnectorTypes) { + o.Id = &v +} + +// GetMinimumLicenseRequired returns the MinimumLicenseRequired field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequired() string { + if o == nil || IsNil(o.MinimumLicenseRequired) { + var ret string + return ret + } + return *o.MinimumLicenseRequired +} + +// GetMinimumLicenseRequiredOk returns a tuple with the MinimumLicenseRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequiredOk() (*string, bool) { + if o == nil || IsNil(o.MinimumLicenseRequired) { + return nil, false + } + return o.MinimumLicenseRequired, true +} + +// HasMinimumLicenseRequired returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasMinimumLicenseRequired() bool { + if o != nil && !IsNil(o.MinimumLicenseRequired) { + return true + } + + return false +} + +// SetMinimumLicenseRequired gets a reference to the given string and assigns it to the MinimumLicenseRequired field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetMinimumLicenseRequired(v string) { + o.MinimumLicenseRequired = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetName(v string) { + o.Name = &v +} + +// GetSupportedFeatureIds returns the SupportedFeatureIds field value if set, zero value otherwise. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetSupportedFeatureIds() []Features { + if o == nil || IsNil(o.SupportedFeatureIds) { + var ret []Features + return ret + } + return o.SupportedFeatureIds +} + +// GetSupportedFeatureIdsOk returns a tuple with the SupportedFeatureIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) GetSupportedFeatureIdsOk() ([]Features, bool) { + if o == nil || IsNil(o.SupportedFeatureIds) { + return nil, false + } + return o.SupportedFeatureIds, true +} + +// HasSupportedFeatureIds returns a boolean if a field has been set. +func (o *GetConnectorTypesResponseBodyPropertiesInner) HasSupportedFeatureIds() bool { + if o != nil && !IsNil(o.SupportedFeatureIds) { + return true + } + + return false +} + +// SetSupportedFeatureIds gets a reference to the given []Features and assigns it to the SupportedFeatureIds field. +func (o *GetConnectorTypesResponseBodyPropertiesInner) SetSupportedFeatureIds(v []Features) { + o.SupportedFeatureIds = v +} + +func (o GetConnectorTypesResponseBodyPropertiesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetConnectorTypesResponseBodyPropertiesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.EnabledInConfig) { + toSerialize["enabled_in_config"] = o.EnabledInConfig + } + if !IsNil(o.EnabledInLicense) { + toSerialize["enabled_in_license"] = o.EnabledInLicense + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.MinimumLicenseRequired) { + toSerialize["minimum_license_required"] = o.MinimumLicenseRequired + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.SupportedFeatureIds) { + toSerialize["supported_feature_ids"] = o.SupportedFeatureIds + } + return toSerialize, nil +} + +type NullableGetConnectorTypesResponseBodyPropertiesInner struct { + value *GetConnectorTypesResponseBodyPropertiesInner + isSet bool +} + +func (v NullableGetConnectorTypesResponseBodyPropertiesInner) Get() *GetConnectorTypesResponseBodyPropertiesInner { + return v.value +} + +func (v *NullableGetConnectorTypesResponseBodyPropertiesInner) Set(val *GetConnectorTypesResponseBodyPropertiesInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetConnectorTypesResponseBodyPropertiesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetConnectorTypesResponseBodyPropertiesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetConnectorTypesResponseBodyPropertiesInner(val *GetConnectorTypesResponseBodyPropertiesInner) *NullableGetConnectorTypesResponseBodyPropertiesInner { + return &NullableGetConnectorTypesResponseBodyPropertiesInner{value: val, isSet: true} +} + +func (v NullableGetConnectorTypesResponseBodyPropertiesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetConnectorTypesResponseBodyPropertiesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_get_connectors_response_body_properties.go b/generated/kibanaactions/model_get_connectors_response_body_properties.go new file mode 100644 index 000000000..20df518c0 --- /dev/null +++ b/generated/kibanaactions/model_get_connectors_response_body_properties.go @@ -0,0 +1,332 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the GetConnectorsResponseBodyProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetConnectorsResponseBodyProperties{} + +// GetConnectorsResponseBodyProperties The properties vary for each connector type. +type GetConnectorsResponseBodyProperties struct { + ConnectorTypeId ConnectorTypes `json:"connector_type_id"` + // The configuration for the connector. Configuration properties vary depending on the connector type. + Config map[string]interface{} `json:"config,omitempty"` + // The identifier for the connector. + Id string `json:"id"` + // Indicates whether the connector type is deprecated. + IsDeprecated bool `json:"is_deprecated"` + // Indicates whether secrets are missing for the connector. Secrets configuration properties vary depending on the connector type. + IsMissingSecrets *bool `json:"is_missing_secrets,omitempty"` + // Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response. + IsPreconfigured bool `json:"is_preconfigured"` + // The display name for the connector. + Name string `json:"name"` + // Indicates the number of saved objects that reference the connector. If `is_preconfigured` is true, this value is not calculated. + ReferencedByCount int32 `json:"referenced_by_count"` +} + +// NewGetConnectorsResponseBodyProperties instantiates a new GetConnectorsResponseBodyProperties object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetConnectorsResponseBodyProperties(connectorTypeId ConnectorTypes, id string, isDeprecated bool, isPreconfigured bool, name string, referencedByCount int32) *GetConnectorsResponseBodyProperties { + this := GetConnectorsResponseBodyProperties{} + this.ConnectorTypeId = connectorTypeId + this.Id = id + this.IsDeprecated = isDeprecated + this.IsPreconfigured = isPreconfigured + this.Name = name + this.ReferencedByCount = referencedByCount + return &this +} + +// NewGetConnectorsResponseBodyPropertiesWithDefaults instantiates a new GetConnectorsResponseBodyProperties object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetConnectorsResponseBodyPropertiesWithDefaults() *GetConnectorsResponseBodyProperties { + this := GetConnectorsResponseBodyProperties{} + var referencedByCount int32 = 0 + this.ReferencedByCount = referencedByCount + return &this +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *GetConnectorsResponseBodyProperties) GetConnectorTypeId() ConnectorTypes { + if o == nil { + var ret ConnectorTypes + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetConnectorTypeIdOk() (*ConnectorTypes, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *GetConnectorsResponseBodyProperties) SetConnectorTypeId(v ConnectorTypes) { + o.ConnectorTypeId = v +} + +// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetConnectorsResponseBodyProperties) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetConnectorsResponseBodyProperties) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *GetConnectorsResponseBodyProperties) HasConfig() bool { + if o != nil && IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *GetConnectorsResponseBodyProperties) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetId returns the Id field value +func (o *GetConnectorsResponseBodyProperties) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *GetConnectorsResponseBodyProperties) SetId(v string) { + o.Id = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *GetConnectorsResponseBodyProperties) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *GetConnectorsResponseBodyProperties) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsMissingSecrets returns the IsMissingSecrets field value if set, zero value otherwise. +func (o *GetConnectorsResponseBodyProperties) GetIsMissingSecrets() bool { + if o == nil || IsNil(o.IsMissingSecrets) { + var ret bool + return ret + } + return *o.IsMissingSecrets +} + +// GetIsMissingSecretsOk returns a tuple with the IsMissingSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetIsMissingSecretsOk() (*bool, bool) { + if o == nil || IsNil(o.IsMissingSecrets) { + return nil, false + } + return o.IsMissingSecrets, true +} + +// HasIsMissingSecrets returns a boolean if a field has been set. +func (o *GetConnectorsResponseBodyProperties) HasIsMissingSecrets() bool { + if o != nil && !IsNil(o.IsMissingSecrets) { + return true + } + + return false +} + +// SetIsMissingSecrets gets a reference to the given bool and assigns it to the IsMissingSecrets field. +func (o *GetConnectorsResponseBodyProperties) SetIsMissingSecrets(v bool) { + o.IsMissingSecrets = &v +} + +// GetIsPreconfigured returns the IsPreconfigured field value +func (o *GetConnectorsResponseBodyProperties) GetIsPreconfigured() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPreconfigured +} + +// GetIsPreconfiguredOk returns a tuple with the IsPreconfigured field value +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetIsPreconfiguredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPreconfigured, true +} + +// SetIsPreconfigured sets field value +func (o *GetConnectorsResponseBodyProperties) SetIsPreconfigured(v bool) { + o.IsPreconfigured = v +} + +// GetName returns the Name field value +func (o *GetConnectorsResponseBodyProperties) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *GetConnectorsResponseBodyProperties) SetName(v string) { + o.Name = v +} + +// GetReferencedByCount returns the ReferencedByCount field value +func (o *GetConnectorsResponseBodyProperties) GetReferencedByCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ReferencedByCount +} + +// GetReferencedByCountOk returns a tuple with the ReferencedByCount field value +// and a boolean to check if the value has been set. +func (o *GetConnectorsResponseBodyProperties) GetReferencedByCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ReferencedByCount, true +} + +// SetReferencedByCount sets field value +func (o *GetConnectorsResponseBodyProperties) SetReferencedByCount(v int32) { + o.ReferencedByCount = v +} + +func (o GetConnectorsResponseBodyProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetConnectorsResponseBodyProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_type_id"] = o.ConnectorTypeId + if o.Config != nil { + toSerialize["config"] = o.Config + } + toSerialize["id"] = o.Id + toSerialize["is_deprecated"] = o.IsDeprecated + if !IsNil(o.IsMissingSecrets) { + toSerialize["is_missing_secrets"] = o.IsMissingSecrets + } + toSerialize["is_preconfigured"] = o.IsPreconfigured + toSerialize["name"] = o.Name + toSerialize["referenced_by_count"] = o.ReferencedByCount + return toSerialize, nil +} + +type NullableGetConnectorsResponseBodyProperties struct { + value *GetConnectorsResponseBodyProperties + isSet bool +} + +func (v NullableGetConnectorsResponseBodyProperties) Get() *GetConnectorsResponseBodyProperties { + return v.value +} + +func (v *NullableGetConnectorsResponseBodyProperties) Set(val *GetConnectorsResponseBodyProperties) { + v.value = val + v.isSet = true +} + +func (v NullableGetConnectorsResponseBodyProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableGetConnectorsResponseBodyProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetConnectorsResponseBodyProperties(val *GetConnectorsResponseBodyProperties) *NullableGetConnectorsResponseBodyProperties { + return &NullableGetConnectorsResponseBodyProperties{value: val, isSet: true} +} + +func (v NullableGetConnectorsResponseBodyProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetConnectorsResponseBodyProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_legacy_create_connector_request_properties.go b/generated/kibanaactions/model_legacy_create_connector_request_properties.go new file mode 100644 index 000000000..9c89000c5 --- /dev/null +++ b/generated/kibanaactions/model_legacy_create_connector_request_properties.go @@ -0,0 +1,236 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the LegacyCreateConnectorRequestProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LegacyCreateConnectorRequestProperties{} + +// LegacyCreateConnectorRequestProperties struct for LegacyCreateConnectorRequestProperties +type LegacyCreateConnectorRequestProperties struct { + // The connector type identifier. + ActionTypeId *string `json:"actionTypeId,omitempty"` + // The configuration for the connector. Configuration properties vary depending on the connector type. + Config map[string]interface{} `json:"config,omitempty"` + // The display name for the connector. + Name *string `json:"name,omitempty"` + // The secrets configuration for the connector. Secrets configuration properties vary depending on the connector type. NOTE: Remember these values. You must provide them each time you update the connector. + Secrets map[string]interface{} `json:"secrets,omitempty"` +} + +// NewLegacyCreateConnectorRequestProperties instantiates a new LegacyCreateConnectorRequestProperties object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyCreateConnectorRequestProperties() *LegacyCreateConnectorRequestProperties { + this := LegacyCreateConnectorRequestProperties{} + return &this +} + +// NewLegacyCreateConnectorRequestPropertiesWithDefaults instantiates a new LegacyCreateConnectorRequestProperties object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyCreateConnectorRequestPropertiesWithDefaults() *LegacyCreateConnectorRequestProperties { + this := LegacyCreateConnectorRequestProperties{} + return &this +} + +// GetActionTypeId returns the ActionTypeId field value if set, zero value otherwise. +func (o *LegacyCreateConnectorRequestProperties) GetActionTypeId() string { + if o == nil || IsNil(o.ActionTypeId) { + var ret string + return ret + } + return *o.ActionTypeId +} + +// GetActionTypeIdOk returns a tuple with the ActionTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyCreateConnectorRequestProperties) GetActionTypeIdOk() (*string, bool) { + if o == nil || IsNil(o.ActionTypeId) { + return nil, false + } + return o.ActionTypeId, true +} + +// HasActionTypeId returns a boolean if a field has been set. +func (o *LegacyCreateConnectorRequestProperties) HasActionTypeId() bool { + if o != nil && !IsNil(o.ActionTypeId) { + return true + } + + return false +} + +// SetActionTypeId gets a reference to the given string and assigns it to the ActionTypeId field. +func (o *LegacyCreateConnectorRequestProperties) SetActionTypeId(v string) { + o.ActionTypeId = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *LegacyCreateConnectorRequestProperties) GetConfig() map[string]interface{} { + if o == nil || IsNil(o.Config) { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyCreateConnectorRequestProperties) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *LegacyCreateConnectorRequestProperties) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *LegacyCreateConnectorRequestProperties) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LegacyCreateConnectorRequestProperties) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyCreateConnectorRequestProperties) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LegacyCreateConnectorRequestProperties) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LegacyCreateConnectorRequestProperties) SetName(v string) { + o.Name = &v +} + +// GetSecrets returns the Secrets field value if set, zero value otherwise. +func (o *LegacyCreateConnectorRequestProperties) GetSecrets() map[string]interface{} { + if o == nil || IsNil(o.Secrets) { + var ret map[string]interface{} + return ret + } + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyCreateConnectorRequestProperties) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Secrets) { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// HasSecrets returns a boolean if a field has been set. +func (o *LegacyCreateConnectorRequestProperties) HasSecrets() bool { + if o != nil && !IsNil(o.Secrets) { + return true + } + + return false +} + +// SetSecrets gets a reference to the given map[string]interface{} and assigns it to the Secrets field. +func (o *LegacyCreateConnectorRequestProperties) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o LegacyCreateConnectorRequestProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LegacyCreateConnectorRequestProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ActionTypeId) { + toSerialize["actionTypeId"] = o.ActionTypeId + } + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Secrets) { + toSerialize["secrets"] = o.Secrets + } + return toSerialize, nil +} + +type NullableLegacyCreateConnectorRequestProperties struct { + value *LegacyCreateConnectorRequestProperties + isSet bool +} + +func (v NullableLegacyCreateConnectorRequestProperties) Get() *LegacyCreateConnectorRequestProperties { + return v.value +} + +func (v *NullableLegacyCreateConnectorRequestProperties) Set(val *LegacyCreateConnectorRequestProperties) { + v.value = val + v.isSet = true +} + +func (v NullableLegacyCreateConnectorRequestProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableLegacyCreateConnectorRequestProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLegacyCreateConnectorRequestProperties(val *LegacyCreateConnectorRequestProperties) *NullableLegacyCreateConnectorRequestProperties { + return &NullableLegacyCreateConnectorRequestProperties{value: val, isSet: true} +} + +func (v NullableLegacyCreateConnectorRequestProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLegacyCreateConnectorRequestProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_legacy_get_connector_types_response_body_properties_inner.go b/generated/kibanaactions/model_legacy_get_connector_types_response_body_properties_inner.go new file mode 100644 index 000000000..2ef5a8dad --- /dev/null +++ b/generated/kibanaactions/model_legacy_get_connector_types_response_body_properties_inner.go @@ -0,0 +1,310 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the LegacyGetConnectorTypesResponseBodyPropertiesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LegacyGetConnectorTypesResponseBodyPropertiesInner{} + +// LegacyGetConnectorTypesResponseBodyPropertiesInner struct for LegacyGetConnectorTypesResponseBodyPropertiesInner +type LegacyGetConnectorTypesResponseBodyPropertiesInner struct { + // Indicates whether the connector type is enabled in Kibana. + Enabled *bool `json:"enabled,omitempty"` + // Indicates whether the connector type is enabled in the Kibana `.yml` file. + EnabledInConfig *bool `json:"enabledInConfig,omitempty"` + // Indicates whether the connector is enabled in the license. + EnabledInLicense *bool `json:"enabledInLicense,omitempty"` + // The unique identifier for the connector type. + Id *string `json:"id,omitempty"` + // The license that is required to use the connector type. + MinimumLicenseRequired *string `json:"minimumLicenseRequired,omitempty"` + // The name of the connector type. + Name *string `json:"name,omitempty"` +} + +// NewLegacyGetConnectorTypesResponseBodyPropertiesInner instantiates a new LegacyGetConnectorTypesResponseBodyPropertiesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyGetConnectorTypesResponseBodyPropertiesInner() *LegacyGetConnectorTypesResponseBodyPropertiesInner { + this := LegacyGetConnectorTypesResponseBodyPropertiesInner{} + return &this +} + +// NewLegacyGetConnectorTypesResponseBodyPropertiesInnerWithDefaults instantiates a new LegacyGetConnectorTypesResponseBodyPropertiesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyGetConnectorTypesResponseBodyPropertiesInnerWithDefaults() *LegacyGetConnectorTypesResponseBodyPropertiesInner { + this := LegacyGetConnectorTypesResponseBodyPropertiesInner{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetEnabledInConfig returns the EnabledInConfig field value if set, zero value otherwise. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfig() bool { + if o == nil || IsNil(o.EnabledInConfig) { + var ret bool + return ret + } + return *o.EnabledInConfig +} + +// GetEnabledInConfigOk returns a tuple with the EnabledInConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInConfigOk() (*bool, bool) { + if o == nil || IsNil(o.EnabledInConfig) { + return nil, false + } + return o.EnabledInConfig, true +} + +// HasEnabledInConfig returns a boolean if a field has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasEnabledInConfig() bool { + if o != nil && !IsNil(o.EnabledInConfig) { + return true + } + + return false +} + +// SetEnabledInConfig gets a reference to the given bool and assigns it to the EnabledInConfig field. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetEnabledInConfig(v bool) { + o.EnabledInConfig = &v +} + +// GetEnabledInLicense returns the EnabledInLicense field value if set, zero value otherwise. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicense() bool { + if o == nil || IsNil(o.EnabledInLicense) { + var ret bool + return ret + } + return *o.EnabledInLicense +} + +// GetEnabledInLicenseOk returns a tuple with the EnabledInLicense field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetEnabledInLicenseOk() (*bool, bool) { + if o == nil || IsNil(o.EnabledInLicense) { + return nil, false + } + return o.EnabledInLicense, true +} + +// HasEnabledInLicense returns a boolean if a field has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasEnabledInLicense() bool { + if o != nil && !IsNil(o.EnabledInLicense) { + return true + } + + return false +} + +// SetEnabledInLicense gets a reference to the given bool and assigns it to the EnabledInLicense field. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetEnabledInLicense(v bool) { + o.EnabledInLicense = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetId(v string) { + o.Id = &v +} + +// GetMinimumLicenseRequired returns the MinimumLicenseRequired field value if set, zero value otherwise. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequired() string { + if o == nil || IsNil(o.MinimumLicenseRequired) { + var ret string + return ret + } + return *o.MinimumLicenseRequired +} + +// GetMinimumLicenseRequiredOk returns a tuple with the MinimumLicenseRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetMinimumLicenseRequiredOk() (*string, bool) { + if o == nil || IsNil(o.MinimumLicenseRequired) { + return nil, false + } + return o.MinimumLicenseRequired, true +} + +// HasMinimumLicenseRequired returns a boolean if a field has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasMinimumLicenseRequired() bool { + if o != nil && !IsNil(o.MinimumLicenseRequired) { + return true + } + + return false +} + +// SetMinimumLicenseRequired gets a reference to the given string and assigns it to the MinimumLicenseRequired field. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetMinimumLicenseRequired(v string) { + o.MinimumLicenseRequired = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LegacyGetConnectorTypesResponseBodyPropertiesInner) SetName(v string) { + o.Name = &v +} + +func (o LegacyGetConnectorTypesResponseBodyPropertiesInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LegacyGetConnectorTypesResponseBodyPropertiesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.EnabledInConfig) { + toSerialize["enabledInConfig"] = o.EnabledInConfig + } + if !IsNil(o.EnabledInLicense) { + toSerialize["enabledInLicense"] = o.EnabledInLicense + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.MinimumLicenseRequired) { + toSerialize["minimumLicenseRequired"] = o.MinimumLicenseRequired + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableLegacyGetConnectorTypesResponseBodyPropertiesInner struct { + value *LegacyGetConnectorTypesResponseBodyPropertiesInner + isSet bool +} + +func (v NullableLegacyGetConnectorTypesResponseBodyPropertiesInner) Get() *LegacyGetConnectorTypesResponseBodyPropertiesInner { + return v.value +} + +func (v *NullableLegacyGetConnectorTypesResponseBodyPropertiesInner) Set(val *LegacyGetConnectorTypesResponseBodyPropertiesInner) { + v.value = val + v.isSet = true +} + +func (v NullableLegacyGetConnectorTypesResponseBodyPropertiesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableLegacyGetConnectorTypesResponseBodyPropertiesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLegacyGetConnectorTypesResponseBodyPropertiesInner(val *LegacyGetConnectorTypesResponseBodyPropertiesInner) *NullableLegacyGetConnectorTypesResponseBodyPropertiesInner { + return &NullableLegacyGetConnectorTypesResponseBodyPropertiesInner{value: val, isSet: true} +} + +func (v NullableLegacyGetConnectorTypesResponseBodyPropertiesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLegacyGetConnectorTypesResponseBodyPropertiesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_legacy_run_connector_200_response.go b/generated/kibanaactions/model_legacy_run_connector_200_response.go new file mode 100644 index 000000000..bcf7ad780 --- /dev/null +++ b/generated/kibanaactions/model_legacy_run_connector_200_response.go @@ -0,0 +1,197 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the LegacyRunConnector200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LegacyRunConnector200Response{} + +// LegacyRunConnector200Response struct for LegacyRunConnector200Response +type LegacyRunConnector200Response struct { + ActionId *string `json:"actionId,omitempty"` + Data *RunConnector200ResponseData `json:"data,omitempty"` + // The status of the action. + Status *string `json:"status,omitempty"` +} + +// NewLegacyRunConnector200Response instantiates a new LegacyRunConnector200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyRunConnector200Response() *LegacyRunConnector200Response { + this := LegacyRunConnector200Response{} + return &this +} + +// NewLegacyRunConnector200ResponseWithDefaults instantiates a new LegacyRunConnector200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyRunConnector200ResponseWithDefaults() *LegacyRunConnector200Response { + this := LegacyRunConnector200Response{} + return &this +} + +// GetActionId returns the ActionId field value if set, zero value otherwise. +func (o *LegacyRunConnector200Response) GetActionId() string { + if o == nil || IsNil(o.ActionId) { + var ret string + return ret + } + return *o.ActionId +} + +// GetActionIdOk returns a tuple with the ActionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyRunConnector200Response) GetActionIdOk() (*string, bool) { + if o == nil || IsNil(o.ActionId) { + return nil, false + } + return o.ActionId, true +} + +// HasActionId returns a boolean if a field has been set. +func (o *LegacyRunConnector200Response) HasActionId() bool { + if o != nil && !IsNil(o.ActionId) { + return true + } + + return false +} + +// SetActionId gets a reference to the given string and assigns it to the ActionId field. +func (o *LegacyRunConnector200Response) SetActionId(v string) { + o.ActionId = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LegacyRunConnector200Response) GetData() RunConnector200ResponseData { + if o == nil || IsNil(o.Data) { + var ret RunConnector200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyRunConnector200Response) GetDataOk() (*RunConnector200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LegacyRunConnector200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given RunConnector200ResponseData and assigns it to the Data field. +func (o *LegacyRunConnector200Response) SetData(v RunConnector200ResponseData) { + o.Data = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LegacyRunConnector200Response) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyRunConnector200Response) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LegacyRunConnector200Response) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *LegacyRunConnector200Response) SetStatus(v string) { + o.Status = &v +} + +func (o LegacyRunConnector200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LegacyRunConnector200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ActionId) { + toSerialize["actionId"] = o.ActionId + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableLegacyRunConnector200Response struct { + value *LegacyRunConnector200Response + isSet bool +} + +func (v NullableLegacyRunConnector200Response) Get() *LegacyRunConnector200Response { + return v.value +} + +func (v *NullableLegacyRunConnector200Response) Set(val *LegacyRunConnector200Response) { + v.value = val + v.isSet = true +} + +func (v NullableLegacyRunConnector200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableLegacyRunConnector200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLegacyRunConnector200Response(val *LegacyRunConnector200Response) *NullableLegacyRunConnector200Response { + return &NullableLegacyRunConnector200Response{value: val, isSet: true} +} + +func (v NullableLegacyRunConnector200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLegacyRunConnector200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_legacy_run_connector_request_body_properties.go b/generated/kibanaactions/model_legacy_run_connector_request_body_properties.go new file mode 100644 index 000000000..7292d0b0e --- /dev/null +++ b/generated/kibanaactions/model_legacy_run_connector_request_body_properties.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the LegacyRunConnectorRequestBodyProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LegacyRunConnectorRequestBodyProperties{} + +// LegacyRunConnectorRequestBodyProperties The properties vary depending on the connector type. +type LegacyRunConnectorRequestBodyProperties struct { + // The parameters of the connector. Parameter properties vary depending on the connector type. + Params map[string]interface{} `json:"params"` +} + +// NewLegacyRunConnectorRequestBodyProperties instantiates a new LegacyRunConnectorRequestBodyProperties object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyRunConnectorRequestBodyProperties(params map[string]interface{}) *LegacyRunConnectorRequestBodyProperties { + this := LegacyRunConnectorRequestBodyProperties{} + this.Params = params + return &this +} + +// NewLegacyRunConnectorRequestBodyPropertiesWithDefaults instantiates a new LegacyRunConnectorRequestBodyProperties object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyRunConnectorRequestBodyPropertiesWithDefaults() *LegacyRunConnectorRequestBodyProperties { + this := LegacyRunConnectorRequestBodyProperties{} + return &this +} + +// GetParams returns the Params field value +func (o *LegacyRunConnectorRequestBodyProperties) GetParams() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *LegacyRunConnectorRequestBodyProperties) GetParamsOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Params, true +} + +// SetParams sets field value +func (o *LegacyRunConnectorRequestBodyProperties) SetParams(v map[string]interface{}) { + o.Params = v +} + +func (o LegacyRunConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LegacyRunConnectorRequestBodyProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["params"] = o.Params + return toSerialize, nil +} + +type NullableLegacyRunConnectorRequestBodyProperties struct { + value *LegacyRunConnectorRequestBodyProperties + isSet bool +} + +func (v NullableLegacyRunConnectorRequestBodyProperties) Get() *LegacyRunConnectorRequestBodyProperties { + return v.value +} + +func (v *NullableLegacyRunConnectorRequestBodyProperties) Set(val *LegacyRunConnectorRequestBodyProperties) { + v.value = val + v.isSet = true +} + +func (v NullableLegacyRunConnectorRequestBodyProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableLegacyRunConnectorRequestBodyProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLegacyRunConnectorRequestBodyProperties(val *LegacyRunConnectorRequestBodyProperties) *NullableLegacyRunConnectorRequestBodyProperties { + return &NullableLegacyRunConnectorRequestBodyProperties{value: val, isSet: true} +} + +func (v NullableLegacyRunConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLegacyRunConnectorRequestBodyProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_legacy_update_connector_request_body_properties.go b/generated/kibanaactions/model_legacy_update_connector_request_body_properties.go new file mode 100644 index 000000000..c53dde372 --- /dev/null +++ b/generated/kibanaactions/model_legacy_update_connector_request_body_properties.go @@ -0,0 +1,199 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the LegacyUpdateConnectorRequestBodyProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LegacyUpdateConnectorRequestBodyProperties{} + +// LegacyUpdateConnectorRequestBodyProperties The properties vary depending on the connector type. +type LegacyUpdateConnectorRequestBodyProperties struct { + // The new connector configuration. Configuration properties vary depending on the connector type. + Config map[string]interface{} `json:"config,omitempty"` + // The new name for the connector. + Name *string `json:"name,omitempty"` + // The updated secrets configuration for the connector. Secrets properties vary depending on the connector type. + Secrets map[string]interface{} `json:"secrets,omitempty"` +} + +// NewLegacyUpdateConnectorRequestBodyProperties instantiates a new LegacyUpdateConnectorRequestBodyProperties object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyUpdateConnectorRequestBodyProperties() *LegacyUpdateConnectorRequestBodyProperties { + this := LegacyUpdateConnectorRequestBodyProperties{} + return &this +} + +// NewLegacyUpdateConnectorRequestBodyPropertiesWithDefaults instantiates a new LegacyUpdateConnectorRequestBodyProperties object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyUpdateConnectorRequestBodyPropertiesWithDefaults() *LegacyUpdateConnectorRequestBodyProperties { + this := LegacyUpdateConnectorRequestBodyProperties{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *LegacyUpdateConnectorRequestBodyProperties) GetConfig() map[string]interface{} { + if o == nil || IsNil(o.Config) { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyUpdateConnectorRequestBodyProperties) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *LegacyUpdateConnectorRequestBodyProperties) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *LegacyUpdateConnectorRequestBodyProperties) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LegacyUpdateConnectorRequestBodyProperties) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyUpdateConnectorRequestBodyProperties) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LegacyUpdateConnectorRequestBodyProperties) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LegacyUpdateConnectorRequestBodyProperties) SetName(v string) { + o.Name = &v +} + +// GetSecrets returns the Secrets field value if set, zero value otherwise. +func (o *LegacyUpdateConnectorRequestBodyProperties) GetSecrets() map[string]interface{} { + if o == nil || IsNil(o.Secrets) { + var ret map[string]interface{} + return ret + } + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyUpdateConnectorRequestBodyProperties) GetSecretsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Secrets) { + return map[string]interface{}{}, false + } + return o.Secrets, true +} + +// HasSecrets returns a boolean if a field has been set. +func (o *LegacyUpdateConnectorRequestBodyProperties) HasSecrets() bool { + if o != nil && !IsNil(o.Secrets) { + return true + } + + return false +} + +// SetSecrets gets a reference to the given map[string]interface{} and assigns it to the Secrets field. +func (o *LegacyUpdateConnectorRequestBodyProperties) SetSecrets(v map[string]interface{}) { + o.Secrets = v +} + +func (o LegacyUpdateConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LegacyUpdateConnectorRequestBodyProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Secrets) { + toSerialize["secrets"] = o.Secrets + } + return toSerialize, nil +} + +type NullableLegacyUpdateConnectorRequestBodyProperties struct { + value *LegacyUpdateConnectorRequestBodyProperties + isSet bool +} + +func (v NullableLegacyUpdateConnectorRequestBodyProperties) Get() *LegacyUpdateConnectorRequestBodyProperties { + return v.value +} + +func (v *NullableLegacyUpdateConnectorRequestBodyProperties) Set(val *LegacyUpdateConnectorRequestBodyProperties) { + v.value = val + v.isSet = true +} + +func (v NullableLegacyUpdateConnectorRequestBodyProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableLegacyUpdateConnectorRequestBodyProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLegacyUpdateConnectorRequestBodyProperties(val *LegacyUpdateConnectorRequestBodyProperties) *NullableLegacyUpdateConnectorRequestBodyProperties { + return &NullableLegacyUpdateConnectorRequestBodyProperties{value: val, isSet: true} +} + +func (v NullableLegacyUpdateConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLegacyUpdateConnectorRequestBodyProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_rule_name_mapping.go b/generated/kibanaactions/model_rule_name_mapping.go new file mode 100644 index 000000000..2a592ef9b --- /dev/null +++ b/generated/kibanaactions/model_rule_name_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RuleNameMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RuleNameMapping{} + +// RuleNameMapping Mapping for the name of the alert's rule. +type RuleNameMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewRuleNameMapping instantiates a new RuleNameMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRuleNameMapping(fieldType string, id string, key string, name string) *RuleNameMapping { + this := RuleNameMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewRuleNameMappingWithDefaults instantiates a new RuleNameMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRuleNameMappingWithDefaults() *RuleNameMapping { + this := RuleNameMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *RuleNameMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *RuleNameMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *RuleNameMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *RuleNameMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RuleNameMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RuleNameMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *RuleNameMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *RuleNameMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *RuleNameMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *RuleNameMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *RuleNameMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RuleNameMapping) SetName(v string) { + o.Name = v +} + +func (o RuleNameMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RuleNameMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableRuleNameMapping struct { + value *RuleNameMapping + isSet bool +} + +func (v NullableRuleNameMapping) Get() *RuleNameMapping { + return v.value +} + +func (v *NullableRuleNameMapping) Set(val *RuleNameMapping) { + v.value = val + v.isSet = true +} + +func (v NullableRuleNameMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableRuleNameMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRuleNameMapping(val *RuleNameMapping) *NullableRuleNameMapping { + return &NullableRuleNameMapping{value: val, isSet: true} +} + +func (v NullableRuleNameMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRuleNameMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_200_response.go b/generated/kibanaactions/model_run_connector_200_response.go new file mode 100644 index 000000000..c8cebb6d0 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_200_response.go @@ -0,0 +1,180 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnector200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnector200Response{} + +// RunConnector200Response struct for RunConnector200Response +type RunConnector200Response struct { + // The identifier for the connector. + ConnectorId string `json:"connector_id"` + Data *RunConnector200ResponseData `json:"data,omitempty"` + // The status of the action. + Status string `json:"status"` +} + +// NewRunConnector200Response instantiates a new RunConnector200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnector200Response(connectorId string, status string) *RunConnector200Response { + this := RunConnector200Response{} + this.ConnectorId = connectorId + this.Status = status + return &this +} + +// NewRunConnector200ResponseWithDefaults instantiates a new RunConnector200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnector200ResponseWithDefaults() *RunConnector200Response { + this := RunConnector200Response{} + return &this +} + +// GetConnectorId returns the ConnectorId field value +func (o *RunConnector200Response) GetConnectorId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorId +} + +// GetConnectorIdOk returns a tuple with the ConnectorId field value +// and a boolean to check if the value has been set. +func (o *RunConnector200Response) GetConnectorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorId, true +} + +// SetConnectorId sets field value +func (o *RunConnector200Response) SetConnectorId(v string) { + o.ConnectorId = v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *RunConnector200Response) GetData() RunConnector200ResponseData { + if o == nil || IsNil(o.Data) { + var ret RunConnector200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnector200Response) GetDataOk() (*RunConnector200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *RunConnector200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given RunConnector200ResponseData and assigns it to the Data field. +func (o *RunConnector200Response) SetData(v RunConnector200ResponseData) { + o.Data = &v +} + +// GetStatus returns the Status field value +func (o *RunConnector200Response) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *RunConnector200Response) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *RunConnector200Response) SetStatus(v string) { + o.Status = v +} + +func (o RunConnector200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnector200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["connector_id"] = o.ConnectorId + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +type NullableRunConnector200Response struct { + value *RunConnector200Response + isSet bool +} + +func (v NullableRunConnector200Response) Get() *RunConnector200Response { + return v.value +} + +func (v *NullableRunConnector200Response) Set(val *RunConnector200Response) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnector200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnector200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnector200Response(val *RunConnector200Response) *NullableRunConnector200Response { + return &NullableRunConnector200Response{value: val, isSet: true} +} + +func (v NullableRunConnector200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnector200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_200_response_data.go b/generated/kibanaactions/model_run_connector_200_response_data.go new file mode 100644 index 000000000..78537551f --- /dev/null +++ b/generated/kibanaactions/model_run_connector_200_response_data.go @@ -0,0 +1,145 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// RunConnector200ResponseData - struct for RunConnector200ResponseData +type RunConnector200ResponseData struct { + ArrayOfMapmapOfStringinterface *[]map[string]interface{} + MapmapOfStringinterface *map[string]interface{} +} + +// []map[string]interface{}AsRunConnector200ResponseData is a convenience function that returns []map[string]interface{} wrapped in RunConnector200ResponseData +func ArrayOfMapmapOfStringinterfaceAsRunConnector200ResponseData(v *[]map[string]interface{}) RunConnector200ResponseData { + return RunConnector200ResponseData{ + ArrayOfMapmapOfStringinterface: v, + } +} + +// map[string]interface{}AsRunConnector200ResponseData is a convenience function that returns map[string]interface{} wrapped in RunConnector200ResponseData +func MapmapOfStringinterfaceAsRunConnector200ResponseData(v *map[string]interface{}) RunConnector200ResponseData { + return RunConnector200ResponseData{ + MapmapOfStringinterface: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunConnector200ResponseData) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfMapmapOfStringinterface{} + err = newStrictDecoder(data).Decode(&dst.ArrayOfMapmapOfStringinterface) + if err == nil { + jsonArrayOfMapmapOfStringinterface, _ := json.Marshal(dst.ArrayOfMapmapOfStringinterface) + if string(jsonArrayOfMapmapOfStringinterface) == "{}" { // empty struct + dst.ArrayOfMapmapOfStringinterface = nil + } else { + match++ + } + } else { + dst.ArrayOfMapmapOfStringinterface = nil + } + + // try to unmarshal data into MapmapOfStringinterface{} + err = newStrictDecoder(data).Decode(&dst.MapmapOfStringinterface) + if err == nil { + jsonMapmapOfStringinterface, _ := json.Marshal(dst.MapmapOfStringinterface) + if string(jsonMapmapOfStringinterface) == "{}" { // empty struct + dst.MapmapOfStringinterface = nil + } else { + match++ + } + } else { + dst.MapmapOfStringinterface = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfMapmapOfStringinterface = nil + dst.MapmapOfStringinterface = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunConnector200ResponseData)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunConnector200ResponseData)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunConnector200ResponseData) MarshalJSON() ([]byte, error) { + if src.ArrayOfMapmapOfStringinterface != nil { + return json.Marshal(&src.ArrayOfMapmapOfStringinterface) + } + + if src.MapmapOfStringinterface != nil { + return json.Marshal(&src.MapmapOfStringinterface) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunConnector200ResponseData) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfMapmapOfStringinterface != nil { + return obj.ArrayOfMapmapOfStringinterface + } + + if obj.MapmapOfStringinterface != nil { + return obj.MapmapOfStringinterface + } + + // all schemas are nil + return nil +} + +type NullableRunConnector200ResponseData struct { + value *RunConnector200ResponseData + isSet bool +} + +func (v NullableRunConnector200ResponseData) Get() *RunConnector200ResponseData { + return v.value +} + +func (v *NullableRunConnector200ResponseData) Set(val *RunConnector200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnector200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnector200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnector200ResponseData(val *RunConnector200ResponseData) *NullableRunConnector200ResponseData { + return &NullableRunConnector200ResponseData{value: val, isSet: true} +} + +func (v NullableRunConnector200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnector200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_params_documents.go b/generated/kibanaactions/model_run_connector_params_documents.go new file mode 100644 index 000000000..64a876b41 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_params_documents.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorParamsDocuments type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorParamsDocuments{} + +// RunConnectorParamsDocuments Test an action that indexes a document into Elasticsearch. +type RunConnectorParamsDocuments struct { + // The documents in JSON format for index connectors. + Documents []map[string]interface{} `json:"documents"` +} + +// NewRunConnectorParamsDocuments instantiates a new RunConnectorParamsDocuments object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorParamsDocuments(documents []map[string]interface{}) *RunConnectorParamsDocuments { + this := RunConnectorParamsDocuments{} + this.Documents = documents + return &this +} + +// NewRunConnectorParamsDocumentsWithDefaults instantiates a new RunConnectorParamsDocuments object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorParamsDocumentsWithDefaults() *RunConnectorParamsDocuments { + this := RunConnectorParamsDocuments{} + return &this +} + +// GetDocuments returns the Documents field value +func (o *RunConnectorParamsDocuments) GetDocuments() []map[string]interface{} { + if o == nil { + var ret []map[string]interface{} + return ret + } + + return o.Documents +} + +// GetDocumentsOk returns a tuple with the Documents field value +// and a boolean to check if the value has been set. +func (o *RunConnectorParamsDocuments) GetDocumentsOk() ([]map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Documents, true +} + +// SetDocuments sets field value +func (o *RunConnectorParamsDocuments) SetDocuments(v []map[string]interface{}) { + o.Documents = v +} + +func (o RunConnectorParamsDocuments) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorParamsDocuments) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["documents"] = o.Documents + return toSerialize, nil +} + +type NullableRunConnectorParamsDocuments struct { + value *RunConnectorParamsDocuments + isSet bool +} + +func (v NullableRunConnectorParamsDocuments) Get() *RunConnectorParamsDocuments { + return v.value +} + +func (v *NullableRunConnectorParamsDocuments) Set(val *RunConnectorParamsDocuments) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorParamsDocuments) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorParamsDocuments) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorParamsDocuments(val *RunConnectorParamsDocuments) *NullableRunConnectorParamsDocuments { + return &NullableRunConnectorParamsDocuments{value: val, isSet: true} +} + +func (v NullableRunConnectorParamsDocuments) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorParamsDocuments) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_params_level_message.go b/generated/kibanaactions/model_run_connector_params_level_message.go new file mode 100644 index 000000000..a8c7a2df2 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_params_level_message.go @@ -0,0 +1,157 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorParamsLevelMessage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorParamsLevelMessage{} + +// RunConnectorParamsLevelMessage Test an action that writes an entry to the Kibana server log. +type RunConnectorParamsLevelMessage struct { + // The log level of the message for server log connectors. + Level *string `json:"level,omitempty"` + // The message for server log connectors. + Message string `json:"message"` +} + +// NewRunConnectorParamsLevelMessage instantiates a new RunConnectorParamsLevelMessage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorParamsLevelMessage(message string) *RunConnectorParamsLevelMessage { + this := RunConnectorParamsLevelMessage{} + var level string = "info" + this.Level = &level + this.Message = message + return &this +} + +// NewRunConnectorParamsLevelMessageWithDefaults instantiates a new RunConnectorParamsLevelMessage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorParamsLevelMessageWithDefaults() *RunConnectorParamsLevelMessage { + this := RunConnectorParamsLevelMessage{} + var level string = "info" + this.Level = &level + return &this +} + +// GetLevel returns the Level field value if set, zero value otherwise. +func (o *RunConnectorParamsLevelMessage) GetLevel() string { + if o == nil || IsNil(o.Level) { + var ret string + return ret + } + return *o.Level +} + +// GetLevelOk returns a tuple with the Level field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorParamsLevelMessage) GetLevelOk() (*string, bool) { + if o == nil || IsNil(o.Level) { + return nil, false + } + return o.Level, true +} + +// HasLevel returns a boolean if a field has been set. +func (o *RunConnectorParamsLevelMessage) HasLevel() bool { + if o != nil && !IsNil(o.Level) { + return true + } + + return false +} + +// SetLevel gets a reference to the given string and assigns it to the Level field. +func (o *RunConnectorParamsLevelMessage) SetLevel(v string) { + o.Level = &v +} + +// GetMessage returns the Message field value +func (o *RunConnectorParamsLevelMessage) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *RunConnectorParamsLevelMessage) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *RunConnectorParamsLevelMessage) SetMessage(v string) { + o.Message = v +} + +func (o RunConnectorParamsLevelMessage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorParamsLevelMessage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Level) { + toSerialize["level"] = o.Level + } + toSerialize["message"] = o.Message + return toSerialize, nil +} + +type NullableRunConnectorParamsLevelMessage struct { + value *RunConnectorParamsLevelMessage + isSet bool +} + +func (v NullableRunConnectorParamsLevelMessage) Get() *RunConnectorParamsLevelMessage { + return v.value +} + +func (v *NullableRunConnectorParamsLevelMessage) Set(val *RunConnectorParamsLevelMessage) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorParamsLevelMessage) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorParamsLevelMessage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorParamsLevelMessage(val *RunConnectorParamsLevelMessage) *NullableRunConnectorParamsLevelMessage { + return &NullableRunConnectorParamsLevelMessage{value: val, isSet: true} +} + +func (v NullableRunConnectorParamsLevelMessage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorParamsLevelMessage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_request_body_properties.go b/generated/kibanaactions/model_run_connector_request_body_properties.go new file mode 100644 index 000000000..a2df6a4f9 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_request_body_properties.go @@ -0,0 +1,115 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorRequestBodyProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorRequestBodyProperties{} + +// RunConnectorRequestBodyProperties The properties vary depending on the connector type. +type RunConnectorRequestBodyProperties struct { + Params RunConnectorRequestBodyPropertiesParams `json:"params"` +} + +// NewRunConnectorRequestBodyProperties instantiates a new RunConnectorRequestBodyProperties object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorRequestBodyProperties(params RunConnectorRequestBodyPropertiesParams) *RunConnectorRequestBodyProperties { + this := RunConnectorRequestBodyProperties{} + this.Params = params + return &this +} + +// NewRunConnectorRequestBodyPropertiesWithDefaults instantiates a new RunConnectorRequestBodyProperties object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorRequestBodyPropertiesWithDefaults() *RunConnectorRequestBodyProperties { + this := RunConnectorRequestBodyProperties{} + return &this +} + +// GetParams returns the Params field value +func (o *RunConnectorRequestBodyProperties) GetParams() RunConnectorRequestBodyPropertiesParams { + if o == nil { + var ret RunConnectorRequestBodyPropertiesParams + return ret + } + + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value +// and a boolean to check if the value has been set. +func (o *RunConnectorRequestBodyProperties) GetParamsOk() (*RunConnectorRequestBodyPropertiesParams, bool) { + if o == nil { + return nil, false + } + return &o.Params, true +} + +// SetParams sets field value +func (o *RunConnectorRequestBodyProperties) SetParams(v RunConnectorRequestBodyPropertiesParams) { + o.Params = v +} + +func (o RunConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorRequestBodyProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["params"] = o.Params + return toSerialize, nil +} + +type NullableRunConnectorRequestBodyProperties struct { + value *RunConnectorRequestBodyProperties + isSet bool +} + +func (v NullableRunConnectorRequestBodyProperties) Get() *RunConnectorRequestBodyProperties { + return v.value +} + +func (v *NullableRunConnectorRequestBodyProperties) Set(val *RunConnectorRequestBodyProperties) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorRequestBodyProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorRequestBodyProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorRequestBodyProperties(val *RunConnectorRequestBodyProperties) *NullableRunConnectorRequestBodyProperties { + return &NullableRunConnectorRequestBodyProperties{value: val, isSet: true} +} + +func (v NullableRunConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorRequestBodyProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_request_body_properties_params.go b/generated/kibanaactions/model_run_connector_request_body_properties_params.go new file mode 100644 index 000000000..5b1470ddf --- /dev/null +++ b/generated/kibanaactions/model_run_connector_request_body_properties_params.go @@ -0,0 +1,175 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// RunConnectorRequestBodyPropertiesParams - struct for RunConnectorRequestBodyPropertiesParams +type RunConnectorRequestBodyPropertiesParams struct { + RunConnectorParamsDocuments *RunConnectorParamsDocuments + RunConnectorParamsLevelMessage *RunConnectorParamsLevelMessage + SubactionParameters *SubactionParameters +} + +// RunConnectorParamsDocumentsAsRunConnectorRequestBodyPropertiesParams is a convenience function that returns RunConnectorParamsDocuments wrapped in RunConnectorRequestBodyPropertiesParams +func RunConnectorParamsDocumentsAsRunConnectorRequestBodyPropertiesParams(v *RunConnectorParamsDocuments) RunConnectorRequestBodyPropertiesParams { + return RunConnectorRequestBodyPropertiesParams{ + RunConnectorParamsDocuments: v, + } +} + +// RunConnectorParamsLevelMessageAsRunConnectorRequestBodyPropertiesParams is a convenience function that returns RunConnectorParamsLevelMessage wrapped in RunConnectorRequestBodyPropertiesParams +func RunConnectorParamsLevelMessageAsRunConnectorRequestBodyPropertiesParams(v *RunConnectorParamsLevelMessage) RunConnectorRequestBodyPropertiesParams { + return RunConnectorRequestBodyPropertiesParams{ + RunConnectorParamsLevelMessage: v, + } +} + +// SubactionParametersAsRunConnectorRequestBodyPropertiesParams is a convenience function that returns SubactionParameters wrapped in RunConnectorRequestBodyPropertiesParams +func SubactionParametersAsRunConnectorRequestBodyPropertiesParams(v *SubactionParameters) RunConnectorRequestBodyPropertiesParams { + return RunConnectorRequestBodyPropertiesParams{ + SubactionParameters: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunConnectorRequestBodyPropertiesParams) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into RunConnectorParamsDocuments + err = newStrictDecoder(data).Decode(&dst.RunConnectorParamsDocuments) + if err == nil { + jsonRunConnectorParamsDocuments, _ := json.Marshal(dst.RunConnectorParamsDocuments) + if string(jsonRunConnectorParamsDocuments) == "{}" { // empty struct + dst.RunConnectorParamsDocuments = nil + } else { + match++ + } + } else { + dst.RunConnectorParamsDocuments = nil + } + + // try to unmarshal data into RunConnectorParamsLevelMessage + err = newStrictDecoder(data).Decode(&dst.RunConnectorParamsLevelMessage) + if err == nil { + jsonRunConnectorParamsLevelMessage, _ := json.Marshal(dst.RunConnectorParamsLevelMessage) + if string(jsonRunConnectorParamsLevelMessage) == "{}" { // empty struct + dst.RunConnectorParamsLevelMessage = nil + } else { + match++ + } + } else { + dst.RunConnectorParamsLevelMessage = nil + } + + // try to unmarshal data into SubactionParameters + err = newStrictDecoder(data).Decode(&dst.SubactionParameters) + if err == nil { + jsonSubactionParameters, _ := json.Marshal(dst.SubactionParameters) + if string(jsonSubactionParameters) == "{}" { // empty struct + dst.SubactionParameters = nil + } else { + match++ + } + } else { + dst.SubactionParameters = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.RunConnectorParamsDocuments = nil + dst.RunConnectorParamsLevelMessage = nil + dst.SubactionParameters = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunConnectorRequestBodyPropertiesParams)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunConnectorRequestBodyPropertiesParams)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunConnectorRequestBodyPropertiesParams) MarshalJSON() ([]byte, error) { + if src.RunConnectorParamsDocuments != nil { + return json.Marshal(&src.RunConnectorParamsDocuments) + } + + if src.RunConnectorParamsLevelMessage != nil { + return json.Marshal(&src.RunConnectorParamsLevelMessage) + } + + if src.SubactionParameters != nil { + return json.Marshal(&src.SubactionParameters) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunConnectorRequestBodyPropertiesParams) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.RunConnectorParamsDocuments != nil { + return obj.RunConnectorParamsDocuments + } + + if obj.RunConnectorParamsLevelMessage != nil { + return obj.RunConnectorParamsLevelMessage + } + + if obj.SubactionParameters != nil { + return obj.SubactionParameters + } + + // all schemas are nil + return nil +} + +type NullableRunConnectorRequestBodyPropertiesParams struct { + value *RunConnectorRequestBodyPropertiesParams + isSet bool +} + +func (v NullableRunConnectorRequestBodyPropertiesParams) Get() *RunConnectorRequestBodyPropertiesParams { + return v.value +} + +func (v *NullableRunConnectorRequestBodyPropertiesParams) Set(val *RunConnectorRequestBodyPropertiesParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorRequestBodyPropertiesParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorRequestBodyPropertiesParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorRequestBodyPropertiesParams(val *RunConnectorRequestBodyPropertiesParams) *NullableRunConnectorRequestBodyPropertiesParams { + return &NullableRunConnectorRequestBodyPropertiesParams{value: val, isSet: true} +} + +func (v NullableRunConnectorRequestBodyPropertiesParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorRequestBodyPropertiesParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_addevent.go b/generated/kibanaactions/model_run_connector_subaction_addevent.go new file mode 100644 index 000000000..4b32b833e --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_addevent.go @@ -0,0 +1,152 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionAddevent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionAddevent{} + +// RunConnectorSubactionAddevent The `addEvent` subaction for ServiceNow ITOM connectors. +type RunConnectorSubactionAddevent struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams *RunConnectorSubactionAddeventSubActionParams `json:"subActionParams,omitempty"` +} + +// NewRunConnectorSubactionAddevent instantiates a new RunConnectorSubactionAddevent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionAddevent(subAction string) *RunConnectorSubactionAddevent { + this := RunConnectorSubactionAddevent{} + this.SubAction = subAction + return &this +} + +// NewRunConnectorSubactionAddeventWithDefaults instantiates a new RunConnectorSubactionAddevent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionAddeventWithDefaults() *RunConnectorSubactionAddevent { + this := RunConnectorSubactionAddevent{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionAddevent) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddevent) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionAddevent) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddevent) GetSubActionParams() RunConnectorSubactionAddeventSubActionParams { + if o == nil || IsNil(o.SubActionParams) { + var ret RunConnectorSubactionAddeventSubActionParams + return ret + } + return *o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddevent) GetSubActionParamsOk() (*RunConnectorSubactionAddeventSubActionParams, bool) { + if o == nil || IsNil(o.SubActionParams) { + return nil, false + } + return o.SubActionParams, true +} + +// HasSubActionParams returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddevent) HasSubActionParams() bool { + if o != nil && !IsNil(o.SubActionParams) { + return true + } + + return false +} + +// SetSubActionParams gets a reference to the given RunConnectorSubactionAddeventSubActionParams and assigns it to the SubActionParams field. +func (o *RunConnectorSubactionAddevent) SetSubActionParams(v RunConnectorSubactionAddeventSubActionParams) { + o.SubActionParams = &v +} + +func (o RunConnectorSubactionAddevent) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionAddevent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + if !IsNil(o.SubActionParams) { + toSerialize["subActionParams"] = o.SubActionParams + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionAddevent struct { + value *RunConnectorSubactionAddevent + isSet bool +} + +func (v NullableRunConnectorSubactionAddevent) Get() *RunConnectorSubactionAddevent { + return v.value +} + +func (v *NullableRunConnectorSubactionAddevent) Set(val *RunConnectorSubactionAddevent) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionAddevent) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionAddevent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionAddevent(val *RunConnectorSubactionAddevent) *NullableRunConnectorSubactionAddevent { + return &NullableRunConnectorSubactionAddevent{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionAddevent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionAddevent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_addevent_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_addevent_sub_action_params.go new file mode 100644 index 000000000..ec12d8298 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_addevent_sub_action_params.go @@ -0,0 +1,495 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionAddeventSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionAddeventSubActionParams{} + +// RunConnectorSubactionAddeventSubActionParams The set of configuration properties for the action. +type RunConnectorSubactionAddeventSubActionParams struct { + // Additional information about the event. + AdditionalInfo *string `json:"additional_info,omitempty"` + // The details about the event. + Description *string `json:"description,omitempty"` + // A specific instance of the source. + EventClass *string `json:"event_class,omitempty"` + // All actions sharing this key are associated with the same ServiceNow alert. The default value is `:`. + MessageKey *string `json:"message_key,omitempty"` + // The name of the metric. + MetricName *string `json:"metric_name,omitempty"` + // The host that the event was triggered for. + Node *string `json:"node,omitempty"` + // The name of the resource. + Resource *string `json:"resource,omitempty"` + // The severity of the event. + Severity *string `json:"severity,omitempty"` + // The name of the event source type. + Source *string `json:"source,omitempty"` + // The time of the event. + TimeOfEvent *string `json:"time_of_event,omitempty"` + // The type of event. + Type *string `json:"type,omitempty"` +} + +// NewRunConnectorSubactionAddeventSubActionParams instantiates a new RunConnectorSubactionAddeventSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionAddeventSubActionParams() *RunConnectorSubactionAddeventSubActionParams { + this := RunConnectorSubactionAddeventSubActionParams{} + return &this +} + +// NewRunConnectorSubactionAddeventSubActionParamsWithDefaults instantiates a new RunConnectorSubactionAddeventSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionAddeventSubActionParamsWithDefaults() *RunConnectorSubactionAddeventSubActionParams { + this := RunConnectorSubactionAddeventSubActionParams{} + return &this +} + +// GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetAdditionalInfo() string { + if o == nil || IsNil(o.AdditionalInfo) { + var ret string + return ret + } + return *o.AdditionalInfo +} + +// GetAdditionalInfoOk returns a tuple with the AdditionalInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetAdditionalInfoOk() (*string, bool) { + if o == nil || IsNil(o.AdditionalInfo) { + return nil, false + } + return o.AdditionalInfo, true +} + +// HasAdditionalInfo returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasAdditionalInfo() bool { + if o != nil && !IsNil(o.AdditionalInfo) { + return true + } + + return false +} + +// SetAdditionalInfo gets a reference to the given string and assigns it to the AdditionalInfo field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetAdditionalInfo(v string) { + o.AdditionalInfo = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetDescription(v string) { + o.Description = &v +} + +// GetEventClass returns the EventClass field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetEventClass() string { + if o == nil || IsNil(o.EventClass) { + var ret string + return ret + } + return *o.EventClass +} + +// GetEventClassOk returns a tuple with the EventClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetEventClassOk() (*string, bool) { + if o == nil || IsNil(o.EventClass) { + return nil, false + } + return o.EventClass, true +} + +// HasEventClass returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasEventClass() bool { + if o != nil && !IsNil(o.EventClass) { + return true + } + + return false +} + +// SetEventClass gets a reference to the given string and assigns it to the EventClass field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetEventClass(v string) { + o.EventClass = &v +} + +// GetMessageKey returns the MessageKey field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetMessageKey() string { + if o == nil || IsNil(o.MessageKey) { + var ret string + return ret + } + return *o.MessageKey +} + +// GetMessageKeyOk returns a tuple with the MessageKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetMessageKeyOk() (*string, bool) { + if o == nil || IsNil(o.MessageKey) { + return nil, false + } + return o.MessageKey, true +} + +// HasMessageKey returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasMessageKey() bool { + if o != nil && !IsNil(o.MessageKey) { + return true + } + + return false +} + +// SetMessageKey gets a reference to the given string and assigns it to the MessageKey field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetMessageKey(v string) { + o.MessageKey = &v +} + +// GetMetricName returns the MetricName field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetMetricName() string { + if o == nil || IsNil(o.MetricName) { + var ret string + return ret + } + return *o.MetricName +} + +// GetMetricNameOk returns a tuple with the MetricName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetMetricNameOk() (*string, bool) { + if o == nil || IsNil(o.MetricName) { + return nil, false + } + return o.MetricName, true +} + +// HasMetricName returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasMetricName() bool { + if o != nil && !IsNil(o.MetricName) { + return true + } + + return false +} + +// SetMetricName gets a reference to the given string and assigns it to the MetricName field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetMetricName(v string) { + o.MetricName = &v +} + +// GetNode returns the Node field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetNode() string { + if o == nil || IsNil(o.Node) { + var ret string + return ret + } + return *o.Node +} + +// GetNodeOk returns a tuple with the Node field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetNodeOk() (*string, bool) { + if o == nil || IsNil(o.Node) { + return nil, false + } + return o.Node, true +} + +// HasNode returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasNode() bool { + if o != nil && !IsNil(o.Node) { + return true + } + + return false +} + +// SetNode gets a reference to the given string and assigns it to the Node field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetNode(v string) { + o.Node = &v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetResource() string { + if o == nil || IsNil(o.Resource) { + var ret string + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetResourceOk() (*string, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given string and assigns it to the Resource field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetResource(v string) { + o.Resource = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetSeverity() string { + if o == nil || IsNil(o.Severity) { + var ret string + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetSeverityOk() (*string, bool) { + if o == nil || IsNil(o.Severity) { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasSeverity() bool { + if o != nil && !IsNil(o.Severity) { + return true + } + + return false +} + +// SetSeverity gets a reference to the given string and assigns it to the Severity field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetSeverity(v string) { + o.Severity = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetSource() string { + if o == nil || IsNil(o.Source) { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetSourceOk() (*string, bool) { + if o == nil || IsNil(o.Source) { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetSource(v string) { + o.Source = &v +} + +// GetTimeOfEvent returns the TimeOfEvent field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetTimeOfEvent() string { + if o == nil || IsNil(o.TimeOfEvent) { + var ret string + return ret + } + return *o.TimeOfEvent +} + +// GetTimeOfEventOk returns a tuple with the TimeOfEvent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetTimeOfEventOk() (*string, bool) { + if o == nil || IsNil(o.TimeOfEvent) { + return nil, false + } + return o.TimeOfEvent, true +} + +// HasTimeOfEvent returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasTimeOfEvent() bool { + if o != nil && !IsNil(o.TimeOfEvent) { + return true + } + + return false +} + +// SetTimeOfEvent gets a reference to the given string and assigns it to the TimeOfEvent field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetTimeOfEvent(v string) { + o.TimeOfEvent = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RunConnectorSubactionAddeventSubActionParams) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RunConnectorSubactionAddeventSubActionParams) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RunConnectorSubactionAddeventSubActionParams) SetType(v string) { + o.Type = &v +} + +func (o RunConnectorSubactionAddeventSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionAddeventSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AdditionalInfo) { + toSerialize["additional_info"] = o.AdditionalInfo + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.EventClass) { + toSerialize["event_class"] = o.EventClass + } + if !IsNil(o.MessageKey) { + toSerialize["message_key"] = o.MessageKey + } + if !IsNil(o.MetricName) { + toSerialize["metric_name"] = o.MetricName + } + if !IsNil(o.Node) { + toSerialize["node"] = o.Node + } + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + if !IsNil(o.Severity) { + toSerialize["severity"] = o.Severity + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.TimeOfEvent) { + toSerialize["time_of_event"] = o.TimeOfEvent + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionAddeventSubActionParams struct { + value *RunConnectorSubactionAddeventSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionAddeventSubActionParams) Get() *RunConnectorSubactionAddeventSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionAddeventSubActionParams) Set(val *RunConnectorSubactionAddeventSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionAddeventSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionAddeventSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionAddeventSubActionParams(val *RunConnectorSubactionAddeventSubActionParams) *NullableRunConnectorSubactionAddeventSubActionParams { + return &NullableRunConnectorSubactionAddeventSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionAddeventSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionAddeventSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_closealert.go b/generated/kibanaactions/model_run_connector_subaction_closealert.go new file mode 100644 index 000000000..97d88173b --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_closealert.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionClosealert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionClosealert{} + +// RunConnectorSubactionClosealert The `closeAlert` subaction for Opsgenie connectors. +type RunConnectorSubactionClosealert struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionClosealertSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionClosealert instantiates a new RunConnectorSubactionClosealert object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionClosealert(subAction string, subActionParams RunConnectorSubactionClosealertSubActionParams) *RunConnectorSubactionClosealert { + this := RunConnectorSubactionClosealert{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionClosealertWithDefaults instantiates a new RunConnectorSubactionClosealert object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionClosealertWithDefaults() *RunConnectorSubactionClosealert { + this := RunConnectorSubactionClosealert{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionClosealert) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionClosealert) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionClosealert) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionClosealert) GetSubActionParams() RunConnectorSubactionClosealertSubActionParams { + if o == nil { + var ret RunConnectorSubactionClosealertSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionClosealert) GetSubActionParamsOk() (*RunConnectorSubactionClosealertSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionClosealert) SetSubActionParams(v RunConnectorSubactionClosealertSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionClosealert) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionClosealert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionClosealert struct { + value *RunConnectorSubactionClosealert + isSet bool +} + +func (v NullableRunConnectorSubactionClosealert) Get() *RunConnectorSubactionClosealert { + return v.value +} + +func (v *NullableRunConnectorSubactionClosealert) Set(val *RunConnectorSubactionClosealert) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionClosealert) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionClosealert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionClosealert(val *RunConnectorSubactionClosealert) *NullableRunConnectorSubactionClosealert { + return &NullableRunConnectorSubactionClosealert{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionClosealert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionClosealert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_closealert_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_closealert_sub_action_params.go new file mode 100644 index 000000000..2b7df1cf0 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_closealert_sub_action_params.go @@ -0,0 +1,227 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionClosealertSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionClosealertSubActionParams{} + +// RunConnectorSubactionClosealertSubActionParams struct for RunConnectorSubactionClosealertSubActionParams +type RunConnectorSubactionClosealertSubActionParams struct { + // The unique identifier used for alert deduplication in Opsgenie. The alias must match the value used when creating the alert. + Alias string `json:"alias"` + // Additional information for the alert. + Note *string `json:"note,omitempty"` + // The display name for the source of the alert. + Source *string `json:"source,omitempty"` + // The display name for the owner. + User *string `json:"user,omitempty"` +} + +// NewRunConnectorSubactionClosealertSubActionParams instantiates a new RunConnectorSubactionClosealertSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionClosealertSubActionParams(alias string) *RunConnectorSubactionClosealertSubActionParams { + this := RunConnectorSubactionClosealertSubActionParams{} + this.Alias = alias + return &this +} + +// NewRunConnectorSubactionClosealertSubActionParamsWithDefaults instantiates a new RunConnectorSubactionClosealertSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionClosealertSubActionParamsWithDefaults() *RunConnectorSubactionClosealertSubActionParams { + this := RunConnectorSubactionClosealertSubActionParams{} + return &this +} + +// GetAlias returns the Alias field value +func (o *RunConnectorSubactionClosealertSubActionParams) GetAlias() string { + if o == nil { + var ret string + return ret + } + + return o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Alias, true +} + +// SetAlias sets field value +func (o *RunConnectorSubactionClosealertSubActionParams) SetAlias(v string) { + o.Alias = v +} + +// GetNote returns the Note field value if set, zero value otherwise. +func (o *RunConnectorSubactionClosealertSubActionParams) GetNote() string { + if o == nil || IsNil(o.Note) { + var ret string + return ret + } + return *o.Note +} + +// GetNoteOk returns a tuple with the Note field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) GetNoteOk() (*string, bool) { + if o == nil || IsNil(o.Note) { + return nil, false + } + return o.Note, true +} + +// HasNote returns a boolean if a field has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) HasNote() bool { + if o != nil && !IsNil(o.Note) { + return true + } + + return false +} + +// SetNote gets a reference to the given string and assigns it to the Note field. +func (o *RunConnectorSubactionClosealertSubActionParams) SetNote(v string) { + o.Note = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *RunConnectorSubactionClosealertSubActionParams) GetSource() string { + if o == nil || IsNil(o.Source) { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) GetSourceOk() (*string, bool) { + if o == nil || IsNil(o.Source) { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *RunConnectorSubactionClosealertSubActionParams) SetSource(v string) { + o.Source = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *RunConnectorSubactionClosealertSubActionParams) GetUser() string { + if o == nil || IsNil(o.User) { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) GetUserOk() (*string, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *RunConnectorSubactionClosealertSubActionParams) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *RunConnectorSubactionClosealertSubActionParams) SetUser(v string) { + o.User = &v +} + +func (o RunConnectorSubactionClosealertSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionClosealertSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alias"] = o.Alias + if !IsNil(o.Note) { + toSerialize["note"] = o.Note + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionClosealertSubActionParams struct { + value *RunConnectorSubactionClosealertSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionClosealertSubActionParams) Get() *RunConnectorSubactionClosealertSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionClosealertSubActionParams) Set(val *RunConnectorSubactionClosealertSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionClosealertSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionClosealertSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionClosealertSubActionParams(val *RunConnectorSubactionClosealertSubActionParams) *NullableRunConnectorSubactionClosealertSubActionParams { + return &NullableRunConnectorSubactionClosealertSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionClosealertSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionClosealertSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_createalert.go b/generated/kibanaactions/model_run_connector_subaction_createalert.go new file mode 100644 index 000000000..032c0bcb1 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_createalert.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionCreatealert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionCreatealert{} + +// RunConnectorSubactionCreatealert The `createAlert` subaction for Opsgenie connectors. +type RunConnectorSubactionCreatealert struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionCreatealertSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionCreatealert instantiates a new RunConnectorSubactionCreatealert object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionCreatealert(subAction string, subActionParams RunConnectorSubactionCreatealertSubActionParams) *RunConnectorSubactionCreatealert { + this := RunConnectorSubactionCreatealert{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionCreatealertWithDefaults instantiates a new RunConnectorSubactionCreatealert object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionCreatealertWithDefaults() *RunConnectorSubactionCreatealert { + this := RunConnectorSubactionCreatealert{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionCreatealert) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealert) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionCreatealert) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionCreatealert) GetSubActionParams() RunConnectorSubactionCreatealertSubActionParams { + if o == nil { + var ret RunConnectorSubactionCreatealertSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealert) GetSubActionParamsOk() (*RunConnectorSubactionCreatealertSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionCreatealert) SetSubActionParams(v RunConnectorSubactionCreatealertSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionCreatealert) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionCreatealert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionCreatealert struct { + value *RunConnectorSubactionCreatealert + isSet bool +} + +func (v NullableRunConnectorSubactionCreatealert) Get() *RunConnectorSubactionCreatealert { + return v.value +} + +func (v *NullableRunConnectorSubactionCreatealert) Set(val *RunConnectorSubactionCreatealert) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionCreatealert) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionCreatealert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionCreatealert(val *RunConnectorSubactionCreatealert) *NullableRunConnectorSubactionCreatealert { + return &NullableRunConnectorSubactionCreatealert{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionCreatealert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionCreatealert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params.go new file mode 100644 index 000000000..078a3def7 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params.go @@ -0,0 +1,560 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionCreatealertSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionCreatealertSubActionParams{} + +// RunConnectorSubactionCreatealertSubActionParams struct for RunConnectorSubactionCreatealertSubActionParams +type RunConnectorSubactionCreatealertSubActionParams struct { + // The custom actions available to the alert. + Actions []string `json:"actions,omitempty"` + // The unique identifier used for alert deduplication in Opsgenie. + Alias *string `json:"alias,omitempty"` + // A description that provides detailed information about the alert. + Description *string `json:"description,omitempty"` + // The custom properties of the alert. + Details map[string]interface{} `json:"details,omitempty"` + // The domain of the alert. For example, the application or server name. + Entity *string `json:"entity,omitempty"` + // The alert message. + Message string `json:"message"` + // Additional information for the alert. + Note *string `json:"note,omitempty"` + // The priority level for the alert. + Priority *string `json:"priority,omitempty"` + // The entities to receive notifications about the alert. If `type` is `user`, either `id` or `username` is required. If `type` is `team`, either `id` or `name` is required. + Responders []RunConnectorSubactionCreatealertSubActionParamsRespondersInner `json:"responders,omitempty"` + // The display name for the source of the alert. + Source *string `json:"source,omitempty"` + // The tags for the alert. + Tags []string `json:"tags,omitempty"` + // The display name for the owner. + User *string `json:"user,omitempty"` + // The teams and users that the alert will be visible to without sending a notification. Only one of `id`, `name`, or `username` is required. + VisibleTo []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner `json:"visibleTo,omitempty"` +} + +// NewRunConnectorSubactionCreatealertSubActionParams instantiates a new RunConnectorSubactionCreatealertSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionCreatealertSubActionParams(message string) *RunConnectorSubactionCreatealertSubActionParams { + this := RunConnectorSubactionCreatealertSubActionParams{} + this.Message = message + return &this +} + +// NewRunConnectorSubactionCreatealertSubActionParamsWithDefaults instantiates a new RunConnectorSubactionCreatealertSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionCreatealertSubActionParamsWithDefaults() *RunConnectorSubactionCreatealertSubActionParams { + this := RunConnectorSubactionCreatealertSubActionParams{} + return &this +} + +// GetActions returns the Actions field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetActions() []string { + if o == nil || IsNil(o.Actions) { + var ret []string + return ret + } + return o.Actions +} + +// GetActionsOk returns a tuple with the Actions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetActionsOk() ([]string, bool) { + if o == nil || IsNil(o.Actions) { + return nil, false + } + return o.Actions, true +} + +// HasActions returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasActions() bool { + if o != nil && !IsNil(o.Actions) { + return true + } + + return false +} + +// SetActions gets a reference to the given []string and assigns it to the Actions field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetActions(v []string) { + o.Actions = v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetAlias() string { + if o == nil || IsNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetAliasOk() (*string, bool) { + if o == nil || IsNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasAlias() bool { + if o != nil && !IsNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetAlias(v string) { + o.Alias = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetDescription(v string) { + o.Description = &v +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetDetails() map[string]interface{} { + if o == nil || IsNil(o.Details) { + var ret map[string]interface{} + return ret + } + return o.Details +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetDetailsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Details) { + return map[string]interface{}{}, false + } + return o.Details, true +} + +// HasDetails returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasDetails() bool { + if o != nil && !IsNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given map[string]interface{} and assigns it to the Details field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetDetails(v map[string]interface{}) { + o.Details = v +} + +// GetEntity returns the Entity field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetEntity() string { + if o == nil || IsNil(o.Entity) { + var ret string + return ret + } + return *o.Entity +} + +// GetEntityOk returns a tuple with the Entity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetEntityOk() (*string, bool) { + if o == nil || IsNil(o.Entity) { + return nil, false + } + return o.Entity, true +} + +// HasEntity returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasEntity() bool { + if o != nil && !IsNil(o.Entity) { + return true + } + + return false +} + +// SetEntity gets a reference to the given string and assigns it to the Entity field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetEntity(v string) { + o.Entity = &v +} + +// GetMessage returns the Message field value +func (o *RunConnectorSubactionCreatealertSubActionParams) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *RunConnectorSubactionCreatealertSubActionParams) SetMessage(v string) { + o.Message = v +} + +// GetNote returns the Note field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetNote() string { + if o == nil || IsNil(o.Note) { + var ret string + return ret + } + return *o.Note +} + +// GetNoteOk returns a tuple with the Note field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetNoteOk() (*string, bool) { + if o == nil || IsNil(o.Note) { + return nil, false + } + return o.Note, true +} + +// HasNote returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasNote() bool { + if o != nil && !IsNil(o.Note) { + return true + } + + return false +} + +// SetNote gets a reference to the given string and assigns it to the Note field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetNote(v string) { + o.Note = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetPriorityOk() (*string, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetPriority(v string) { + o.Priority = &v +} + +// GetResponders returns the Responders field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetResponders() []RunConnectorSubactionCreatealertSubActionParamsRespondersInner { + if o == nil || IsNil(o.Responders) { + var ret []RunConnectorSubactionCreatealertSubActionParamsRespondersInner + return ret + } + return o.Responders +} + +// GetRespondersOk returns a tuple with the Responders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetRespondersOk() ([]RunConnectorSubactionCreatealertSubActionParamsRespondersInner, bool) { + if o == nil || IsNil(o.Responders) { + return nil, false + } + return o.Responders, true +} + +// HasResponders returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasResponders() bool { + if o != nil && !IsNil(o.Responders) { + return true + } + + return false +} + +// SetResponders gets a reference to the given []RunConnectorSubactionCreatealertSubActionParamsRespondersInner and assigns it to the Responders field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetResponders(v []RunConnectorSubactionCreatealertSubActionParamsRespondersInner) { + o.Responders = v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetSource() string { + if o == nil || IsNil(o.Source) { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetSourceOk() (*string, bool) { + if o == nil || IsNil(o.Source) { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetSource(v string) { + o.Source = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetTags(v []string) { + o.Tags = v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetUser() string { + if o == nil || IsNil(o.User) { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetUserOk() (*string, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetUser(v string) { + o.User = &v +} + +// GetVisibleTo returns the VisibleTo field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetVisibleTo() []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner { + if o == nil || IsNil(o.VisibleTo) { + var ret []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner + return ret + } + return o.VisibleTo +} + +// GetVisibleToOk returns a tuple with the VisibleTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) GetVisibleToOk() ([]RunConnectorSubactionCreatealertSubActionParamsVisibleToInner, bool) { + if o == nil || IsNil(o.VisibleTo) { + return nil, false + } + return o.VisibleTo, true +} + +// HasVisibleTo returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParams) HasVisibleTo() bool { + if o != nil && !IsNil(o.VisibleTo) { + return true + } + + return false +} + +// SetVisibleTo gets a reference to the given []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner and assigns it to the VisibleTo field. +func (o *RunConnectorSubactionCreatealertSubActionParams) SetVisibleTo(v []RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) { + o.VisibleTo = v +} + +func (o RunConnectorSubactionCreatealertSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionCreatealertSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Actions) { + toSerialize["actions"] = o.Actions + } + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Details) { + toSerialize["details"] = o.Details + } + if !IsNil(o.Entity) { + toSerialize["entity"] = o.Entity + } + toSerialize["message"] = o.Message + if !IsNil(o.Note) { + toSerialize["note"] = o.Note + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Responders) { + toSerialize["responders"] = o.Responders + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + if !IsNil(o.VisibleTo) { + toSerialize["visibleTo"] = o.VisibleTo + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionCreatealertSubActionParams struct { + value *RunConnectorSubactionCreatealertSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParams) Get() *RunConnectorSubactionCreatealertSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParams) Set(val *RunConnectorSubactionCreatealertSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionCreatealertSubActionParams(val *RunConnectorSubactionCreatealertSubActionParams) *NullableRunConnectorSubactionCreatealertSubActionParams { + return &NullableRunConnectorSubactionCreatealertSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params_responders_inner.go b/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params_responders_inner.go new file mode 100644 index 000000000..e51d5113e --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params_responders_inner.go @@ -0,0 +1,236 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionCreatealertSubActionParamsRespondersInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionCreatealertSubActionParamsRespondersInner{} + +// RunConnectorSubactionCreatealertSubActionParamsRespondersInner struct for RunConnectorSubactionCreatealertSubActionParamsRespondersInner +type RunConnectorSubactionCreatealertSubActionParamsRespondersInner struct { + // The identifier for the entity. + Id *string `json:"id,omitempty"` + // The name of the entity. + Name *string `json:"name,omitempty"` + // The type of responders, in this case `escalation`. + Type *string `json:"type,omitempty"` + // A valid email address for the user. + Username *string `json:"username,omitempty"` +} + +// NewRunConnectorSubactionCreatealertSubActionParamsRespondersInner instantiates a new RunConnectorSubactionCreatealertSubActionParamsRespondersInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionCreatealertSubActionParamsRespondersInner() *RunConnectorSubactionCreatealertSubActionParamsRespondersInner { + this := RunConnectorSubactionCreatealertSubActionParamsRespondersInner{} + return &this +} + +// NewRunConnectorSubactionCreatealertSubActionParamsRespondersInnerWithDefaults instantiates a new RunConnectorSubactionCreatealertSubActionParamsRespondersInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionCreatealertSubActionParamsRespondersInnerWithDefaults() *RunConnectorSubactionCreatealertSubActionParamsRespondersInner { + this := RunConnectorSubactionCreatealertSubActionParamsRespondersInner{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetType(v string) { + o.Type = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) SetUsername(v string) { + o.Username = &v +} + +func (o RunConnectorSubactionCreatealertSubActionParamsRespondersInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionCreatealertSubActionParamsRespondersInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner struct { + value *RunConnectorSubactionCreatealertSubActionParamsRespondersInner + isSet bool +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner) Get() *RunConnectorSubactionCreatealertSubActionParamsRespondersInner { + return v.value +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner) Set(val *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner(val *RunConnectorSubactionCreatealertSubActionParamsRespondersInner) *NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner { + return &NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParamsRespondersInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params_visible_to_inner.go b/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params_visible_to_inner.go new file mode 100644 index 000000000..baeb28a42 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_createalert_sub_action_params_visible_to_inner.go @@ -0,0 +1,227 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionCreatealertSubActionParamsVisibleToInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionCreatealertSubActionParamsVisibleToInner{} + +// RunConnectorSubactionCreatealertSubActionParamsVisibleToInner struct for RunConnectorSubactionCreatealertSubActionParamsVisibleToInner +type RunConnectorSubactionCreatealertSubActionParamsVisibleToInner struct { + // The identifier for the entity. + Id *string `json:"id,omitempty"` + // The name of the entity. + Name *string `json:"name,omitempty"` + // Valid values are `team` and `user`. + Type string `json:"type"` + // The user name. This property is required only when the `type` is `user`. + Username *string `json:"username,omitempty"` +} + +// NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInner instantiates a new RunConnectorSubactionCreatealertSubActionParamsVisibleToInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInner(type_ string) *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner { + this := RunConnectorSubactionCreatealertSubActionParamsVisibleToInner{} + this.Type = type_ + return &this +} + +// NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInnerWithDefaults instantiates a new RunConnectorSubactionCreatealertSubActionParamsVisibleToInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionCreatealertSubActionParamsVisibleToInnerWithDefaults() *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner { + this := RunConnectorSubactionCreatealertSubActionParamsVisibleToInner{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetType(v string) { + o.Type = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) SetUsername(v string) { + o.Username = &v +} + +func (o RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["type"] = o.Type + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner struct { + value *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner + isSet bool +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner) Get() *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner { + return v.value +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner) Set(val *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner(val *RunConnectorSubactionCreatealertSubActionParamsVisibleToInner) *NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner { + return &NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionCreatealertSubActionParamsVisibleToInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_fieldsbyissuetype.go b/generated/kibanaactions/model_run_connector_subaction_fieldsbyissuetype.go new file mode 100644 index 000000000..21d07c8cf --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_fieldsbyissuetype.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionFieldsbyissuetype type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionFieldsbyissuetype{} + +// RunConnectorSubactionFieldsbyissuetype The `fieldsByIssueType` subaction for Jira connectors. +type RunConnectorSubactionFieldsbyissuetype struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionFieldsbyissuetypeSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionFieldsbyissuetype instantiates a new RunConnectorSubactionFieldsbyissuetype object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionFieldsbyissuetype(subAction string, subActionParams RunConnectorSubactionFieldsbyissuetypeSubActionParams) *RunConnectorSubactionFieldsbyissuetype { + this := RunConnectorSubactionFieldsbyissuetype{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionFieldsbyissuetypeWithDefaults instantiates a new RunConnectorSubactionFieldsbyissuetype object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionFieldsbyissuetypeWithDefaults() *RunConnectorSubactionFieldsbyissuetype { + this := RunConnectorSubactionFieldsbyissuetype{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionFieldsbyissuetype) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionFieldsbyissuetype) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionFieldsbyissuetype) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionFieldsbyissuetype) GetSubActionParams() RunConnectorSubactionFieldsbyissuetypeSubActionParams { + if o == nil { + var ret RunConnectorSubactionFieldsbyissuetypeSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionFieldsbyissuetype) GetSubActionParamsOk() (*RunConnectorSubactionFieldsbyissuetypeSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionFieldsbyissuetype) SetSubActionParams(v RunConnectorSubactionFieldsbyissuetypeSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionFieldsbyissuetype) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionFieldsbyissuetype) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionFieldsbyissuetype struct { + value *RunConnectorSubactionFieldsbyissuetype + isSet bool +} + +func (v NullableRunConnectorSubactionFieldsbyissuetype) Get() *RunConnectorSubactionFieldsbyissuetype { + return v.value +} + +func (v *NullableRunConnectorSubactionFieldsbyissuetype) Set(val *RunConnectorSubactionFieldsbyissuetype) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionFieldsbyissuetype) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionFieldsbyissuetype) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionFieldsbyissuetype(val *RunConnectorSubactionFieldsbyissuetype) *NullableRunConnectorSubactionFieldsbyissuetype { + return &NullableRunConnectorSubactionFieldsbyissuetype{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionFieldsbyissuetype) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionFieldsbyissuetype) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_fieldsbyissuetype_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_fieldsbyissuetype_sub_action_params.go new file mode 100644 index 000000000..cc12da586 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_fieldsbyissuetype_sub_action_params.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionFieldsbyissuetypeSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionFieldsbyissuetypeSubActionParams{} + +// RunConnectorSubactionFieldsbyissuetypeSubActionParams struct for RunConnectorSubactionFieldsbyissuetypeSubActionParams +type RunConnectorSubactionFieldsbyissuetypeSubActionParams struct { + // The Jira issue type identifier. + Id string `json:"id"` +} + +// NewRunConnectorSubactionFieldsbyissuetypeSubActionParams instantiates a new RunConnectorSubactionFieldsbyissuetypeSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionFieldsbyissuetypeSubActionParams(id string) *RunConnectorSubactionFieldsbyissuetypeSubActionParams { + this := RunConnectorSubactionFieldsbyissuetypeSubActionParams{} + this.Id = id + return &this +} + +// NewRunConnectorSubactionFieldsbyissuetypeSubActionParamsWithDefaults instantiates a new RunConnectorSubactionFieldsbyissuetypeSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionFieldsbyissuetypeSubActionParamsWithDefaults() *RunConnectorSubactionFieldsbyissuetypeSubActionParams { + this := RunConnectorSubactionFieldsbyissuetypeSubActionParams{} + return &this +} + +// GetId returns the Id field value +func (o *RunConnectorSubactionFieldsbyissuetypeSubActionParams) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionFieldsbyissuetypeSubActionParams) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RunConnectorSubactionFieldsbyissuetypeSubActionParams) SetId(v string) { + o.Id = v +} + +func (o RunConnectorSubactionFieldsbyissuetypeSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionFieldsbyissuetypeSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams struct { + value *RunConnectorSubactionFieldsbyissuetypeSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams) Get() *RunConnectorSubactionFieldsbyissuetypeSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams) Set(val *RunConnectorSubactionFieldsbyissuetypeSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionFieldsbyissuetypeSubActionParams(val *RunConnectorSubactionFieldsbyissuetypeSubActionParams) *NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams { + return &NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionFieldsbyissuetypeSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_getchoices.go b/generated/kibanaactions/model_run_connector_subaction_getchoices.go new file mode 100644 index 000000000..1c0e9dc99 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_getchoices.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionGetchoices type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionGetchoices{} + +// RunConnectorSubactionGetchoices The `getChoices` subaction for ServiceNow ITOM, ServiceNow ITSM, and ServiceNow SecOps connectors. +type RunConnectorSubactionGetchoices struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionGetchoicesSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionGetchoices instantiates a new RunConnectorSubactionGetchoices object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionGetchoices(subAction string, subActionParams RunConnectorSubactionGetchoicesSubActionParams) *RunConnectorSubactionGetchoices { + this := RunConnectorSubactionGetchoices{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionGetchoicesWithDefaults instantiates a new RunConnectorSubactionGetchoices object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionGetchoicesWithDefaults() *RunConnectorSubactionGetchoices { + this := RunConnectorSubactionGetchoices{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionGetchoices) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetchoices) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionGetchoices) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionGetchoices) GetSubActionParams() RunConnectorSubactionGetchoicesSubActionParams { + if o == nil { + var ret RunConnectorSubactionGetchoicesSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetchoices) GetSubActionParamsOk() (*RunConnectorSubactionGetchoicesSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionGetchoices) SetSubActionParams(v RunConnectorSubactionGetchoicesSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionGetchoices) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionGetchoices) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionGetchoices struct { + value *RunConnectorSubactionGetchoices + isSet bool +} + +func (v NullableRunConnectorSubactionGetchoices) Get() *RunConnectorSubactionGetchoices { + return v.value +} + +func (v *NullableRunConnectorSubactionGetchoices) Set(val *RunConnectorSubactionGetchoices) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionGetchoices) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionGetchoices) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionGetchoices(val *RunConnectorSubactionGetchoices) *NullableRunConnectorSubactionGetchoices { + return &NullableRunConnectorSubactionGetchoices{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionGetchoices) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionGetchoices) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_getchoices_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_getchoices_sub_action_params.go new file mode 100644 index 000000000..3b7a99ea8 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_getchoices_sub_action_params.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionGetchoicesSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionGetchoicesSubActionParams{} + +// RunConnectorSubactionGetchoicesSubActionParams The set of configuration properties for the action. +type RunConnectorSubactionGetchoicesSubActionParams struct { + // An array of fields. + Fields []string `json:"fields"` +} + +// NewRunConnectorSubactionGetchoicesSubActionParams instantiates a new RunConnectorSubactionGetchoicesSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionGetchoicesSubActionParams(fields []string) *RunConnectorSubactionGetchoicesSubActionParams { + this := RunConnectorSubactionGetchoicesSubActionParams{} + this.Fields = fields + return &this +} + +// NewRunConnectorSubactionGetchoicesSubActionParamsWithDefaults instantiates a new RunConnectorSubactionGetchoicesSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionGetchoicesSubActionParamsWithDefaults() *RunConnectorSubactionGetchoicesSubActionParams { + this := RunConnectorSubactionGetchoicesSubActionParams{} + return &this +} + +// GetFields returns the Fields field value +func (o *RunConnectorSubactionGetchoicesSubActionParams) GetFields() []string { + if o == nil { + var ret []string + return ret + } + + return o.Fields +} + +// GetFieldsOk returns a tuple with the Fields field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetchoicesSubActionParams) GetFieldsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Fields, true +} + +// SetFields sets field value +func (o *RunConnectorSubactionGetchoicesSubActionParams) SetFields(v []string) { + o.Fields = v +} + +func (o RunConnectorSubactionGetchoicesSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionGetchoicesSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fields"] = o.Fields + return toSerialize, nil +} + +type NullableRunConnectorSubactionGetchoicesSubActionParams struct { + value *RunConnectorSubactionGetchoicesSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionGetchoicesSubActionParams) Get() *RunConnectorSubactionGetchoicesSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionGetchoicesSubActionParams) Set(val *RunConnectorSubactionGetchoicesSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionGetchoicesSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionGetchoicesSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionGetchoicesSubActionParams(val *RunConnectorSubactionGetchoicesSubActionParams) *NullableRunConnectorSubactionGetchoicesSubActionParams { + return &NullableRunConnectorSubactionGetchoicesSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionGetchoicesSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionGetchoicesSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_getfields.go b/generated/kibanaactions/model_run_connector_subaction_getfields.go new file mode 100644 index 000000000..780c9c145 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_getfields.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionGetfields type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionGetfields{} + +// RunConnectorSubactionGetfields The `getFields` subaction for Jira, ServiceNow ITSM, and ServiceNow SecOps connectors. +type RunConnectorSubactionGetfields struct { + // The action to test. + SubAction string `json:"subAction"` +} + +// NewRunConnectorSubactionGetfields instantiates a new RunConnectorSubactionGetfields object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionGetfields(subAction string) *RunConnectorSubactionGetfields { + this := RunConnectorSubactionGetfields{} + this.SubAction = subAction + return &this +} + +// NewRunConnectorSubactionGetfieldsWithDefaults instantiates a new RunConnectorSubactionGetfields object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionGetfieldsWithDefaults() *RunConnectorSubactionGetfields { + this := RunConnectorSubactionGetfields{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionGetfields) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetfields) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionGetfields) SetSubAction(v string) { + o.SubAction = v +} + +func (o RunConnectorSubactionGetfields) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionGetfields) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + return toSerialize, nil +} + +type NullableRunConnectorSubactionGetfields struct { + value *RunConnectorSubactionGetfields + isSet bool +} + +func (v NullableRunConnectorSubactionGetfields) Get() *RunConnectorSubactionGetfields { + return v.value +} + +func (v *NullableRunConnectorSubactionGetfields) Set(val *RunConnectorSubactionGetfields) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionGetfields) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionGetfields) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionGetfields(val *RunConnectorSubactionGetfields) *NullableRunConnectorSubactionGetfields { + return &NullableRunConnectorSubactionGetfields{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionGetfields) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionGetfields) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_getincident.go b/generated/kibanaactions/model_run_connector_subaction_getincident.go new file mode 100644 index 000000000..d89bde297 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_getincident.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionGetincident type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionGetincident{} + +// RunConnectorSubactionGetincident The `getIncident` subaction for Jira, ServiceNow ITSM, and ServiceNow SecOps connectors. +type RunConnectorSubactionGetincident struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionGetincidentSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionGetincident instantiates a new RunConnectorSubactionGetincident object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionGetincident(subAction string, subActionParams RunConnectorSubactionGetincidentSubActionParams) *RunConnectorSubactionGetincident { + this := RunConnectorSubactionGetincident{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionGetincidentWithDefaults instantiates a new RunConnectorSubactionGetincident object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionGetincidentWithDefaults() *RunConnectorSubactionGetincident { + this := RunConnectorSubactionGetincident{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionGetincident) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetincident) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionGetincident) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionGetincident) GetSubActionParams() RunConnectorSubactionGetincidentSubActionParams { + if o == nil { + var ret RunConnectorSubactionGetincidentSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetincident) GetSubActionParamsOk() (*RunConnectorSubactionGetincidentSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionGetincident) SetSubActionParams(v RunConnectorSubactionGetincidentSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionGetincident) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionGetincident) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionGetincident struct { + value *RunConnectorSubactionGetincident + isSet bool +} + +func (v NullableRunConnectorSubactionGetincident) Get() *RunConnectorSubactionGetincident { + return v.value +} + +func (v *NullableRunConnectorSubactionGetincident) Set(val *RunConnectorSubactionGetincident) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionGetincident) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionGetincident) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionGetincident(val *RunConnectorSubactionGetincident) *NullableRunConnectorSubactionGetincident { + return &NullableRunConnectorSubactionGetincident{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionGetincident) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionGetincident) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_getincident_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_getincident_sub_action_params.go new file mode 100644 index 000000000..be962b568 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_getincident_sub_action_params.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionGetincidentSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionGetincidentSubActionParams{} + +// RunConnectorSubactionGetincidentSubActionParams struct for RunConnectorSubactionGetincidentSubActionParams +type RunConnectorSubactionGetincidentSubActionParams struct { + // The Jira, ServiceNow ITSM, or ServiceNow SecOps issue identifier. + ExternalId string `json:"externalId"` +} + +// NewRunConnectorSubactionGetincidentSubActionParams instantiates a new RunConnectorSubactionGetincidentSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionGetincidentSubActionParams(externalId string) *RunConnectorSubactionGetincidentSubActionParams { + this := RunConnectorSubactionGetincidentSubActionParams{} + this.ExternalId = externalId + return &this +} + +// NewRunConnectorSubactionGetincidentSubActionParamsWithDefaults instantiates a new RunConnectorSubactionGetincidentSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionGetincidentSubActionParamsWithDefaults() *RunConnectorSubactionGetincidentSubActionParams { + this := RunConnectorSubactionGetincidentSubActionParams{} + return &this +} + +// GetExternalId returns the ExternalId field value +func (o *RunConnectorSubactionGetincidentSubActionParams) GetExternalId() string { + if o == nil { + var ret string + return ret + } + + return o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionGetincidentSubActionParams) GetExternalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExternalId, true +} + +// SetExternalId sets field value +func (o *RunConnectorSubactionGetincidentSubActionParams) SetExternalId(v string) { + o.ExternalId = v +} + +func (o RunConnectorSubactionGetincidentSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionGetincidentSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["externalId"] = o.ExternalId + return toSerialize, nil +} + +type NullableRunConnectorSubactionGetincidentSubActionParams struct { + value *RunConnectorSubactionGetincidentSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionGetincidentSubActionParams) Get() *RunConnectorSubactionGetincidentSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionGetincidentSubActionParams) Set(val *RunConnectorSubactionGetincidentSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionGetincidentSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionGetincidentSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionGetincidentSubActionParams(val *RunConnectorSubactionGetincidentSubActionParams) *NullableRunConnectorSubactionGetincidentSubActionParams { + return &NullableRunConnectorSubactionGetincidentSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionGetincidentSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionGetincidentSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_issue.go b/generated/kibanaactions/model_run_connector_subaction_issue.go new file mode 100644 index 000000000..a546a199b --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_issue.go @@ -0,0 +1,152 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionIssue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionIssue{} + +// RunConnectorSubactionIssue The `issue` subaction for Jira connectors. +type RunConnectorSubactionIssue struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams *RunConnectorSubactionIssueSubActionParams `json:"subActionParams,omitempty"` +} + +// NewRunConnectorSubactionIssue instantiates a new RunConnectorSubactionIssue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionIssue(subAction string) *RunConnectorSubactionIssue { + this := RunConnectorSubactionIssue{} + this.SubAction = subAction + return &this +} + +// NewRunConnectorSubactionIssueWithDefaults instantiates a new RunConnectorSubactionIssue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionIssueWithDefaults() *RunConnectorSubactionIssue { + this := RunConnectorSubactionIssue{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionIssue) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssue) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionIssue) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value if set, zero value otherwise. +func (o *RunConnectorSubactionIssue) GetSubActionParams() RunConnectorSubactionIssueSubActionParams { + if o == nil || IsNil(o.SubActionParams) { + var ret RunConnectorSubactionIssueSubActionParams + return ret + } + return *o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssue) GetSubActionParamsOk() (*RunConnectorSubactionIssueSubActionParams, bool) { + if o == nil || IsNil(o.SubActionParams) { + return nil, false + } + return o.SubActionParams, true +} + +// HasSubActionParams returns a boolean if a field has been set. +func (o *RunConnectorSubactionIssue) HasSubActionParams() bool { + if o != nil && !IsNil(o.SubActionParams) { + return true + } + + return false +} + +// SetSubActionParams gets a reference to the given RunConnectorSubactionIssueSubActionParams and assigns it to the SubActionParams field. +func (o *RunConnectorSubactionIssue) SetSubActionParams(v RunConnectorSubactionIssueSubActionParams) { + o.SubActionParams = &v +} + +func (o RunConnectorSubactionIssue) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionIssue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + if !IsNil(o.SubActionParams) { + toSerialize["subActionParams"] = o.SubActionParams + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionIssue struct { + value *RunConnectorSubactionIssue + isSet bool +} + +func (v NullableRunConnectorSubactionIssue) Get() *RunConnectorSubactionIssue { + return v.value +} + +func (v *NullableRunConnectorSubactionIssue) Set(val *RunConnectorSubactionIssue) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionIssue) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionIssue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionIssue(val *RunConnectorSubactionIssue) *NullableRunConnectorSubactionIssue { + return &NullableRunConnectorSubactionIssue{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionIssue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionIssue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_issue_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_issue_sub_action_params.go new file mode 100644 index 000000000..4ea3a0723 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_issue_sub_action_params.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionIssueSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionIssueSubActionParams{} + +// RunConnectorSubactionIssueSubActionParams struct for RunConnectorSubactionIssueSubActionParams +type RunConnectorSubactionIssueSubActionParams struct { + // The Jira issue identifier. + Id string `json:"id"` +} + +// NewRunConnectorSubactionIssueSubActionParams instantiates a new RunConnectorSubactionIssueSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionIssueSubActionParams(id string) *RunConnectorSubactionIssueSubActionParams { + this := RunConnectorSubactionIssueSubActionParams{} + this.Id = id + return &this +} + +// NewRunConnectorSubactionIssueSubActionParamsWithDefaults instantiates a new RunConnectorSubactionIssueSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionIssueSubActionParamsWithDefaults() *RunConnectorSubactionIssueSubActionParams { + this := RunConnectorSubactionIssueSubActionParams{} + return &this +} + +// GetId returns the Id field value +func (o *RunConnectorSubactionIssueSubActionParams) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssueSubActionParams) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RunConnectorSubactionIssueSubActionParams) SetId(v string) { + o.Id = v +} + +func (o RunConnectorSubactionIssueSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionIssueSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableRunConnectorSubactionIssueSubActionParams struct { + value *RunConnectorSubactionIssueSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionIssueSubActionParams) Get() *RunConnectorSubactionIssueSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionIssueSubActionParams) Set(val *RunConnectorSubactionIssueSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionIssueSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionIssueSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionIssueSubActionParams(val *RunConnectorSubactionIssueSubActionParams) *NullableRunConnectorSubactionIssueSubActionParams { + return &NullableRunConnectorSubactionIssueSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionIssueSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionIssueSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_issues.go b/generated/kibanaactions/model_run_connector_subaction_issues.go new file mode 100644 index 000000000..23291bd08 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_issues.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionIssues type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionIssues{} + +// RunConnectorSubactionIssues The `issues` subaction for Jira connectors. +type RunConnectorSubactionIssues struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionIssuesSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionIssues instantiates a new RunConnectorSubactionIssues object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionIssues(subAction string, subActionParams RunConnectorSubactionIssuesSubActionParams) *RunConnectorSubactionIssues { + this := RunConnectorSubactionIssues{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionIssuesWithDefaults instantiates a new RunConnectorSubactionIssues object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionIssuesWithDefaults() *RunConnectorSubactionIssues { + this := RunConnectorSubactionIssues{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionIssues) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssues) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionIssues) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionIssues) GetSubActionParams() RunConnectorSubactionIssuesSubActionParams { + if o == nil { + var ret RunConnectorSubactionIssuesSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssues) GetSubActionParamsOk() (*RunConnectorSubactionIssuesSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionIssues) SetSubActionParams(v RunConnectorSubactionIssuesSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionIssues) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionIssues) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionIssues struct { + value *RunConnectorSubactionIssues + isSet bool +} + +func (v NullableRunConnectorSubactionIssues) Get() *RunConnectorSubactionIssues { + return v.value +} + +func (v *NullableRunConnectorSubactionIssues) Set(val *RunConnectorSubactionIssues) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionIssues) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionIssues) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionIssues(val *RunConnectorSubactionIssues) *NullableRunConnectorSubactionIssues { + return &NullableRunConnectorSubactionIssues{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionIssues) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionIssues) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_issues_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_issues_sub_action_params.go new file mode 100644 index 000000000..a97f6d660 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_issues_sub_action_params.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionIssuesSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionIssuesSubActionParams{} + +// RunConnectorSubactionIssuesSubActionParams struct for RunConnectorSubactionIssuesSubActionParams +type RunConnectorSubactionIssuesSubActionParams struct { + // The title of the Jira issue. + Title string `json:"title"` +} + +// NewRunConnectorSubactionIssuesSubActionParams instantiates a new RunConnectorSubactionIssuesSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionIssuesSubActionParams(title string) *RunConnectorSubactionIssuesSubActionParams { + this := RunConnectorSubactionIssuesSubActionParams{} + this.Title = title + return &this +} + +// NewRunConnectorSubactionIssuesSubActionParamsWithDefaults instantiates a new RunConnectorSubactionIssuesSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionIssuesSubActionParamsWithDefaults() *RunConnectorSubactionIssuesSubActionParams { + this := RunConnectorSubactionIssuesSubActionParams{} + return &this +} + +// GetTitle returns the Title field value +func (o *RunConnectorSubactionIssuesSubActionParams) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssuesSubActionParams) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *RunConnectorSubactionIssuesSubActionParams) SetTitle(v string) { + o.Title = v +} + +func (o RunConnectorSubactionIssuesSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionIssuesSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["title"] = o.Title + return toSerialize, nil +} + +type NullableRunConnectorSubactionIssuesSubActionParams struct { + value *RunConnectorSubactionIssuesSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionIssuesSubActionParams) Get() *RunConnectorSubactionIssuesSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionIssuesSubActionParams) Set(val *RunConnectorSubactionIssuesSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionIssuesSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionIssuesSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionIssuesSubActionParams(val *RunConnectorSubactionIssuesSubActionParams) *NullableRunConnectorSubactionIssuesSubActionParams { + return &NullableRunConnectorSubactionIssuesSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionIssuesSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionIssuesSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_issuetypes.go b/generated/kibanaactions/model_run_connector_subaction_issuetypes.go new file mode 100644 index 000000000..b7754c27e --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_issuetypes.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionIssuetypes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionIssuetypes{} + +// RunConnectorSubactionIssuetypes The `issueTypes` subaction for Jira connectors. +type RunConnectorSubactionIssuetypes struct { + // The action to test. + SubAction string `json:"subAction"` +} + +// NewRunConnectorSubactionIssuetypes instantiates a new RunConnectorSubactionIssuetypes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionIssuetypes(subAction string) *RunConnectorSubactionIssuetypes { + this := RunConnectorSubactionIssuetypes{} + this.SubAction = subAction + return &this +} + +// NewRunConnectorSubactionIssuetypesWithDefaults instantiates a new RunConnectorSubactionIssuetypes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionIssuetypesWithDefaults() *RunConnectorSubactionIssuetypes { + this := RunConnectorSubactionIssuetypes{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionIssuetypes) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionIssuetypes) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionIssuetypes) SetSubAction(v string) { + o.SubAction = v +} + +func (o RunConnectorSubactionIssuetypes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionIssuetypes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + return toSerialize, nil +} + +type NullableRunConnectorSubactionIssuetypes struct { + value *RunConnectorSubactionIssuetypes + isSet bool +} + +func (v NullableRunConnectorSubactionIssuetypes) Get() *RunConnectorSubactionIssuetypes { + return v.value +} + +func (v *NullableRunConnectorSubactionIssuetypes) Set(val *RunConnectorSubactionIssuetypes) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionIssuetypes) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionIssuetypes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionIssuetypes(val *RunConnectorSubactionIssuetypes) *NullableRunConnectorSubactionIssuetypes { + return &NullableRunConnectorSubactionIssuetypes{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionIssuetypes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionIssuetypes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice.go new file mode 100644 index 000000000..3fecdb551 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionPushtoservice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionPushtoservice{} + +// RunConnectorSubactionPushtoservice The `pushToService` subaction for Jira, ServiceNow ITSM, ServiceNow SecOps, and Swimlane connectors. +type RunConnectorSubactionPushtoservice struct { + // The action to test. + SubAction string `json:"subAction"` + SubActionParams RunConnectorSubactionPushtoserviceSubActionParams `json:"subActionParams"` +} + +// NewRunConnectorSubactionPushtoservice instantiates a new RunConnectorSubactionPushtoservice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionPushtoservice(subAction string, subActionParams RunConnectorSubactionPushtoserviceSubActionParams) *RunConnectorSubactionPushtoservice { + this := RunConnectorSubactionPushtoservice{} + this.SubAction = subAction + this.SubActionParams = subActionParams + return &this +} + +// NewRunConnectorSubactionPushtoserviceWithDefaults instantiates a new RunConnectorSubactionPushtoservice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionPushtoserviceWithDefaults() *RunConnectorSubactionPushtoservice { + this := RunConnectorSubactionPushtoservice{} + return &this +} + +// GetSubAction returns the SubAction field value +func (o *RunConnectorSubactionPushtoservice) GetSubAction() string { + if o == nil { + var ret string + return ret + } + + return o.SubAction +} + +// GetSubActionOk returns a tuple with the SubAction field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoservice) GetSubActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubAction, true +} + +// SetSubAction sets field value +func (o *RunConnectorSubactionPushtoservice) SetSubAction(v string) { + o.SubAction = v +} + +// GetSubActionParams returns the SubActionParams field value +func (o *RunConnectorSubactionPushtoservice) GetSubActionParams() RunConnectorSubactionPushtoserviceSubActionParams { + if o == nil { + var ret RunConnectorSubactionPushtoserviceSubActionParams + return ret + } + + return o.SubActionParams +} + +// GetSubActionParamsOk returns a tuple with the SubActionParams field value +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoservice) GetSubActionParamsOk() (*RunConnectorSubactionPushtoserviceSubActionParams, bool) { + if o == nil { + return nil, false + } + return &o.SubActionParams, true +} + +// SetSubActionParams sets field value +func (o *RunConnectorSubactionPushtoservice) SetSubActionParams(v RunConnectorSubactionPushtoserviceSubActionParams) { + o.SubActionParams = v +} + +func (o RunConnectorSubactionPushtoservice) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionPushtoservice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["subAction"] = o.SubAction + toSerialize["subActionParams"] = o.SubActionParams + return toSerialize, nil +} + +type NullableRunConnectorSubactionPushtoservice struct { + value *RunConnectorSubactionPushtoservice + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoservice) Get() *RunConnectorSubactionPushtoservice { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoservice) Set(val *RunConnectorSubactionPushtoservice) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoservice) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoservice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoservice(val *RunConnectorSubactionPushtoservice) *NullableRunConnectorSubactionPushtoservice { + return &NullableRunConnectorSubactionPushtoservice{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoservice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoservice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params.go new file mode 100644 index 000000000..f9c3f4b6a --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params.go @@ -0,0 +1,161 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionPushtoserviceSubActionParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionPushtoserviceSubActionParams{} + +// RunConnectorSubactionPushtoserviceSubActionParams The set of configuration properties for the action. +type RunConnectorSubactionPushtoserviceSubActionParams struct { + // Additional information that is sent to Jira, ServiceNow ITSM, ServiceNow SecOps, or Swimlane. + Comments []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner `json:"comments,omitempty"` + Incident *RunConnectorSubactionPushtoserviceSubActionParamsIncident `json:"incident,omitempty"` +} + +// NewRunConnectorSubactionPushtoserviceSubActionParams instantiates a new RunConnectorSubactionPushtoserviceSubActionParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionPushtoserviceSubActionParams() *RunConnectorSubactionPushtoserviceSubActionParams { + this := RunConnectorSubactionPushtoserviceSubActionParams{} + return &this +} + +// NewRunConnectorSubactionPushtoserviceSubActionParamsWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionPushtoserviceSubActionParamsWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParams { + this := RunConnectorSubactionPushtoserviceSubActionParams{} + return &this +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetComments() []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner { + if o == nil || IsNil(o.Comments) { + var ret []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner + return ret + } + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetCommentsOk() ([]RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner and assigns it to the Comments field. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) SetComments(v []RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) { + o.Comments = v +} + +// GetIncident returns the Incident field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetIncident() RunConnectorSubactionPushtoserviceSubActionParamsIncident { + if o == nil || IsNil(o.Incident) { + var ret RunConnectorSubactionPushtoserviceSubActionParamsIncident + return ret + } + return *o.Incident +} + +// GetIncidentOk returns a tuple with the Incident field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) GetIncidentOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncident, bool) { + if o == nil || IsNil(o.Incident) { + return nil, false + } + return o.Incident, true +} + +// HasIncident returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) HasIncident() bool { + if o != nil && !IsNil(o.Incident) { + return true + } + + return false +} + +// SetIncident gets a reference to the given RunConnectorSubactionPushtoserviceSubActionParamsIncident and assigns it to the Incident field. +func (o *RunConnectorSubactionPushtoserviceSubActionParams) SetIncident(v RunConnectorSubactionPushtoserviceSubActionParamsIncident) { + o.Incident = &v +} + +func (o RunConnectorSubactionPushtoserviceSubActionParams) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionPushtoserviceSubActionParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Incident) { + toSerialize["incident"] = o.Incident + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParams struct { + value *RunConnectorSubactionPushtoserviceSubActionParams + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParams) Get() *RunConnectorSubactionPushtoserviceSubActionParams { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParams) Set(val *RunConnectorSubactionPushtoserviceSubActionParams) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParams) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParams(val *RunConnectorSubactionPushtoserviceSubActionParams) *NullableRunConnectorSubactionPushtoserviceSubActionParams { + return &NullableRunConnectorSubactionPushtoserviceSubActionParams{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_comments_inner.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_comments_inner.go new file mode 100644 index 000000000..ec94aaa3e --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_comments_inner.go @@ -0,0 +1,162 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner{} + +// RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner struct for RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner +type RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner struct { + // A comment related to the incident. For example, describe how to troubleshoot the issue. + Comment *string `json:"comment,omitempty"` + // A unique identifier for the comment. + CommentId *int32 `json:"commentId,omitempty"` +} + +// NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner() *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner { + this := RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner{} + return &this +} + +// NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInnerWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionPushtoserviceSubActionParamsCommentsInnerWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner { + this := RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner{} + return &this +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) SetComment(v string) { + o.Comment = &v +} + +// GetCommentId returns the CommentId field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetCommentId() int32 { + if o == nil || IsNil(o.CommentId) { + var ret int32 + return ret + } + return *o.CommentId +} + +// GetCommentIdOk returns a tuple with the CommentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) GetCommentIdOk() (*int32, bool) { + if o == nil || IsNil(o.CommentId) { + return nil, false + } + return o.CommentId, true +} + +// HasCommentId returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) HasCommentId() bool { + if o != nil && !IsNil(o.CommentId) { + return true + } + + return false +} + +// SetCommentId gets a reference to the given int32 and assigns it to the CommentId field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) SetCommentId(v int32) { + o.CommentId = &v +} + +func (o RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CommentId) { + toSerialize["commentId"] = o.CommentId + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner struct { + value *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) Get() *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) Set(val *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner(val *RunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) *NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner { + return &NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsCommentsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident.go new file mode 100644 index 000000000..a3e148ecc --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident.go @@ -0,0 +1,972 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the RunConnectorSubactionPushtoserviceSubActionParamsIncident type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RunConnectorSubactionPushtoserviceSubActionParamsIncident{} + +// RunConnectorSubactionPushtoserviceSubActionParamsIncident Information necessary to create or update a Jira, ServiceNow ITSM, ServiveNow SecOps, or Swimlane incident. +type RunConnectorSubactionPushtoserviceSubActionParamsIncident struct { + // The alert identifier for Swimlane connectors. + AlertId *string `json:"alertId,omitempty"` + // The case identifier for the incident for Swimlane connectors. + CaseId *string `json:"caseId,omitempty"` + // The case name for the incident for Swimlane connectors. + CaseName *string `json:"caseName,omitempty"` + // The category of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. + Category *string `json:"category,omitempty"` + // A descriptive label of the alert for correlation purposes for ServiceNow ITSM and ServiceNow SecOps connectors. + CorrelationDisplay *string `json:"correlation_display,omitempty"` + // The correlation identifier for the security incident for ServiceNow ITSM and ServiveNow SecOps connectors. Connectors using the same correlation ID are associated with the same ServiceNow incident. This value determines whether a new ServiceNow incident is created or an existing one is updated. Modifying this value is optional; if not modified, the rule ID and alert ID are combined as `{{ruleID}}:{{alert ID}}` to form the correlation ID value in ServiceNow. The maximum character length for this value is 100 characters. NOTE: Using the default configuration of `{{ruleID}}:{{alert ID}}` ensures that ServiceNow creates a separate incident record for every generated alert that uses a unique alert ID. If the rule generates multiple alerts that use the same alert IDs, ServiceNow creates and continually updates a single incident record for the alert. + CorrelationId *string `json:"correlation_id,omitempty"` + // The description of the incident for Jira, ServiceNow ITSM, ServiceNow SecOps, and Swimlane connectors. + Description *string `json:"description,omitempty"` + DestIp *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp `json:"dest_ip,omitempty"` + // The Jira, ServiceNow ITSM, or ServiceNow SecOps issue identifier. If present, the incident is updated. Otherwise, a new incident is created. + ExternalId *string `json:"externalId,omitempty"` + // The impact of the incident for ServiceNow ITSM connectors. + Impact *string `json:"impact,omitempty"` + // The type of incident for Jira connectors. For example, 10006. To obtain the list of valid values, set `subAction` to `issueTypes`. + IssueType *int32 `json:"issueType,omitempty"` + // The labels for the incident for Jira connectors. NOTE: Labels cannot contain spaces. + Labels []string `json:"labels,omitempty"` + MalwareHash *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash `json:"malware_hash,omitempty"` + MalwareUrl *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl `json:"malware_url,omitempty"` + // The ID or key of the parent issue for Jira connectors. Applies only to `Sub-task` types of issues. + Parent *string `json:"parent,omitempty"` + // The priority of the incident in Jira and ServiceNow SecOps connectors. + Priority *string `json:"priority,omitempty"` + // The rule name for Swimlane connectors. + RuleName *string `json:"ruleName,omitempty"` + // The severity of the incident for ServiceNow ITSM and Swimlane connectors. + Severity *string `json:"severity,omitempty"` + // A short description of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. It is used for searching the contents of the knowledge base. + ShortDescription *string `json:"short_description,omitempty"` + SourceIp *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp `json:"source_ip,omitempty"` + // The subcategory of the incident for ServiceNow ITSM and ServiceNow SecOps connectors. + Subcategory *string `json:"subcategory,omitempty"` + // A summary of the incident for Jira connectors. + Summary *string `json:"summary,omitempty"` + // A title for the incident for Jira connectors. It is used for searching the contents of the knowledge base. + Title *string `json:"title,omitempty"` + // The urgency of the incident for ServiceNow ITSM connectors. + Urgency *string `json:"urgency,omitempty"` +} + +// NewRunConnectorSubactionPushtoserviceSubActionParamsIncident instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncident object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRunConnectorSubactionPushtoserviceSubActionParamsIncident() *RunConnectorSubactionPushtoserviceSubActionParamsIncident { + this := RunConnectorSubactionPushtoserviceSubActionParamsIncident{} + return &this +} + +// NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentWithDefaults instantiates a new RunConnectorSubactionPushtoserviceSubActionParamsIncident object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRunConnectorSubactionPushtoserviceSubActionParamsIncidentWithDefaults() *RunConnectorSubactionPushtoserviceSubActionParamsIncident { + this := RunConnectorSubactionPushtoserviceSubActionParamsIncident{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetAlertId() string { + if o == nil || IsNil(o.AlertId) { + var ret string + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetAlertIdOk() (*string, bool) { + if o == nil || IsNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasAlertId() bool { + if o != nil && !IsNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given string and assigns it to the AlertId field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetAlertId(v string) { + o.AlertId = &v +} + +// GetCaseId returns the CaseId field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseId() string { + if o == nil || IsNil(o.CaseId) { + var ret string + return ret + } + return *o.CaseId +} + +// GetCaseIdOk returns a tuple with the CaseId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseIdOk() (*string, bool) { + if o == nil || IsNil(o.CaseId) { + return nil, false + } + return o.CaseId, true +} + +// HasCaseId returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCaseId() bool { + if o != nil && !IsNil(o.CaseId) { + return true + } + + return false +} + +// SetCaseId gets a reference to the given string and assigns it to the CaseId field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCaseId(v string) { + o.CaseId = &v +} + +// GetCaseName returns the CaseName field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseName() string { + if o == nil || IsNil(o.CaseName) { + var ret string + return ret + } + return *o.CaseName +} + +// GetCaseNameOk returns a tuple with the CaseName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCaseNameOk() (*string, bool) { + if o == nil || IsNil(o.CaseName) { + return nil, false + } + return o.CaseName, true +} + +// HasCaseName returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCaseName() bool { + if o != nil && !IsNil(o.CaseName) { + return true + } + + return false +} + +// SetCaseName gets a reference to the given string and assigns it to the CaseName field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCaseName(v string) { + o.CaseName = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCategory() string { + if o == nil || IsNil(o.Category) { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCategoryOk() (*string, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCategory(v string) { + o.Category = &v +} + +// GetCorrelationDisplay returns the CorrelationDisplay field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationDisplay() string { + if o == nil || IsNil(o.CorrelationDisplay) { + var ret string + return ret + } + return *o.CorrelationDisplay +} + +// GetCorrelationDisplayOk returns a tuple with the CorrelationDisplay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationDisplayOk() (*string, bool) { + if o == nil || IsNil(o.CorrelationDisplay) { + return nil, false + } + return o.CorrelationDisplay, true +} + +// HasCorrelationDisplay returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCorrelationDisplay() bool { + if o != nil && !IsNil(o.CorrelationDisplay) { + return true + } + + return false +} + +// SetCorrelationDisplay gets a reference to the given string and assigns it to the CorrelationDisplay field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCorrelationDisplay(v string) { + o.CorrelationDisplay = &v +} + +// GetCorrelationId returns the CorrelationId field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationId() string { + if o == nil || IsNil(o.CorrelationId) { + var ret string + return ret + } + return *o.CorrelationId +} + +// GetCorrelationIdOk returns a tuple with the CorrelationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetCorrelationIdOk() (*string, bool) { + if o == nil || IsNil(o.CorrelationId) { + return nil, false + } + return o.CorrelationId, true +} + +// HasCorrelationId returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasCorrelationId() bool { + if o != nil && !IsNil(o.CorrelationId) { + return true + } + + return false +} + +// SetCorrelationId gets a reference to the given string and assigns it to the CorrelationId field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetCorrelationId(v string) { + o.CorrelationId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetDescription(v string) { + o.Description = &v +} + +// GetDestIp returns the DestIp field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDestIp() RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp { + if o == nil || IsNil(o.DestIp) { + var ret RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp + return ret + } + return *o.DestIp +} + +// GetDestIpOk returns a tuple with the DestIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetDestIpOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp, bool) { + if o == nil || IsNil(o.DestIp) { + return nil, false + } + return o.DestIp, true +} + +// HasDestIp returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasDestIp() bool { + if o != nil && !IsNil(o.DestIp) { + return true + } + + return false +} + +// SetDestIp gets a reference to the given RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp and assigns it to the DestIp field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetDestIp(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) { + o.DestIp = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetImpact returns the Impact field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetImpact() string { + if o == nil || IsNil(o.Impact) { + var ret string + return ret + } + return *o.Impact +} + +// GetImpactOk returns a tuple with the Impact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetImpactOk() (*string, bool) { + if o == nil || IsNil(o.Impact) { + return nil, false + } + return o.Impact, true +} + +// HasImpact returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasImpact() bool { + if o != nil && !IsNil(o.Impact) { + return true + } + + return false +} + +// SetImpact gets a reference to the given string and assigns it to the Impact field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetImpact(v string) { + o.Impact = &v +} + +// GetIssueType returns the IssueType field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetIssueType() int32 { + if o == nil || IsNil(o.IssueType) { + var ret int32 + return ret + } + return *o.IssueType +} + +// GetIssueTypeOk returns a tuple with the IssueType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetIssueTypeOk() (*int32, bool) { + if o == nil || IsNil(o.IssueType) { + return nil, false + } + return o.IssueType, true +} + +// HasIssueType returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasIssueType() bool { + if o != nil && !IsNil(o.IssueType) { + return true + } + + return false +} + +// SetIssueType gets a reference to the given int32 and assigns it to the IssueType field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetIssueType(v int32) { + o.IssueType = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetLabels() []string { + if o == nil || IsNil(o.Labels) { + var ret []string + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetLabelsOk() ([]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetLabels(v []string) { + o.Labels = v +} + +// GetMalwareHash returns the MalwareHash field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareHash() RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash { + if o == nil || IsNil(o.MalwareHash) { + var ret RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash + return ret + } + return *o.MalwareHash +} + +// GetMalwareHashOk returns a tuple with the MalwareHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareHashOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash, bool) { + if o == nil || IsNil(o.MalwareHash) { + return nil, false + } + return o.MalwareHash, true +} + +// HasMalwareHash returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasMalwareHash() bool { + if o != nil && !IsNil(o.MalwareHash) { + return true + } + + return false +} + +// SetMalwareHash gets a reference to the given RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash and assigns it to the MalwareHash field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetMalwareHash(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) { + o.MalwareHash = &v +} + +// GetMalwareUrl returns the MalwareUrl field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareUrl() RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl { + if o == nil || IsNil(o.MalwareUrl) { + var ret RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl + return ret + } + return *o.MalwareUrl +} + +// GetMalwareUrlOk returns a tuple with the MalwareUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetMalwareUrlOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl, bool) { + if o == nil || IsNil(o.MalwareUrl) { + return nil, false + } + return o.MalwareUrl, true +} + +// HasMalwareUrl returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasMalwareUrl() bool { + if o != nil && !IsNil(o.MalwareUrl) { + return true + } + + return false +} + +// SetMalwareUrl gets a reference to the given RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl and assigns it to the MalwareUrl field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetMalwareUrl(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) { + o.MalwareUrl = &v +} + +// GetParent returns the Parent field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetParent() string { + if o == nil || IsNil(o.Parent) { + var ret string + return ret + } + return *o.Parent +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetParentOk() (*string, bool) { + if o == nil || IsNil(o.Parent) { + return nil, false + } + return o.Parent, true +} + +// HasParent returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasParent() bool { + if o != nil && !IsNil(o.Parent) { + return true + } + + return false +} + +// SetParent gets a reference to the given string and assigns it to the Parent field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetParent(v string) { + o.Parent = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetPriority() string { + if o == nil || IsNil(o.Priority) { + var ret string + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetPriorityOk() (*string, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given string and assigns it to the Priority field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetPriority(v string) { + o.Priority = &v +} + +// GetRuleName returns the RuleName field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetRuleName() string { + if o == nil || IsNil(o.RuleName) { + var ret string + return ret + } + return *o.RuleName +} + +// GetRuleNameOk returns a tuple with the RuleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetRuleNameOk() (*string, bool) { + if o == nil || IsNil(o.RuleName) { + return nil, false + } + return o.RuleName, true +} + +// HasRuleName returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasRuleName() bool { + if o != nil && !IsNil(o.RuleName) { + return true + } + + return false +} + +// SetRuleName gets a reference to the given string and assigns it to the RuleName field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetRuleName(v string) { + o.RuleName = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSeverity() string { + if o == nil || IsNil(o.Severity) { + var ret string + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSeverityOk() (*string, bool) { + if o == nil || IsNil(o.Severity) { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSeverity() bool { + if o != nil && !IsNil(o.Severity) { + return true + } + + return false +} + +// SetSeverity gets a reference to the given string and assigns it to the Severity field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSeverity(v string) { + o.Severity = &v +} + +// GetShortDescription returns the ShortDescription field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetShortDescription() string { + if o == nil || IsNil(o.ShortDescription) { + var ret string + return ret + } + return *o.ShortDescription +} + +// GetShortDescriptionOk returns a tuple with the ShortDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetShortDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ShortDescription) { + return nil, false + } + return o.ShortDescription, true +} + +// HasShortDescription returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasShortDescription() bool { + if o != nil && !IsNil(o.ShortDescription) { + return true + } + + return false +} + +// SetShortDescription gets a reference to the given string and assigns it to the ShortDescription field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetShortDescription(v string) { + o.ShortDescription = &v +} + +// GetSourceIp returns the SourceIp field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSourceIp() RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp { + if o == nil || IsNil(o.SourceIp) { + var ret RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp + return ret + } + return *o.SourceIp +} + +// GetSourceIpOk returns a tuple with the SourceIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSourceIpOk() (*RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp, bool) { + if o == nil || IsNil(o.SourceIp) { + return nil, false + } + return o.SourceIp, true +} + +// HasSourceIp returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSourceIp() bool { + if o != nil && !IsNil(o.SourceIp) { + return true + } + + return false +} + +// SetSourceIp gets a reference to the given RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp and assigns it to the SourceIp field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSourceIp(v RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) { + o.SourceIp = &v +} + +// GetSubcategory returns the Subcategory field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSubcategory() string { + if o == nil || IsNil(o.Subcategory) { + var ret string + return ret + } + return *o.Subcategory +} + +// GetSubcategoryOk returns a tuple with the Subcategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSubcategoryOk() (*string, bool) { + if o == nil || IsNil(o.Subcategory) { + return nil, false + } + return o.Subcategory, true +} + +// HasSubcategory returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSubcategory() bool { + if o != nil && !IsNil(o.Subcategory) { + return true + } + + return false +} + +// SetSubcategory gets a reference to the given string and assigns it to the Subcategory field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSubcategory(v string) { + o.Subcategory = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSummary() string { + if o == nil || IsNil(o.Summary) { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetSummaryOk() (*string, bool) { + if o == nil || IsNil(o.Summary) { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasSummary() bool { + if o != nil && !IsNil(o.Summary) { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetSummary(v string) { + o.Summary = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetTitle(v string) { + o.Title = &v +} + +// GetUrgency returns the Urgency field value if set, zero value otherwise. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetUrgency() string { + if o == nil || IsNil(o.Urgency) { + var ret string + return ret + } + return *o.Urgency +} + +// GetUrgencyOk returns a tuple with the Urgency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) GetUrgencyOk() (*string, bool) { + if o == nil || IsNil(o.Urgency) { + return nil, false + } + return o.Urgency, true +} + +// HasUrgency returns a boolean if a field has been set. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) HasUrgency() bool { + if o != nil && !IsNil(o.Urgency) { + return true + } + + return false +} + +// SetUrgency gets a reference to the given string and assigns it to the Urgency field. +func (o *RunConnectorSubactionPushtoserviceSubActionParamsIncident) SetUrgency(v string) { + o.Urgency = &v +} + +func (o RunConnectorSubactionPushtoserviceSubActionParamsIncident) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RunConnectorSubactionPushtoserviceSubActionParamsIncident) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlertId) { + toSerialize["alertId"] = o.AlertId + } + if !IsNil(o.CaseId) { + toSerialize["caseId"] = o.CaseId + } + if !IsNil(o.CaseName) { + toSerialize["caseName"] = o.CaseName + } + if !IsNil(o.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.CorrelationDisplay) { + toSerialize["correlation_display"] = o.CorrelationDisplay + } + if !IsNil(o.CorrelationId) { + toSerialize["correlation_id"] = o.CorrelationId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DestIp) { + toSerialize["dest_ip"] = o.DestIp + } + if !IsNil(o.ExternalId) { + toSerialize["externalId"] = o.ExternalId + } + if !IsNil(o.Impact) { + toSerialize["impact"] = o.Impact + } + if !IsNil(o.IssueType) { + toSerialize["issueType"] = o.IssueType + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + if !IsNil(o.MalwareHash) { + toSerialize["malware_hash"] = o.MalwareHash + } + if !IsNil(o.MalwareUrl) { + toSerialize["malware_url"] = o.MalwareUrl + } + if !IsNil(o.Parent) { + toSerialize["parent"] = o.Parent + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.RuleName) { + toSerialize["ruleName"] = o.RuleName + } + if !IsNil(o.Severity) { + toSerialize["severity"] = o.Severity + } + if !IsNil(o.ShortDescription) { + toSerialize["short_description"] = o.ShortDescription + } + if !IsNil(o.SourceIp) { + toSerialize["source_ip"] = o.SourceIp + } + if !IsNil(o.Subcategory) { + toSerialize["subcategory"] = o.Subcategory + } + if !IsNil(o.Summary) { + toSerialize["summary"] = o.Summary + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Urgency) { + toSerialize["urgency"] = o.Urgency + } + return toSerialize, nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident struct { + value *RunConnectorSubactionPushtoserviceSubActionParamsIncident + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident) Get() *RunConnectorSubactionPushtoserviceSubActionParamsIncident { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident) Set(val *RunConnectorSubactionPushtoserviceSubActionParamsIncident) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParamsIncident(val *RunConnectorSubactionPushtoserviceSubActionParamsIncident) *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident { + return &NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncident) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_dest_ip.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_dest_ip.go new file mode 100644 index 000000000..0d23ee0c3 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_dest_ip.go @@ -0,0 +1,145 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp - A list of destination IP addresses related to the security incident for ServiceNow SecOps connectors. The IPs are added as observables to the security incident. +type RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp struct { + ArrayOfString *[]string + String *string +} + +// []stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp is a convenience function that returns []string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp +func ArrayOfStringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp(v *[]string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp{ + ArrayOfString: v, + } +} + +// stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp is a convenience function that returns string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp +func StringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp(v *string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = newStrictDecoder(data).Decode(&dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp struct { + value *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) Get() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) Set(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp { + return &NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentDestIp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_hash.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_hash.go new file mode 100644 index 000000000..7d9466ab7 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_hash.go @@ -0,0 +1,145 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash - A list of malware hashes related to the security incident for ServiceNow SecOps connectors. The hashes are added as observables to the security incident. +type RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash struct { + ArrayOfString *[]string + String *string +} + +// []stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash is a convenience function that returns []string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash +func ArrayOfStringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash(v *[]string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash{ + ArrayOfString: v, + } +} + +// stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash is a convenience function that returns string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash +func StringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash(v *string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = newStrictDecoder(data).Decode(&dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash struct { + value *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) Get() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) Set(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash { + return &NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareHash) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_url.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_url.go new file mode 100644 index 000000000..bbd2894b2 --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_malware_url.go @@ -0,0 +1,145 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl - A list of malware URLs related to the security incident for ServiceNow SecOps connectors. The URLs are added as observables to the security incident. +type RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl struct { + ArrayOfString *[]string + String *string +} + +// []stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl is a convenience function that returns []string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl +func ArrayOfStringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl(v *[]string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl{ + ArrayOfString: v, + } +} + +// stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl is a convenience function that returns string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl +func StringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl(v *string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = newStrictDecoder(data).Decode(&dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl struct { + value *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) Get() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) Set(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl { + return &NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentMalwareUrl) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_source_ip.go b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_source_ip.go new file mode 100644 index 000000000..2799e237b --- /dev/null +++ b/generated/kibanaactions/model_run_connector_subaction_pushtoservice_sub_action_params_incident_source_ip.go @@ -0,0 +1,145 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp - A list of source IP addresses related to the security incident for ServiceNow SecOps connectors. The IPs are added as observables to the security incident. +type RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp struct { + ArrayOfString *[]string + String *string +} + +// []stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp is a convenience function that returns []string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp +func ArrayOfStringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp(v *[]string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp{ + ArrayOfString: v, + } +} + +// stringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp is a convenience function that returns string wrapped in RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp +func StringAsRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp(v *string) RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp { + return RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp{ + String: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfString + err = newStrictDecoder(data).Decode(&dst.ArrayOfString) + if err == nil { + jsonArrayOfString, _ := json.Marshal(dst.ArrayOfString) + if string(jsonArrayOfString) == "{}" { // empty struct + dst.ArrayOfString = nil + } else { + match++ + } + } else { + dst.ArrayOfString = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + match++ + } + } else { + dst.String = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfString = nil + dst.String = nil + + return fmt.Errorf("data matches more than one schema in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) MarshalJSON() ([]byte, error) { + if src.ArrayOfString != nil { + return json.Marshal(&src.ArrayOfString) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ArrayOfString != nil { + return obj.ArrayOfString + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +type NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp struct { + value *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp + isSet bool +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) Get() *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp { + return v.value +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) Set(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) { + v.value = val + v.isSet = true +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) IsSet() bool { + return v.isSet +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp(val *RunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp { + return &NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp{value: val, isSet: true} +} + +func (v NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRunConnectorSubactionPushtoserviceSubActionParamsIncidentSourceIp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_secrets_properties_cases_webhook.go b/generated/kibanaactions/model_secrets_properties_cases_webhook.go new file mode 100644 index 000000000..9c1123320 --- /dev/null +++ b/generated/kibanaactions/model_secrets_properties_cases_webhook.go @@ -0,0 +1,162 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SecretsPropertiesCasesWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecretsPropertiesCasesWebhook{} + +// SecretsPropertiesCasesWebhook struct for SecretsPropertiesCasesWebhook +type SecretsPropertiesCasesWebhook struct { + // The password for HTTP basic authentication. If `hasAuth` is set to `true`, this property is required. + Password *string `json:"password,omitempty"` + // The username for HTTP basic authentication. If `hasAuth` is set to `true`, this property is required. + User *string `json:"user,omitempty"` +} + +// NewSecretsPropertiesCasesWebhook instantiates a new SecretsPropertiesCasesWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretsPropertiesCasesWebhook() *SecretsPropertiesCasesWebhook { + this := SecretsPropertiesCasesWebhook{} + return &this +} + +// NewSecretsPropertiesCasesWebhookWithDefaults instantiates a new SecretsPropertiesCasesWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretsPropertiesCasesWebhookWithDefaults() *SecretsPropertiesCasesWebhook { + this := SecretsPropertiesCasesWebhook{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *SecretsPropertiesCasesWebhook) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesCasesWebhook) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *SecretsPropertiesCasesWebhook) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *SecretsPropertiesCasesWebhook) SetPassword(v string) { + o.Password = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *SecretsPropertiesCasesWebhook) GetUser() string { + if o == nil || IsNil(o.User) { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesCasesWebhook) GetUserOk() (*string, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *SecretsPropertiesCasesWebhook) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *SecretsPropertiesCasesWebhook) SetUser(v string) { + o.User = &v +} + +func (o SecretsPropertiesCasesWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecretsPropertiesCasesWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + return toSerialize, nil +} + +type NullableSecretsPropertiesCasesWebhook struct { + value *SecretsPropertiesCasesWebhook + isSet bool +} + +func (v NullableSecretsPropertiesCasesWebhook) Get() *SecretsPropertiesCasesWebhook { + return v.value +} + +func (v *NullableSecretsPropertiesCasesWebhook) Set(val *SecretsPropertiesCasesWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableSecretsPropertiesCasesWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableSecretsPropertiesCasesWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecretsPropertiesCasesWebhook(val *SecretsPropertiesCasesWebhook) *NullableSecretsPropertiesCasesWebhook { + return &NullableSecretsPropertiesCasesWebhook{value: val, isSet: true} +} + +func (v NullableSecretsPropertiesCasesWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecretsPropertiesCasesWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_secrets_properties_jira.go b/generated/kibanaactions/model_secrets_properties_jira.go new file mode 100644 index 000000000..956f78eb0 --- /dev/null +++ b/generated/kibanaactions/model_secrets_properties_jira.go @@ -0,0 +1,144 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SecretsPropertiesJira type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecretsPropertiesJira{} + +// SecretsPropertiesJira Defines secrets for connectors when type is `.jira`. +type SecretsPropertiesJira struct { + // The Jira API authentication token for HTTP basic authentication. + ApiToken string `json:"apiToken"` + // The account email for HTTP Basic authentication. + Email string `json:"email"` +} + +// NewSecretsPropertiesJira instantiates a new SecretsPropertiesJira object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretsPropertiesJira(apiToken string, email string) *SecretsPropertiesJira { + this := SecretsPropertiesJira{} + this.ApiToken = apiToken + this.Email = email + return &this +} + +// NewSecretsPropertiesJiraWithDefaults instantiates a new SecretsPropertiesJira object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretsPropertiesJiraWithDefaults() *SecretsPropertiesJira { + this := SecretsPropertiesJira{} + return &this +} + +// GetApiToken returns the ApiToken field value +func (o *SecretsPropertiesJira) GetApiToken() string { + if o == nil { + var ret string + return ret + } + + return o.ApiToken +} + +// GetApiTokenOk returns a tuple with the ApiToken field value +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesJira) GetApiTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiToken, true +} + +// SetApiToken sets field value +func (o *SecretsPropertiesJira) SetApiToken(v string) { + o.ApiToken = v +} + +// GetEmail returns the Email field value +func (o *SecretsPropertiesJira) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesJira) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *SecretsPropertiesJira) SetEmail(v string) { + o.Email = v +} + +func (o SecretsPropertiesJira) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecretsPropertiesJira) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiToken"] = o.ApiToken + toSerialize["email"] = o.Email + return toSerialize, nil +} + +type NullableSecretsPropertiesJira struct { + value *SecretsPropertiesJira + isSet bool +} + +func (v NullableSecretsPropertiesJira) Get() *SecretsPropertiesJira { + return v.value +} + +func (v *NullableSecretsPropertiesJira) Set(val *SecretsPropertiesJira) { + v.value = val + v.isSet = true +} + +func (v NullableSecretsPropertiesJira) IsSet() bool { + return v.isSet +} + +func (v *NullableSecretsPropertiesJira) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecretsPropertiesJira(val *SecretsPropertiesJira) *NullableSecretsPropertiesJira { + return &NullableSecretsPropertiesJira{value: val, isSet: true} +} + +func (v NullableSecretsPropertiesJira) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecretsPropertiesJira) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_secrets_properties_opsgenie.go b/generated/kibanaactions/model_secrets_properties_opsgenie.go new file mode 100644 index 000000000..7374f134e --- /dev/null +++ b/generated/kibanaactions/model_secrets_properties_opsgenie.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SecretsPropertiesOpsgenie type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecretsPropertiesOpsgenie{} + +// SecretsPropertiesOpsgenie Defines secrets for connectors when type is `.opsgenie`. +type SecretsPropertiesOpsgenie struct { + // The Opsgenie API authentication key for HTTP Basic authentication. + ApiKey string `json:"apiKey"` +} + +// NewSecretsPropertiesOpsgenie instantiates a new SecretsPropertiesOpsgenie object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretsPropertiesOpsgenie(apiKey string) *SecretsPropertiesOpsgenie { + this := SecretsPropertiesOpsgenie{} + this.ApiKey = apiKey + return &this +} + +// NewSecretsPropertiesOpsgenieWithDefaults instantiates a new SecretsPropertiesOpsgenie object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretsPropertiesOpsgenieWithDefaults() *SecretsPropertiesOpsgenie { + this := SecretsPropertiesOpsgenie{} + return &this +} + +// GetApiKey returns the ApiKey field value +func (o *SecretsPropertiesOpsgenie) GetApiKey() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKey +} + +// GetApiKeyOk returns a tuple with the ApiKey field value +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesOpsgenie) GetApiKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKey, true +} + +// SetApiKey sets field value +func (o *SecretsPropertiesOpsgenie) SetApiKey(v string) { + o.ApiKey = v +} + +func (o SecretsPropertiesOpsgenie) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecretsPropertiesOpsgenie) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiKey"] = o.ApiKey + return toSerialize, nil +} + +type NullableSecretsPropertiesOpsgenie struct { + value *SecretsPropertiesOpsgenie + isSet bool +} + +func (v NullableSecretsPropertiesOpsgenie) Get() *SecretsPropertiesOpsgenie { + return v.value +} + +func (v *NullableSecretsPropertiesOpsgenie) Set(val *SecretsPropertiesOpsgenie) { + v.value = val + v.isSet = true +} + +func (v NullableSecretsPropertiesOpsgenie) IsSet() bool { + return v.isSet +} + +func (v *NullableSecretsPropertiesOpsgenie) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecretsPropertiesOpsgenie(val *SecretsPropertiesOpsgenie) *NullableSecretsPropertiesOpsgenie { + return &NullableSecretsPropertiesOpsgenie{value: val, isSet: true} +} + +func (v NullableSecretsPropertiesOpsgenie) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecretsPropertiesOpsgenie) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_secrets_properties_resilient.go b/generated/kibanaactions/model_secrets_properties_resilient.go new file mode 100644 index 000000000..2ad50115c --- /dev/null +++ b/generated/kibanaactions/model_secrets_properties_resilient.go @@ -0,0 +1,144 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SecretsPropertiesResilient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecretsPropertiesResilient{} + +// SecretsPropertiesResilient Defines secrets for connectors when type is `.resilient`. +type SecretsPropertiesResilient struct { + // The authentication key ID for HTTP Basic authentication. + ApiKeyId string `json:"apiKeyId"` + // The authentication key secret for HTTP Basic authentication. + ApiKeySecret string `json:"apiKeySecret"` +} + +// NewSecretsPropertiesResilient instantiates a new SecretsPropertiesResilient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretsPropertiesResilient(apiKeyId string, apiKeySecret string) *SecretsPropertiesResilient { + this := SecretsPropertiesResilient{} + this.ApiKeyId = apiKeyId + this.ApiKeySecret = apiKeySecret + return &this +} + +// NewSecretsPropertiesResilientWithDefaults instantiates a new SecretsPropertiesResilient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretsPropertiesResilientWithDefaults() *SecretsPropertiesResilient { + this := SecretsPropertiesResilient{} + return &this +} + +// GetApiKeyId returns the ApiKeyId field value +func (o *SecretsPropertiesResilient) GetApiKeyId() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKeyId +} + +// GetApiKeyIdOk returns a tuple with the ApiKeyId field value +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesResilient) GetApiKeyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKeyId, true +} + +// SetApiKeyId sets field value +func (o *SecretsPropertiesResilient) SetApiKeyId(v string) { + o.ApiKeyId = v +} + +// GetApiKeySecret returns the ApiKeySecret field value +func (o *SecretsPropertiesResilient) GetApiKeySecret() string { + if o == nil { + var ret string + return ret + } + + return o.ApiKeySecret +} + +// GetApiKeySecretOk returns a tuple with the ApiKeySecret field value +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesResilient) GetApiKeySecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiKeySecret, true +} + +// SetApiKeySecret sets field value +func (o *SecretsPropertiesResilient) SetApiKeySecret(v string) { + o.ApiKeySecret = v +} + +func (o SecretsPropertiesResilient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecretsPropertiesResilient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["apiKeyId"] = o.ApiKeyId + toSerialize["apiKeySecret"] = o.ApiKeySecret + return toSerialize, nil +} + +type NullableSecretsPropertiesResilient struct { + value *SecretsPropertiesResilient + isSet bool +} + +func (v NullableSecretsPropertiesResilient) Get() *SecretsPropertiesResilient { + return v.value +} + +func (v *NullableSecretsPropertiesResilient) Set(val *SecretsPropertiesResilient) { + v.value = val + v.isSet = true +} + +func (v NullableSecretsPropertiesResilient) IsSet() bool { + return v.isSet +} + +func (v *NullableSecretsPropertiesResilient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecretsPropertiesResilient(val *SecretsPropertiesResilient) *NullableSecretsPropertiesResilient { + return &NullableSecretsPropertiesResilient{value: val, isSet: true} +} + +func (v NullableSecretsPropertiesResilient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecretsPropertiesResilient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_secrets_properties_servicenow.go b/generated/kibanaactions/model_secrets_properties_servicenow.go new file mode 100644 index 000000000..34a1817d1 --- /dev/null +++ b/generated/kibanaactions/model_secrets_properties_servicenow.go @@ -0,0 +1,273 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SecretsPropertiesServicenow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecretsPropertiesServicenow{} + +// SecretsPropertiesServicenow Defines secrets for connectors when type is `.servicenow`, `.servicenow-sir`, or `.servicenow-itom`. +type SecretsPropertiesServicenow struct { + // The client secret assigned to your OAuth application. This property is required when `isOAuth` is `true`. + ClientSecret *string `json:"clientSecret,omitempty"` + // The password for HTTP basic authentication. This property is required when `isOAuth` is `false`. + Password *string `json:"password,omitempty"` + // The RSA private key that you created for use in ServiceNow. This property is required when `isOAuth` is `true`. + PrivateKey *string `json:"privateKey,omitempty"` + // The password for the RSA private key. This property is required when `isOAuth` is `true` and you set a password on your private key. + PrivateKeyPassword *string `json:"privateKeyPassword,omitempty"` + // The username for HTTP basic authentication. This property is required when `isOAuth` is `false`. + Username *string `json:"username,omitempty"` +} + +// NewSecretsPropertiesServicenow instantiates a new SecretsPropertiesServicenow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretsPropertiesServicenow() *SecretsPropertiesServicenow { + this := SecretsPropertiesServicenow{} + return &this +} + +// NewSecretsPropertiesServicenowWithDefaults instantiates a new SecretsPropertiesServicenow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretsPropertiesServicenowWithDefaults() *SecretsPropertiesServicenow { + this := SecretsPropertiesServicenow{} + return &this +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *SecretsPropertiesServicenow) GetClientSecret() string { + if o == nil || IsNil(o.ClientSecret) { + var ret string + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesServicenow) GetClientSecretOk() (*string, bool) { + if o == nil || IsNil(o.ClientSecret) { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *SecretsPropertiesServicenow) HasClientSecret() bool { + if o != nil && !IsNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. +func (o *SecretsPropertiesServicenow) SetClientSecret(v string) { + o.ClientSecret = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *SecretsPropertiesServicenow) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesServicenow) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *SecretsPropertiesServicenow) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *SecretsPropertiesServicenow) SetPassword(v string) { + o.Password = &v +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. +func (o *SecretsPropertiesServicenow) GetPrivateKey() string { + if o == nil || IsNil(o.PrivateKey) { + var ret string + return ret + } + return *o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesServicenow) GetPrivateKeyOk() (*string, bool) { + if o == nil || IsNil(o.PrivateKey) { + return nil, false + } + return o.PrivateKey, true +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *SecretsPropertiesServicenow) HasPrivateKey() bool { + if o != nil && !IsNil(o.PrivateKey) { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field. +func (o *SecretsPropertiesServicenow) SetPrivateKey(v string) { + o.PrivateKey = &v +} + +// GetPrivateKeyPassword returns the PrivateKeyPassword field value if set, zero value otherwise. +func (o *SecretsPropertiesServicenow) GetPrivateKeyPassword() string { + if o == nil || IsNil(o.PrivateKeyPassword) { + var ret string + return ret + } + return *o.PrivateKeyPassword +} + +// GetPrivateKeyPasswordOk returns a tuple with the PrivateKeyPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesServicenow) GetPrivateKeyPasswordOk() (*string, bool) { + if o == nil || IsNil(o.PrivateKeyPassword) { + return nil, false + } + return o.PrivateKeyPassword, true +} + +// HasPrivateKeyPassword returns a boolean if a field has been set. +func (o *SecretsPropertiesServicenow) HasPrivateKeyPassword() bool { + if o != nil && !IsNil(o.PrivateKeyPassword) { + return true + } + + return false +} + +// SetPrivateKeyPassword gets a reference to the given string and assigns it to the PrivateKeyPassword field. +func (o *SecretsPropertiesServicenow) SetPrivateKeyPassword(v string) { + o.PrivateKeyPassword = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SecretsPropertiesServicenow) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesServicenow) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *SecretsPropertiesServicenow) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *SecretsPropertiesServicenow) SetUsername(v string) { + o.Username = &v +} + +func (o SecretsPropertiesServicenow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecretsPropertiesServicenow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClientSecret) { + toSerialize["clientSecret"] = o.ClientSecret + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.PrivateKey) { + toSerialize["privateKey"] = o.PrivateKey + } + if !IsNil(o.PrivateKeyPassword) { + toSerialize["privateKeyPassword"] = o.PrivateKeyPassword + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSecretsPropertiesServicenow struct { + value *SecretsPropertiesServicenow + isSet bool +} + +func (v NullableSecretsPropertiesServicenow) Get() *SecretsPropertiesServicenow { + return v.value +} + +func (v *NullableSecretsPropertiesServicenow) Set(val *SecretsPropertiesServicenow) { + v.value = val + v.isSet = true +} + +func (v NullableSecretsPropertiesServicenow) IsSet() bool { + return v.isSet +} + +func (v *NullableSecretsPropertiesServicenow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecretsPropertiesServicenow(val *SecretsPropertiesServicenow) *NullableSecretsPropertiesServicenow { + return &NullableSecretsPropertiesServicenow{value: val, isSet: true} +} + +func (v NullableSecretsPropertiesServicenow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecretsPropertiesServicenow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_secrets_properties_swimlane.go b/generated/kibanaactions/model_secrets_properties_swimlane.go new file mode 100644 index 000000000..9f27c2fcc --- /dev/null +++ b/generated/kibanaactions/model_secrets_properties_swimlane.go @@ -0,0 +1,125 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SecretsPropertiesSwimlane type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecretsPropertiesSwimlane{} + +// SecretsPropertiesSwimlane Defines secrets for connectors when type is `.swimlane`. +type SecretsPropertiesSwimlane struct { + // Swimlane API authentication token. + ApiToken *string `json:"apiToken,omitempty"` +} + +// NewSecretsPropertiesSwimlane instantiates a new SecretsPropertiesSwimlane object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretsPropertiesSwimlane() *SecretsPropertiesSwimlane { + this := SecretsPropertiesSwimlane{} + return &this +} + +// NewSecretsPropertiesSwimlaneWithDefaults instantiates a new SecretsPropertiesSwimlane object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretsPropertiesSwimlaneWithDefaults() *SecretsPropertiesSwimlane { + this := SecretsPropertiesSwimlane{} + return &this +} + +// GetApiToken returns the ApiToken field value if set, zero value otherwise. +func (o *SecretsPropertiesSwimlane) GetApiToken() string { + if o == nil || IsNil(o.ApiToken) { + var ret string + return ret + } + return *o.ApiToken +} + +// GetApiTokenOk returns a tuple with the ApiToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretsPropertiesSwimlane) GetApiTokenOk() (*string, bool) { + if o == nil || IsNil(o.ApiToken) { + return nil, false + } + return o.ApiToken, true +} + +// HasApiToken returns a boolean if a field has been set. +func (o *SecretsPropertiesSwimlane) HasApiToken() bool { + if o != nil && !IsNil(o.ApiToken) { + return true + } + + return false +} + +// SetApiToken gets a reference to the given string and assigns it to the ApiToken field. +func (o *SecretsPropertiesSwimlane) SetApiToken(v string) { + o.ApiToken = &v +} + +func (o SecretsPropertiesSwimlane) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecretsPropertiesSwimlane) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApiToken) { + toSerialize["apiToken"] = o.ApiToken + } + return toSerialize, nil +} + +type NullableSecretsPropertiesSwimlane struct { + value *SecretsPropertiesSwimlane + isSet bool +} + +func (v NullableSecretsPropertiesSwimlane) Get() *SecretsPropertiesSwimlane { + return v.value +} + +func (v *NullableSecretsPropertiesSwimlane) Set(val *SecretsPropertiesSwimlane) { + v.value = val + v.isSet = true +} + +func (v NullableSecretsPropertiesSwimlane) IsSet() bool { + return v.isSet +} + +func (v *NullableSecretsPropertiesSwimlane) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecretsPropertiesSwimlane(val *SecretsPropertiesSwimlane) *NullableSecretsPropertiesSwimlane { + return &NullableSecretsPropertiesSwimlane{value: val, isSet: true} +} + +func (v NullableSecretsPropertiesSwimlane) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecretsPropertiesSwimlane) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_severity_mapping.go b/generated/kibanaactions/model_severity_mapping.go new file mode 100644 index 000000000..226d6cd4e --- /dev/null +++ b/generated/kibanaactions/model_severity_mapping.go @@ -0,0 +1,200 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the SeverityMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SeverityMapping{} + +// SeverityMapping Mapping for the severity. +type SeverityMapping struct { + // The type of field in Swimlane. + FieldType string `json:"fieldType"` + // The identifier for the field in Swimlane. + Id string `json:"id"` + // The key for the field in Swimlane. + Key string `json:"key"` + // The name of the field in Swimlane. + Name string `json:"name"` +} + +// NewSeverityMapping instantiates a new SeverityMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSeverityMapping(fieldType string, id string, key string, name string) *SeverityMapping { + this := SeverityMapping{} + this.FieldType = fieldType + this.Id = id + this.Key = key + this.Name = name + return &this +} + +// NewSeverityMappingWithDefaults instantiates a new SeverityMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSeverityMappingWithDefaults() *SeverityMapping { + this := SeverityMapping{} + return &this +} + +// GetFieldType returns the FieldType field value +func (o *SeverityMapping) GetFieldType() string { + if o == nil { + var ret string + return ret + } + + return o.FieldType +} + +// GetFieldTypeOk returns a tuple with the FieldType field value +// and a boolean to check if the value has been set. +func (o *SeverityMapping) GetFieldTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldType, true +} + +// SetFieldType sets field value +func (o *SeverityMapping) SetFieldType(v string) { + o.FieldType = v +} + +// GetId returns the Id field value +func (o *SeverityMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SeverityMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SeverityMapping) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *SeverityMapping) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *SeverityMapping) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *SeverityMapping) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value +func (o *SeverityMapping) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SeverityMapping) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SeverityMapping) SetName(v string) { + o.Name = v +} + +func (o SeverityMapping) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SeverityMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["fieldType"] = o.FieldType + toSerialize["id"] = o.Id + toSerialize["key"] = o.Key + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableSeverityMapping struct { + value *SeverityMapping + isSet bool +} + +func (v NullableSeverityMapping) Get() *SeverityMapping { + return v.value +} + +func (v *NullableSeverityMapping) Set(val *SeverityMapping) { + v.value = val + v.isSet = true +} + +func (v NullableSeverityMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableSeverityMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSeverityMapping(val *SeverityMapping) *NullableSeverityMapping { + return &NullableSeverityMapping{value: val, isSet: true} +} + +func (v NullableSeverityMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSeverityMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_subaction_parameters.go b/generated/kibanaactions/model_subaction_parameters.go new file mode 100644 index 000000000..a75275500 --- /dev/null +++ b/generated/kibanaactions/model_subaction_parameters.go @@ -0,0 +1,415 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// SubactionParameters - Test an action that involves a subaction. +type SubactionParameters struct { + RunConnectorSubactionAddevent *RunConnectorSubactionAddevent + RunConnectorSubactionClosealert *RunConnectorSubactionClosealert + RunConnectorSubactionCreatealert *RunConnectorSubactionCreatealert + RunConnectorSubactionFieldsbyissuetype *RunConnectorSubactionFieldsbyissuetype + RunConnectorSubactionGetchoices *RunConnectorSubactionGetchoices + RunConnectorSubactionGetfields *RunConnectorSubactionGetfields + RunConnectorSubactionGetincident *RunConnectorSubactionGetincident + RunConnectorSubactionIssue *RunConnectorSubactionIssue + RunConnectorSubactionIssues *RunConnectorSubactionIssues + RunConnectorSubactionIssuetypes *RunConnectorSubactionIssuetypes + RunConnectorSubactionPushtoservice *RunConnectorSubactionPushtoservice +} + +// RunConnectorSubactionAddeventAsSubactionParameters is a convenience function that returns RunConnectorSubactionAddevent wrapped in SubactionParameters +func RunConnectorSubactionAddeventAsSubactionParameters(v *RunConnectorSubactionAddevent) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionAddevent: v, + } +} + +// RunConnectorSubactionClosealertAsSubactionParameters is a convenience function that returns RunConnectorSubactionClosealert wrapped in SubactionParameters +func RunConnectorSubactionClosealertAsSubactionParameters(v *RunConnectorSubactionClosealert) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionClosealert: v, + } +} + +// RunConnectorSubactionCreatealertAsSubactionParameters is a convenience function that returns RunConnectorSubactionCreatealert wrapped in SubactionParameters +func RunConnectorSubactionCreatealertAsSubactionParameters(v *RunConnectorSubactionCreatealert) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionCreatealert: v, + } +} + +// RunConnectorSubactionFieldsbyissuetypeAsSubactionParameters is a convenience function that returns RunConnectorSubactionFieldsbyissuetype wrapped in SubactionParameters +func RunConnectorSubactionFieldsbyissuetypeAsSubactionParameters(v *RunConnectorSubactionFieldsbyissuetype) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionFieldsbyissuetype: v, + } +} + +// RunConnectorSubactionGetchoicesAsSubactionParameters is a convenience function that returns RunConnectorSubactionGetchoices wrapped in SubactionParameters +func RunConnectorSubactionGetchoicesAsSubactionParameters(v *RunConnectorSubactionGetchoices) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionGetchoices: v, + } +} + +// RunConnectorSubactionGetfieldsAsSubactionParameters is a convenience function that returns RunConnectorSubactionGetfields wrapped in SubactionParameters +func RunConnectorSubactionGetfieldsAsSubactionParameters(v *RunConnectorSubactionGetfields) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionGetfields: v, + } +} + +// RunConnectorSubactionGetincidentAsSubactionParameters is a convenience function that returns RunConnectorSubactionGetincident wrapped in SubactionParameters +func RunConnectorSubactionGetincidentAsSubactionParameters(v *RunConnectorSubactionGetincident) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionGetincident: v, + } +} + +// RunConnectorSubactionIssueAsSubactionParameters is a convenience function that returns RunConnectorSubactionIssue wrapped in SubactionParameters +func RunConnectorSubactionIssueAsSubactionParameters(v *RunConnectorSubactionIssue) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionIssue: v, + } +} + +// RunConnectorSubactionIssuesAsSubactionParameters is a convenience function that returns RunConnectorSubactionIssues wrapped in SubactionParameters +func RunConnectorSubactionIssuesAsSubactionParameters(v *RunConnectorSubactionIssues) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionIssues: v, + } +} + +// RunConnectorSubactionIssuetypesAsSubactionParameters is a convenience function that returns RunConnectorSubactionIssuetypes wrapped in SubactionParameters +func RunConnectorSubactionIssuetypesAsSubactionParameters(v *RunConnectorSubactionIssuetypes) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionIssuetypes: v, + } +} + +// RunConnectorSubactionPushtoserviceAsSubactionParameters is a convenience function that returns RunConnectorSubactionPushtoservice wrapped in SubactionParameters +func RunConnectorSubactionPushtoserviceAsSubactionParameters(v *RunConnectorSubactionPushtoservice) SubactionParameters { + return SubactionParameters{ + RunConnectorSubactionPushtoservice: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *SubactionParameters) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into RunConnectorSubactionAddevent + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionAddevent) + if err == nil { + jsonRunConnectorSubactionAddevent, _ := json.Marshal(dst.RunConnectorSubactionAddevent) + if string(jsonRunConnectorSubactionAddevent) == "{}" { // empty struct + dst.RunConnectorSubactionAddevent = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionAddevent = nil + } + + // try to unmarshal data into RunConnectorSubactionClosealert + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionClosealert) + if err == nil { + jsonRunConnectorSubactionClosealert, _ := json.Marshal(dst.RunConnectorSubactionClosealert) + if string(jsonRunConnectorSubactionClosealert) == "{}" { // empty struct + dst.RunConnectorSubactionClosealert = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionClosealert = nil + } + + // try to unmarshal data into RunConnectorSubactionCreatealert + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionCreatealert) + if err == nil { + jsonRunConnectorSubactionCreatealert, _ := json.Marshal(dst.RunConnectorSubactionCreatealert) + if string(jsonRunConnectorSubactionCreatealert) == "{}" { // empty struct + dst.RunConnectorSubactionCreatealert = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionCreatealert = nil + } + + // try to unmarshal data into RunConnectorSubactionFieldsbyissuetype + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionFieldsbyissuetype) + if err == nil { + jsonRunConnectorSubactionFieldsbyissuetype, _ := json.Marshal(dst.RunConnectorSubactionFieldsbyissuetype) + if string(jsonRunConnectorSubactionFieldsbyissuetype) == "{}" { // empty struct + dst.RunConnectorSubactionFieldsbyissuetype = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionFieldsbyissuetype = nil + } + + // try to unmarshal data into RunConnectorSubactionGetchoices + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionGetchoices) + if err == nil { + jsonRunConnectorSubactionGetchoices, _ := json.Marshal(dst.RunConnectorSubactionGetchoices) + if string(jsonRunConnectorSubactionGetchoices) == "{}" { // empty struct + dst.RunConnectorSubactionGetchoices = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionGetchoices = nil + } + + // try to unmarshal data into RunConnectorSubactionGetfields + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionGetfields) + if err == nil { + jsonRunConnectorSubactionGetfields, _ := json.Marshal(dst.RunConnectorSubactionGetfields) + if string(jsonRunConnectorSubactionGetfields) == "{}" { // empty struct + dst.RunConnectorSubactionGetfields = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionGetfields = nil + } + + // try to unmarshal data into RunConnectorSubactionGetincident + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionGetincident) + if err == nil { + jsonRunConnectorSubactionGetincident, _ := json.Marshal(dst.RunConnectorSubactionGetincident) + if string(jsonRunConnectorSubactionGetincident) == "{}" { // empty struct + dst.RunConnectorSubactionGetincident = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionGetincident = nil + } + + // try to unmarshal data into RunConnectorSubactionIssue + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionIssue) + if err == nil { + jsonRunConnectorSubactionIssue, _ := json.Marshal(dst.RunConnectorSubactionIssue) + if string(jsonRunConnectorSubactionIssue) == "{}" { // empty struct + dst.RunConnectorSubactionIssue = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionIssue = nil + } + + // try to unmarshal data into RunConnectorSubactionIssues + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionIssues) + if err == nil { + jsonRunConnectorSubactionIssues, _ := json.Marshal(dst.RunConnectorSubactionIssues) + if string(jsonRunConnectorSubactionIssues) == "{}" { // empty struct + dst.RunConnectorSubactionIssues = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionIssues = nil + } + + // try to unmarshal data into RunConnectorSubactionIssuetypes + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionIssuetypes) + if err == nil { + jsonRunConnectorSubactionIssuetypes, _ := json.Marshal(dst.RunConnectorSubactionIssuetypes) + if string(jsonRunConnectorSubactionIssuetypes) == "{}" { // empty struct + dst.RunConnectorSubactionIssuetypes = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionIssuetypes = nil + } + + // try to unmarshal data into RunConnectorSubactionPushtoservice + err = newStrictDecoder(data).Decode(&dst.RunConnectorSubactionPushtoservice) + if err == nil { + jsonRunConnectorSubactionPushtoservice, _ := json.Marshal(dst.RunConnectorSubactionPushtoservice) + if string(jsonRunConnectorSubactionPushtoservice) == "{}" { // empty struct + dst.RunConnectorSubactionPushtoservice = nil + } else { + match++ + } + } else { + dst.RunConnectorSubactionPushtoservice = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.RunConnectorSubactionAddevent = nil + dst.RunConnectorSubactionClosealert = nil + dst.RunConnectorSubactionCreatealert = nil + dst.RunConnectorSubactionFieldsbyissuetype = nil + dst.RunConnectorSubactionGetchoices = nil + dst.RunConnectorSubactionGetfields = nil + dst.RunConnectorSubactionGetincident = nil + dst.RunConnectorSubactionIssue = nil + dst.RunConnectorSubactionIssues = nil + dst.RunConnectorSubactionIssuetypes = nil + dst.RunConnectorSubactionPushtoservice = nil + + return fmt.Errorf("data matches more than one schema in oneOf(SubactionParameters)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(SubactionParameters)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src SubactionParameters) MarshalJSON() ([]byte, error) { + if src.RunConnectorSubactionAddevent != nil { + return json.Marshal(&src.RunConnectorSubactionAddevent) + } + + if src.RunConnectorSubactionClosealert != nil { + return json.Marshal(&src.RunConnectorSubactionClosealert) + } + + if src.RunConnectorSubactionCreatealert != nil { + return json.Marshal(&src.RunConnectorSubactionCreatealert) + } + + if src.RunConnectorSubactionFieldsbyissuetype != nil { + return json.Marshal(&src.RunConnectorSubactionFieldsbyissuetype) + } + + if src.RunConnectorSubactionGetchoices != nil { + return json.Marshal(&src.RunConnectorSubactionGetchoices) + } + + if src.RunConnectorSubactionGetfields != nil { + return json.Marshal(&src.RunConnectorSubactionGetfields) + } + + if src.RunConnectorSubactionGetincident != nil { + return json.Marshal(&src.RunConnectorSubactionGetincident) + } + + if src.RunConnectorSubactionIssue != nil { + return json.Marshal(&src.RunConnectorSubactionIssue) + } + + if src.RunConnectorSubactionIssues != nil { + return json.Marshal(&src.RunConnectorSubactionIssues) + } + + if src.RunConnectorSubactionIssuetypes != nil { + return json.Marshal(&src.RunConnectorSubactionIssuetypes) + } + + if src.RunConnectorSubactionPushtoservice != nil { + return json.Marshal(&src.RunConnectorSubactionPushtoservice) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *SubactionParameters) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.RunConnectorSubactionAddevent != nil { + return obj.RunConnectorSubactionAddevent + } + + if obj.RunConnectorSubactionClosealert != nil { + return obj.RunConnectorSubactionClosealert + } + + if obj.RunConnectorSubactionCreatealert != nil { + return obj.RunConnectorSubactionCreatealert + } + + if obj.RunConnectorSubactionFieldsbyissuetype != nil { + return obj.RunConnectorSubactionFieldsbyissuetype + } + + if obj.RunConnectorSubactionGetchoices != nil { + return obj.RunConnectorSubactionGetchoices + } + + if obj.RunConnectorSubactionGetfields != nil { + return obj.RunConnectorSubactionGetfields + } + + if obj.RunConnectorSubactionGetincident != nil { + return obj.RunConnectorSubactionGetincident + } + + if obj.RunConnectorSubactionIssue != nil { + return obj.RunConnectorSubactionIssue + } + + if obj.RunConnectorSubactionIssues != nil { + return obj.RunConnectorSubactionIssues + } + + if obj.RunConnectorSubactionIssuetypes != nil { + return obj.RunConnectorSubactionIssuetypes + } + + if obj.RunConnectorSubactionPushtoservice != nil { + return obj.RunConnectorSubactionPushtoservice + } + + // all schemas are nil + return nil +} + +type NullableSubactionParameters struct { + value *SubactionParameters + isSet bool +} + +func (v NullableSubactionParameters) Get() *SubactionParameters { + return v.value +} + +func (v *NullableSubactionParameters) Set(val *SubactionParameters) { + v.value = val + v.isSet = true +} + +func (v NullableSubactionParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableSubactionParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubactionParameters(val *SubactionParameters) *NullableSubactionParameters { + return &NullableSubactionParameters{value: val, isSet: true} +} + +func (v NullableSubactionParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubactionParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_400_response.go b/generated/kibanaactions/model_update_connector_400_response.go new file mode 100644 index 000000000..a25dd0461 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_400_response.go @@ -0,0 +1,196 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnector400Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnector400Response{} + +// UpdateConnector400Response struct for UpdateConnector400Response +type UpdateConnector400Response struct { + Error *string `json:"error,omitempty"` + Message *string `json:"message,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty"` +} + +// NewUpdateConnector400Response instantiates a new UpdateConnector400Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnector400Response() *UpdateConnector400Response { + this := UpdateConnector400Response{} + return &this +} + +// NewUpdateConnector400ResponseWithDefaults instantiates a new UpdateConnector400Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnector400ResponseWithDefaults() *UpdateConnector400Response { + this := UpdateConnector400Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *UpdateConnector400Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateConnector400Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *UpdateConnector400Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *UpdateConnector400Response) SetError(v string) { + o.Error = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *UpdateConnector400Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateConnector400Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *UpdateConnector400Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *UpdateConnector400Response) SetMessage(v string) { + o.Message = &v +} + +// GetStatusCode returns the StatusCode field value if set, zero value otherwise. +func (o *UpdateConnector400Response) GetStatusCode() int32 { + if o == nil || IsNil(o.StatusCode) { + var ret int32 + return ret + } + return *o.StatusCode +} + +// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateConnector400Response) GetStatusCodeOk() (*int32, bool) { + if o == nil || IsNil(o.StatusCode) { + return nil, false + } + return o.StatusCode, true +} + +// HasStatusCode returns a boolean if a field has been set. +func (o *UpdateConnector400Response) HasStatusCode() bool { + if o != nil && !IsNil(o.StatusCode) { + return true + } + + return false +} + +// SetStatusCode gets a reference to the given int32 and assigns it to the StatusCode field. +func (o *UpdateConnector400Response) SetStatusCode(v int32) { + o.StatusCode = &v +} + +func (o UpdateConnector400Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnector400Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.StatusCode) { + toSerialize["statusCode"] = o.StatusCode + } + return toSerialize, nil +} + +type NullableUpdateConnector400Response struct { + value *UpdateConnector400Response + isSet bool +} + +func (v NullableUpdateConnector400Response) Get() *UpdateConnector400Response { + return v.value +} + +func (v *NullableUpdateConnector400Response) Set(val *UpdateConnector400Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnector400Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnector400Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnector400Response(val *UpdateConnector400Response) *NullableUpdateConnector400Response { + return &NullableUpdateConnector400Response{value: val, isSet: true} +} + +func (v NullableUpdateConnector400Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnector400Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_body_properties.go b/generated/kibanaactions/model_update_connector_request_body_properties.go new file mode 100644 index 000000000..c5acc356d --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_body_properties.go @@ -0,0 +1,355 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "fmt" +) + +// UpdateConnectorRequestBodyProperties - The properties vary depending on the connector type. +type UpdateConnectorRequestBodyProperties struct { + UpdateConnectorRequestCasesWebhook *UpdateConnectorRequestCasesWebhook + UpdateConnectorRequestIndex *UpdateConnectorRequestIndex + UpdateConnectorRequestJira *UpdateConnectorRequestJira + UpdateConnectorRequestOpsgenie *UpdateConnectorRequestOpsgenie + UpdateConnectorRequestResilient *UpdateConnectorRequestResilient + UpdateConnectorRequestServerlog *UpdateConnectorRequestServerlog + UpdateConnectorRequestServicenow *UpdateConnectorRequestServicenow + UpdateConnectorRequestServicenowItom *UpdateConnectorRequestServicenowItom + UpdateConnectorRequestSwimlane *UpdateConnectorRequestSwimlane +} + +// UpdateConnectorRequestCasesWebhookAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestCasesWebhook wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestCasesWebhookAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestCasesWebhook) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestCasesWebhook: v, + } +} + +// UpdateConnectorRequestIndexAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestIndex wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestIndexAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestIndex) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestIndex: v, + } +} + +// UpdateConnectorRequestJiraAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestJira wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestJiraAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestJira) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestJira: v, + } +} + +// UpdateConnectorRequestOpsgenieAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestOpsgenie wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestOpsgenieAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestOpsgenie) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestOpsgenie: v, + } +} + +// UpdateConnectorRequestResilientAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestResilient wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestResilientAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestResilient) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestResilient: v, + } +} + +// UpdateConnectorRequestServerlogAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestServerlog wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestServerlogAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestServerlog) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestServerlog: v, + } +} + +// UpdateConnectorRequestServicenowAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestServicenow wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestServicenowAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestServicenow) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestServicenow: v, + } +} + +// UpdateConnectorRequestServicenowItomAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestServicenowItom wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestServicenowItomAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestServicenowItom) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestServicenowItom: v, + } +} + +// UpdateConnectorRequestSwimlaneAsUpdateConnectorRequestBodyProperties is a convenience function that returns UpdateConnectorRequestSwimlane wrapped in UpdateConnectorRequestBodyProperties +func UpdateConnectorRequestSwimlaneAsUpdateConnectorRequestBodyProperties(v *UpdateConnectorRequestSwimlane) UpdateConnectorRequestBodyProperties { + return UpdateConnectorRequestBodyProperties{ + UpdateConnectorRequestSwimlane: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *UpdateConnectorRequestBodyProperties) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into UpdateConnectorRequestCasesWebhook + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestCasesWebhook) + if err == nil { + jsonUpdateConnectorRequestCasesWebhook, _ := json.Marshal(dst.UpdateConnectorRequestCasesWebhook) + if string(jsonUpdateConnectorRequestCasesWebhook) == "{}" { // empty struct + dst.UpdateConnectorRequestCasesWebhook = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestCasesWebhook = nil + } + + // try to unmarshal data into UpdateConnectorRequestIndex + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestIndex) + if err == nil { + jsonUpdateConnectorRequestIndex, _ := json.Marshal(dst.UpdateConnectorRequestIndex) + if string(jsonUpdateConnectorRequestIndex) == "{}" { // empty struct + dst.UpdateConnectorRequestIndex = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestIndex = nil + } + + // try to unmarshal data into UpdateConnectorRequestJira + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestJira) + if err == nil { + jsonUpdateConnectorRequestJira, _ := json.Marshal(dst.UpdateConnectorRequestJira) + if string(jsonUpdateConnectorRequestJira) == "{}" { // empty struct + dst.UpdateConnectorRequestJira = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestJira = nil + } + + // try to unmarshal data into UpdateConnectorRequestOpsgenie + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestOpsgenie) + if err == nil { + jsonUpdateConnectorRequestOpsgenie, _ := json.Marshal(dst.UpdateConnectorRequestOpsgenie) + if string(jsonUpdateConnectorRequestOpsgenie) == "{}" { // empty struct + dst.UpdateConnectorRequestOpsgenie = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestOpsgenie = nil + } + + // try to unmarshal data into UpdateConnectorRequestResilient + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestResilient) + if err == nil { + jsonUpdateConnectorRequestResilient, _ := json.Marshal(dst.UpdateConnectorRequestResilient) + if string(jsonUpdateConnectorRequestResilient) == "{}" { // empty struct + dst.UpdateConnectorRequestResilient = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestResilient = nil + } + + // try to unmarshal data into UpdateConnectorRequestServerlog + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestServerlog) + if err == nil { + jsonUpdateConnectorRequestServerlog, _ := json.Marshal(dst.UpdateConnectorRequestServerlog) + if string(jsonUpdateConnectorRequestServerlog) == "{}" { // empty struct + dst.UpdateConnectorRequestServerlog = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestServerlog = nil + } + + // try to unmarshal data into UpdateConnectorRequestServicenow + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestServicenow) + if err == nil { + jsonUpdateConnectorRequestServicenow, _ := json.Marshal(dst.UpdateConnectorRequestServicenow) + if string(jsonUpdateConnectorRequestServicenow) == "{}" { // empty struct + dst.UpdateConnectorRequestServicenow = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestServicenow = nil + } + + // try to unmarshal data into UpdateConnectorRequestServicenowItom + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestServicenowItom) + if err == nil { + jsonUpdateConnectorRequestServicenowItom, _ := json.Marshal(dst.UpdateConnectorRequestServicenowItom) + if string(jsonUpdateConnectorRequestServicenowItom) == "{}" { // empty struct + dst.UpdateConnectorRequestServicenowItom = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestServicenowItom = nil + } + + // try to unmarshal data into UpdateConnectorRequestSwimlane + err = newStrictDecoder(data).Decode(&dst.UpdateConnectorRequestSwimlane) + if err == nil { + jsonUpdateConnectorRequestSwimlane, _ := json.Marshal(dst.UpdateConnectorRequestSwimlane) + if string(jsonUpdateConnectorRequestSwimlane) == "{}" { // empty struct + dst.UpdateConnectorRequestSwimlane = nil + } else { + match++ + } + } else { + dst.UpdateConnectorRequestSwimlane = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.UpdateConnectorRequestCasesWebhook = nil + dst.UpdateConnectorRequestIndex = nil + dst.UpdateConnectorRequestJira = nil + dst.UpdateConnectorRequestOpsgenie = nil + dst.UpdateConnectorRequestResilient = nil + dst.UpdateConnectorRequestServerlog = nil + dst.UpdateConnectorRequestServicenow = nil + dst.UpdateConnectorRequestServicenowItom = nil + dst.UpdateConnectorRequestSwimlane = nil + + return fmt.Errorf("data matches more than one schema in oneOf(UpdateConnectorRequestBodyProperties)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(UpdateConnectorRequestBodyProperties)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src UpdateConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + if src.UpdateConnectorRequestCasesWebhook != nil { + return json.Marshal(&src.UpdateConnectorRequestCasesWebhook) + } + + if src.UpdateConnectorRequestIndex != nil { + return json.Marshal(&src.UpdateConnectorRequestIndex) + } + + if src.UpdateConnectorRequestJira != nil { + return json.Marshal(&src.UpdateConnectorRequestJira) + } + + if src.UpdateConnectorRequestOpsgenie != nil { + return json.Marshal(&src.UpdateConnectorRequestOpsgenie) + } + + if src.UpdateConnectorRequestResilient != nil { + return json.Marshal(&src.UpdateConnectorRequestResilient) + } + + if src.UpdateConnectorRequestServerlog != nil { + return json.Marshal(&src.UpdateConnectorRequestServerlog) + } + + if src.UpdateConnectorRequestServicenow != nil { + return json.Marshal(&src.UpdateConnectorRequestServicenow) + } + + if src.UpdateConnectorRequestServicenowItom != nil { + return json.Marshal(&src.UpdateConnectorRequestServicenowItom) + } + + if src.UpdateConnectorRequestSwimlane != nil { + return json.Marshal(&src.UpdateConnectorRequestSwimlane) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *UpdateConnectorRequestBodyProperties) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.UpdateConnectorRequestCasesWebhook != nil { + return obj.UpdateConnectorRequestCasesWebhook + } + + if obj.UpdateConnectorRequestIndex != nil { + return obj.UpdateConnectorRequestIndex + } + + if obj.UpdateConnectorRequestJira != nil { + return obj.UpdateConnectorRequestJira + } + + if obj.UpdateConnectorRequestOpsgenie != nil { + return obj.UpdateConnectorRequestOpsgenie + } + + if obj.UpdateConnectorRequestResilient != nil { + return obj.UpdateConnectorRequestResilient + } + + if obj.UpdateConnectorRequestServerlog != nil { + return obj.UpdateConnectorRequestServerlog + } + + if obj.UpdateConnectorRequestServicenow != nil { + return obj.UpdateConnectorRequestServicenow + } + + if obj.UpdateConnectorRequestServicenowItom != nil { + return obj.UpdateConnectorRequestServicenowItom + } + + if obj.UpdateConnectorRequestSwimlane != nil { + return obj.UpdateConnectorRequestSwimlane + } + + // all schemas are nil + return nil +} + +type NullableUpdateConnectorRequestBodyProperties struct { + value *UpdateConnectorRequestBodyProperties + isSet bool +} + +func (v NullableUpdateConnectorRequestBodyProperties) Get() *UpdateConnectorRequestBodyProperties { + return v.value +} + +func (v *NullableUpdateConnectorRequestBodyProperties) Set(val *UpdateConnectorRequestBodyProperties) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestBodyProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestBodyProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestBodyProperties(val *UpdateConnectorRequestBodyProperties) *NullableUpdateConnectorRequestBodyProperties { + return &NullableUpdateConnectorRequestBodyProperties{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestBodyProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestBodyProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_cases_webhook.go b/generated/kibanaactions/model_update_connector_request_cases_webhook.go new file mode 100644 index 000000000..34266f507 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_cases_webhook.go @@ -0,0 +1,179 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestCasesWebhook type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestCasesWebhook{} + +// UpdateConnectorRequestCasesWebhook struct for UpdateConnectorRequestCasesWebhook +type UpdateConnectorRequestCasesWebhook struct { + Config ConfigPropertiesCasesWebhook `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets *SecretsPropertiesCasesWebhook `json:"secrets,omitempty"` +} + +// NewUpdateConnectorRequestCasesWebhook instantiates a new UpdateConnectorRequestCasesWebhook object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestCasesWebhook(config ConfigPropertiesCasesWebhook, name string) *UpdateConnectorRequestCasesWebhook { + this := UpdateConnectorRequestCasesWebhook{} + this.Config = config + this.Name = name + return &this +} + +// NewUpdateConnectorRequestCasesWebhookWithDefaults instantiates a new UpdateConnectorRequestCasesWebhook object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestCasesWebhookWithDefaults() *UpdateConnectorRequestCasesWebhook { + this := UpdateConnectorRequestCasesWebhook{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestCasesWebhook) GetConfig() ConfigPropertiesCasesWebhook { + if o == nil { + var ret ConfigPropertiesCasesWebhook + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestCasesWebhook) GetConfigOk() (*ConfigPropertiesCasesWebhook, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestCasesWebhook) SetConfig(v ConfigPropertiesCasesWebhook) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestCasesWebhook) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestCasesWebhook) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestCasesWebhook) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value if set, zero value otherwise. +func (o *UpdateConnectorRequestCasesWebhook) GetSecrets() SecretsPropertiesCasesWebhook { + if o == nil || IsNil(o.Secrets) { + var ret SecretsPropertiesCasesWebhook + return ret + } + return *o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestCasesWebhook) GetSecretsOk() (*SecretsPropertiesCasesWebhook, bool) { + if o == nil || IsNil(o.Secrets) { + return nil, false + } + return o.Secrets, true +} + +// HasSecrets returns a boolean if a field has been set. +func (o *UpdateConnectorRequestCasesWebhook) HasSecrets() bool { + if o != nil && !IsNil(o.Secrets) { + return true + } + + return false +} + +// SetSecrets gets a reference to the given SecretsPropertiesCasesWebhook and assigns it to the Secrets field. +func (o *UpdateConnectorRequestCasesWebhook) SetSecrets(v SecretsPropertiesCasesWebhook) { + o.Secrets = &v +} + +func (o UpdateConnectorRequestCasesWebhook) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestCasesWebhook) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + if !IsNil(o.Secrets) { + toSerialize["secrets"] = o.Secrets + } + return toSerialize, nil +} + +type NullableUpdateConnectorRequestCasesWebhook struct { + value *UpdateConnectorRequestCasesWebhook + isSet bool +} + +func (v NullableUpdateConnectorRequestCasesWebhook) Get() *UpdateConnectorRequestCasesWebhook { + return v.value +} + +func (v *NullableUpdateConnectorRequestCasesWebhook) Set(val *UpdateConnectorRequestCasesWebhook) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestCasesWebhook) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestCasesWebhook) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestCasesWebhook(val *UpdateConnectorRequestCasesWebhook) *NullableUpdateConnectorRequestCasesWebhook { + return &NullableUpdateConnectorRequestCasesWebhook{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestCasesWebhook) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestCasesWebhook) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_index.go b/generated/kibanaactions/model_update_connector_request_index.go new file mode 100644 index 000000000..3c5908d2e --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_index.go @@ -0,0 +1,143 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestIndex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestIndex{} + +// UpdateConnectorRequestIndex struct for UpdateConnectorRequestIndex +type UpdateConnectorRequestIndex struct { + Config ConfigPropertiesIndex `json:"config"` + // The display name for the connector. + Name string `json:"name"` +} + +// NewUpdateConnectorRequestIndex instantiates a new UpdateConnectorRequestIndex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestIndex(config ConfigPropertiesIndex, name string) *UpdateConnectorRequestIndex { + this := UpdateConnectorRequestIndex{} + this.Config = config + this.Name = name + return &this +} + +// NewUpdateConnectorRequestIndexWithDefaults instantiates a new UpdateConnectorRequestIndex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestIndexWithDefaults() *UpdateConnectorRequestIndex { + this := UpdateConnectorRequestIndex{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestIndex) GetConfig() ConfigPropertiesIndex { + if o == nil { + var ret ConfigPropertiesIndex + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestIndex) GetConfigOk() (*ConfigPropertiesIndex, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestIndex) SetConfig(v ConfigPropertiesIndex) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestIndex) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestIndex) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestIndex) SetName(v string) { + o.Name = v +} + +func (o UpdateConnectorRequestIndex) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestIndex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableUpdateConnectorRequestIndex struct { + value *UpdateConnectorRequestIndex + isSet bool +} + +func (v NullableUpdateConnectorRequestIndex) Get() *UpdateConnectorRequestIndex { + return v.value +} + +func (v *NullableUpdateConnectorRequestIndex) Set(val *UpdateConnectorRequestIndex) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestIndex) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestIndex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestIndex(val *UpdateConnectorRequestIndex) *NullableUpdateConnectorRequestIndex { + return &NullableUpdateConnectorRequestIndex{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestIndex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestIndex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_jira.go b/generated/kibanaactions/model_update_connector_request_jira.go new file mode 100644 index 000000000..60ee7c859 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_jira.go @@ -0,0 +1,170 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestJira type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestJira{} + +// UpdateConnectorRequestJira struct for UpdateConnectorRequestJira +type UpdateConnectorRequestJira struct { + Config ConfigPropertiesJira `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesJira `json:"secrets"` +} + +// NewUpdateConnectorRequestJira instantiates a new UpdateConnectorRequestJira object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestJira(config ConfigPropertiesJira, name string, secrets SecretsPropertiesJira) *UpdateConnectorRequestJira { + this := UpdateConnectorRequestJira{} + this.Config = config + this.Name = name + this.Secrets = secrets + return &this +} + +// NewUpdateConnectorRequestJiraWithDefaults instantiates a new UpdateConnectorRequestJira object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestJiraWithDefaults() *UpdateConnectorRequestJira { + this := UpdateConnectorRequestJira{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestJira) GetConfig() ConfigPropertiesJira { + if o == nil { + var ret ConfigPropertiesJira + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestJira) GetConfigOk() (*ConfigPropertiesJira, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestJira) SetConfig(v ConfigPropertiesJira) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestJira) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestJira) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestJira) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *UpdateConnectorRequestJira) GetSecrets() SecretsPropertiesJira { + if o == nil { + var ret SecretsPropertiesJira + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestJira) GetSecretsOk() (*SecretsPropertiesJira, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *UpdateConnectorRequestJira) SetSecrets(v SecretsPropertiesJira) { + o.Secrets = v +} + +func (o UpdateConnectorRequestJira) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestJira) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableUpdateConnectorRequestJira struct { + value *UpdateConnectorRequestJira + isSet bool +} + +func (v NullableUpdateConnectorRequestJira) Get() *UpdateConnectorRequestJira { + return v.value +} + +func (v *NullableUpdateConnectorRequestJira) Set(val *UpdateConnectorRequestJira) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestJira) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestJira) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestJira(val *UpdateConnectorRequestJira) *NullableUpdateConnectorRequestJira { + return &NullableUpdateConnectorRequestJira{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestJira) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestJira) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_opsgenie.go b/generated/kibanaactions/model_update_connector_request_opsgenie.go new file mode 100644 index 000000000..e9761e873 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_opsgenie.go @@ -0,0 +1,170 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestOpsgenie type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestOpsgenie{} + +// UpdateConnectorRequestOpsgenie struct for UpdateConnectorRequestOpsgenie +type UpdateConnectorRequestOpsgenie struct { + Config ConfigPropertiesOpsgenie `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesOpsgenie `json:"secrets"` +} + +// NewUpdateConnectorRequestOpsgenie instantiates a new UpdateConnectorRequestOpsgenie object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestOpsgenie(config ConfigPropertiesOpsgenie, name string, secrets SecretsPropertiesOpsgenie) *UpdateConnectorRequestOpsgenie { + this := UpdateConnectorRequestOpsgenie{} + this.Config = config + this.Name = name + this.Secrets = secrets + return &this +} + +// NewUpdateConnectorRequestOpsgenieWithDefaults instantiates a new UpdateConnectorRequestOpsgenie object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestOpsgenieWithDefaults() *UpdateConnectorRequestOpsgenie { + this := UpdateConnectorRequestOpsgenie{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestOpsgenie) GetConfig() ConfigPropertiesOpsgenie { + if o == nil { + var ret ConfigPropertiesOpsgenie + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestOpsgenie) GetConfigOk() (*ConfigPropertiesOpsgenie, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestOpsgenie) SetConfig(v ConfigPropertiesOpsgenie) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestOpsgenie) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestOpsgenie) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestOpsgenie) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *UpdateConnectorRequestOpsgenie) GetSecrets() SecretsPropertiesOpsgenie { + if o == nil { + var ret SecretsPropertiesOpsgenie + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestOpsgenie) GetSecretsOk() (*SecretsPropertiesOpsgenie, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *UpdateConnectorRequestOpsgenie) SetSecrets(v SecretsPropertiesOpsgenie) { + o.Secrets = v +} + +func (o UpdateConnectorRequestOpsgenie) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestOpsgenie) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableUpdateConnectorRequestOpsgenie struct { + value *UpdateConnectorRequestOpsgenie + isSet bool +} + +func (v NullableUpdateConnectorRequestOpsgenie) Get() *UpdateConnectorRequestOpsgenie { + return v.value +} + +func (v *NullableUpdateConnectorRequestOpsgenie) Set(val *UpdateConnectorRequestOpsgenie) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestOpsgenie) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestOpsgenie) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestOpsgenie(val *UpdateConnectorRequestOpsgenie) *NullableUpdateConnectorRequestOpsgenie { + return &NullableUpdateConnectorRequestOpsgenie{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestOpsgenie) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestOpsgenie) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_resilient.go b/generated/kibanaactions/model_update_connector_request_resilient.go new file mode 100644 index 000000000..18a64c24c --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_resilient.go @@ -0,0 +1,170 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestResilient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestResilient{} + +// UpdateConnectorRequestResilient struct for UpdateConnectorRequestResilient +type UpdateConnectorRequestResilient struct { + Config ConfigPropertiesResilient `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesResilient `json:"secrets"` +} + +// NewUpdateConnectorRequestResilient instantiates a new UpdateConnectorRequestResilient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestResilient(config ConfigPropertiesResilient, name string, secrets SecretsPropertiesResilient) *UpdateConnectorRequestResilient { + this := UpdateConnectorRequestResilient{} + this.Config = config + this.Name = name + this.Secrets = secrets + return &this +} + +// NewUpdateConnectorRequestResilientWithDefaults instantiates a new UpdateConnectorRequestResilient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestResilientWithDefaults() *UpdateConnectorRequestResilient { + this := UpdateConnectorRequestResilient{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestResilient) GetConfig() ConfigPropertiesResilient { + if o == nil { + var ret ConfigPropertiesResilient + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestResilient) GetConfigOk() (*ConfigPropertiesResilient, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestResilient) SetConfig(v ConfigPropertiesResilient) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestResilient) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestResilient) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestResilient) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *UpdateConnectorRequestResilient) GetSecrets() SecretsPropertiesResilient { + if o == nil { + var ret SecretsPropertiesResilient + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestResilient) GetSecretsOk() (*SecretsPropertiesResilient, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *UpdateConnectorRequestResilient) SetSecrets(v SecretsPropertiesResilient) { + o.Secrets = v +} + +func (o UpdateConnectorRequestResilient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestResilient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableUpdateConnectorRequestResilient struct { + value *UpdateConnectorRequestResilient + isSet bool +} + +func (v NullableUpdateConnectorRequestResilient) Get() *UpdateConnectorRequestResilient { + return v.value +} + +func (v *NullableUpdateConnectorRequestResilient) Set(val *UpdateConnectorRequestResilient) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestResilient) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestResilient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestResilient(val *UpdateConnectorRequestResilient) *NullableUpdateConnectorRequestResilient { + return &NullableUpdateConnectorRequestResilient{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestResilient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestResilient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_serverlog.go b/generated/kibanaactions/model_update_connector_request_serverlog.go new file mode 100644 index 000000000..cb0a3ebcb --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_serverlog.go @@ -0,0 +1,116 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestServerlog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestServerlog{} + +// UpdateConnectorRequestServerlog struct for UpdateConnectorRequestServerlog +type UpdateConnectorRequestServerlog struct { + // The display name for the connector. + Name string `json:"name"` +} + +// NewUpdateConnectorRequestServerlog instantiates a new UpdateConnectorRequestServerlog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestServerlog(name string) *UpdateConnectorRequestServerlog { + this := UpdateConnectorRequestServerlog{} + this.Name = name + return &this +} + +// NewUpdateConnectorRequestServerlogWithDefaults instantiates a new UpdateConnectorRequestServerlog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestServerlogWithDefaults() *UpdateConnectorRequestServerlog { + this := UpdateConnectorRequestServerlog{} + return &this +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestServerlog) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServerlog) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestServerlog) SetName(v string) { + o.Name = v +} + +func (o UpdateConnectorRequestServerlog) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestServerlog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableUpdateConnectorRequestServerlog struct { + value *UpdateConnectorRequestServerlog + isSet bool +} + +func (v NullableUpdateConnectorRequestServerlog) Get() *UpdateConnectorRequestServerlog { + return v.value +} + +func (v *NullableUpdateConnectorRequestServerlog) Set(val *UpdateConnectorRequestServerlog) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestServerlog) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestServerlog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestServerlog(val *UpdateConnectorRequestServerlog) *NullableUpdateConnectorRequestServerlog { + return &NullableUpdateConnectorRequestServerlog{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestServerlog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestServerlog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_servicenow.go b/generated/kibanaactions/model_update_connector_request_servicenow.go new file mode 100644 index 000000000..1853a9460 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_servicenow.go @@ -0,0 +1,170 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestServicenow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestServicenow{} + +// UpdateConnectorRequestServicenow struct for UpdateConnectorRequestServicenow +type UpdateConnectorRequestServicenow struct { + Config ConfigPropertiesServicenow `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesServicenow `json:"secrets"` +} + +// NewUpdateConnectorRequestServicenow instantiates a new UpdateConnectorRequestServicenow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestServicenow(config ConfigPropertiesServicenow, name string, secrets SecretsPropertiesServicenow) *UpdateConnectorRequestServicenow { + this := UpdateConnectorRequestServicenow{} + this.Config = config + this.Name = name + this.Secrets = secrets + return &this +} + +// NewUpdateConnectorRequestServicenowWithDefaults instantiates a new UpdateConnectorRequestServicenow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestServicenowWithDefaults() *UpdateConnectorRequestServicenow { + this := UpdateConnectorRequestServicenow{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestServicenow) GetConfig() ConfigPropertiesServicenow { + if o == nil { + var ret ConfigPropertiesServicenow + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServicenow) GetConfigOk() (*ConfigPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestServicenow) SetConfig(v ConfigPropertiesServicenow) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestServicenow) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServicenow) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestServicenow) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *UpdateConnectorRequestServicenow) GetSecrets() SecretsPropertiesServicenow { + if o == nil { + var ret SecretsPropertiesServicenow + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServicenow) GetSecretsOk() (*SecretsPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *UpdateConnectorRequestServicenow) SetSecrets(v SecretsPropertiesServicenow) { + o.Secrets = v +} + +func (o UpdateConnectorRequestServicenow) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestServicenow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableUpdateConnectorRequestServicenow struct { + value *UpdateConnectorRequestServicenow + isSet bool +} + +func (v NullableUpdateConnectorRequestServicenow) Get() *UpdateConnectorRequestServicenow { + return v.value +} + +func (v *NullableUpdateConnectorRequestServicenow) Set(val *UpdateConnectorRequestServicenow) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestServicenow) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestServicenow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestServicenow(val *UpdateConnectorRequestServicenow) *NullableUpdateConnectorRequestServicenow { + return &NullableUpdateConnectorRequestServicenow{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestServicenow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestServicenow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_servicenow_itom.go b/generated/kibanaactions/model_update_connector_request_servicenow_itom.go new file mode 100644 index 000000000..d99ef90b2 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_servicenow_itom.go @@ -0,0 +1,170 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestServicenowItom type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestServicenowItom{} + +// UpdateConnectorRequestServicenowItom struct for UpdateConnectorRequestServicenowItom +type UpdateConnectorRequestServicenowItom struct { + Config ConfigPropertiesServicenowItom `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesServicenow `json:"secrets"` +} + +// NewUpdateConnectorRequestServicenowItom instantiates a new UpdateConnectorRequestServicenowItom object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestServicenowItom(config ConfigPropertiesServicenowItom, name string, secrets SecretsPropertiesServicenow) *UpdateConnectorRequestServicenowItom { + this := UpdateConnectorRequestServicenowItom{} + this.Config = config + this.Name = name + this.Secrets = secrets + return &this +} + +// NewUpdateConnectorRequestServicenowItomWithDefaults instantiates a new UpdateConnectorRequestServicenowItom object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestServicenowItomWithDefaults() *UpdateConnectorRequestServicenowItom { + this := UpdateConnectorRequestServicenowItom{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestServicenowItom) GetConfig() ConfigPropertiesServicenowItom { + if o == nil { + var ret ConfigPropertiesServicenowItom + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServicenowItom) GetConfigOk() (*ConfigPropertiesServicenowItom, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestServicenowItom) SetConfig(v ConfigPropertiesServicenowItom) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestServicenowItom) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServicenowItom) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestServicenowItom) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *UpdateConnectorRequestServicenowItom) GetSecrets() SecretsPropertiesServicenow { + if o == nil { + var ret SecretsPropertiesServicenow + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestServicenowItom) GetSecretsOk() (*SecretsPropertiesServicenow, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *UpdateConnectorRequestServicenowItom) SetSecrets(v SecretsPropertiesServicenow) { + o.Secrets = v +} + +func (o UpdateConnectorRequestServicenowItom) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestServicenowItom) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableUpdateConnectorRequestServicenowItom struct { + value *UpdateConnectorRequestServicenowItom + isSet bool +} + +func (v NullableUpdateConnectorRequestServicenowItom) Get() *UpdateConnectorRequestServicenowItom { + return v.value +} + +func (v *NullableUpdateConnectorRequestServicenowItom) Set(val *UpdateConnectorRequestServicenowItom) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestServicenowItom) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestServicenowItom) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestServicenowItom(val *UpdateConnectorRequestServicenowItom) *NullableUpdateConnectorRequestServicenowItom { + return &NullableUpdateConnectorRequestServicenowItom{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestServicenowItom) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestServicenowItom) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/model_update_connector_request_swimlane.go b/generated/kibanaactions/model_update_connector_request_swimlane.go new file mode 100644 index 000000000..970750e50 --- /dev/null +++ b/generated/kibanaactions/model_update_connector_request_swimlane.go @@ -0,0 +1,170 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" +) + +// checks if the UpdateConnectorRequestSwimlane type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateConnectorRequestSwimlane{} + +// UpdateConnectorRequestSwimlane struct for UpdateConnectorRequestSwimlane +type UpdateConnectorRequestSwimlane struct { + Config ConfigPropertiesSwimlane `json:"config"` + // The display name for the connector. + Name string `json:"name"` + Secrets SecretsPropertiesSwimlane `json:"secrets"` +} + +// NewUpdateConnectorRequestSwimlane instantiates a new UpdateConnectorRequestSwimlane object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateConnectorRequestSwimlane(config ConfigPropertiesSwimlane, name string, secrets SecretsPropertiesSwimlane) *UpdateConnectorRequestSwimlane { + this := UpdateConnectorRequestSwimlane{} + this.Config = config + this.Name = name + this.Secrets = secrets + return &this +} + +// NewUpdateConnectorRequestSwimlaneWithDefaults instantiates a new UpdateConnectorRequestSwimlane object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateConnectorRequestSwimlaneWithDefaults() *UpdateConnectorRequestSwimlane { + this := UpdateConnectorRequestSwimlane{} + return &this +} + +// GetConfig returns the Config field value +func (o *UpdateConnectorRequestSwimlane) GetConfig() ConfigPropertiesSwimlane { + if o == nil { + var ret ConfigPropertiesSwimlane + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestSwimlane) GetConfigOk() (*ConfigPropertiesSwimlane, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *UpdateConnectorRequestSwimlane) SetConfig(v ConfigPropertiesSwimlane) { + o.Config = v +} + +// GetName returns the Name field value +func (o *UpdateConnectorRequestSwimlane) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestSwimlane) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateConnectorRequestSwimlane) SetName(v string) { + o.Name = v +} + +// GetSecrets returns the Secrets field value +func (o *UpdateConnectorRequestSwimlane) GetSecrets() SecretsPropertiesSwimlane { + if o == nil { + var ret SecretsPropertiesSwimlane + return ret + } + + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value +// and a boolean to check if the value has been set. +func (o *UpdateConnectorRequestSwimlane) GetSecretsOk() (*SecretsPropertiesSwimlane, bool) { + if o == nil { + return nil, false + } + return &o.Secrets, true +} + +// SetSecrets sets field value +func (o *UpdateConnectorRequestSwimlane) SetSecrets(v SecretsPropertiesSwimlane) { + o.Secrets = v +} + +func (o UpdateConnectorRequestSwimlane) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateConnectorRequestSwimlane) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + toSerialize["secrets"] = o.Secrets + return toSerialize, nil +} + +type NullableUpdateConnectorRequestSwimlane struct { + value *UpdateConnectorRequestSwimlane + isSet bool +} + +func (v NullableUpdateConnectorRequestSwimlane) Get() *UpdateConnectorRequestSwimlane { + return v.value +} + +func (v *NullableUpdateConnectorRequestSwimlane) Set(val *UpdateConnectorRequestSwimlane) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConnectorRequestSwimlane) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConnectorRequestSwimlane) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConnectorRequestSwimlane(val *UpdateConnectorRequestSwimlane) *NullableUpdateConnectorRequestSwimlane { + return &NullableUpdateConnectorRequestSwimlane{value: val, isSet: true} +} + +func (v NullableUpdateConnectorRequestSwimlane) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConnectorRequestSwimlane) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/kibanaactions/response.go b/generated/kibanaactions/response.go new file mode 100644 index 000000000..7f6195387 --- /dev/null +++ b/generated/kibanaactions/response.go @@ -0,0 +1,47 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/generated/kibanaactions/utils.go b/generated/kibanaactions/utils.go new file mode 100644 index 000000000..4cdad30dc --- /dev/null +++ b/generated/kibanaactions/utils.go @@ -0,0 +1,347 @@ +/* +Connectors + +OpenAPI schema for Connectors endpoints + +API version: 0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kibanaactions + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/go.mod b/go.mod index 7ea0c962c..5979b18ed 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/hashicorp/terraform-plugin-log v0.8.0 github.com/hashicorp/terraform-plugin-mux v0.9.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 - github.com/stretchr/testify v1.8.1 + github.com/stretchr/testify v1.8.2 ) require ( diff --git a/go.sum b/go.sum index 531e493e7..c71dad957 100644 --- a/go.sum +++ b/go.sum @@ -175,8 +175,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= diff --git a/internal/clients/api_client.go b/internal/clients/api_client.go index ee8c4958c..c84a71f30 100644 --- a/internal/clients/api_client.go +++ b/internal/clients/api_client.go @@ -13,6 +13,7 @@ import ( "github.com/disaster37/go-kibana-rest/v8" "github.com/elastic/go-elasticsearch/v7" "github.com/elastic/terraform-provider-elasticstack/generated/alerting" + "github.com/elastic/terraform-provider-elasticstack/generated/kibanaactions" "github.com/elastic/terraform-provider-elasticstack/internal/models" "github.com/elastic/terraform-provider-elasticstack/internal/utils" "github.com/hashicorp/go-version" @@ -62,6 +63,7 @@ type ApiClient struct { elasticsearchClusterInfo *models.ClusterInfo kibana *kibana.Client alerting alerting.AlertingApi + actionConnectors kibanaactions.ConnectorsApi kibanaConfig kibana.Config version string } @@ -121,11 +123,12 @@ func NewAcceptanceTestingClient() (*ApiClient, error) { } return &ApiClient{ - elasticsearch: es, - kibana: kib, - alerting: buildAlertingClient(baseConfig, kibanaConfig).AlertingApi, - kibanaConfig: kibanaConfig, - version: "acceptance-testing", + elasticsearch: es, + kibana: kib, + alerting: buildAlertingClient(baseConfig, kibanaConfig).AlertingApi, + actionConnectors: buildActionConnectorClient(baseConfig, kibanaConfig).ConnectorsApi, + kibanaConfig: kibanaConfig, + version: "acceptance-testing", }, nil } @@ -189,6 +192,19 @@ func (a *ApiClient) GetAlertingClient() (alerting.AlertingApi, error) { return a.alerting, nil } +func (a *ApiClient) GetKibanaActionConnectorClient(ctx context.Context) (kibanaactions.ConnectorsApi, context.Context, error) { + if a.actionConnectors == nil { + return nil, nil, errors.New("kibana action connector client not found") + } + + ctx = context.WithValue(ctx, alerting.ContextBasicAuth, alerting.BasicAuth{ + UserName: a.kibanaConfig.Username, + Password: a.kibanaConfig.Password, + }) + + return a.actionConnectors, ctx, nil +} + func (a *ApiClient) SetAlertingAuthContext(ctx context.Context) context.Context { return context.WithValue(ctx, alerting.ContextBasicAuth, alerting.BasicAuth{ UserName: a.kibanaConfig.Username, @@ -503,6 +519,19 @@ func buildAlertingClient(baseConfig BaseConfig, config kibana.Config) *alerting. return alerting.NewAPIClient(&alertingConfig) } +func buildActionConnectorClient(baseConfig BaseConfig, config kibana.Config) *kibanaactions.APIClient { + connectorsConfig := kibanaactions.Configuration{ + UserAgent: baseConfig.UserAgent, + Servers: kibanaactions.ServerConfigurations{ + { + URL: config.Address, + }, + }, + Debug: logging.IsDebugOrHigher(), + } + return kibanaactions.NewAPIClient(&connectorsConfig) +} + const esKey string = "elasticsearch" func newApiClient(d *schema.ResourceData, version string) (*ApiClient, diag.Diagnostics) { @@ -525,12 +554,15 @@ func newApiClient(d *schema.ResourceData, version string) (*ApiClient, diag.Diag alertingClient := buildAlertingClient(baseConfig, kibanaConfig) + actionConnectorClient := buildActionConnectorClient(baseConfig, kibanaConfig) + return &ApiClient{ elasticsearch: esClient, elasticsearchClusterInfo: nil, kibana: kibanaClient, kibanaConfig: kibanaConfig, alerting: alertingClient.AlertingApi, + actionConnectors: actionConnectorClient.ConnectorsApi, version: version, }, diags } diff --git a/internal/clients/kibana/action_connector.go b/internal/clients/kibana/action_connector.go new file mode 100644 index 000000000..871fe3dea --- /dev/null +++ b/internal/clients/kibana/action_connector.go @@ -0,0 +1,789 @@ +package kibana + +import ( + "context" + "fmt" + "net/http" + + "github.com/elastic/terraform-provider-elasticstack/generated/kibanaactions" + "github.com/elastic/terraform-provider-elasticstack/internal/clients" + "github.com/elastic/terraform-provider-elasticstack/internal/models" + "github.com/elastic/terraform-provider-elasticstack/internal/utils" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" +) + +func CreateActionConnector(ctx context.Context, apiClient *clients.ApiClient, connectorOld models.KibanaActionConnector) (string, diag.Diagnostics) { + client, ctxWithAuth, err := apiClient.GetKibanaActionConnectorClient(ctx) + if err != nil { + return "", diag.FromErr(err) + } + + createProperties, err := createConnectorRequestBodyProperties(connectorOld) + if err != nil { + return "", diag.FromErr(err) + } + + req := client.CreateConnector(ctxWithAuth, connectorOld.SpaceID).KbnXsrf("true").CreateConnectorRequestBodyProperties(createProperties) + + responseProperties, httpRes, err := req.Execute() + if err != nil && httpRes == nil { + return "", diag.FromErr(err) + } + defer httpRes.Body.Close() + + if diags := utils.CheckHttpError(httpRes, "Unabled to create action connector"); diags.HasError() { + return "", diag.FromErr(err) + } + + connectorNew, err := actionConnectorToModel(connectorOld.SpaceID, responseProperties) + if err != nil { + return "", diag.FromErr(err) + } + + return connectorNew.ConnectorID, nil +} + +func UpdateActionConnector(ctx context.Context, apiClient *clients.ApiClient, connectorOld models.KibanaActionConnector) (string, diag.Diagnostics) { + client, ctxWithAuth, err := apiClient.GetKibanaActionConnectorClient(ctx) + if err != nil { + return "", diag.FromErr(err) + } + + updateProperties, err := updateConnectorRequestBodyProperties(connectorOld) + if err != nil { + return "", diag.FromErr(err) + } + + req := client.UpdateConnector(ctxWithAuth, connectorOld.ConnectorID, connectorOld.SpaceID).KbnXsrf("true").UpdateConnectorRequestBodyProperties(updateProperties) + + responseProperties, httpRes, err := req.Execute() + if err != nil && httpRes == nil { + return "", diag.FromErr(err) + } + defer httpRes.Body.Close() + + if diags := utils.CheckHttpError(httpRes, "Unabled to update action connector"); diags.HasError() { + return "", diags + } + + connectorNew, err := actionConnectorToModel(connectorOld.SpaceID, responseProperties) + if err != nil { + return "", diag.FromErr(err) + } + + return connectorNew.ConnectorID, nil +} + +func GetActionConnector(ctx context.Context, apiClient *clients.ApiClient, connectorID, spaceID string) (*models.KibanaActionConnector, diag.Diagnostics) { + client, ctxWithAuth, err := apiClient.GetKibanaActionConnectorClient(ctx) + if err != nil { + return nil, diag.FromErr(err) + } + + req := client.GetConnector(ctxWithAuth, connectorID, spaceID) + + properties, res, err := req.Execute() + if err != nil && res == nil { + return nil, diag.FromErr(err) + } + defer res.Body.Close() + + if res.StatusCode == http.StatusNotFound { + return nil, nil + } + + if diags := utils.CheckHttpError(res, "Unabled to get action connector"); diags.HasError() { + return nil, diags + } + + connector, err := actionConnectorToModel(spaceID, properties) + if err != nil { + return nil, diag.FromErr(err) + } + + return connector, nil +} + +func DeleteActionConnector(ctx context.Context, apiClient *clients.ApiClient, connectorID string, spaceID string) diag.Diagnostics { + client, ctxWithAuth, err := apiClient.GetKibanaActionConnectorClient(ctx) + if err != nil { + return diag.FromErr(err) + } + + req := client.DeleteConnector(ctxWithAuth, connectorID, spaceID).KbnXsrf("true") + res, err := req.Execute() + if err != nil && res == nil { + return diag.FromErr(err) + } + defer res.Body.Close() + + return utils.CheckHttpError(res, "Unabled to delete action connector") +} + +func createConnectorRequestBodyProperties(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + connectorType, err := kibanaactions.NewConnectorTypesFromValue(connector.ConnectorTypeID) + if err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, err + } + + switch *connectorType { + case kibanaactions.CASES_WEBHOOK: + return createConnectorRequestCasesWebhook(connector) + // case kibanaactions.EMAIL: + // return createConnectorRequestEmail(connector) + case kibanaactions.INDEX: + return createConnectorRequestIndex(connector) + case kibanaactions.JIRA: + return createConnectorRequestJira(connector) + case kibanaactions.OPSGENIE: + return createConnectorRequestOpsgenie(connector) + // case kibanaactions.PAGERDUTY: + // return createConnectorRequestPagerduty(connector) + case kibanaactions.RESILIENT: + return createConnectorRequestResilient(connector) + case kibanaactions.SERVICENOW: + return createConnectorRequestServicenow(connector) + case kibanaactions.SERVICENOW_ITOM: + return createConnectorRequestServicenowItom(connector) + // case kibanaactions.SERVICENOW_SIR: + // return createConnectorRequestServicenowSir(connector) + case kibanaactions.SERVER_LOG: + return createConnectorRequestServerLog(connector) + // case kibanaactions.SLACK: + // return createConnectorRequestSlack(connector) + case kibanaactions.SWIMLANE: + return createConnectorRequestSwimlane(connector) + // case kibanaactions.TEAMS: + // return createConnectorRequestTeams(connector) + // case kibanaactions.TINES: + // return createConnectorRequestTines(connector) + // case kibanaactions.WEBHOOK: + // return createConnectorRequestWebhook(connector) + // case kibanaactions.XMATTERS: + // return createConnectorRequestXmatters(connector) + } + + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("unknown connector type [%s]", connector.ConnectorTypeID) +} + +func updateConnectorRequestBodyProperties(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + connectorType, err := kibanaactions.NewConnectorTypesFromValue(connector.ConnectorTypeID) + if err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, err + } + + switch *connectorType { + case kibanaactions.CASES_WEBHOOK: + return updateConnectorRequestCasesWebhook(connector) + // case kibanaactions.EMAIL: + // return updateConnectorRequestEmail(connector) + case kibanaactions.INDEX: + return updateConnectorRequestIndex(connector) + case kibanaactions.JIRA: + return updateConnectorRequestJira(connector) + case kibanaactions.OPSGENIE: + return updateConnectorRequestOpsgenie(connector) + // case kibanaactions.PAGERDUTY: + // return updateConnectorRequestPagerduty(connector) + case kibanaactions.RESILIENT: + return updateConnectorRequestResilient(connector) + case kibanaactions.SERVICENOW: + return updateConnectorRequestServicenow(connector) + case kibanaactions.SERVICENOW_ITOM: + return updateConnectorRequestServicenowItom(connector) + // case kibanaactions.SERVICENOW_SIR: + // return updateConnectorRequestServicenowSir(connector) + case kibanaactions.SERVER_LOG: + return updateConnectorRequestServerLog(connector) + // case kibanaactions.SLACK: + // return updateConnectorRequestSlack(connector) + case kibanaactions.SWIMLANE: + return updateConnectorRequestSwimlane(connector) + // case kibanaactions.TEAMS: + // return updateConnectorRequestTeams(connector) + // case kibanaactions.TINES: + // return updateConnectorRequestTines(connector) + // case kibanaactions.WEBHOOK: + // return updateConnectorRequestWebhook(connector) + // case kibanaactions.XMATTERS: + // return updateConnectorRequestXmatters(connector) + } + + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("unknown connector type [%s]", connector.ConnectorTypeID) +} + +func createConnectorRequestCasesWebhook(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for CasesWebhook" + + config := kibanaactions.NullableConfigPropertiesCasesWebhook{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesCasesWebhook{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestCasesWebhook{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestCasesWebhookAsCreateConnectorRequestBodyProperties(&c), nil +} + +// func createConnectorRequestEmail(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for Email" + +// var config map[string]interface{} +// if err := json.Unmarshal([]byte(connector.ConfigJSON), &config); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) +// } + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestEmail{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Config: config, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestEmailAsCreateConnectorRequestBodyProperties(&c), nil +// } + +func createConnectorRequestIndex(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for Index" + + config := kibanaactions.NullableConfigPropertiesIndex{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestIndex{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + } + + return kibanaactions.CreateConnectorRequestIndexAsCreateConnectorRequestBodyProperties(&c), nil +} + +func createConnectorRequestJira(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for Jira" + + config := kibanaactions.NullableConfigPropertiesJira{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesJira{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestJira{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestJiraAsCreateConnectorRequestBodyProperties(&c), nil +} + +func createConnectorRequestOpsgenie(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for Opsgenie" + + config := kibanaactions.NullableConfigPropertiesOpsgenie{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesOpsgenie{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestOpsgenie{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestOpsgenieAsCreateConnectorRequestBodyProperties(&c), nil +} + +// func createConnectorRequestPagerduty(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for PagerDuty" + +// var config map[string]interface{} +// if err := json.Unmarshal([]byte(connector.ConfigJSON), &config); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) +// } + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestPagerduty{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Config: config, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestPagerdutyAsCreateConnectorRequestBodyProperties(&c), nil +// } + +func createConnectorRequestResilient(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for Resilient" + + config := kibanaactions.NullableConfigPropertiesResilient{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesResilient{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestResilient{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestResilientAsCreateConnectorRequestBodyProperties(&c), nil +} + +func createConnectorRequestServicenow(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for Servicenow" + + config := kibanaactions.NullableConfigPropertiesServicenow{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesServicenow{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestServicenow{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestServicenowAsCreateConnectorRequestBodyProperties(&c), nil +} + +func createConnectorRequestServicenowItom(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for ServicenowItom" + + config := kibanaactions.NullableConfigPropertiesServicenowItom{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesServicenow{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestServicenowItom{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestServicenowItomAsCreateConnectorRequestBodyProperties(&c), nil +} + +// func createConnectorRequestServicenowSir(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for ServicenowSir" + +// config := kibanaactions.NullableConfigPropertiesServicenow{} +// if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) +// } + +// secrets := kibanaactions.NullableSecretsPropertiesServicenow{} +// if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestServicenowSir{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Config: *config.Get(), +// Secrets: *secrets.Get(), +// } + +// return kibanaactions.CreateConnectorRequestServicenowSirAsCreateConnectorRequestBodyProperties(&c), nil +// } + +func createConnectorRequestServerLog(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + c := kibanaactions.CreateConnectorRequestServerlog{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + } + + return kibanaactions.CreateConnectorRequestServerlogAsCreateConnectorRequestBodyProperties(&c), nil +} + +// func createConnectorRequestSlack(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for Slack" + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestSlack{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestSlackAsCreateConnectorRequestBodyProperties(&c), nil +// } + +func createConnectorRequestSwimlane(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose create connector request for Swimlane" + + config := kibanaactions.NullableConfigPropertiesSwimlane{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesSwimlane{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.CreateConnectorRequestSwimlane{ + ConnectorTypeId: connector.ConnectorTypeID, + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.CreateConnectorRequestSwimlaneAsCreateConnectorRequestBodyProperties(&c), nil +} + +// func createConnectorRequestTeams(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for Teams" + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestTeams{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestTeamsAsCreateConnectorRequestBodyProperties(&c), nil +// } + +// func createConnectorRequestTines(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for Tines" + +// var config map[string]interface{} +// if err := json.Unmarshal([]byte(connector.ConfigJSON), &config); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) +// } + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestTines{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Config: config, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestTinesAsCreateConnectorRequestBodyProperties(&c), nil +// } + +// func createConnectorRequestWebhook(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for Webhook" + +// var config map[string]interface{} +// if err := json.Unmarshal([]byte(connector.ConfigJSON), &config); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) +// } + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestWebhook{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Config: config, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestWebhookAsCreateConnectorRequestBodyProperties(&c), nil +// } + +// func createConnectorRequestXmatters(connector models.KibanaActionConnector) (kibanaactions.CreateConnectorRequestBodyProperties, error) { +// prefixError := "failed to compose create connector request for Xmatters" + +// var config map[string]interface{} +// if err := json.Unmarshal([]byte(connector.ConfigJSON), &config); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) +// } + +// var secrets map[string]interface{} +// if err := json.Unmarshal([]byte(connector.SecretsJSON), &secrets); err != nil { +// return kibanaactions.CreateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) +// } + +// c := kibanaactions.CreateConnectorRequestXmatters{ +// ConnectorTypeId: connector.ConnectorTypeID, +// Name: connector.Name, +// Config: config, +// Secrets: secrets, +// } + +// return kibanaactions.CreateConnectorRequestXmattersAsCreateConnectorRequestBodyProperties(&c), nil +// } + +func updateConnectorRequestCasesWebhook(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for CasesWebhook" + + nullableConfig := kibanaactions.NullableConfigPropertiesCasesWebhook{} + if err := nullableConfig.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + nullableSecrets := kibanaactions.NullableSecretsPropertiesCasesWebhook{} + if err := nullableSecrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestCasesWebhook{ + Name: connector.Name, + Config: *nullableConfig.Get(), + Secrets: nullableSecrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestCasesWebhookAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestIndex(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for Index" + + config := kibanaactions.NullableConfigPropertiesIndex{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestIndex{ + Name: connector.Name, + Config: *config.Get(), + } + + return kibanaactions.UpdateConnectorRequestIndexAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestJira(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for Jira" + + config := kibanaactions.NullableConfigPropertiesJira{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesJira{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestJira{ + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestJiraAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestOpsgenie(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for Opsgenie" + + config := kibanaactions.NullableConfigPropertiesOpsgenie{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesOpsgenie{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestOpsgenie{ + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestOpsgenieAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestResilient(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for Resilient" + + config := kibanaactions.NullableConfigPropertiesResilient{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesResilient{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestResilient{ + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestResilientAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestServicenow(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for Servicenow" + + config := kibanaactions.NullableConfigPropertiesServicenow{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesServicenow{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestServicenow{ + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestServicenowAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestServicenowItom(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for ServicenowItom" + + config := kibanaactions.NullableConfigPropertiesServicenowItom{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesServicenow{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestServicenowItom{ + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestServicenowItomAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestServerLog(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + c := kibanaactions.UpdateConnectorRequestServerlog{ + Name: connector.Name, + } + + return kibanaactions.UpdateConnectorRequestServerlogAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func updateConnectorRequestSwimlane(connector models.KibanaActionConnector) (kibanaactions.UpdateConnectorRequestBodyProperties, error) { + prefixError := "failed to compose update connector request for Swimlane" + + config := kibanaactions.NullableConfigPropertiesSwimlane{} + if err := config.UnmarshalJSON([]byte(connector.ConfigJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [config] - %w", prefixError, err) + } + + secrets := kibanaactions.NullableSecretsPropertiesSwimlane{} + if err := secrets.UnmarshalJSON([]byte(connector.SecretsJSON)); err != nil { + return kibanaactions.UpdateConnectorRequestBodyProperties{}, fmt.Errorf("%s - failed to unmarshal [secrets]: %w", prefixError, err) + } + + c := kibanaactions.UpdateConnectorRequestSwimlane{ + Name: connector.Name, + Config: *config.Get(), + Secrets: *secrets.Get(), + } + + return kibanaactions.UpdateConnectorRequestSwimlaneAsUpdateConnectorRequestBodyProperties(&c), nil +} + +func actionConnectorToModel(spaceID string, properties *kibanaactions.ConnectorResponseProperties) (*models.KibanaActionConnector, error) { + instance := properties.GetActualInstance() + commonProps, ok := instance.(connectorCommon) + if !ok { + return nil, fmt.Errorf("failed parse common connector properties") + } + name, ok := commonProps.GetNameOk() + if !ok { + return nil, fmt.Errorf("failed parse connector name") + } + typeId, ok := commonProps.GetNameOk() + if !ok { + return nil, fmt.Errorf("failed parse connector type id") + } + id, ok := commonProps.GetIdOk() + if !ok { + return nil, fmt.Errorf("failed parse connector id") + } + connector := models.KibanaActionConnector{ + ConnectorID: *id, + SpaceID: spaceID, + Name: *name, + ConnectorTypeID: *typeId, + IsDeprecated: commonProps.GetIsDeprecated(), + IsMissingSecrets: commonProps.GetIsMissingSecrets(), + IsPreconfigured: commonProps.GetIsPreconfigured(), + } + return &connector, nil +} + +type connectorCommon interface { + GetIdOk() (*string, bool) + GetConnectorTypeIdOk() (*string, bool) + GetNameOk() (*string, bool) + GetIsDeprecated() bool + GetIsMissingSecrets() bool + GetIsPreconfigured() bool +} diff --git a/internal/kibana/action_connector.go b/internal/kibana/action_connector.go new file mode 100644 index 000000000..31761088e --- /dev/null +++ b/internal/kibana/action_connector.go @@ -0,0 +1,238 @@ +package kibana + +import ( + "context" + + "github.com/elastic/terraform-provider-elasticstack/internal/clients" + "github.com/elastic/terraform-provider-elasticstack/internal/clients/kibana" + "github.com/elastic/terraform-provider-elasticstack/internal/models" + "github.com/elastic/terraform-provider-elasticstack/internal/utils" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" +) + +func ResourceActionConnector() *schema.Resource { + apikeySchema := map[string]*schema.Schema{ + "connector_id": { + Description: "A UUID v1 or v4 to use instead of a randomly generated ID.", + Type: schema.TypeString, + Computed: true, + Optional: true, + ForceNew: true, + }, + "space_id": { + Description: "An identifier for the space. If space_id is not provided, the default space is used.", + Type: schema.TypeString, + Optional: true, + Default: "default", + ForceNew: true, + }, + "name": { + Description: "The name of the connector. While this name does not have to be unique, a distinctive name can help you identify a connector.", + Type: schema.TypeString, + Required: true, + }, + "connector_type_id": { + Description: "The ID of the connector type, e.g. `.index`.", + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + "config": { + Description: "The configuration for the connector. Configuration properties vary depending on the connector type.", + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: utils.DiffJsonSuppress, + ValidateFunc: validation.StringIsJSON, + }, + "secrets": { + Description: "The secrets configuration for the connector. Secrets configuration properties vary depending on the connector type.", + Type: schema.TypeString, + Required: true, + DiffSuppressFunc: utils.DiffJsonSuppress, + ValidateFunc: validation.StringIsJSON, + }, + "is_deprecated": { + Description: "Indicates whether the connector type is deprecated.", + Type: schema.TypeBool, + Computed: true, + }, + "is_missing_secrets": { + Description: "Indicates whether secrets are missing for the connector.", + Type: schema.TypeBool, + Computed: true, + }, + "is_preconfigured": { + Description: "Indicates whether it is a preconfigured connector.", + Type: schema.TypeBool, + Computed: true, + }, + } + + return &schema.Resource{ + Description: "Creates a Kibana action connector. See https://www.elastic.co/guide/en/kibana/8.7/action-types.html", + + CreateContext: resourceConnectorCreate, + UpdateContext: resourceConnectorUpdate, + ReadContext: resourceConnectorRead, + DeleteContext: resourceConnectorDelete, + + Importer: &schema.ResourceImporter{ + StateContext: schema.ImportStatePassthroughContext, + }, + + Schema: apikeySchema, + } +} + +func resourceConnectorCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client, diags := clients.NewApiClient(d, meta) + if diags.HasError() { + return diags + } + + connectorOld, diags := expandActionConnector(d) + if diags.HasError() { + return diags + } + + connectorID, diags := kibana.CreateActionConnector(ctx, client, connectorOld) + + if diags.HasError() { + return diags + } + + compositeID := &clients.CompositeId{ClusterId: connectorOld.SpaceID, ResourceId: connectorID} + d.SetId(compositeID.String()) + + return resourceConnectorRead(ctx, d, meta) +} + +func resourceConnectorUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client, diags := clients.NewApiClient(d, meta) + if diags.HasError() { + return diags + } + + connectorOld, diags := expandActionConnector(d) + if diags.HasError() { + return diags + } + + compositeId, diags := clients.CompositeIdFromStr(d.Id()) + if diags.HasError() { + return diags + } + connectorOld.ConnectorID = compositeId.ResourceId + + connectorID, diags := kibana.UpdateActionConnector(ctx, client, connectorOld) + + if diags.HasError() { + return diags + } + + compositeID := &clients.CompositeId{ClusterId: connectorOld.SpaceID, ResourceId: connectorID} + d.SetId(compositeID.String()) + + return resourceConnectorRead(ctx, d, meta) +} + +func resourceConnectorRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client, diags := clients.NewApiClient(d, meta) + if diags.HasError() { + return diags + } + + compositeID, diags := clients.CompositeIdFromStr(d.Id()) + if diags.HasError() { + return diags + } + connectorID := compositeID.ResourceId + spaceId := compositeID.ClusterId + + connector, diags := kibana.GetActionConnector(ctx, client, connectorID, spaceId) + if connector == nil && diags == nil { + d.SetId("") + return diags + } + if diags.HasError() { + return diags + } + + return flattenActionConnector(connector, d) +} + +func resourceConnectorDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { + client, diags := clients.NewApiClient(d, meta) + if diags.HasError() { + return diags + } + + compositeID, diags := clients.CompositeIdFromStr(d.Id()) + if diags.HasError() { + return diags + } + + spaceId := d.Get("space_id").(string) + + if diags := kibana.DeleteActionConnector(ctx, client, compositeID.ResourceId, spaceId); diags.HasError() { + return diags + } + + d.SetId("") + return nil +} + +// func jsonStrToMap(d *schema.ResourceData, fieldName string, diags *diag.Diagnostics) map[string]interface{} { +// jsonStr := d.Get(fieldName) +// res := map[string]interface{}{} +// if err := json.NewDecoder(strings.NewReader(jsonStr.(string))).Decode(&res); err != nil { +// *diags = append(*diags, diag.FromErr(err)...) +// } +// return res +// } + +func expandActionConnector(d *schema.ResourceData) (models.KibanaActionConnector, diag.Diagnostics) { + var diags diag.Diagnostics + + connector := models.KibanaActionConnector{ + SpaceID: d.Get("space_id").(string), + Name: d.Get("name").(string), + ConnectorTypeID: d.Get("connector_type_id").(string), + } + + connector.ConfigJSON = d.Get("config").(string) + connector.SecretsJSON = d.Get("secrets").(string) + + return connector, diags +} + +func flattenActionConnector(connector *models.KibanaActionConnector, d *schema.ResourceData) diag.Diagnostics { + if err := d.Set("connector_id", connector.ConnectorID); err != nil { + return diag.FromErr(err) + } + if err := d.Set("space_id", connector.SpaceID); err != nil { + return diag.FromErr(err) + } + if err := d.Set("name", connector.Name); err != nil { + return diag.FromErr(err) + } + if err := d.Set("connector_type_id", connector.ConnectorTypeID); err != nil { + return diag.FromErr(err) + } + if err := d.Set("config", connector.ConfigJSON); err != nil { + return diag.FromErr(err) + } + if err := d.Set("is_deprecated", connector.IsDeprecated); err != nil { + return diag.FromErr(err) + } + if err := d.Set("is_missing_secrets", connector.IsMissingSecrets); err != nil { + return diag.FromErr(err) + } + if err := d.Set("is_preconfigured", connector.IsPreconfigured); err != nil { + return diag.FromErr(err) + } + + return nil +} diff --git a/internal/models/action_connector.go b/internal/models/action_connector.go new file mode 100644 index 000000000..031e83a4d --- /dev/null +++ b/internal/models/action_connector.go @@ -0,0 +1,13 @@ +package models + +type KibanaActionConnector struct { + ConnectorID string + SpaceID string + Name string + ConnectorTypeID string + ConfigJSON string + SecretsJSON string + IsDeprecated bool + IsMissingSecrets bool + IsPreconfigured bool +} diff --git a/provider/provider.go b/provider/provider.go index 691a013d9..3d93859da 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -95,8 +95,9 @@ func New(version string) *schema.Provider { "elasticstack_elasticsearch_transform": transform.ResourceTransform(), "elasticstack_elasticsearch_watch": watcher.ResourceWatch(), - "elasticstack_kibana_alerting_rule": kibana.ResourceAlertingRule(), - "elasticstack_kibana_space": kibana.ResourceSpace(), + "elasticstack_kibana_alerting_rule": kibana.ResourceAlertingRule(), + "elasticstack_kibana_space": kibana.ResourceSpace(), + "elasticstack_kibana_action_connector": kibana.ResourceActionConnector(), }, }