=begin #CLOUD API #An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive. The version of the OpenAPI document: 6.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.0.1-SNAPSHOT =end require 'spec_helper' require 'json' # Unit tests for Ionoscloud::FirewallRulesApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'FirewallRulesApi' do before do # run before each test @api_instance = Ionoscloud::FirewallRulesApi.new end after do # run after each test end describe 'test an instance of FirewallRulesApi' do it 'should create an instance of FirewallRulesApi' do expect(@api_instance).to be_instance_of(Ionoscloud::FirewallRulesApi) end end # unit tests for datacenters_servers_nics_firewallrules_delete # Delete a Firewall Rule # Removes the specified firewall rule. # @param datacenter_id The unique ID of the datacenter # @param server_id The unique ID of the Server # @param nic_id The unique ID of the NIC # @param firewallrule_id The unique ID of the Firewall Rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed # @return [Object] describe 'datacenters_servers_nics_firewallrules_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_servers_nics_firewallrules_find_by_id # Retrieve a Firewall Rule # Retrieves the attributes of a given firewall rule. # @param datacenter_id The unique ID of the datacenter # @param server_id The unique ID of the Server # @param nic_id The unique ID of the NIC # @param firewallrule_id The unique ID of the Firewall Rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed # @return [FirewallRule] describe 'datacenters_servers_nics_firewallrules_find_by_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_servers_nics_firewallrules_get # List Firewall Rules # Retrieves a list of firewall rules associated with a particular network interface. # @param datacenter_id The unique ID of the datacenter # @param server_id The unique ID of the Server # @param nic_id The unique ID of the NIC # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed # @option opts [Integer] :offset the first element (of the total list of 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 [FirewallRules] describe 'datacenters_servers_nics_firewallrules_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_servers_nics_firewallrules_patch # Partially Modify a Firewall Rule # You can use update attributes of a resource. # @param datacenter_id The unique ID of the datacenter # @param server_id The unique ID of the Server # @param nic_id The unique ID of the NIC # @param firewallrule_id The unique ID of the Firewall Rule # @param firewallrule Modified Firewall Rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed # @return [FirewallRule] describe 'datacenters_servers_nics_firewallrules_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_servers_nics_firewallrules_post # Create a Firewall Rule # This will add a Firewall Rule to the network interface. # @param datacenter_id The unique ID of the datacenter # @param server_id The unique ID of the server # @param nic_id The unique ID of the NIC # @param firewallrule Firewall Rule to be created # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed # @return [FirewallRule] describe 'datacenters_servers_nics_firewallrules_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_servers_nics_firewallrules_put # Modify a Firewall Rule # You can use update attributes of a resource. # @param datacenter_id The unique ID of the datacenter # @param server_id The unique ID of the Server # @param nic_id The unique ID of the NIC # @param firewallrule_id The unique ID of the Firewall Rule # @param firewallrule Modified Firewall Rule # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) 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 having more than 1 contract need to provide contract number, against which all API requests should be executed # @return [FirewallRule] describe 'datacenters_servers_nics_firewallrules_put test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end