Class: BancoBrasilClientCredentials::Body
- Defined in:
- lib/bb_oauth/models/body.rb
Instance Attribute Summary collapse
-
#grant_type ⇒ Object
Deverá ser informado: client_credentials.
-
#scope ⇒ Object
Os escopos deverão ser informados separados por espaço.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
Methods inherited from BaseModel
#==, #_deserialize, #_to_hash, #build_from_hash, build_from_hash, #eql?, #hash, #initialize, openapi_nullable, #to_body, #to_hash, #to_s, #valid?
Constructor Details
This class inherits a constructor from BancoBrasilClientCredentials::BaseModel
Instance Attribute Details
#grant_type ⇒ Object
Deverá ser informado: client_credentials
6 7 8 |
# File 'lib/bb_oauth/models/body.rb', line 6 def grant_type @grant_type end |
#scope ⇒ Object
Os escopos deverão ser informados separados por espaço.
9 10 11 |
# File 'lib/bb_oauth/models/body.rb', line 9 def scope @scope end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
12 13 14 |
# File 'lib/bb_oauth/models/body.rb', line 12 def self.attribute_map { grant_type: :grant_type, scope: :scope } end |
.openapi_types ⇒ Object
Attribute type mapping.
17 18 19 |
# File 'lib/bb_oauth/models/body.rb', line 17 def self.openapi_types { grant_type: :Object, scope: :Object } end |
Instance Method Details
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/bb_oauth/models/body.rb', line 23 def list_invalid_properties invalid_properties = Array.new if @grant_type.nil? invalid_properties.push('invalid value for "grant_type", grant_type cannot be nil.') end if @scope.nil? invalid_properties.push('invalid value for "scope", scope cannot be nil.') end invalid_properties end |