docusign_admin 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/docusign_admin/api/provision_asset_group_api.rb +280 -0
- data/lib/docusign_admin/client/api_client.rb +1 -1
- data/lib/docusign_admin/models/asset_group_account_clone.rb +370 -0
- data/lib/docusign_admin/models/asset_group_account_clone_source_account.rb +219 -0
- data/lib/docusign_admin/models/asset_group_account_clone_target_account.rb +234 -0
- data/lib/docusign_admin/models/asset_group_account_clone_target_account_admin.rb +248 -0
- data/lib/docusign_admin/models/asset_group_account_clones.rb +186 -0
- data/lib/docusign_admin/models/asset_group_account_response.rb +254 -0
- data/lib/docusign_admin/models/asset_group_accounts_response.rb +186 -0
- data/lib/docusign_admin/models/clone_error_details.rb +204 -0
- data/lib/docusign_admin/version.rb +1 -1
- data/lib/docusign_admin.rb +9 -0
- metadata +11 -2
@@ -0,0 +1,204 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Admin API
|
3
|
+
|
4
|
+
#An API for an organization administrator to manage organizations, accounts and users
|
5
|
+
|
6
|
+
OpenAPI spec version: v2.1
|
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_Admin
|
15
|
+
class CloneErrorDetails
|
16
|
+
# The error code.
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
# The error description.
|
20
|
+
attr_accessor :error_description
|
21
|
+
|
22
|
+
# Whether the error is caused by the system or user.
|
23
|
+
attr_accessor :is_system_error
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'error' => :'error',
|
29
|
+
:'error_description' => :'errorDescription',
|
30
|
+
:'is_system_error' => :'isSystemError'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.swagger_types
|
36
|
+
{
|
37
|
+
:'error' => :'String',
|
38
|
+
:'error_description' => :'String',
|
39
|
+
:'is_system_error' => :'BOOLEAN'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
return unless attributes.is_a?(Hash)
|
47
|
+
|
48
|
+
# convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
|
+
|
51
|
+
if attributes.has_key?(:'error')
|
52
|
+
self.error = attributes[:'error']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'errorDescription')
|
56
|
+
self.error_description = attributes[:'errorDescription']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'isSystemError')
|
60
|
+
self.is_system_error = attributes[:'isSystemError']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Checks equality by comparing each attribute.
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def ==(o)
|
80
|
+
return true if self.equal?(o)
|
81
|
+
self.class == o.class &&
|
82
|
+
error == o.error &&
|
83
|
+
error_description == o.error_description &&
|
84
|
+
is_system_error == o.is_system_error
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Fixnum] Hash code
|
95
|
+
def hash
|
96
|
+
[error, error_description, is_system_error].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.swagger_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :BOOLEAN
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
temp_model = DocuSign_Admin.const_get(type).new
|
157
|
+
temp_model.build_from_hash(value)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the string representation of the object
|
162
|
+
# @return [String] String presentation of the object
|
163
|
+
def to_s
|
164
|
+
to_hash.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# to_body is an alias to to_hash (backward compatibility)
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_body
|
170
|
+
to_hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the object in the form of hash
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_hash
|
176
|
+
hash = {}
|
177
|
+
self.class.attribute_map.each_pair do |attr, param|
|
178
|
+
value = self.send(attr)
|
179
|
+
next if value.nil?
|
180
|
+
hash[param] = _to_hash(value)
|
181
|
+
end
|
182
|
+
hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Outputs non-array value in the form of hash
|
186
|
+
# For object, use to_hash. Otherwise, just return the value
|
187
|
+
# @param [Object] value Any valid value
|
188
|
+
# @return [Hash] Returns the value in the form of hash
|
189
|
+
def _to_hash(value)
|
190
|
+
if value.is_a?(Array)
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
192
|
+
elsif value.is_a?(Hash)
|
193
|
+
{}.tap do |hash|
|
194
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
195
|
+
end
|
196
|
+
elsif value.respond_to? :to_hash
|
197
|
+
value.to_hash
|
198
|
+
else
|
199
|
+
value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|
data/lib/docusign_admin.rb
CHANGED
@@ -23,7 +23,15 @@ require 'docusign_admin/models/add_ds_group_and_users_response'
|
|
23
23
|
require 'docusign_admin/models/add_ds_group_users_response'
|
24
24
|
require 'docusign_admin/models/add_user_response'
|
25
25
|
require 'docusign_admin/models/add_user_response_account_properties'
|
26
|
+
require 'docusign_admin/models/asset_group_account_clone'
|
27
|
+
require 'docusign_admin/models/asset_group_account_clone_source_account'
|
28
|
+
require 'docusign_admin/models/asset_group_account_clone_target_account'
|
29
|
+
require 'docusign_admin/models/asset_group_account_clone_target_account_admin'
|
30
|
+
require 'docusign_admin/models/asset_group_account_clones'
|
31
|
+
require 'docusign_admin/models/asset_group_account_response'
|
32
|
+
require 'docusign_admin/models/asset_group_accounts_response'
|
26
33
|
require 'docusign_admin/models/certificate_response'
|
34
|
+
require 'docusign_admin/models/clone_error_details'
|
27
35
|
require 'docusign_admin/models/ds_group_add_request'
|
28
36
|
require 'docusign_admin/models/ds_group_and_users_response'
|
29
37
|
require 'docusign_admin/models/ds_group_list_response'
|
@@ -135,6 +143,7 @@ require 'docusign_admin/api/ds_groups_api'
|
|
135
143
|
require 'docusign_admin/api/identity_providers_api'
|
136
144
|
require 'docusign_admin/api/organizations_api'
|
137
145
|
require 'docusign_admin/api/product_permission_profiles_api'
|
146
|
+
require 'docusign_admin/api/provision_asset_group_api'
|
138
147
|
require 'docusign_admin/api/reserved_domains_api'
|
139
148
|
require 'docusign_admin/api/users_api'
|
140
149
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docusign_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DocuSign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -294,6 +294,7 @@ files:
|
|
294
294
|
- lib/docusign_admin/api/identity_providers_api.rb
|
295
295
|
- lib/docusign_admin/api/organizations_api.rb
|
296
296
|
- lib/docusign_admin/api/product_permission_profiles_api.rb
|
297
|
+
- lib/docusign_admin/api/provision_asset_group_api.rb
|
297
298
|
- lib/docusign_admin/api/reserved_domains_api.rb
|
298
299
|
- lib/docusign_admin/api/users_api.rb
|
299
300
|
- lib/docusign_admin/client/.DS_Store
|
@@ -305,7 +306,15 @@ files:
|
|
305
306
|
- lib/docusign_admin/models/add_ds_group_users_response.rb
|
306
307
|
- lib/docusign_admin/models/add_user_response.rb
|
307
308
|
- lib/docusign_admin/models/add_user_response_account_properties.rb
|
309
|
+
- lib/docusign_admin/models/asset_group_account_clone.rb
|
310
|
+
- lib/docusign_admin/models/asset_group_account_clone_source_account.rb
|
311
|
+
- lib/docusign_admin/models/asset_group_account_clone_target_account.rb
|
312
|
+
- lib/docusign_admin/models/asset_group_account_clone_target_account_admin.rb
|
313
|
+
- lib/docusign_admin/models/asset_group_account_clones.rb
|
314
|
+
- lib/docusign_admin/models/asset_group_account_response.rb
|
315
|
+
- lib/docusign_admin/models/asset_group_accounts_response.rb
|
308
316
|
- lib/docusign_admin/models/certificate_response.rb
|
317
|
+
- lib/docusign_admin/models/clone_error_details.rb
|
309
318
|
- lib/docusign_admin/models/delete_membership_request.rb
|
310
319
|
- lib/docusign_admin/models/delete_membership_response.rb
|
311
320
|
- lib/docusign_admin/models/delete_memberships_request.rb
|