Class: Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsChannelEndpointAssignmentInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsChannelEndpointAssignmentInstance
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
-
#channel_endpoint_sid ⇒ String
The SID of an channel endpoint.
-
#channel_endpoint_type ⇒ String
The type of channel endpoint.
-
#context ⇒ TrustProductsChannelEndpointAssignmentContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#delete ⇒ Boolean
Delete the TrustProductsChannelEndpointAssignmentInstance.
-
#fetch ⇒ TrustProductsChannelEndpointAssignmentInstance
Fetch the TrustProductsChannelEndpointAssignmentInstance.
-
#initialize(version, payload, trust_product_sid: nil, sid: nil) ⇒ TrustProductsChannelEndpointAssignmentInstance
constructor
Initialize the TrustProductsChannelEndpointAssignmentInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
The unique string that we created to identify the Item Assignment resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trust_product_sid ⇒ String
The unique string that we created to identify the CustomerProfile resource.
-
#url ⇒ String
The absolute URL of the Identity resource.
Constructor Details
#initialize(version, payload, trust_product_sid: nil, sid: nil) ⇒ TrustProductsChannelEndpointAssignmentInstance
Initialize the TrustProductsChannelEndpointAssignmentInstance
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 275 def initialize(version, payload , trust_product_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'trust_product_sid' => payload['trust_product_sid'], 'account_sid' => payload['account_sid'], 'channel_endpoint_type' => payload['channel_endpoint_type'], 'channel_endpoint_sid' => payload['channel_endpoint_sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'url' => payload['url'], } # Context @instance_context = nil @params = { 'trust_product_sid' => trust_product_sid || @properties['trust_product_sid'] ,'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
319 320 321 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 319 def account_sid @properties['account_sid'] end |
#channel_endpoint_sid ⇒ String
Returns The SID of an channel endpoint.
331 332 333 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 331 def channel_endpoint_sid @properties['channel_endpoint_sid'] end |
#channel_endpoint_type ⇒ String
Returns The type of channel endpoint. eg: phone-number.
325 326 327 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 325 def channel_endpoint_type @properties['channel_endpoint_type'] end |
#context ⇒ TrustProductsChannelEndpointAssignmentContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
298 299 300 301 302 303 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 298 def context unless @instance_context @instance_context = TrustProductsChannelEndpointAssignmentContext.new(@version , @params['trust_product_sid'], @params['sid']) end @instance_context end |
#date_created ⇒ Time
Returns The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
337 338 339 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 337 def date_created @properties['date_created'] end |
#delete ⇒ Boolean
Delete the TrustProductsChannelEndpointAssignmentInstance
350 351 352 353 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 350 def delete context.delete end |
#fetch ⇒ TrustProductsChannelEndpointAssignmentInstance
Fetch the TrustProductsChannelEndpointAssignmentInstance
358 359 360 361 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 358 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
372 373 374 375 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 372 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.TrustProductsChannelEndpointAssignmentInstance #{values}>" end |
#sid ⇒ String
Returns The unique string that we created to identify the Item Assignment resource.
307 308 309 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 307 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
365 366 367 368 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 365 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.TrustProductsChannelEndpointAssignmentInstance #{values}>" end |
#trust_product_sid ⇒ String
Returns The unique string that we created to identify the CustomerProfile resource.
313 314 315 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 313 def trust_product_sid @properties['trust_product_sid'] end |
#url ⇒ String
Returns The absolute URL of the Identity resource.
343 344 345 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb', line 343 def url @properties['url'] end |