=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://openapi-generator.tech OpenAPI Generator version: 5.0.0-SNAPSHOT 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 'spec_helper' require 'json' # Unit tests for DatadogAPIClient::V2::KeyManagementApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'KeyManagementApi' do before do # run before each test @api_instance = DatadogAPIClient::V2::KeyManagementApi.new end after do # run after each test end describe 'test an instance of KeyManagementApi' do it 'should create an instance of KeyManagementApi' do expect(@api_instance).to be_instance_of(DatadogAPIClient::V2::KeyManagementApi) end end # unit tests for create_api_key # Create an API key # Create an API key. # @param body # @param [Hash] opts the optional parameters # @return [APIKeyResponse] describe 'create_api_key test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for delete_api_key # Delete an API key # Delete an API key. # @param api_key_id The ID of the API key. # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_api_key test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_api_key # Get API key # Get an API key. # @param api_key_id The ID of the API key. # @param [Hash] opts the optional parameters # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [APIKeyResponse] describe 'get_api_key test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list_api_keys # Get all API keys # List all API keys available for your account. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [String] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter API keys by the specified string. # @option opts [String] :filter_created_at_start Only include API keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include API keys created on or before the specified date. # @option opts [String] :filter_modified_at_start Only include API keys modified on or after the specified date. # @option opts [String] :filter_modified_at_end Only include API keys modified on or before the specified date. # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [APIKeysResponse] describe 'list_api_keys test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for update_api_key # Edit an API key # Update an API key. # @param api_key_id The ID of the API key. # @param body # @param [Hash] opts the optional parameters # @return [APIKeyResponse] describe 'update_api_key test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end