docusign_monitor 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8de059bfa4d2f402f54184ea047a1aeba30c4dc6e79a0ed19050581b802d1a4
4
- data.tar.gz: 90622f54c01c526559317eeaf920a8b2593d604124aeea6ea26b639097a6cd65
3
+ metadata.gz: bb98deb53bd1d5db86fb98312656ac70f879679b51e004f001f2abcdce97a79d
4
+ data.tar.gz: db0edb0bb2c9a3b41898ef0ddc8e1d6f7fbf861e9ad9c7bf6520a1dc95375356
5
5
  SHA512:
6
- metadata.gz: 66bcb04543b56821c9b039efccc8bcab5e998e8b875e8b983e4750f86fecd90d3b2a9594b1c0d415353c0686ca697df9af53c52d0b067b55a38e9b66f5df5bdb
7
- data.tar.gz: 35b18205ea19fcb51e3c9bbb8c48f7b40b52fbf188b58f3ace3b46eb53308261a189860bd6c68e4d2949e630d31a05f4de8fb2701dbd04691370317ff1226d55
6
+ metadata.gz: 8debccc17dbbf1236c47fff577023646640272aec7c9d853fa9b7497672ebc233e7a6c0bf56aad831edcaf0a713467ad1fc4b6c0889f882175e8526ab84ed3ff
7
+ data.tar.gz: 336b5bbd1ee7426cacd15b56bdaaaa99153fe05fff67c3c7955c41cd17f26ff6dd51807f6d4891262d2e326d85ebeae0ef25d4d818770fe17818630335d0b1df
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # DocuSign Monitor Ruby Client Changelog
2
2
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
3
3
 
4
- ## [v1.0.0.beta1] - DocuSign Monitor API v1 - 05/14/2021
4
+ ## [v1.1.0] - Monitor API v2.0-1.1.0 - 2022-04-11
5
5
  ### Changed
6
- - First BETA version of Monitor API, supports DocuSign Monitor v2.0
6
+ - Added support for version v2.0-1.1.0 of the DocuSign Monitor API.
7
+ - Updated the SDK release version.
8
+
9
+ ## [v1.0.0] - DocuSign Monitor API v1 - 06/24/2021
10
+ ### Changed
11
+ - First version of Monitor API, supports DocuSign Monitor API
@@ -1,11 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  =begin
4
- #DocuSign Monitor API
4
+ #Monitor API
5
5
 
6
6
  #An API for an integrator to access the features of DocuSign Monitor
7
7
 
8
- OpenAPI spec version: v2
8
+ OpenAPI spec version: v2.0
9
9
  Contact: devcenter@docusign.com
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
 
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.authors = ["DocuSign"]
22
22
  s.email = ["devcenter@docusign.com"]
23
23
  s.homepage = "https://github.com/docusign/docusign-monitor-ruby-client"
24
- s.summary = "DocuSign Monitor API Ruby Gem"
24
+ s.summary = "Monitor API Ruby Gem"
25
25
  s.description = "The DocuSign package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-monitor-ruby-client repository."
26
26
  s.license = "MIT"
27
27
  s.required_ruby_version = ">= 1.9"
@@ -31,16 +31,18 @@ Gem::Specification.new do |s|
31
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
32
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
33
33
 
34
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'rspec-mocks', '~> 3.8', '>= 3.8.0'
35
+ s.add_development_dependency 'rspec-expectations', '~> 3.8', '>= 3.8.0'
36
+ s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
35
37
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
36
38
  s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
37
39
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
38
40
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
39
41
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
42
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
41
43
 
42
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
44
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
43
45
  s.test_files = `find spec/*`.split("\n")
44
46
  s.executables = []
45
47
  s.require_paths = ["lib"]
46
- end
48
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Monitor API
3
3
 
4
- #Use the DocuSign Monitor API to receive a data feed containing atypical security events within your DocuSign account. This data goes directly to an integrated application or website.
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
6
  OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
@@ -91,5 +91,64 @@ module DocuSign_Monitor
91
91
  end
92
92
  return data, status_code, headers
93
93
  end
94
+
95
+ #
96
+ # Allows for querying existing data using filter and aggregation clauses Required scopes: impersonation
97
+ # @param data_set_name The name of the dataset to query
98
+ # @param version The requested API version
99
+ # @param web_query A collection of filter clauses and aggregations scoped to one or more organizations. The fields queryScope and queryScopeId may be omitted defaulting to all applicable organizations
100
+ # @return [AggregateResult]
101
+ def post_web_query(data_set_name, version, web_query)
102
+ data, _status_code, _headers = post_web_query_with_http_info(data_set_name, version, web_query)
103
+ return data
104
+ end
105
+
106
+ #
107
+ # Allows for querying existing data using filter and aggregation clauses Required scopes: impersonation
108
+ # @param data_set_name The name of the dataset to query
109
+ # @param version The requested API version
110
+ # @param web_query A collection of filter clauses and aggregations scoped to one or more organizations. The fields queryScope and queryScopeId may be omitted defaulting to all applicable organizations
111
+ # @return [Array<(AggregateResult, Fixnum, Hash)>] AggregateResult data, response status code and response headers
112
+ def post_web_query_with_http_info(data_set_name, version, web_query)
113
+ if @api_client.config.debugging
114
+ @api_client.config.logger.debug "Calling API: DataSetApi.post_web_query ..."
115
+ end
116
+ # verify the required parameter 'data_set_name' is set
117
+ fail ArgumentError, "Missing the required parameter 'data_set_name' when calling DataSetApi.post_web_query" if data_set_name.nil?
118
+ # verify the required parameter 'version' is set
119
+ fail ArgumentError, "Missing the required parameter 'version' when calling DataSetApi.post_web_query" if version.nil?
120
+ # verify the required parameter 'web_query' is set
121
+ fail ArgumentError, "Missing the required parameter 'web_query' when calling DataSetApi.post_web_query" if web_query.nil?
122
+ # resource path
123
+ local_var_path = "/api/v{version}/datasets/{dataSetName}/web_query".sub('{format}','json').sub('{' + 'dataSetName' + '}', data_set_name.to_s).sub('{' + 'version' + '}', version.to_s)
124
+
125
+ # query parameters
126
+ query_params = {}
127
+
128
+ # header parameters
129
+ header_params = {}
130
+ # HTTP header 'Accept' (if needed)
131
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
132
+ # HTTP header 'Content-Type'
133
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
134
+
135
+ # form parameters
136
+ form_params = {}
137
+
138
+ # http body (model)
139
+ post_body = @api_client.object_to_http_body(web_query)
140
+ auth_names = []
141
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
142
+ :header_params => header_params,
143
+ :query_params => query_params,
144
+ :form_params => form_params,
145
+ :body => post_body,
146
+ :auth_names => auth_names,
147
+ :return_type => 'AggregateResult')
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: DataSetApi#post_web_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
94
153
  end
95
154
  end
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #DocuSign Monitor API
2
+ #Monitor API
3
3
 
4
4
  #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
- OpenAPI spec version: v2
6
+ OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -35,7 +35,7 @@ module DocuSign_Monitor
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "Swagger-Codegen/#{VERSION}/ruby"
38
+ @user_agent = "Swagger-Codegen/1.1.0/ruby"
39
39
  @default_headers = {
40
40
  'Content-Type' => "application/json",
41
41
  'User-Agent' => @user_agent
@@ -392,8 +392,11 @@ module DocuSign_Monitor
392
392
  # Helper method to set oauth base path
393
393
  # @param [String] oauth_base_path if passed nil it will determined from base_path
394
394
  def set_oauth_base_path(oauth_base_path=nil)
395
- self.oauth_base_path = oauth_base_path if oauth_base_path
396
- return if self.oauth_base_path
395
+ if oauth_base_path
396
+ raise ArgumentError.new('OAuth base path should only include domain name (without https://)') if oauth_base_path.include? "//"
397
+ self.oauth_base_path = oauth_base_path
398
+ return
399
+ end
397
400
 
398
401
  # did we need this check as we can determine it from base path
399
402
  #raise ArgumentError.new('oAuthBasePath cannot be empty') unless oauth_base_path
@@ -572,13 +575,14 @@ module DocuSign_Monitor
572
575
  :return_type => 'OAuth::OAuthToken',
573
576
  :oauth => true
574
577
  }
575
- data, status_code, headers = self.call_api("POST", '/oauth/token', params)
576
- abort(data.inspect)
578
+
579
+ token, status_code, headers = self.call_api("POST", '/oauth/token', params)
577
580
 
578
- end
581
+ if status_code == 200
582
+ self.default_headers.store('Authorization', "#{token.token_type} #{token.access_token}")
579
583
 
580
- def set_access_token(token_obj)
581
- self.default_headers['Authorization'] = token_obj.access_token
584
+ token
585
+ end
582
586
  end
583
587
 
584
588
  # Helper method to add default header params
@@ -588,4 +592,4 @@ module DocuSign_Monitor
588
592
  @default_headers[header_name] = header_value
589
593
  end
590
594
  end
591
- end
595
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #DocuSign REST API
2
+ #Monitor API
3
3
 
4
- #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
- OpenAPI spec version: v2
6
+ OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -1058,4 +1058,4 @@ module DocuSign_Monitor
1058
1058
 
1059
1059
  end
1060
1060
  end
1061
- end
1061
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Monitor API
3
3
 
4
- #Use the DocuSign Monitor API to receive a data feed containing atypical security events within your DocuSign account. This data goes directly to an integrated application or website.
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
6
  OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
@@ -0,0 +1,185 @@
1
+ =begin
2
+ #Monitor API
3
+
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
+
6
+ OpenAPI spec version: v2.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_Monitor
15
+ class AggregateResult
16
+ attr_accessor :result
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'result' => :'result'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.swagger_types
27
+ {
28
+ :'result' => :'Array<AggregateResultResult>'
29
+ }
30
+ end
31
+
32
+ # Initializes the object
33
+ # @param [Hash] attributes Model attributes in the form of hash
34
+ def initialize(attributes = {})
35
+ return unless attributes.is_a?(Hash)
36
+
37
+ # convert string to symbol for hash key
38
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
39
+
40
+ if attributes.has_key?(:'result')
41
+ if (value = attributes[:'result']).is_a?(Array)
42
+ self.result = value
43
+ end
44
+ end
45
+ end
46
+
47
+ # Show invalid properties with the reasons. Usually used together with valid?
48
+ # @return Array for valid properties with the reasons
49
+ def list_invalid_properties
50
+ invalid_properties = Array.new
51
+ invalid_properties
52
+ end
53
+
54
+ # Check to see if the all the properties in the model are valid
55
+ # @return true if the model is valid
56
+ def valid?
57
+ true
58
+ end
59
+
60
+ # Checks equality by comparing each attribute.
61
+ # @param [Object] Object to be compared
62
+ def ==(o)
63
+ return true if self.equal?(o)
64
+ self.class == o.class &&
65
+ result == o.result
66
+ end
67
+
68
+ # @see the `==` method
69
+ # @param [Object] Object to be compared
70
+ def eql?(o)
71
+ self == o
72
+ end
73
+
74
+ # Calculates hash code according to all attributes.
75
+ # @return [Fixnum] Hash code
76
+ def hash
77
+ [result].hash
78
+ end
79
+
80
+ # Builds the object from hash
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ # @return [Object] Returns the model itself
83
+ def build_from_hash(attributes)
84
+ return nil unless attributes.is_a?(Hash)
85
+ self.class.swagger_types.each_pair do |key, type|
86
+ if type =~ /\AArray<(.*)>/i
87
+ # check to ensure the input is an array given that the attribute
88
+ # is documented as an array but the input is not
89
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
90
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
91
+ end
92
+ elsif !attributes[self.class.attribute_map[key]].nil?
93
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
94
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
95
+ end
96
+
97
+ self
98
+ end
99
+
100
+ # Deserializes the data based on type
101
+ # @param string type Data type
102
+ # @param string value Value to be deserialized
103
+ # @return [Object] Deserialized data
104
+ def _deserialize(type, value)
105
+ case type.to_sym
106
+ when :DateTime
107
+ DateTime.parse(value)
108
+ when :Date
109
+ Date.parse(value)
110
+ when :String
111
+ value.to_s
112
+ when :Integer
113
+ value.to_i
114
+ when :Float
115
+ value.to_f
116
+ when :BOOLEAN
117
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
118
+ true
119
+ else
120
+ false
121
+ end
122
+ when :Object
123
+ # generic object (usually a Hash), return directly
124
+ value
125
+ when /\AArray<(?<inner_type>.+)>\z/
126
+ inner_type = Regexp.last_match[:inner_type]
127
+ value.map { |v| _deserialize(inner_type, v) }
128
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
129
+ k_type = Regexp.last_match[:k_type]
130
+ v_type = Regexp.last_match[:v_type]
131
+ {}.tap do |hash|
132
+ value.each do |k, v|
133
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
134
+ end
135
+ end
136
+ else # model
137
+ temp_model = DocuSign_Monitor.const_get(type).new
138
+ temp_model.build_from_hash(value)
139
+ end
140
+ end
141
+
142
+ # Returns the string representation of the object
143
+ # @return [String] String presentation of the object
144
+ def to_s
145
+ to_hash.to_s
146
+ end
147
+
148
+ # to_body is an alias to to_hash (backward compatibility)
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_body
151
+ to_hash
152
+ end
153
+
154
+ # Returns the object in the form of hash
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_hash
157
+ hash = {}
158
+ self.class.attribute_map.each_pair do |attr, param|
159
+ value = self.send(attr)
160
+ next if value.nil?
161
+ hash[param] = _to_hash(value)
162
+ end
163
+ hash
164
+ end
165
+
166
+ # Outputs non-array value in the form of hash
167
+ # For object, use to_hash. Otherwise, just return the value
168
+ # @param [Object] value Any valid value
169
+ # @return [Hash] Returns the value in the form of hash
170
+ def _to_hash(value)
171
+ if value.is_a?(Array)
172
+ value.compact.map { |v| _to_hash(v) }
173
+ elsif value.is_a?(Hash)
174
+ {}.tap do |hash|
175
+ value.each { |k, v| hash[k] = _to_hash(v) }
176
+ end
177
+ elsif value.respond_to? :to_hash
178
+ value.to_hash
179
+ else
180
+ value
181
+ end
182
+ end
183
+
184
+ end
185
+ end
@@ -0,0 +1,194 @@
1
+ =begin
2
+ #Monitor API
3
+
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
+
6
+ OpenAPI spec version: v2.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_Monitor
15
+ class AggregateResultResult
16
+ attr_accessor :name
17
+
18
+ attr_accessor :data
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'name' => :'name',
24
+ :'data' => :'data'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'name' => :'String',
32
+ :'data' => :'Array<Object>'
33
+ }
34
+ end
35
+
36
+ # Initializes the object
37
+ # @param [Hash] attributes Model attributes in the form of hash
38
+ def initialize(attributes = {})
39
+ return unless attributes.is_a?(Hash)
40
+
41
+ # convert string to symbol for hash key
42
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
+
44
+ if attributes.has_key?(:'name')
45
+ self.name = attributes[:'name']
46
+ end
47
+
48
+ if attributes.has_key?(:'data')
49
+ if (value = attributes[:'data']).is_a?(Array)
50
+ self.data = value
51
+ end
52
+ end
53
+ end
54
+
55
+ # Show invalid properties with the reasons. Usually used together with valid?
56
+ # @return Array for valid properties with the reasons
57
+ def list_invalid_properties
58
+ invalid_properties = Array.new
59
+ invalid_properties
60
+ end
61
+
62
+ # Check to see if the all the properties in the model are valid
63
+ # @return true if the model is valid
64
+ def valid?
65
+ true
66
+ end
67
+
68
+ # Checks equality by comparing each attribute.
69
+ # @param [Object] Object to be compared
70
+ def ==(o)
71
+ return true if self.equal?(o)
72
+ self.class == o.class &&
73
+ name == o.name &&
74
+ data == o.data
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(o)
80
+ self == o
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Fixnum] Hash code
85
+ def hash
86
+ [name, data].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.swagger_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
104
+ end
105
+
106
+ self
107
+ end
108
+
109
+ # Deserializes the data based on type
110
+ # @param string type Data type
111
+ # @param string value Value to be deserialized
112
+ # @return [Object] Deserialized data
113
+ def _deserialize(type, value)
114
+ case type.to_sym
115
+ when :DateTime
116
+ DateTime.parse(value)
117
+ when :Date
118
+ Date.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :BOOLEAN
126
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ temp_model = DocuSign_Monitor.const_get(type).new
147
+ temp_model.build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ # Returns the string representation of the object
152
+ # @return [String] String presentation of the object
153
+ def to_s
154
+ to_hash.to_s
155
+ end
156
+
157
+ # to_body is an alias to to_hash (backward compatibility)
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ next if value.nil?
170
+ hash[param] = _to_hash(value)
171
+ end
172
+ hash
173
+ end
174
+
175
+ # Outputs non-array value in the form of hash
176
+ # For object, use to_hash. Otherwise, just return the value
177
+ # @param [Object] value Any valid value
178
+ # @return [Hash] Returns the value in the form of hash
179
+ def _to_hash(value)
180
+ if value.is_a?(Array)
181
+ value.compact.map { |v| _to_hash(v) }
182
+ elsif value.is_a?(Hash)
183
+ {}.tap do |hash|
184
+ value.each { |k, v| hash[k] = _to_hash(v) }
185
+ end
186
+ elsif value.respond_to? :to_hash
187
+ value.to_hash
188
+ else
189
+ value
190
+ end
191
+ end
192
+
193
+ end
194
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Monitor API
3
3
 
4
- #Use the DocuSign Monitor API to receive a data feed containing atypical security events within your DocuSign account. This data goes directly to an integrated application or website.
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
6
  OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #DocuSign Monitor API - v2
2
+ #Monitor API
3
3
 
4
4
  #An API for an integrator to access the features of DocuSign Monitor
5
5
 
@@ -56,8 +56,8 @@ module DocuSign_Monitor
56
56
  # Attribute type mapping.
57
57
  def self.swagger_types
58
58
  {
59
- :'filters' => :'Array<Filter>',
60
- :'aggregations' => :'Array<Aggregation>',
59
+ :'filters' => :'Array<Object>',
60
+ :'aggregations' => :'Array<Object>',
61
61
  :'query_scope' => :'String',
62
62
  :'query_scope_id' => :'String'
63
63
  }
@@ -102,7 +102,7 @@ module DocuSign_Monitor
102
102
  # Check to see if the all the properties in the model are valid
103
103
  # @return true if the model is valid
104
104
  def valid?
105
- query_scope_validator = EnumAttributeValidator.new('String', ['AccountId', 'OrganizationId', 'None'])
105
+ query_scope_validator = EnumAttributeValidator.new('String', ['OrganizationId'])
106
106
  return false unless query_scope_validator.valid?(@query_scope)
107
107
  true
108
108
  end
@@ -110,7 +110,7 @@ module DocuSign_Monitor
110
110
  # Custom attribute writer method checking allowed values (enum).
111
111
  # @param [Object] query_scope Object to be assigned
112
112
  def query_scope=(query_scope)
113
- validator = EnumAttributeValidator.new('String', ['AccountId', 'OrganizationId', 'None'])
113
+ validator = EnumAttributeValidator.new('String', ['OrganizationId'])
114
114
  unless validator.valid?(query_scope)
115
115
  fail ArgumentError, 'invalid value for "query_scope", must be one of #{validator.allowable_values}.'
116
116
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Monitor API
3
3
 
4
- #Use the DocuSign Monitor API to receive a data feed containing atypical security events within your DocuSign account. This data goes directly to an integrated application or website.
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
6
  OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
@@ -10,5 +10,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  module DocuSign_Monitor
13
- VERSION = '1.0.0'
13
+ VERSION = '1.1.0'
14
14
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Monitor API
3
3
 
4
- #Use the DocuSign Monitor API to receive a data feed containing atypical security events within your DocuSign account. This data goes directly to an integrated application or website.
4
+ #An API for an integrator to access the features of DocuSign Monitor
5
5
 
6
6
  OpenAPI spec version: v2.0
7
7
  Contact: devcenter@docusign.com
@@ -19,7 +19,10 @@ require 'docusign_monitor/configuration'
19
19
  require 'docusign_monitor/client/auth/oauth'
20
20
 
21
21
  # Models
22
+ require 'docusign_monitor/models/aggregate_result'
23
+ require 'docusign_monitor/models/aggregate_result_result'
22
24
  require 'docusign_monitor/models/cursored_result'
25
+ require 'docusign_monitor/models/web_query'
23
26
 
24
27
  # APIs
25
28
  require 'docusign_monitor/api/data_set_api'
data/runLinter.sh ADDED
@@ -0,0 +1 @@
1
+ ./vendor/bundle/ruby/2.6.0/bin/rubocop -a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docusign_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocuSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-24 00:00:00.000000000 Z
11
+ date: 2022-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -34,22 +34,22 @@ dependencies:
34
34
  name: addressable
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.7.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '2.7'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.7.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 2.7.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '2.7'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.7.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: typhoeus
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -74,42 +74,82 @@ dependencies:
74
74
  name: json
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: 2.1.0
80
77
  - - "~>"
81
78
  - !ruby/object:Gem::Version
82
79
  version: '2.1'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 2.1.0
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 2.1.0
90
87
  - - "~>"
91
88
  - !ruby/object:Gem::Version
92
89
  version: '2.1'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 2.1.0
93
93
  - !ruby/object:Gem::Dependency
94
- name: rspec
94
+ name: rspec-mocks
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '3.8'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 3.8.0
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.8'
97
110
  - - ">="
98
111
  - !ruby/object:Gem::Version
99
- version: 3.6.0
112
+ version: 3.8.0
113
+ - !ruby/object:Gem::Dependency
114
+ name: rspec-expectations
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
100
117
  - - "~>"
101
118
  - !ruby/object:Gem::Version
102
- version: '3.6'
119
+ version: '3.8'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 3.8.0
103
123
  type: :development
104
124
  prerelease: false
105
125
  version_requirements: !ruby/object:Gem::Requirement
106
126
  requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '3.8'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 3.8.0
133
+ - !ruby/object:Gem::Dependency
134
+ name: rspec
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '3.4'
107
140
  - - ">="
108
141
  - !ruby/object:Gem::Version
109
- version: 3.6.0
142
+ version: 3.4.0
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
110
147
  - - "~>"
111
148
  - !ruby/object:Gem::Version
112
- version: '3.6'
149
+ version: '3.4'
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 3.4.0
113
153
  - !ruby/object:Gem::Dependency
114
154
  name: vcr
115
155
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +259,7 @@ dependencies:
219
259
  version: '0.2'
220
260
  - - ">="
221
261
  - !ruby/object:Gem::Version
222
- version: 0.2.12
262
+ version: 0.2.11
223
263
  type: :development
224
264
  prerelease: false
225
265
  version_requirements: !ruby/object:Gem::Requirement
@@ -229,7 +269,7 @@ dependencies:
229
269
  version: '0.2'
230
270
  - - ">="
231
271
  - !ruby/object:Gem::Version
232
- version: 0.2.12
272
+ version: 0.2.11
233
273
  description: The DocuSign package makes integrating DocuSign into your apps and websites
234
274
  a super fast and painless process. The library is open sourced on GitHub, look for
235
275
  the docusign-monitor-ruby-client repository.
@@ -244,9 +284,6 @@ files:
244
284
  - LICENSE
245
285
  - README.md
246
286
  - Rakefile
247
- - docusign_monitor-1.0.0.beta1.gem
248
- - docusign_monitor-1.0.0.pre.alpha.gem
249
- - docusign_monitor-1.0.1.pre.alpha.gem
250
287
  - docusign_monitor.gemspec
251
288
  - git_push.sh
252
289
  - lib/docusign_monitor.rb
@@ -255,16 +292,17 @@ files:
255
292
  - lib/docusign_monitor/client/api_error.rb
256
293
  - lib/docusign_monitor/client/auth/oauth.rb
257
294
  - lib/docusign_monitor/configuration.rb
295
+ - lib/docusign_monitor/models/aggregate_result.rb
296
+ - lib/docusign_monitor/models/aggregate_result_result.rb
258
297
  - lib/docusign_monitor/models/aggregation.rb
259
298
  - lib/docusign_monitor/models/cursored_result.rb
260
299
  - lib/docusign_monitor/models/filter.rb
261
300
  - lib/docusign_monitor/models/raw_request.rb
262
301
  - lib/docusign_monitor/models/web_query.rb
263
302
  - lib/docusign_monitor/version.rb
303
+ - runLinter.sh
264
304
  - tests/Gemfile
265
- - tests/Gemfile.lock
266
305
  - tests/docs/Test.pdf
267
- - tests/docs/private.pem
268
306
  - tests/spec/unit_tests_using_jwt_spec.rb
269
307
  homepage: https://github.com/docusign/docusign-monitor-ruby-client
270
308
  licenses:
@@ -285,8 +323,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
323
  - !ruby/object:Gem::Version
286
324
  version: '0'
287
325
  requirements: []
288
- rubygems_version: 3.0.3
326
+ rubyforge_project:
327
+ rubygems_version: 2.7.6
289
328
  signing_key:
290
329
  specification_version: 4
291
- summary: DocuSign Monitor API Ruby Gem
330
+ summary: Monitor API Ruby Gem
292
331
  test_files: []
Binary file
Binary file
Binary file
data/tests/Gemfile.lock DELETED
@@ -1,46 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- docusign_monitor (1.0.0)
5
- addressable (~> 2.7, >= 2.7.0)
6
- json (~> 2.1, >= 2.1.0)
7
- jwt (~> 2.2, >= 2.2.1)
8
- typhoeus (~> 1.0, >= 1.0.1)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- addressable (2.7.0)
14
- public_suffix (>= 2.0.2, < 5.0)
15
- diff-lcs (1.4.4)
16
- ethon (0.14.0)
17
- ffi (>= 1.15.0)
18
- ffi (1.15.1)
19
- json (2.5.1)
20
- jwt (2.2.3)
21
- public_suffix (4.0.6)
22
- rspec (3.9.0)
23
- rspec-core (~> 3.9.0)
24
- rspec-expectations (~> 3.9.0)
25
- rspec-mocks (~> 3.9.0)
26
- rspec-core (3.9.3)
27
- rspec-support (~> 3.9.3)
28
- rspec-expectations (3.9.3)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.9.0)
31
- rspec-mocks (3.9.1)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.9.0)
34
- rspec-support (3.9.4)
35
- typhoeus (1.4.0)
36
- ethon (>= 0.9.0)
37
-
38
- PLATFORMS
39
- ruby
40
-
41
- DEPENDENCIES
42
- docusign_monitor!
43
- rspec
44
-
45
- BUNDLED WITH
46
- 1.17.2
@@ -1,27 +0,0 @@
1
- -----BEGIN RSA PRIVATE KEY-----
2
- MIIEogIBAAKCAQEAq1yUzw3owo+yIuBntG4EFPEaeJqemjdnIKu4JJB8Vm5LJRaX
3
- 68smh+pz2K0GtfqB3fiIaguw3NsVZ8v+carfxzoX58jeiITi6NDXK6i3Q+9tyCJp
4
- rxcmTlyPIh1o+R9BaZAn7Uc0OIkkconrncRlDAjgRusBs79izJIqMHE+YG5uSCG+
5
- TLDP+LtzzPK8A4rRB+/lDKoXM+O905KBSEJyZ2xGZOHY4SEWKH5vjA50syy6oGpM
6
- Hpcpx4rrvRLfcmJDcSHvY1WT3GaPAOXnSoGzUDnwiOPdS1rcznH2nwrw+kPWxHwj
7
- sE2O/jvELduVl8H/PPsW1wtyjnEt7B7Q9wrWcwIDAQABAoIBAAMpoHW5BJg+7Gm5
8
- TZk1Wg4RKARhI32u3/KTi/PhVoKohPu4cvYBTVyL3z9WsJCvGkw3/W8yzcVtLnyN
9
- uf90hJ0tA8RVBZbsXGWX/0GxwRxku3IGVm790rfDYwVp9nlobe7TsSOeZ6sO6jyw
10
- h1kp3EiggqS9fgFIhbLgtmEnbm0VBfA/+8UNZQxJxzw0uZCVojEoFtbxyv3inHSu
11
- clKGs3sDQ1RA2PDE3xyOR51a4RLAWuavQC1TdydS/QEnCmxJnZ1eQY+bjt+GnHOO
12
- OPzgCKHu1TdJyPT57kU7FXMEkuuj5aG1i/UtZSNH+L386y6nPmo7b/mXyFgMil7r
13
- lNaT81ECgYEA7/b0uotZEm3Gz1OwNYmQS8gNxAq1WtW225RCBxiEV+S7xslueCiG
14
- nATBidwMI/8XbN8KvbmU2TNnndcsUNt9ta8ufX0GXQ0pjEXNL3ZfTKoZF0e/Bn3W
15
- BqSV1YBlpE7B81M79mSVYbMScfzxCVjaU53JRDzYUYxPQNV+iMkYk8kCgYEAttAK
16
- 2ZKPozlWTP6GO1v3ekm+QwUftvJ43XyZ59Pzhegjm2hkIEbUuIPCVfuQIVCvfPIB
17
- yAoTC+9i4rAPmCvYXoGYAx8l5YuwfiUh8ajTavzgrCk9u9/xOH2ypIxRnHzpe99t
18
- V+kLEEuW+uLcN9+D10bP04qTHo+DIGh9Muj23lsCgYAkXqy2/VnRtju0vr1tT91D
19
- 7x1PAkR8cPnXDAB57NhaLfvb5DnPEm1chkgDKgvZBNe7E48gNFmAFg91V+CKnMnP
20
- 2K5WLLXjMpSCgy3XLLzC9OD6q1AjnrzqotVm16AQKDOzOoFTFemiNi7sgebSgNoO
21
- ZFLV+dbbfUWh0Pntp3UHKQKBgF1/9DypUBusZK5Gc4MCm4WJF+2RPlJEm3q0ksbW
22
- SbQQMb33W1aCw6OHiCqP2nyfltGxuSWFuY4eJpZIdAFhU22qnIPkN266zk8GUOEX
23
- duI+ae7DvRZNCEPbTjYIqmj+HjDD6lnPEGCKOLMiun09LWI6jmrkcjBsOCWoK3iR
24
- XEoHAoGAOSXO1kM6p0MZEhKxrVunF6HpW8aHRjcdcjjJJRFgap3hxCT1OZ9YB+SD
25
- Prn+cjFJ7WSMrHpIRt56FZGUUgmp+97WqYsIuAJx56ETKdAVx6C7RuEtbJoqdTER
26
- hS4vaGq+EWmjVc/pSMbBzZ99lpIEbyYBk2jD3GpCWgSd9CDrxGY=
27
- -----END RSA PRIVATE KEY-----