md-notes-resource 1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +460 -0
- data/lib/md_notes.rb +45 -0
- data/lib/md_notes/api_helper.rb +289 -0
- data/lib/md_notes/client.rb +61 -0
- data/lib/md_notes/configuration.rb +157 -0
- data/lib/md_notes/controllers/base_controller.rb +49 -0
- data/lib/md_notes/controllers/o_auth_authorization_controller.rb +140 -0
- data/lib/md_notes/controllers/service_controller.rb +40 -0
- data/lib/md_notes/controllers/user_controller.rb +40 -0
- data/lib/md_notes/exceptions/api_exception.rb +20 -0
- data/lib/md_notes/exceptions/o_auth_provider_exception.rb +44 -0
- data/lib/md_notes/http/auth/o_auth2.rb +78 -0
- data/lib/md_notes/http/faraday_client.rb +70 -0
- data/lib/md_notes/http/http_call_back.rb +24 -0
- data/lib/md_notes/http/http_client.rb +104 -0
- data/lib/md_notes/http/http_method_enum.rb +13 -0
- data/lib/md_notes/http/http_request.rb +50 -0
- data/lib/md_notes/http/http_response.rb +29 -0
- data/lib/md_notes/models/base_model.rb +54 -0
- data/lib/md_notes/models/note.rb +90 -0
- data/lib/md_notes/models/o_auth_provider_error_enum.rb +39 -0
- data/lib/md_notes/models/o_auth_token.rb +92 -0
- data/lib/md_notes/models/service_status.rb +108 -0
- data/lib/md_notes/models/user.rb +81 -0
- data/lib/md_notes/utilities/file_wrapper.rb +17 -0
- metadata +151 -0
@@ -0,0 +1,108 @@
|
|
1
|
+
# md_notes
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MdNotes
|
7
|
+
# ServiceStatus Model.
|
8
|
+
class ServiceStatus < BaseModel
|
9
|
+
# TODO: Write general description for this method
|
10
|
+
# @return [String]
|
11
|
+
attr_accessor :app
|
12
|
+
|
13
|
+
# TODO: Write general description for this method
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :moto
|
16
|
+
|
17
|
+
# TODO: Write general description for this method
|
18
|
+
# @return [Integer]
|
19
|
+
attr_accessor :notes
|
20
|
+
|
21
|
+
# TODO: Write general description for this method
|
22
|
+
# @return [Integer]
|
23
|
+
attr_accessor :users
|
24
|
+
|
25
|
+
# TODO: Write general description for this method
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :time
|
28
|
+
|
29
|
+
# TODO: Write general description for this method
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :os
|
32
|
+
|
33
|
+
# TODO: Write general description for this method
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :php_version
|
36
|
+
|
37
|
+
# TODO: Write general description for this method
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :status
|
40
|
+
|
41
|
+
# A mapping from model property names to API property names.
|
42
|
+
def self.names
|
43
|
+
@_hash = {} if @_hash.nil?
|
44
|
+
@_hash['app'] = 'app'
|
45
|
+
@_hash['moto'] = 'moto'
|
46
|
+
@_hash['notes'] = 'notes'
|
47
|
+
@_hash['users'] = 'users'
|
48
|
+
@_hash['time'] = 'time'
|
49
|
+
@_hash['os'] = 'os'
|
50
|
+
@_hash['php_version'] = 'php_version'
|
51
|
+
@_hash['status'] = 'status'
|
52
|
+
@_hash
|
53
|
+
end
|
54
|
+
|
55
|
+
def initialize(app = nil,
|
56
|
+
moto = nil,
|
57
|
+
notes = nil,
|
58
|
+
users = nil,
|
59
|
+
time = nil,
|
60
|
+
os = nil,
|
61
|
+
php_version = nil,
|
62
|
+
status = nil,
|
63
|
+
additional_properties = {})
|
64
|
+
@app = app
|
65
|
+
@moto = moto
|
66
|
+
@notes = notes
|
67
|
+
@users = users
|
68
|
+
@time = time
|
69
|
+
@os = os
|
70
|
+
@php_version = php_version
|
71
|
+
@status = status
|
72
|
+
|
73
|
+
# Add additional model properties to the instance.
|
74
|
+
additional_properties.each do |_name, _value|
|
75
|
+
instance_variable_set("@#{_name}", _value)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Creates an instance of the object from a hash.
|
80
|
+
def self.from_hash(hash)
|
81
|
+
return nil unless hash
|
82
|
+
|
83
|
+
# Extract variables from the hash.
|
84
|
+
app = hash['app']
|
85
|
+
moto = hash['moto']
|
86
|
+
notes = hash['notes']
|
87
|
+
users = hash['users']
|
88
|
+
time = hash['time']
|
89
|
+
os = hash['os']
|
90
|
+
php_version = hash['php_version']
|
91
|
+
status = hash['status']
|
92
|
+
|
93
|
+
# Clean out expected properties from Hash.
|
94
|
+
names.each_value { |k| hash.delete(k) }
|
95
|
+
|
96
|
+
# Create object from extracted values.
|
97
|
+
ServiceStatus.new(app,
|
98
|
+
moto,
|
99
|
+
notes,
|
100
|
+
users,
|
101
|
+
time,
|
102
|
+
os,
|
103
|
+
php_version,
|
104
|
+
status,
|
105
|
+
hash)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# md_notes
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MdNotes
|
7
|
+
# User Model.
|
8
|
+
class User < BaseModel
|
9
|
+
# TODO: Write general description for this method
|
10
|
+
# @return [Integer]
|
11
|
+
attr_accessor :id
|
12
|
+
|
13
|
+
# TODO: Write general description for this method
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :name
|
16
|
+
|
17
|
+
# TODO: Write general description for this method
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :email
|
20
|
+
|
21
|
+
# TODO: Write general description for this method
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :created_at
|
24
|
+
|
25
|
+
# TODO: Write general description for this method
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :updated_at
|
28
|
+
|
29
|
+
# A mapping from model property names to API property names.
|
30
|
+
def self.names
|
31
|
+
@_hash = {} if @_hash.nil?
|
32
|
+
@_hash['id'] = 'id'
|
33
|
+
@_hash['name'] = 'name'
|
34
|
+
@_hash['email'] = 'email'
|
35
|
+
@_hash['created_at'] = 'created_at'
|
36
|
+
@_hash['updated_at'] = 'updated_at'
|
37
|
+
@_hash
|
38
|
+
end
|
39
|
+
|
40
|
+
def initialize(id = nil,
|
41
|
+
name = nil,
|
42
|
+
email = nil,
|
43
|
+
created_at = nil,
|
44
|
+
updated_at = nil,
|
45
|
+
additional_properties = {})
|
46
|
+
@id = id
|
47
|
+
@name = name
|
48
|
+
@email = email
|
49
|
+
@created_at = created_at
|
50
|
+
@updated_at = updated_at
|
51
|
+
|
52
|
+
# Add additional model properties to the instance.
|
53
|
+
additional_properties.each do |_name, _value|
|
54
|
+
instance_variable_set("@#{_name}", _value)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Creates an instance of the object from a hash.
|
59
|
+
def self.from_hash(hash)
|
60
|
+
return nil unless hash
|
61
|
+
|
62
|
+
# Extract variables from the hash.
|
63
|
+
id = hash['id']
|
64
|
+
name = hash['name']
|
65
|
+
email = hash['email']
|
66
|
+
created_at = hash['created_at']
|
67
|
+
updated_at = hash['updated_at']
|
68
|
+
|
69
|
+
# Clean out expected properties from Hash.
|
70
|
+
names.each_value { |k| hash.delete(k) }
|
71
|
+
|
72
|
+
# Create object from extracted values.
|
73
|
+
User.new(id,
|
74
|
+
name,
|
75
|
+
email,
|
76
|
+
created_at,
|
77
|
+
updated_at,
|
78
|
+
hash)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# md_notes
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MdNotes
|
7
|
+
# A utility to allow users to set the content-type for files
|
8
|
+
class FileWrapper
|
9
|
+
attr_reader :content_type
|
10
|
+
attr_reader :file
|
11
|
+
|
12
|
+
def initialize(file, content_type: 'application/octet-stream')
|
13
|
+
@file = file
|
14
|
+
@content_type = content_type
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: md-notes-resource
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- APIMatic SDK Generator
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: logging
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
- - "<="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 1.3.0
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.0'
|
44
|
+
- - "<="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.3.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: faraday_middleware
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: certifi
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '2018.1'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 2018.01.18
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2018.1'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 2018.01.18
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: faraday-http-cache
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '2.2'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '2.2'
|
95
|
+
description: API for Markdown Notes app.
|
96
|
+
email: support@apimatic.io
|
97
|
+
executables: []
|
98
|
+
extensions: []
|
99
|
+
extra_rdoc_files: []
|
100
|
+
files:
|
101
|
+
- LICENSE
|
102
|
+
- README.md
|
103
|
+
- lib/md_notes.rb
|
104
|
+
- lib/md_notes/api_helper.rb
|
105
|
+
- lib/md_notes/client.rb
|
106
|
+
- lib/md_notes/configuration.rb
|
107
|
+
- lib/md_notes/controllers/base_controller.rb
|
108
|
+
- lib/md_notes/controllers/o_auth_authorization_controller.rb
|
109
|
+
- lib/md_notes/controllers/service_controller.rb
|
110
|
+
- lib/md_notes/controllers/user_controller.rb
|
111
|
+
- lib/md_notes/exceptions/api_exception.rb
|
112
|
+
- lib/md_notes/exceptions/o_auth_provider_exception.rb
|
113
|
+
- lib/md_notes/http/auth/o_auth2.rb
|
114
|
+
- lib/md_notes/http/faraday_client.rb
|
115
|
+
- lib/md_notes/http/http_call_back.rb
|
116
|
+
- lib/md_notes/http/http_client.rb
|
117
|
+
- lib/md_notes/http/http_method_enum.rb
|
118
|
+
- lib/md_notes/http/http_request.rb
|
119
|
+
- lib/md_notes/http/http_response.rb
|
120
|
+
- lib/md_notes/models/base_model.rb
|
121
|
+
- lib/md_notes/models/note.rb
|
122
|
+
- lib/md_notes/models/o_auth_provider_error_enum.rb
|
123
|
+
- lib/md_notes/models/o_auth_token.rb
|
124
|
+
- lib/md_notes/models/service_status.rb
|
125
|
+
- lib/md_notes/models/user.rb
|
126
|
+
- lib/md_notes/utilities/file_wrapper.rb
|
127
|
+
homepage: https://apimatic.io
|
128
|
+
licenses:
|
129
|
+
- MIT
|
130
|
+
metadata: {}
|
131
|
+
post_install_message:
|
132
|
+
rdoc_options: []
|
133
|
+
require_paths:
|
134
|
+
- lib
|
135
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '2.0'
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
requirements: []
|
146
|
+
rubyforge_project:
|
147
|
+
rubygems_version: 2.7.6
|
148
|
+
signing_key:
|
149
|
+
specification_version: 4
|
150
|
+
summary: md_notes
|
151
|
+
test_files: []
|