Module: UU::OS::UUEE
- Extended by:
- UUEE
- Included in:
- UUEE
- Defined in:
- uu_os-0.29.16/lib/uu/os/uuee.rb,
 uu_os-0.29.16/lib/uu/os/uuee/uuee_create.rb,
 uu_os-0.29.16/lib/uu/os/uuee/uuee_attributes.rb,
 uu_os-0.29.16/lib/uu/os/uuee/uuee_set_attributes.rb,
 uu_os-0.29.16/lib/uu/os/uuee/uuee_set_access_codes.rb
Defined Under Namespace
Classes: UUEEAttributes, UUEECreate, UUEESetAccessCodes, UUEESetAttributes
Constant Summary
- PATH =
          Service path of the REST API. 
- 'ues/core/role/UESUUEE'
Instance Method Summary (collapse)
- 
  
    
      - (UU::OS::UESURI) create(location_uri, uuee = nil) 
    
    
  
  
  
  
  
  
  
  
  
    Creates an uuEE to the specified location. 
- 
  
    
      - (UUEEAttributes) get_attributes(uueeUri) 
    
    
  
  
  
  
  
  
  
  
  
    This command returns attributes representing the uuEE specified by the uueeUriparameter.
- 
  
    
      - (UU::OS::UESURI) set_access_codes(uuee_uri, access_codes = nil) 
    
    
  
  
  
  
  
  
  
  
  
    Sets access codes of an uuEE. 
- 
  
    
      - (UU::OS::UESURI) set_attributes(uueeUri, uuee = nil) 
    
    
  
  
  
  
  
  
  
  
  
    Command for setting attributes of a uuEE. 
Instance Method Details
- (UU::OS::UESURI) create(location_uri, uuee = nil)
Creates an uuEE to the specified location.
| 118 119 120 121 122 123 124 125 126 | # File 'uu_os-0.29.16/lib/uu/os/uuee.rb', line 118 def create(location_uri, uuee = nil) svc = UU::OS::REST::RemoteClient.new(UUEE) payload = UU::OS::UUEE::UUEECreate.new(uuee).to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('create', location_uri, payload) return UU::OS::UESURI.new(res) end end | 
- (UUEEAttributes) get_attributes(uueeUri)
This command returns attributes representing the uuEE specified by the
uueeUri parameter. The command does not change the state of
the role in the system.
| 28 29 30 31 32 33 34 | # File 'uu_os-0.29.16/lib/uu/os/uuee.rb', line 28 def get_attributes(uueeUri) svc = UU::OS::REST::RemoteClient.new(UUEE) UU::OS::QoS::QoSHandler.auto_retry do res = svc.get('getAttributes', uueeUri) return UUEE::UUEEAttributes.new(res) end end | 
- (UU::OS::UESURI) set_access_codes(uuee_uri, access_codes = nil)
Sets access codes of an uuEE. It is possible to change both access codes or just one of them. For security reasons, both current access codes must be entered.
| 152 153 154 155 156 157 158 159 160 | # File 'uu_os-0.29.16/lib/uu/os/uuee.rb', line 152 def set_access_codes(uuee_uri, access_codes = nil) svc = UU::OS::REST::RemoteClient.new(UUEE) payload = UU::OS::UUEE::UUEESetAccessCodes.new(access_codes).to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('setAccessCodes', uuee_uri, payload) return UU::OS::UESURI.new(res) end end | 
- (UU::OS::UESURI) set_attributes(uueeUri, uuee = nil)
Command for setting attributes of a uuEE. The command can't modify references to objects like location, competent role and so on.
| 67 68 69 70 71 72 73 74 75 | # File 'uu_os-0.29.16/lib/uu/os/uuee.rb', line 67 def set_attributes(uueeUri, uuee = nil) svc = UU::OS::REST::RemoteClient.new(UUEE) payload = UU::OS::UUEE::UUEESetAttributes.new(uuee).to_json UU::OS::QoS::QoSHandler.auto_retry do res = svc.post('setAttributes', uueeUri, payload) return UU::OS::UESURI.new(res) end end |