diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 53a4ea6a1a50..85f3c28c11cb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -67238,6 +67238,32 @@ components: type: string x-enum-varnames: - CLICKHOUSE + ObservabilityPipelineClientTls: + description: Configuration for enabling TLS encryption between the pipeline component and external services. + properties: + ca_file: + description: Path to the Certificate Authority (CA) file used to validate the server’s TLS certificate. + type: string + crt_file: + description: Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. + example: "/path/to/cert.crt" + type: string + key_file: + description: Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. + type: string + key_pass_key: + description: Name of the environment variable or secret that holds the passphrase for the private key file. + example: TLS_KEY_PASSPHRASE + type: string + server_name: + description: Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. + example: server.example.com + maxLength: 253 + minLength: 1 + type: string + required: + - crt_file + type: object ObservabilityPipelineCloudPremDestination: description: |- The `cloud_prem` destination sends logs to Datadog CloudPrem. @@ -67262,7 +67288,7 @@ components: type: string type: array tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" + $ref: "#/components/schemas/ObservabilityPipelineClientTls" description: Configuration for TLS encryption. type: $ref: "#/components/schemas/ObservabilityPipelineCloudPremDestinationType" @@ -68977,7 +69003,7 @@ components: example: HTTP_AUTH_PASSWORD type: string tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" + $ref: "#/components/schemas/ObservabilityPipelineClientTls" token_key: description: Name of the environment variable or secret that holds the bearer token (used when `auth_strategy` is `bearer`). example: HTTP_AUTH_TOKEN @@ -69075,7 +69101,7 @@ components: format: int64 type: integer tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" + $ref: "#/components/schemas/ObservabilityPipelineClientTls" token_key: description: Name of the environment variable or secret that holds the bearer token (used when `auth_strategy` is `bearer`). example: HTTP_AUTH_TOKEN @@ -71158,7 +71184,7 @@ components: mode: $ref: "#/components/schemas/ObservabilityPipelineSocketDestinationMode" tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" + $ref: "#/components/schemas/ObservabilityPipelineClientTls" description: TLS configuration. Relevant only when `mode` is `tcp`. type: $ref: "#/components/schemas/ObservabilityPipelineSocketDestinationType" @@ -71890,7 +71916,7 @@ components: minimum: 0 type: integer tls: - $ref: "#/components/schemas/ObservabilityPipelineTls" + $ref: "#/components/schemas/ObservabilityPipelineClientTls" type: $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestinationType" required: @@ -87654,6 +87680,8 @@ components: ScheduleTrigger: description: "Trigger a workflow from a Schedule. The workflow must be published." properties: + overlapBehavior: + $ref: "#/components/schemas/ScheduleTriggerOverlapBehavior" rruleExpression: description: "Recurrence rule expression for scheduling." example: "" @@ -87661,6 +87689,17 @@ components: required: - rruleExpression type: object + ScheduleTriggerOverlapBehavior: + default: EXCLUSIVE_RUN + description: Controls whether a scheduled workflow run may start while another instance is still running. + enum: + - EXCLUSIVE_RUN + - OVERLAP_ALLOWED + example: EXCLUSIVE_RUN + type: string + x-enum-varnames: + - EXCLUSIVE_RUN + - OVERLAP_ALLOWED ScheduleTriggerWrapper: description: "Schema for a Schedule-based trigger." properties: @@ -138086,7 +138125,7 @@ paths: get: description: |- Returns a list of environments for the organization. - Supports filtering by name and key. + Supports filtering by name, key, and DD_ENV. operationId: ListFeatureFlagsEnvironments parameters: - description: Filter environments by name (partial matching). @@ -138101,6 +138140,12 @@ paths: name: key schema: type: string + - description: Filter environments by queries that contain the provided DD_ENV value. + example: "staging" + in: query + name: dd_env + schema: + type: string - description: Maximum number of results to return. example: 10 in: query @@ -179962,9 +180007,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: >- Create Linear issues for security findings. @@ -180038,9 +180080,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/findings/mute: patch: description: >- diff --git a/examples/v2/security-monitoring/AttachLinearIssue.rb b/examples/v2/security-monitoring/AttachLinearIssue.rb index 949a6ca643f8..3e0569a2a363 100644 --- a/examples/v2/security-monitoring/AttachLinearIssue.rb +++ b/examples/v2/security-monitoring/AttachLinearIssue.rb @@ -1,9 +1,6 @@ # Attach security findings to a Linear issue returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.attach_linear_issue".to_sym] = true -end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachLinearIssueRequest.new({ diff --git a/examples/v2/security-monitoring/CreateLinearIssues.rb b/examples/v2/security-monitoring/CreateLinearIssues.rb index 40a8c59def4d..cfbfe4cd3c75 100644 --- a/examples/v2/security-monitoring/CreateLinearIssues.rb +++ b/examples/v2/security-monitoring/CreateLinearIssues.rb @@ -1,9 +1,6 @@ # Create Linear issues for security findings returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_linear_issues".to_sym] = true -end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateLinearIssueRequestArray.new({ diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 8e5d75fdcb23..2baffea88083 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -3315,6 +3315,7 @@ "v2.ListFeatureFlagsEnvironments" => { "name" => "String", "key" => "String", + "dd_env" => "String", "limit" => "Integer", "offset" => "Integer", }, diff --git a/features/v2/security_monitoring.feature b/features/v2/security_monitoring.feature index c713293f4632..10c4c66afa1b 100644 --- a/features/v2/security_monitoring.feature +++ b/features/v2/security_monitoring.feature @@ -140,24 +140,21 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a Linear issue returns "Bad Request" response - Given operation "AttachLinearIssue" enabled - And new "AttachLinearIssue" request + Given new "AttachLinearIssue" request And body with value {"data": {"attributes": {"linear_issue_url": "https://linear.app/your-workspace/issue/ENG-123"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a Linear issue returns "Not Found" response - Given operation "AttachLinearIssue" enabled - And new "AttachLinearIssue" request + Given new "AttachLinearIssue" request And body with value {"data": {"attributes": {"linear_issue_url": "https://linear.app/your-workspace/issue/ENG-123"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a Linear issue returns "OK" response - Given operation "AttachLinearIssue" enabled - And new "AttachLinearIssue" request + Given new "AttachLinearIssue" request And body with value {"data": {"attributes": {"linear_issue_url": "https://linear.app/your-workspace/issue/ENG-123"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}} When the request is sent Then the response status is 200 OK @@ -580,24 +577,21 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Create Linear issues for security findings returns "Bad Request" response - Given operation "CreateLinearIssues" enabled - And new "CreateLinearIssues" request + Given new "CreateLinearIssues" request And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the Linear issue.", "label_ids": ["a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"], "linear_project_id": "d4c3b2a1-6f5e-8b7a-0d9c-2f1e4a3b6c5d", "priority": "NOT_DEFINED", "title": "A title for the Linear issue."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}]} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Create Linear issues for security findings returns "Created" response - Given operation "CreateLinearIssues" enabled - And new "CreateLinearIssues" request + Given new "CreateLinearIssues" request And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the Linear issue.", "label_ids": ["a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"], "linear_project_id": "d4c3b2a1-6f5e-8b7a-0d9c-2f1e4a3b6c5d", "priority": "NOT_DEFINED", "title": "A title for the Linear issue."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}]} When the request is sent Then the response status is 201 Created @generated @skip @team:DataDog/k9-investigation Scenario: Create Linear issues for security findings returns "Not Found" response - Given operation "CreateLinearIssues" enabled - And new "CreateLinearIssues" request + Given new "CreateLinearIssues" request And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the Linear issue.", "label_ids": ["a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"], "linear_project_id": "d4c3b2a1-6f5e-8b7a-0d9c-2f1e4a3b6c5d", "priority": "NOT_DEFINED", "title": "A title for the Linear issue."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "linear_issues"}]} When the request is sent Then the response status is 404 Not Found diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index f199ec2102af..c2ed6cc892b6 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -304,7 +304,6 @@ def initialize "v2.list_aws_cloud_auth_persona_mappings": false, "v2.activate_content_pack": false, "v2.activate_integration": false, - "v2.attach_linear_issue": false, "v2.batch_get_security_monitoring_dataset_dependencies": false, "v2.bulk_create_sample_log_generation_subscriptions": false, "v2.bulk_export_security_monitoring_terraform_resources": false, @@ -312,7 +311,6 @@ def initialize "v2.convert_job_result_to_signal": false, "v2.convert_security_monitoring_terraform_resource": false, "v2.create_io_c_triage_state": false, - "v2.create_linear_issues": false, "v2.create_sample_log_generation_subscription": false, "v2.create_security_findings_automation_due_date_rule": false, "v2.create_security_findings_automation_mute_rule": false, diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 38e5bfee1558..5195cb99fe42 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -5122,6 +5122,7 @@ def overrides "v2.observability_pipeline_clickhouse_destination_compression_object" => "ObservabilityPipelineClickhouseDestinationCompressionObject", "v2.observability_pipeline_clickhouse_destination_format" => "ObservabilityPipelineClickhouseDestinationFormat", "v2.observability_pipeline_clickhouse_destination_type" => "ObservabilityPipelineClickhouseDestinationType", + "v2.observability_pipeline_client_tls" => "ObservabilityPipelineClientTls", "v2.observability_pipeline_cloud_prem_destination" => "ObservabilityPipelineCloudPremDestination", "v2.observability_pipeline_cloud_prem_destination_type" => "ObservabilityPipelineCloudPremDestinationType", "v2.observability_pipeline_config" => "ObservabilityPipelineConfig", @@ -6473,6 +6474,7 @@ def overrides "v2.schedule_target_position" => "ScheduleTargetPosition", "v2.schedule_target_type" => "ScheduleTargetType", "v2.schedule_trigger" => "ScheduleTrigger", + "v2.schedule_trigger_overlap_behavior" => "ScheduleTriggerOverlapBehavior", "v2.schedule_trigger_wrapper" => "ScheduleTriggerWrapper", "v2.schedule_update_request" => "ScheduleUpdateRequest", "v2.schedule_update_request_data" => "ScheduleUpdateRequestData", diff --git a/lib/datadog_api_client/v2/api/feature_flags_api.rb b/lib/datadog_api_client/v2/api/feature_flags_api.rb index b00356c8ee82..a048eec828c1 100644 --- a/lib/datadog_api_client/v2/api/feature_flags_api.rb +++ b/lib/datadog_api_client/v2/api/feature_flags_api.rb @@ -875,11 +875,12 @@ def list_feature_flags_environments(opts = {}) # List environments. # # Returns a list of environments for the organization. - # Supports filtering by name and key. + # Supports filtering by name, key, and DD_ENV. # # @param opts [Hash] the optional parameters # @option opts [String] :name Filter environments by name (partial matching). # @option opts [String] :key Filter environments by key (partial matching). + # @option opts [String] :dd_env Filter environments by queries that contain the provided DD_ENV value. # @option opts [Integer] :limit Maximum number of results to return. # @option opts [Integer] :offset Number of results to skip. # @return [Array<(ListEnvironmentsResponse, Integer, Hash)>] ListEnvironmentsResponse data, response status code and response headers @@ -904,6 +905,7 @@ def list_feature_flags_environments_with_http_info(opts = {}) query_params = opts[:query_params] || {} query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil? + query_params[:'dd_env'] = opts[:'dd_env'] if !opts[:'dd_env'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 4b3fcf6433ac..c807fd7d9bea 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -330,12 +330,6 @@ def attach_linear_issue(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers def attach_linear_issue_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.attach_linear_issue".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.attach_linear_issue") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.attach_linear_issue")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_linear_issue ...' @@ -1774,12 +1768,6 @@ def create_linear_issues(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers def create_linear_issues_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_linear_issues".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_linear_issues") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_linear_issues")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_linear_issues ...' diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_client_tls.rb b/lib/datadog_api_client/v2/models/observability_pipeline_client_tls.rb new file mode 100644 index 000000000000..9e2ae6dbe430 --- /dev/null +++ b/lib/datadog_api_client/v2/models/observability_pipeline_client_tls.rb @@ -0,0 +1,178 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Configuration for enabling TLS encryption between the pipeline component and external services. + class ObservabilityPipelineClientTls + include BaseGenericModel + + # Path to the Certificate Authority (CA) file used to validate the server’s TLS certificate. + attr_accessor :ca_file + + # Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services. + attr_reader :crt_file + + # Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. + attr_accessor :key_file + + # Name of the environment variable or secret that holds the passphrase for the private key file. + attr_accessor :key_pass_key + + # Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name. + attr_reader :server_name + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'ca_file' => :'ca_file', + :'crt_file' => :'crt_file', + :'key_file' => :'key_file', + :'key_pass_key' => :'key_pass_key', + :'server_name' => :'server_name' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'ca_file' => :'String', + :'crt_file' => :'String', + :'key_file' => :'String', + :'key_pass_key' => :'String', + :'server_name' => :'String' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineClientTls` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'ca_file') + self.ca_file = attributes[:'ca_file'] + end + + if attributes.key?(:'crt_file') + self.crt_file = attributes[:'crt_file'] + end + + if attributes.key?(:'key_file') + self.key_file = attributes[:'key_file'] + end + + if attributes.key?(:'key_pass_key') + self.key_pass_key = attributes[:'key_pass_key'] + end + + if attributes.key?(:'server_name') + self.server_name = attributes[:'server_name'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @crt_file.nil? + return false if !@server_name.nil? && @server_name.to_s.length > 253 + return false if !@server_name.nil? && @server_name.to_s.length < 1 + true + end + + # Custom attribute writer method with validation + # @param crt_file [Object] Object to be assigned + # @!visibility private + def crt_file=(crt_file) + if crt_file.nil? + fail ArgumentError, 'invalid value for "crt_file", crt_file cannot be nil.' + end + @crt_file = crt_file + end + + # Custom attribute writer method with validation + # @param server_name [Object] Object to be assigned + # @!visibility private + def server_name=(server_name) + if !server_name.nil? && server_name.to_s.length > 253 + fail ArgumentError, 'invalid value for "server_name", the character length must be smaller than or equal to 253.' + end + if !server_name.nil? && server_name.to_s.length < 1 + fail ArgumentError, 'invalid value for "server_name", the character length must be great than or equal to 1.' + end + @server_name = server_name + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + ca_file == o.ca_file && + crt_file == o.crt_file && + key_file == o.key_file && + key_pass_key == o.key_pass_key && + server_name == o.server_name && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [ca_file, crt_file, key_file, key_pass_key, server_name, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb index 7b7d1374a32d..fdace6441151 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb @@ -64,7 +64,7 @@ def self.openapi_types :'endpoint_url_key' => :'String', :'id' => :'String', :'inputs' => :'Array', - :'tls' => :'ObservabilityPipelineTls', + :'tls' => :'ObservabilityPipelineClientTls', :'type' => :'ObservabilityPipelineCloudPremDestinationType' } end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb index c6728f4b8466..03394dbb227d 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb @@ -96,7 +96,7 @@ def self.openapi_types :'id' => :'String', :'inputs' => :'Array', :'password_key' => :'String', - :'tls' => :'ObservabilityPipelineTls', + :'tls' => :'ObservabilityPipelineClientTls', :'token_key' => :'String', :'type' => :'ObservabilityPipelineHttpClientDestinationType', :'uri_key' => :'String', diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb b/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb index fcf41763ff39..658e64369167 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb @@ -92,7 +92,7 @@ def self.openapi_types :'password_key' => :'String', :'scrape_interval_secs' => :'Integer', :'scrape_timeout_secs' => :'Integer', - :'tls' => :'ObservabilityPipelineTls', + :'tls' => :'ObservabilityPipelineClientTls', :'token_key' => :'String', :'type' => :'ObservabilityPipelineHttpClientSourceType', :'username_key' => :'String' diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb index 64e137246fa9..d40439555479 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb @@ -79,7 +79,7 @@ def self.openapi_types :'id' => :'String', :'inputs' => :'Array', :'mode' => :'ObservabilityPipelineSocketDestinationMode', - :'tls' => :'ObservabilityPipelineTls', + :'tls' => :'ObservabilityPipelineClientTls', :'type' => :'ObservabilityPipelineSocketDestinationType' } end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb index b9c8202e0d5d..02caa0c8b023 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb @@ -69,7 +69,7 @@ def self.openapi_types :'id' => :'String', :'inputs' => :'Array', :'keepalive' => :'Integer', - :'tls' => :'ObservabilityPipelineTls', + :'tls' => :'ObservabilityPipelineClientTls', :'type' => :'ObservabilityPipelineSyslogNgDestinationType' } end diff --git a/lib/datadog_api_client/v2/models/schedule_trigger.rb b/lib/datadog_api_client/v2/models/schedule_trigger.rb index 2aa9dc400f27..3072a1a87f8f 100644 --- a/lib/datadog_api_client/v2/models/schedule_trigger.rb +++ b/lib/datadog_api_client/v2/models/schedule_trigger.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class ScheduleTrigger include BaseGenericModel + # Controls whether a scheduled workflow run may start while another instance is still running. + attr_accessor :overlap_behavior + # Recurrence rule expression for scheduling. attr_reader :rrule_expression @@ -30,6 +33,7 @@ class ScheduleTrigger # @!visibility private def self.attribute_map { + :'overlap_behavior' => :'overlapBehavior', :'rrule_expression' => :'rruleExpression' } end @@ -38,6 +42,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'overlap_behavior' => :'ScheduleTriggerOverlapBehavior', :'rrule_expression' => :'String' } end @@ -60,6 +65,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'overlap_behavior') + self.overlap_behavior = attributes[:'overlap_behavior'] + end + if attributes.key?(:'rrule_expression') self.rrule_expression = attributes[:'rrule_expression'] end @@ -109,6 +118,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + overlap_behavior == o.overlap_behavior && rrule_expression == o.rrule_expression && additional_properties == o.additional_properties end @@ -117,7 +127,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [rrule_expression, additional_properties].hash + [overlap_behavior, rrule_expression, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/schedule_trigger_overlap_behavior.rb b/lib/datadog_api_client/v2/models/schedule_trigger_overlap_behavior.rb new file mode 100644 index 000000000000..5cd417dea4e5 --- /dev/null +++ b/lib/datadog_api_client/v2/models/schedule_trigger_overlap_behavior.rb @@ -0,0 +1,27 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Controls whether a scheduled workflow run may start while another instance is still running. + class ScheduleTriggerOverlapBehavior + include BaseEnumModel + + EXCLUSIVE_RUN = "EXCLUSIVE_RUN".freeze + OVERLAP_ALLOWED = "OVERLAP_ALLOWED".freeze + end +end