Module: Oktakit::Client::Schemas

Included in:
Oktakit::Client
Defined in:
lib/oktakit/client/schemas.rb

Instance Method Summary collapse

Instance Method Details

#add_property_to_app_user_profile_schema(id, options = {}) ⇒ Hash<Sawyer::Resource>

Add Property to App User Profile Schema

Examples:

Oktakit.('id')

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



92
93
94
# File 'lib/oktakit/client/schemas.rb', line 92

def (id, options = {})
  post("/meta/schemas/apps/#{id}/default", options)
end

#add_property_to_user_profile_schema(options = {}) ⇒ Hash<Sawyer::Resource>

Add Property to User Profile Schema

Examples:

Oktakit.

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



30
31
32
# File 'lib/oktakit/client/schemas.rb', line 30

def (options = {})
  post('/meta/schemas/user/default', options)
end

#get_app_user_schema(id, options = {}) ⇒ Hash<Sawyer::Resource>

Get App User Schema

Examples:

Oktakit.get_app_user_schema('id')

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



76
77
78
# File 'lib/oktakit/client/schemas.rb', line 76

def get_app_user_schema(id, options = {})
  get("/meta/schemas/apps/#{id}/default", options)
end

#get_user_schema(options = {}) ⇒ Hash<Sawyer::Resource>

Get User Schema

Examples:

Oktakit.get_user_schema

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



15
16
17
# File 'lib/oktakit/client/schemas.rb', line 15

def get_user_schema(options = {})
  get('/meta/schemas/user/default', options)
end

#remove_property_from_app_user_profile_schema(id, options = {}) ⇒ Hash<Sawyer::Resource>

Remove property from App User Profile Schema

Examples:

Oktakit.('id')

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



124
125
126
# File 'lib/oktakit/client/schemas.rb', line 124

def (id, options = {})
  post("/meta/schemas/apps/#{id}/default", options)
end

#remove_property_from_user_profile_schema(options = {}) ⇒ Hash<Sawyer::Resource>

Remove Property from User Profile Schema

Examples:

Oktakit.

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



60
61
62
# File 'lib/oktakit/client/schemas.rb', line 60

def (options = {})
  post('/meta/schemas/user/default', options)
end

#update_app_user_profile_schema_property(id, options = {}) ⇒ Hash<Sawyer::Resource>

Update App User Profile Schema property

Examples:

Oktakit.('id')

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



108
109
110
# File 'lib/oktakit/client/schemas.rb', line 108

def (id, options = {})
  post("/meta/schemas/apps/#{id}/default", options)
end

#update_user_profile_schema_property(options = {}) ⇒ Hash<Sawyer::Resource>

Update User Profile Schema Property

Examples:

Oktakit.

Parameters:

  • options (:query) (defaults to: {})
    Hash

    Optional. Query params for request

  • options (:headers) (defaults to: {})
    Hash

    Optional. Header params for the request.

  • options (:accept) (defaults to: {})
    String

    Optional. The content type to accept. Default application/json

  • options (:content_type) (defaults to: {})
    String

    Optional. The content type for the request. Default application/json

  • options (Hash) (defaults to: {})

    Optional. Body params for request.

Returns:

  • (Hash<Sawyer::Resource>)

    User Schema

See Also:



45
46
47
# File 'lib/oktakit/client/schemas.rb', line 45

def (options = {})
  post('/meta/schemas/user/default', options)
end