Class: Verizon::OauthScopeOauth2Enum
- Inherits:
-
Object
- Object
- Verizon::OauthScopeOauth2Enum
- Defined in:
- lib/verizon/models/oauth_scope_oauth_2enum.rb
Overview
OAuth 2 scopes supported by the API
Constant Summary collapse
- OAUTH_SCOPE_OAUTH_2ENUM =
[ # Grant read-only access to discovery data DISCOVERYREAD = 'discovery:read'.freeze, # Grant read-only access to service profile data SERVICEPROFILEREAD = 'serviceprofile:read'.freeze, # Grant write access to service profile data SERVICEPROFILEWRITE = 'serviceprofile:write'.freeze, # Grant read-only access to Service registry data SERVICEREGISTRYREAD = 'serviceregistry:read'.freeze, # Grant write access to Service registry data SERVICEREGISTRYWRITE = 'serviceregistry:write'.freeze, # Full access for /serviceprofiles and /serviceendpoints. TS_MEC_FULLACCESS = 'ts.mec.fullaccess'.freeze, # Limited access. Will not allow use of /serviceprofiles and # /serviceendpoints but will allow discovery. TS_MEC_LIMITACCESS = 'ts.mec.limitaccess'.freeze, # TODO: Write general description for TS_APPLICATION_RO TS_APPLICATION_RO = 'ts.application.ro'.freeze, # TODO: Write general description for EDGEDISCOVERYREAD EDGEDISCOVERYREAD = 'edge:discovery:read'.freeze, # TODO: Write general description for EDGESERVICEPROFILEREAD EDGESERVICEPROFILEREAD = 'edge:serviceprofile:read'.freeze, # TODO: Write general description for EDGESERVICEPROFILEWRITE EDGESERVICEPROFILEWRITE = 'edge:serviceprofile:write'.freeze, # TODO: Write general description for EDGESERVICEREGISTRYREAD EDGESERVICEREGISTRYREAD = 'edge:serviceregistry:read'.freeze, # TODO: Write general description for EDGESERVICEREGISTRYWRITE EDGESERVICEREGISTRYWRITE = 'edge:serviceregistry:write'.freeze, # read access READ = 'read'.freeze, # read/write access WRITE = 'write'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
57 58 59 60 61 |
# File 'lib/verizon/models/oauth_scope_oauth_2enum.rb', line 57 def self.validate(value) return false if value.nil? OAUTH_SCOPE_OAUTH_2ENUM.include?(value) end |