##
#    This code was generated by
#    ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
#     |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
#     |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
#
#    Twilio - Microvisor
#    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 Microvisor
            class V1 < Version
                ##
                # Initialize the V1 version of Microvisor
                def initialize(domain)
                    super
                    @version = 'v1'
                    @account_configs = nil
                    @account_secrets = nil
                    @apps = nil
                    @devices = nil
                end

                ##
                # @param [String] key The config key; up to 100 characters.
                # @return [Twilio::REST::Microvisor::V1::AccountConfigContext] if key was passed.
                # @return [Twilio::REST::Microvisor::V1::AccountConfigList]
                def account_configs(key=:unset)
                    if key.nil?
                        raise ArgumentError, 'key cannot be nil'
                    end
                    if key == :unset
                        @account_configs ||= AccountConfigList.new self
                    else
                        AccountConfigContext.new(self, key)
                    end
                end
                ##
                # @param [String] key The secret key; up to 100 characters.
                # @return [Twilio::REST::Microvisor::V1::AccountSecretContext] if key was passed.
                # @return [Twilio::REST::Microvisor::V1::AccountSecretList]
                def account_secrets(key=:unset)
                    if key.nil?
                        raise ArgumentError, 'key cannot be nil'
                    end
                    if key == :unset
                        @account_secrets ||= AccountSecretList.new self
                    else
                        AccountSecretContext.new(self, key)
                    end
                end
                ##
                # @param [String] sid A 34-character string that uniquely identifies this App.
                # @return [Twilio::REST::Microvisor::V1::AppContext] if sid was passed.
                # @return [Twilio::REST::Microvisor::V1::AppList]
                def apps(sid=:unset)
                    if sid.nil?
                        raise ArgumentError, 'sid cannot be nil'
                    end
                    if sid == :unset
                        @apps ||= AppList.new self
                    else
                        AppContext.new(self, sid)
                    end
                end
                ##
                # @param [String] sid A 34-character string that uniquely identifies this Device.
                # @return [Twilio::REST::Microvisor::V1::DeviceContext] if sid was passed.
                # @return [Twilio::REST::Microvisor::V1::DeviceList]
                def devices(sid=:unset)
                    if sid.nil?
                        raise ArgumentError, 'sid cannot be nil'
                    end
                    if sid == :unset
                        @devices ||= DeviceList.new self
                    else
                        DeviceContext.new(self, sid)
                    end
                end
                ##
                # Provide a user friendly representation
                def to_s
                    '<Twilio::REST::Microvisor::V1>';
                end
            end
        end
    end
end
