lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb in twilio-ruby-5.77.0 vs lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb in twilio-ruby-6.0.0.pre.rc.1
- old
+ new
@@ -1,189 +1,185 @@
##
-# This code was generated by
-# \ / _ _ _| _ _
-# | (_)\/(_)(_|\/| |(/_ v1.0.0
-# / /
+# This code was generated by
+# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
+# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
+# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
-# frozen_string_literal: true
+# Twilio - Numbers
+# This is the public Twilio REST API.
+#
+# NOTE: This class is auto generated by OpenAPI Generator.
+# https://openapi-generator.tech
+# Do not edit the class manually.
+#
+
module Twilio
- module REST
- class Numbers < Domain
- class V2 < Version
- class RegulatoryComplianceList < ListResource
- ##
- # Initialize the RegulatoryComplianceList
- # @param [Version] version Version that contains the resource
- # @return [RegulatoryComplianceList] RegulatoryComplianceList
- def initialize(version)
- super(version)
+ module REST
+ class Numbers < NumbersBase
+ class V2 < Version
+ class RegulatoryComplianceList < ListResource
+ ##
+ # Initialize the RegulatoryComplianceList
+ # @param [Version] version Version that contains the resource
+ # @return [RegulatoryComplianceList] RegulatoryComplianceList
+ def initialize(version)
+ super(version)
+ # Path Solution
+ @solution = { }
+ @uri = "/RegulatoryCompliance"
+ # Components
+ @end_users = nil
+ @bundles = nil
+ @supporting_document_types = nil
+ @regulations = nil
+ @end_user_types = nil
+ @supporting_documents = nil
+ end
+
- # Path Solution
- @solution = {}
+ ##
+ # Access the end_users
+ # @return [EndUserList]
+ # @return [EndUserContext] if sid was passed.
+ def end_users(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
- # Components
- @bundles = nil
- @end_users = nil
- @end_user_types = nil
- @regulations = nil
- @supporting_documents = nil
- @supporting_document_types = nil
- end
+ if sid != :unset
+ return EndUserContext.new(@version,sid )
+ end
- ##
- # Access the bundles
- # @param [String] sid The unique string that we created to identify the Bundle
- # resource.
- # @return [BundleList]
- # @return [BundleContext] if sid was passed.
- def bundles(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
+ @end_users ||= EndUserList.new(@version )
+ end
+ ##
+ # Access the bundles
+ # @return [BundleList]
+ # @return [BundleContext] if sid was passed.
+ def bundles(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
- if sid != :unset
- return BundleContext.new(@version, sid, )
- end
+ if sid != :unset
+ return BundleContext.new(@version,sid )
+ end
- @bundles ||= BundleList.new(@version, )
- end
+ @bundles ||= BundleList.new(@version )
+ end
+ ##
+ # Access the supporting_document_types
+ # @return [SupportingDocumentTypeList]
+ # @return [SupportingDocumentTypeContext] if sid was passed.
+ def supporting_document_types(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
- ##
- # Access the end_users
- # @param [String] sid The unique string created by Twilio to identify the End User
- # resource.
- # @return [EndUserList]
- # @return [EndUserContext] if sid was passed.
- def end_users(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
+ if sid != :unset
+ return SupportingDocumentTypeContext.new(@version,sid )
+ end
- if sid != :unset
- return EndUserContext.new(@version, sid, )
- end
+ @supporting_document_types ||= SupportingDocumentTypeList.new(@version )
+ end
+ ##
+ # Access the regulations
+ # @return [RegulationList]
+ # @return [RegulationContext] if sid was passed.
+ def regulations(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
- @end_users ||= EndUserList.new(@version, )
- end
+ if sid != :unset
+ return RegulationContext.new(@version,sid )
+ end
- ##
- # Access the end_user_types
- # @param [String] sid The unique string that identifies the End-User Type
- # resource.
- # @return [EndUserTypeList]
- # @return [EndUserTypeContext] if sid was passed.
- def end_user_types(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
+ @regulations ||= RegulationList.new(@version )
+ end
+ ##
+ # Access the end_user_types
+ # @return [EndUserTypeList]
+ # @return [EndUserTypeContext] if sid was passed.
+ def end_user_types(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
- if sid != :unset
- return EndUserTypeContext.new(@version, sid, )
- end
+ if sid != :unset
+ return EndUserTypeContext.new(@version,sid )
+ end
- @end_user_types ||= EndUserTypeList.new(@version, )
- end
+ @end_user_types ||= EndUserTypeList.new(@version )
+ end
+ ##
+ # Access the supporting_documents
+ # @return [SupportingDocumentList]
+ # @return [SupportingDocumentContext] if sid was passed.
+ def supporting_documents(sid=:unset)
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
- ##
- # Access the regulations
- # @param [String] sid The unique string that identifies the Regulation resource.
- # @return [RegulationList]
- # @return [RegulationContext] if sid was passed.
- def regulations(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
+ if sid != :unset
+ return SupportingDocumentContext.new(@version,sid )
+ end
- if sid != :unset
- return RegulationContext.new(@version, sid, )
- end
+ @supporting_documents ||= SupportingDocumentList.new(@version )
+ end
- @regulations ||= RegulationList.new(@version, )
- end
+ # Provide a user friendly representation
+ def to_s
+ '#<Twilio.Numbers.V2.RegulatoryComplianceList>'
+ end
+ end
- ##
- # Access the supporting_documents
- # @param [String] sid The unique string created by Twilio to identify the
- # Supporting Document resource.
- # @return [SupportingDocumentList]
- # @return [SupportingDocumentContext] if sid was passed.
- def supporting_documents(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
+ class RegulatoryCompliancePage < Page
+ ##
+ # Initialize the RegulatoryCompliancePage
+ # @param [Version] version Version that contains the resource
+ # @param [Response] response Response from the API
+ # @param [Hash] solution Path solution for the resource
+ # @return [RegulatoryCompliancePage] RegulatoryCompliancePage
+ def initialize(version, response, solution)
+ super(version, response)
- if sid != :unset
- return SupportingDocumentContext.new(@version, sid, )
- end
+ # Path Solution
+ @solution = solution
+ end
- @supporting_documents ||= SupportingDocumentList.new(@version, )
- end
+ ##
+ # Build an instance of RegulatoryComplianceInstance
+ # @param [Hash] payload Payload response from the API
+ # @return [RegulatoryComplianceInstance] RegulatoryComplianceInstance
+ def get_instance(payload)
+ RegulatoryComplianceInstance.new(@version, payload)
+ end
- ##
- # Access the supporting_document_types
- # @param [String] sid The unique string that identifies the Supporting Document
- # Type resource.
- # @return [SupportingDocumentTypeList]
- # @return [SupportingDocumentTypeContext] if sid was passed.
- def supporting_document_types(sid=:unset)
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
+ ##
+ # Provide a user friendly representation
+ def to_s
+ '<Twilio.Numbers.V2.RegulatoryCompliancePage>'
+ end
+ end
+ class RegulatoryComplianceInstance < InstanceResource
+ ##
+ # Initialize the RegulatoryComplianceInstance
+ # @param [Version] version Version that contains the resource
+ # @param [Hash] payload payload that contains response from Twilio
+ # @param [String] account_sid The SID of the
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this RegulatoryCompliance
+ # resource.
+ # @param [String] sid The SID of the Call resource to fetch.
+ # @return [RegulatoryComplianceInstance] RegulatoryComplianceInstance
+ def initialize(version )
+ super(version)
+
+ end
- if sid != :unset
- return SupportingDocumentTypeContext.new(@version, sid, )
- end
+
+ ##
+ # Provide a user friendly representation
+ def to_s
+ "<Twilio.Numbers.V2.RegulatoryComplianceInstance>"
+ end
- @supporting_document_types ||= SupportingDocumentTypeList.new(@version, )
- end
+ ##
+ # Provide a detailed, user friendly representation
+ def inspect
+ "<Twilio.Numbers.V2.RegulatoryComplianceInstance>"
+ end
+ end
- ##
- # Provide a user friendly representation
- def to_s
- '#<Twilio.Numbers.V2.RegulatoryComplianceList>'
- end
+ end
end
-
- class RegulatoryCompliancePage < Page
- ##
- # Initialize the RegulatoryCompliancePage
- # @param [Version] version Version that contains the resource
- # @param [Response] response Response from the API
- # @param [Hash] solution Path solution for the resource
- # @return [RegulatoryCompliancePage] RegulatoryCompliancePage
- def initialize(version, response, solution)
- super(version, response)
-
- # Path Solution
- @solution = solution
- end
-
- ##
- # Build an instance of RegulatoryComplianceInstance
- # @param [Hash] payload Payload response from the API
- # @return [RegulatoryComplianceInstance] RegulatoryComplianceInstance
- def get_instance(payload)
- RegulatoryComplianceInstance.new(@version, payload, )
- end
-
- ##
- # Provide a user friendly representation
- def to_s
- '<Twilio.Numbers.V2.RegulatoryCompliancePage>'
- end
- end
-
- class RegulatoryComplianceInstance < InstanceResource
- ##
- # Initialize the RegulatoryComplianceInstance
- # @param [Version] version Version that contains the resource
- # @param [Hash] payload payload that contains response from Twilio
- # @return [RegulatoryComplianceInstance] RegulatoryComplianceInstance
- def initialize(version, payload)
- super(version)
- end
-
- ##
- # Provide a user friendly representation
- def to_s
- "<Twilio.Numbers.V2.RegulatoryComplianceInstance>"
- end
-
- ##
- # Provide a detailed, user friendly representation
- def inspect
- "<Twilio.Numbers.V2.RegulatoryComplianceInstance>"
- end
- end
- end
end
- end
-end
\ No newline at end of file
+end