Class: BancoBrasilClientCredentials::Body

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/bb_oauth/models/body.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_typeObject

Deverá ser informado: client_credentials



6
7
8
# File 'lib/bb_oauth/models/body.rb', line 6

def grant_type
  @grant_type
end

#scopeObject

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_mapObject

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_typesObject

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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



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