def connection_options(opts)
      {
        logger:                   logger,
        transport:                opts[:winrm_transport].to_sym,
        disable_sspi:             opts[:winrm_disable_sspi],
        basic_auth_only:          opts[:winrm_basic_auth_only],
        hostname:                 opts[:host],
        endpoint:                 opts[:endpoint],
        user:                     opts[:user],
        password:                 opts[:password],
        rdp_port:                 opts[:rdp_port],
        connection_retries:       opts[:connection_retries],
        connection_retry_sleep:   opts[:connection_retry_sleep],
        max_wait_until_ready:     opts[:max_wait_until_ready],
        no_ssl_peer_verification: opts[:self_signed],
        realm:                    opts[:kerberos_realm],
        service:                  opts[:kerberos_service],
        ca_trust_file:            opts[:ca_trust_file],
        ssl_peer_fingerprint:     opts[:ssl_peer_fingerprint],
      }
    end
def connection_options(opts)
      {
        logger:                   logger,
        transport:                opts[:winrm_transport].to_sym,
        disable_sspi:             opts[:winrm_disable_sspi],
        basic_auth_only:          opts[:winrm_basic_auth_only],
        hostname:                 opts[:host],
        endpoint:                 opts[:endpoint],
        user:                     opts[:user],
        password:                 opts[:password],
        rdp_port:                 opts[:rdp_port],
        connection_retries:       opts[:connection_retries],
        connection_retry_sleep:   opts[:connection_retry_sleep],
        max_wait_until_ready:     opts[:max_wait_until_ready],
        no_ssl_peer_verification: opts[:self_signed],
        realm:                    opts[:kerberos_realm],
        service:                  opts[:kerberos_service],
        ca_trust_file:            opts[:ca_trust_file],
        ssl_peer_fingerprint:     opts[:ssl_peer_fingerprint],
      }
    end
Builds the hash of options needed by the Connection object on
 construction.

 @param data [Hash] merged configuration and mutable state data
 @return [Hash] hash of connection options
 @api private