lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb in twilio-ruby-5.41.0 vs lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb in twilio-ruby-5.42.0

- old
+ new

@@ -13,13 +13,11 @@ class ServiceContext < InstanceContext class BindingList < ListResource ## # Initialize the BindingList # @param [Version] version Version that contains the resource - # @param [String] service_sid The SID of the - # {Service}[https://www.twilio.com/docs/chat/rest/service-resource] the Binding - # resource is associated with. + # @param [String] service_sid The service_sid # @return [BindingList] BindingList def initialize(version, service_sid: nil) super(version) # Path Solution @@ -29,19 +27,12 @@ ## # Lists BindingInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. - # @param [binding.BindingType] binding_type The push technology used by the - # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push - # notification - # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration] - # for more info. - # @param [String] identity The - # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value - # of the resources to read. See {access - # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details. + # @param [binding.BindingType] binding_type The binding_type + # @param [String] identity The identity # @param [Integer] limit Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param [Integer] page_size Number of records to fetch per request, when # not set will use the default value of 50 records. If no page_size is defined # but a limit is defined, stream() will attempt to read the limit with the most @@ -58,19 +49,12 @@ ## # Streams BindingInstance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit # is reached. - # @param [binding.BindingType] binding_type The push technology used by the - # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push - # notification - # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration] - # for more info. - # @param [String] identity The - # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value - # of the resources to read. See {access - # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details. + # @param [binding.BindingType] binding_type The binding_type + # @param [String] identity The identity # @param [Integer] limit Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit. # @param [Integer] page_size Number of records to fetch per request, when # not set will use the default value of 50 records. If no page_size is defined # but a limit is defined, stream() will attempt to read the limit with the most @@ -99,19 +83,12 @@ end ## # Retrieve a single page of BindingInstance records from the API. # Request is executed immediately. - # @param [binding.BindingType] binding_type The push technology used by the - # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push - # notification - # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration] - # for more info. - # @param [String] identity The - # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value - # of the resources to read. See {access - # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details. + # @param [binding.BindingType] binding_type The binding_type + # @param [String] identity The identity # @param [String] page_token PageToken provided by the API # @param [Integer] page_number Page Number, this value is simply for client state # @param [Integer] page_size Number of records to return, defaults to 50 # @return [Page] Page of BindingInstance def page(binding_type: :unset, identity: :unset, page_token: :unset, page_number: :unset, page_size: :unset) @@ -179,14 +156,12 @@ class BindingContext < InstanceContext ## # Initialize the BindingContext # @param [Version] version Version that contains the resource - # @param [String] service_sid The SID of the - # {Service}[https://www.twilio.com/docs/chat/rest/service-resource] to fetch the - # Binding resource from. - # @param [String] sid The SID of the Binding resource to fetch. + # @param [String] service_sid The service_sid + # @param [String] sid The sid # @return [BindingContext] BindingContext def initialize(version, service_sid, sid) super(version) # Path Solution @@ -228,14 +203,12 @@ class BindingInstance < InstanceResource ## # Initialize the BindingInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio - # @param [String] service_sid The SID of the - # {Service}[https://www.twilio.com/docs/chat/rest/service-resource] the Binding - # resource is associated with. - # @param [String] sid The SID of the Binding resource to fetch. + # @param [String] service_sid The service_sid + # @param [String] sid The sid # @return [BindingInstance] BindingInstance def initialize(version, payload, service_sid: nil, sid: nil) super(version) # Marshaled Properties @@ -269,76 +242,76 @@ end @instance_context end ## - # @return [String] The unique string that identifies the resource + # @return [String] The sid def sid @properties['sid'] end ## - # @return [String] The SID of the Account that created the resource + # @return [String] The account_sid def account_sid @properties['account_sid'] end ## - # @return [String] The SID of the Service that the Binding resource is associated with + # @return [String] The service_sid def service_sid @properties['service_sid'] end ## - # @return [Time] The ISO 8601 date and time in GMT when the resource was created + # @return [Time] The date_created def date_created @properties['date_created'] end ## - # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated + # @return [Time] The date_updated def date_updated @properties['date_updated'] end ## - # @return [String] The unique endpoint identifier for the Binding + # @return [String] The endpoint def endpoint @properties['endpoint'] end ## - # @return [String] The string that identifies the resource's User + # @return [String] The identity def identity @properties['identity'] end ## - # @return [String] The SID of the Credential for the binding + # @return [String] The credential_sid def credential_sid @properties['credential_sid'] end ## - # @return [binding.BindingType] The push technology to use for the binding + # @return [binding.BindingType] The binding_type def binding_type @properties['binding_type'] end ## - # @return [String] The Programmable Chat message types the binding is subscribed to + # @return [String] The message_types def message_types @properties['message_types'] end ## - # @return [String] The absolute URL of the Binding resource + # @return [String] The url def url @properties['url'] end ## - # @return [String] The absolute URLs of the Binding's User + # @return [String] The links def links @properties['links'] end ## \ No newline at end of file