=begin #CLOUD API #IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on. The version of the OpenAPI document: 6.0-SDK.3 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.2.1-SNAPSHOT =end require 'spec_helper' require 'json' # Unit tests for Ionoscloud::NATGatewaysApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'NATGatewaysApi' do before do # run before each test @api_instance = Ionoscloud::NATGatewaysApi.new end after do # run after each test end describe 'test an instance of NATGatewaysApi' do it 'should create an instance of NATGatewaysApi' do expect(@api_instance).to be_instance_of(Ionoscloud::NATGatewaysApi) end end # unit tests for datacenters_natgateways_delete # Remove a NAT gateway # Removes the specified NAT gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [nil] describe 'datacenters_natgateways_delete 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 datacenters_natgateways_find_by_nat_gateway_id # Retrieve a NAT gateway # Retrieves the attributes of a given NAT gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGateway] describe 'datacenters_natgateways_find_by_nat_gateway_id 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 datacenters_natgateways_flowlogs_delete # Remove Flow Log from NAT Gateway # This will remove a flow log from the NAT gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param flow_log_id The unique ID of the flow log # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @return [nil] describe 'datacenters_natgateways_flowlogs_delete 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 datacenters_natgateways_flowlogs_find_by_flow_log_id # Retrieve a Flow Log of the NAT Gateway # This will return a Flow Log of the NAT Gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param flow_log_id The unique ID of the flow log # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @return [FlowLog] describe 'datacenters_natgateways_flowlogs_find_by_flow_log_id 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 datacenters_natgateways_flowlogs_get # List NAT Gateway Flow Logs # You can retrieve a list of Flow Logs of the NAT Gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :offset The first element (from the complete list of the elements) to include in the response (use together with limit for pagination). # @option opts [Integer] :limit The maximum number of elements to return (use together with offset for pagination). # @return [FlowLogs] describe 'datacenters_natgateways_flowlogs_get 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 datacenters_natgateways_flowlogs_patch # Partially modify a Flow Log of the NAT Gateway # You can use to partially update a Flow Log of a NAT Gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param flow_log_id The unique ID of the flow log # @param nat_gateway_flow_log_properties Properties of a Flow Log to be updated # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @return [FlowLog] describe 'datacenters_natgateways_flowlogs_patch 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 datacenters_natgateways_flowlogs_post # Add a NAT Gateways Flow Log # This will add a new Flow Log to the NAT Gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_flow_log Flow Log to add on NAT Gateway # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @return [FlowLog] describe 'datacenters_natgateways_flowlogs_post 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 datacenters_natgateways_flowlogs_put # Modify a Flow Log of the NAT Gateway # You can use to update a Flow Log of the NAT Gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param flow_log_id The unique ID of the flow log # @param nat_gateway_flow_log Modified NAT Gateway Flow Log # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @return [FlowLog] describe 'datacenters_natgateways_flowlogs_put 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 datacenters_natgateways_get # List NAT Gateways # Retrieve a list of NAT Gateways within the datacenter. # @param datacenter_id The unique ID of the data center. # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGateways] describe 'datacenters_natgateways_get 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 datacenters_natgateways_patch # Partially update a NAT gateway # Partially update the attributes of a given NAT gateway # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_properties NAT gateway properties to be updated # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGateway] describe 'datacenters_natgateways_patch 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 datacenters_natgateways_post # Create a NAT Gateway # Creates a NAT Gateway within the datacenter. User should be the contract owner or a admin or a user with createInternetAccess privilege # @param datacenter_id The unique ID of the data center. # @param nat_gateway NAT gateway to be created # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGateway] describe 'datacenters_natgateways_post 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 datacenters_natgateways_put # Update a NAT gateway # Update the attributes of a given NAT gateway # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway Modified NAT Gateway # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGateway] describe 'datacenters_natgateways_put 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 datacenters_natgateways_rules_delete # Remove rule from NAT Gateway # This will remove a rule from the NAT gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_rule_id The unique ID of the NAT gateway rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [nil] describe 'datacenters_natgateways_rules_delete 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 datacenters_natgateways_rules_find_by_nat_gateway_rule_id # Retrieve a NAT Gateway Rule # Retrieves the attributes of a given NAT gateway rule. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_rule_id The unique ID of the NAT gateway rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGatewayRule] describe 'datacenters_natgateways_rules_find_by_nat_gateway_rule_id 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 datacenters_natgateways_rules_get # List NAT Gateways Rules # Retrieve a list of rules of a NAT Gateway within the datacenter. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGatewayRules] describe 'datacenters_natgateways_rules_get 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 datacenters_natgateways_rules_patch # Partially modify a rule of the NAT gateway # You can use to partially update a rule of a NAT gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_rule_id The unique ID of the NAT gateway rule # @param nat_gateway_rule_properties Properties of a NAT gateway rule to be updated # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGatewayRule] describe 'datacenters_natgateways_rules_patch 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 datacenters_natgateways_rules_post # Create a NAT Gateway Rule # Creates a rule within the NAT Gateway of a datacenter. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_rule NAT gateway rule to be created # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGatewayRule] describe 'datacenters_natgateways_rules_post 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 datacenters_natgateways_rules_put # Modify a rule of the NAT gateway # You can use to update a rule of the NAT gateway. # @param datacenter_id The unique ID of the data center. # @param nat_gateway_id The unique ID of the NAT gateway # @param nat_gateway_rule_id The unique ID of the NAT gateway rule # @param nat_gateway_rule Modified NAT Gateway Rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed. # @return [NatGatewayRule] describe 'datacenters_natgateways_rules_put test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end