class Azure::ServiceBus::Relay

Public Class Methods

new(name, options) click to toggle source

Public: Initialize the relay endpoint.

Attributes

  • name - A String with the name of the relay endpoint.

  • options - The resource options Hash

Options

Accepted key/value pairs in options parameter are:

  • :relay_type - String. Determines the type of the relay endpoint. This is required.

  • :requires_client_authorization - Boolean. Determines whether or not clients need to authenticate when making calls.

  • :requires_transport_security - Boolean. Determines whether or not the endpoint uses transport security.

Calls superclass method
# File lib/azure/service_bus/relay.rb, line 34
def initialize(name, options)
  normalized_options = {}
  normalized_options["RelayType"] = options[:relay_type].to_s
  normalized_options["RequiresClientAuthorization"] = options[:requires_client_authorization].to_s if options.has_key?(:requires_client_authorization)
  normalized_options["RequiresTransportSecurity"] = options[:requires_transport_security].to_s if options.has_key?(:requires_transport_security)
  super(name, normalized_options)
end

Public Instance Methods

ordered_props() click to toggle source
# File lib/azure/service_bus/relay.rb, line 79
def ordered_props
  [
    'RelayType',
    'RequiresClientAuthorization',
    'RequiresTransportSecurity'
  ]
end
relay_type() click to toggle source

RelayType: String

Displays the relay type of the endpoint.

# File lib/azure/service_bus/relay.rb, line 45
def relay_type
  description['RelayType']
end
relay_type=(val) click to toggle source
# File lib/azure/service_bus/relay.rb, line 49
def relay_type=(val)
  _set 'RelayType', val
end
requires_client_authorization() click to toggle source

RequiresClientAuthorization: Boolean

Determines whether or not clients need to authenticate when making calls.

Default: true

# File lib/azure/service_bus/relay.rb, line 58
def requires_client_authorization
  to_bool description['RequiresClientAuthorization']
end
requires_client_authorization=(val) click to toggle source
# File lib/azure/service_bus/relay.rb, line 62
def requires_client_authorization=(val)
  _set 'RequiresClientAuthorization', val
end
requires_transport_security() click to toggle source

RequiresTransportSecurity: Boolean

Determines whether or not the endpoint uses transport security.

Default: true

# File lib/azure/service_bus/relay.rb, line 71
def requires_transport_security
  to_bool description['RequiresTransportSecurity']
end
requires_transport_security=(val) click to toggle source
# File lib/azure/service_bus/relay.rb, line 75
def requires_transport_security=(val)
  _set 'RequiresTransportSecurity', val
end