Class: Twilio::REST::Preview::Sync::ServiceContext::SyncMapContext::SyncMapPermissionInstance
- Inherits:
 - 
      InstanceResource
      
        
- Object
 - InstanceResource
 - Twilio::REST::Preview::Sync::ServiceContext::SyncMapContext::SyncMapPermissionInstance
 
 
- Defined in:
 - lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
 
Instance Method Summary collapse
- 
  
    
      #account_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The unique SID identifier of the Twilio Account.
 - 
  
    
      #context  ⇒ SyncMapPermissionContext 
    
    
  
  
  
  
  
  
  
  
  
    
Generate an instance context for the instance, the context is capable of performing various actions.
 - 
  
    
      #delete  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Delete the SyncMapPermissionInstance.
 - 
  
    
      #fetch  ⇒ SyncMapPermissionInstance 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch the SyncMapPermissionInstance.
 - 
  
    
      #identity  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer.
 - 
  
    
      #initialize(version, payload, service_sid: nil, map_sid: nil, identity: nil)  ⇒ SyncMapPermissionInstance 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initialize the SyncMapPermissionInstance.
 - 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Provide a detailed, user friendly representation.
 - 
  
    
      #manage  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Boolean flag specifying whether the identity can delete the Sync Map.
 - 
  
    
      #map_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The unique SID identifier of the Sync Map to which the Permission applies.
 - 
  
    
      #read  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Boolean flag specifying whether the identity can read the Sync Map and its Items.
 - 
  
    
      #service_sid  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The unique SID identifier of the Sync Service Instance.
 - 
  
    
      #to_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Provide a user friendly representation.
 - 
  
    
      #update(read: nil, write: nil, manage: nil)  ⇒ SyncMapPermissionInstance 
    
    
  
  
  
  
  
  
  
  
  
    
Update the SyncMapPermissionInstance.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Contains an absolute URL for this Sync Map Permission.
 - 
  
    
      #write  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map.
 
Constructor Details
#initialize(version, payload, service_sid: nil, map_sid: nil, identity: nil) ⇒ SyncMapPermissionInstance
Initialize the SyncMapPermissionInstance
      254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 254 def initialize(version, payload , service_sid: nil, map_sid: nil, identity: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'service_sid' => payload['service_sid'], 'map_sid' => payload['map_sid'], 'identity' => payload['identity'], 'read' => payload['read'], 'write' => payload['write'], 'manage' => payload['manage'], 'url' => payload['url'], } # Context @instance_context = nil @params = { 'service_sid' => service_sid || @properties['service_sid'] ,'map_sid' => map_sid || @properties['map_sid'] ,'identity' => identity || @properties['identity'] , } end  | 
  
Instance Method Details
#account_sid ⇒ String
Returns The unique SID identifier of the Twilio Account.
      287 288 289  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 287 def account_sid @properties['account_sid'] end  | 
  
#context ⇒ SyncMapPermissionContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
      278 279 280 281 282 283  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 278 def context unless @instance_context @instance_context = SyncMapPermissionContext.new(@version , @params['service_sid'], @params['map_sid'], @params['identity']) end @instance_context end  | 
  
#delete ⇒ Boolean
Delete the SyncMapPermissionInstance
      336 337 338 339  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 336 def delete context.delete end  | 
  
#fetch ⇒ SyncMapPermissionInstance
Fetch the SyncMapPermissionInstance
      344 345 346 347  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 344 def fetch context.fetch end  | 
  
#identity ⇒ String
Returns Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer.
      305 306 307  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 305 def identity @properties['identity'] end  | 
  
#inspect ⇒ Object
Provide a detailed, user friendly representation
      377 378 379 380  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 377 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Preview.Sync.SyncMapPermissionInstance #{values}>" end  | 
  
#manage ⇒ Boolean
Returns Boolean flag specifying whether the identity can delete the Sync Map.
      323 324 325  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 323 def manage @properties['manage'] end  | 
  
#map_sid ⇒ String
Returns The unique SID identifier of the Sync Map to which the Permission applies.
      299 300 301  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 299 def map_sid @properties['map_sid'] end  | 
  
#read ⇒ Boolean
Returns Boolean flag specifying whether the identity can read the Sync Map and its Items.
      311 312 313  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 311 def read @properties['read'] end  | 
  
#service_sid ⇒ String
Returns The unique SID identifier of the Sync Service Instance.
      293 294 295  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 293 def service_sid @properties['service_sid'] end  | 
  
#to_s ⇒ Object
Provide a user friendly representation
      370 371 372 373  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 370 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Preview.Sync.SyncMapPermissionInstance #{values}>" end  | 
  
#update(read: nil, write: nil, manage: nil) ⇒ SyncMapPermissionInstance
Update the SyncMapPermissionInstance
      355 356 357 358 359 360 361 362 363 364 365 366  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 355 def update( read: nil, write: nil, manage: nil ) context.update( read: read, write: write, manage: manage, ) end  | 
  
#url ⇒ String
Returns Contains an absolute URL for this Sync Map Permission.
      329 330 331  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 329 def url @properties['url'] end  | 
  
#write ⇒ Boolean
Returns Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map.
      317 318 319  | 
    
      # File 'lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb', line 317 def write @properties['write'] end  |