docusign_admin 1.2.0 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/docusign_admin.gemspec +3 -3
- data/lib/docusign_admin/api/accounts_api.rb +1 -1
- data/lib/docusign_admin/api/bulk_exports_api.rb +1 -1
- data/lib/docusign_admin/api/bulk_imports_api.rb +1 -1
- data/lib/docusign_admin/api/ds_groups_api.rb +1 -1
- data/lib/docusign_admin/api/identity_providers_api.rb +1 -1
- data/lib/docusign_admin/api/organizations_api.rb +1 -1
- data/lib/docusign_admin/api/product_permission_profiles_api.rb +1 -1
- data/lib/docusign_admin/api/provision_asset_group_api.rb +524 -0
- data/lib/docusign_admin/api/reserved_domains_api.rb +1 -1
- data/lib/docusign_admin/api/users_api.rb +5 -1
- data/lib/docusign_admin/client/api_client.rb +10 -10
- data/lib/docusign_admin/client/api_error.rb +1 -1
- data/lib/docusign_admin/configuration.rb +1 -1
- data/lib/docusign_admin/models/add_ds_group_and_users_response.rb +1 -1
- data/lib/docusign_admin/models/add_ds_group_users_response.rb +1 -1
- data/lib/docusign_admin/models/add_user_response.rb +1 -1
- data/lib/docusign_admin/models/add_user_response_account_properties.rb +1 -1
- data/lib/docusign_admin/models/address_information.rb +246 -0
- 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/certificate_response.rb +1 -1
- data/lib/docusign_admin/models/clone_error_details.rb +204 -0
- data/lib/docusign_admin/models/delete_membership_request.rb +1 -1
- data/lib/docusign_admin/models/delete_membership_response.rb +1 -1
- data/lib/docusign_admin/models/delete_memberships_request.rb +1 -1
- data/lib/docusign_admin/models/delete_memberships_response.rb +1 -1
- data/lib/docusign_admin/models/delete_response.rb +1 -1
- data/lib/docusign_admin/models/delete_user_identity_request.rb +1 -1
- data/lib/docusign_admin/models/docu_sign_account_domain_model_address.rb +255 -0
- data/lib/docusign_admin/models/domain_response.rb +1 -1
- data/lib/docusign_admin/models/domains_response.rb +1 -1
- data/lib/docusign_admin/models/ds_group_add_request.rb +1 -1
- data/lib/docusign_admin/models/ds_group_and_users_response.rb +1 -1
- data/lib/docusign_admin/models/ds_group_list_response.rb +1 -1
- data/lib/docusign_admin/models/ds_group_request.rb +1 -1
- data/lib/docusign_admin/models/ds_group_response.rb +1 -1
- data/lib/docusign_admin/models/ds_group_user_response.rb +1 -1
- data/lib/docusign_admin/models/ds_group_users_add_request.rb +1 -1
- data/lib/docusign_admin/models/ds_group_users_remove_request.rb +1 -1
- data/lib/docusign_admin/models/ds_group_users_response.rb +1 -1
- data/lib/docusign_admin/models/error_details.rb +1 -1
- data/lib/docusign_admin/models/force_activate_membership_request.rb +1 -1
- data/lib/docusign_admin/models/group_request.rb +1 -1
- data/lib/docusign_admin/models/identity_provider_response.rb +1 -1
- data/lib/docusign_admin/models/identity_providers_response.rb +1 -1
- data/lib/docusign_admin/models/individual_membership_data_redaction_request.rb +1 -1
- data/lib/docusign_admin/models/individual_user_data_redaction_request.rb +1 -1
- data/lib/docusign_admin/models/individual_user_data_redaction_response.rb +1 -1
- data/lib/docusign_admin/models/link_response.rb +1 -1
- data/lib/docusign_admin/models/member_group_response.rb +1 -1
- data/lib/docusign_admin/models/member_groups_response.rb +1 -1
- data/lib/docusign_admin/models/membership_data_redaction_request.rb +1 -1
- data/lib/docusign_admin/models/membership_data_redaction_response.rb +1 -1
- data/lib/docusign_admin/models/membership_response.rb +1 -1
- data/lib/docusign_admin/models/new_account_user_request.rb +1 -1
- data/lib/docusign_admin/models/new_multi_product_user_add_request.rb +1 -1
- data/lib/docusign_admin/models/new_user_request.rb +1 -1
- data/lib/docusign_admin/models/new_user_request_account_properties.rb +1 -1
- data/lib/docusign_admin/models/new_user_response.rb +1 -1
- data/lib/docusign_admin/models/new_user_response_account_properties.rb +1 -1
- data/lib/docusign_admin/models/oasirr_error_details.rb +1 -1
- data/lib/docusign_admin/models/oasirr_organization_account_settings_error_data_response.rb +1 -1
- data/lib/docusign_admin/models/oetr_error_details.rb +1 -1
- data/lib/docusign_admin/models/org_export_selected_account.rb +1 -1
- data/lib/docusign_admin/models/org_export_selected_domain.rb +1 -1
- data/lib/docusign_admin/models/org_report_configuration_response.rb +1 -1
- data/lib/docusign_admin/models/org_report_create_response.rb +1 -1
- data/lib/docusign_admin/models/org_report_list_response.rb +1 -1
- data/lib/docusign_admin/models/org_report_list_response_org_report.rb +1 -1
- data/lib/docusign_admin/models/org_report_list_response_requestor.rb +1 -1
- data/lib/docusign_admin/models/org_report_request.rb +1 -1
- data/lib/docusign_admin/models/organization_account_request.rb +1 -1
- data/lib/docusign_admin/models/organization_account_response.rb +1 -1
- data/lib/docusign_admin/models/organization_account_settings_import_requestor_response.rb +1 -1
- data/lib/docusign_admin/models/organization_account_settings_import_response.rb +1 -1
- data/lib/docusign_admin/models/organization_account_settings_import_result_response.rb +1 -1
- data/lib/docusign_admin/models/organization_accounts_request.rb +1 -1
- data/lib/docusign_admin/models/organization_export_account.rb +1 -1
- data/lib/docusign_admin/models/organization_export_domain.rb +1 -1
- data/lib/docusign_admin/models/organization_export_request.rb +1 -1
- data/lib/docusign_admin/models/organization_export_requestor_response.rb +1 -1
- data/lib/docusign_admin/models/organization_export_response.rb +1 -1
- data/lib/docusign_admin/models/organization_export_task_response.rb +1 -1
- data/lib/docusign_admin/models/organization_exports_response.rb +1 -1
- data/lib/docusign_admin/models/organization_import_response.rb +1 -1
- data/lib/docusign_admin/models/organization_import_response_error_rollup.rb +1 -1
- data/lib/docusign_admin/models/organization_import_response_requestor.rb +1 -1
- data/lib/docusign_admin/models/organization_import_response_warning_rollup.rb +1 -1
- data/lib/docusign_admin/models/organization_imports_response.rb +1 -1
- data/lib/docusign_admin/models/organization_response.rb +1 -1
- data/lib/docusign_admin/models/organization_salesforce_account_managers_response.rb +1 -1
- data/lib/docusign_admin/models/organization_simple_id_object.rb +1 -1
- data/lib/docusign_admin/models/organization_subscription_response.rb +248 -0
- data/lib/docusign_admin/models/organization_user_response.rb +1 -1
- data/lib/docusign_admin/models/organization_users_response.rb +1 -1
- data/lib/docusign_admin/models/organizations_response.rb +1 -1
- data/lib/docusign_admin/models/osamr_contact.rb +1 -1
- data/lib/docusign_admin/models/paging_response_properties.rb +1 -1
- data/lib/docusign_admin/models/permission_profile_request.rb +1 -1
- data/lib/docusign_admin/models/permission_profile_response.rb +1 -1
- data/lib/docusign_admin/models/permission_profile_response2_1.rb +1 -1
- data/lib/docusign_admin/models/permissions_response.rb +1 -1
- data/lib/docusign_admin/models/product_permission_profile_request.rb +1 -1
- data/lib/docusign_admin/models/product_permission_profile_response.rb +1 -1
- data/lib/docusign_admin/models/product_permission_profiles_request.rb +1 -1
- data/lib/docusign_admin/models/product_permission_profiles_response.rb +1 -1
- data/lib/docusign_admin/models/remove_ds_group_users_response.rb +1 -1
- data/lib/docusign_admin/models/remove_user_products_response.rb +1 -1
- data/lib/docusign_admin/models/required_attribute_mapping_response.rb +1 -1
- data/lib/docusign_admin/models/saml2_identity_provider_response.rb +1 -1
- data/lib/docusign_admin/models/setting_response.rb +1 -1
- data/lib/docusign_admin/models/sub_account_create_request.rb +192 -0
- data/lib/docusign_admin/models/sub_account_create_request_sub_account_creation_subscription.rb +203 -0
- data/lib/docusign_admin/models/sub_account_create_request_sub_account_creation_target_account_admin.rb +253 -0
- data/lib/docusign_admin/models/sub_account_create_request_sub_account_creation_target_account_details.rb +237 -0
- data/lib/docusign_admin/models/sub_account_create_subscription_details.rb +216 -0
- data/lib/docusign_admin/models/sub_account_create_subscription_module_details.rb +194 -0
- data/lib/docusign_admin/models/sub_account_create_target_account.rb +234 -0
- data/lib/docusign_admin/models/sub_account_create_target_account_admin.rb +248 -0
- data/lib/docusign_admin/models/sub_account_create_worker.rb +360 -0
- data/lib/docusign_admin/models/sub_account_create_worker_response.rb +186 -0
- data/lib/docusign_admin/models/sub_account_error_details.rb +204 -0
- data/lib/docusign_admin/models/subscription_plan_item_response.rb +210 -0
- data/lib/docusign_admin/models/subscription_provision_model_account_create_account_admin.rb +253 -0
- data/lib/docusign_admin/models/subscription_provision_model_account_create_create_account_details.rb +271 -0
- data/lib/docusign_admin/models/subscription_provision_model_account_create_create_account_subscription_details.rb +203 -0
- data/lib/docusign_admin/models/subscription_provision_model_account_create_create_sub_account_details.rb +280 -0
- data/lib/docusign_admin/models/subscription_provision_model_asset_group_work.rb +516 -0
- data/lib/docusign_admin/models/subscription_provision_model_asset_group_work_result.rb +201 -0
- data/lib/docusign_admin/models/subscription_provision_model_change_event.rb +201 -0
- data/lib/docusign_admin/models/subscription_provision_model_service_error_details.rb +210 -0
- data/lib/docusign_admin/models/update_membership_request.rb +1 -1
- data/lib/docusign_admin/models/update_response.rb +1 -1
- data/lib/docusign_admin/models/update_user_email_request.rb +1 -1
- data/lib/docusign_admin/models/update_user_request.rb +1 -1
- data/lib/docusign_admin/models/update_users_email_request.rb +1 -1
- data/lib/docusign_admin/models/update_users_request.rb +1 -1
- data/lib/docusign_admin/models/user_drilldown_response.rb +1 -1
- data/lib/docusign_admin/models/user_identity_request.rb +1 -1
- data/lib/docusign_admin/models/user_identity_response.rb +1 -1
- data/lib/docusign_admin/models/user_product_permission_profiles_request.rb +1 -1
- data/lib/docusign_admin/models/user_product_permission_profiles_response.rb +1 -1
- data/lib/docusign_admin/models/user_product_profile_delete_request.rb +1 -1
- data/lib/docusign_admin/models/user_update_response.rb +1 -1
- data/lib/docusign_admin/models/users_drilldown_response.rb +1 -1
- data/lib/docusign_admin/models/users_update_response.rb +1 -1
- data/lib/docusign_admin/version.rb +2 -2
- data/lib/docusign_admin.rb +32 -1
- data/tests/Gemfile +1 -0
- metadata +38 -6
@@ -0,0 +1,248 @@
|
|
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 OrganizationSubscriptionResponse
|
16
|
+
attr_accessor :plan_id
|
17
|
+
|
18
|
+
attr_accessor :plan_name
|
19
|
+
|
20
|
+
attr_accessor :associated_accounts_count
|
21
|
+
|
22
|
+
attr_accessor :asset_group_name
|
23
|
+
|
24
|
+
attr_accessor :asset_group_id
|
25
|
+
|
26
|
+
attr_accessor :subscription_name
|
27
|
+
|
28
|
+
attr_accessor :subscription_id
|
29
|
+
|
30
|
+
attr_accessor :modules
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'plan_id' => :'plan_id',
|
36
|
+
:'plan_name' => :'plan_name',
|
37
|
+
:'associated_accounts_count' => :'associated_accounts_count',
|
38
|
+
:'asset_group_name' => :'asset_group_name',
|
39
|
+
:'asset_group_id' => :'asset_group_id',
|
40
|
+
:'subscription_name' => :'subscription_name',
|
41
|
+
:'subscription_id' => :'subscription_id',
|
42
|
+
:'modules' => :'modules'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.swagger_types
|
48
|
+
{
|
49
|
+
:'plan_id' => :'String',
|
50
|
+
:'plan_name' => :'String',
|
51
|
+
:'associated_accounts_count' => :'Integer',
|
52
|
+
:'asset_group_name' => :'String',
|
53
|
+
:'asset_group_id' => :'String',
|
54
|
+
:'subscription_name' => :'String',
|
55
|
+
:'subscription_id' => :'String',
|
56
|
+
:'modules' => :'Array<SubscriptionPlanItemResponse>'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
+
|
68
|
+
if attributes.has_key?(:'plan_id')
|
69
|
+
self.plan_id = attributes[:'plan_id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'plan_name')
|
73
|
+
self.plan_name = attributes[:'plan_name']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'associated_accounts_count')
|
77
|
+
self.associated_accounts_count = attributes[:'associated_accounts_count']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'asset_group_name')
|
81
|
+
self.asset_group_name = attributes[:'asset_group_name']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'asset_group_id')
|
85
|
+
self.asset_group_id = attributes[:'asset_group_id']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'subscription_name')
|
89
|
+
self.subscription_name = attributes[:'subscription_name']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'subscription_id')
|
93
|
+
self.subscription_id = attributes[:'subscription_id']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'modules')
|
97
|
+
if (value = attributes[:'modules']).is_a?(Array)
|
98
|
+
self.modules = value
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
104
|
+
# @return Array for valid properties with the reasons
|
105
|
+
def list_invalid_properties
|
106
|
+
invalid_properties = Array.new
|
107
|
+
invalid_properties
|
108
|
+
end
|
109
|
+
|
110
|
+
# Check to see if the all the properties in the model are valid
|
111
|
+
# @return true if the model is valid
|
112
|
+
def valid?
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Checks equality by comparing each attribute.
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
plan_id == o.plan_id &&
|
122
|
+
plan_name == o.plan_name &&
|
123
|
+
associated_accounts_count == o.associated_accounts_count &&
|
124
|
+
asset_group_name == o.asset_group_name &&
|
125
|
+
asset_group_id == o.asset_group_id &&
|
126
|
+
subscription_name == o.subscription_name &&
|
127
|
+
subscription_id == o.subscription_id &&
|
128
|
+
modules == o.modules
|
129
|
+
end
|
130
|
+
|
131
|
+
# @see the `==` method
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def eql?(o)
|
134
|
+
self == o
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Fixnum] Hash code
|
139
|
+
def hash
|
140
|
+
[plan_id, plan_name, associated_accounts_count, asset_group_name, asset_group_id, subscription_name, subscription_id, modules].hash
|
141
|
+
end
|
142
|
+
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def build_from_hash(attributes)
|
147
|
+
return nil unless attributes.is_a?(Hash)
|
148
|
+
self.class.swagger_types.each_pair do |key, type|
|
149
|
+
if type =~ /\AArray<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
153
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
154
|
+
end
|
155
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
156
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
157
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
158
|
+
end
|
159
|
+
|
160
|
+
self
|
161
|
+
end
|
162
|
+
|
163
|
+
# Deserializes the data based on type
|
164
|
+
# @param string type Data type
|
165
|
+
# @param string value Value to be deserialized
|
166
|
+
# @return [Object] Deserialized data
|
167
|
+
def _deserialize(type, value)
|
168
|
+
case type.to_sym
|
169
|
+
when :DateTime
|
170
|
+
DateTime.parse(value)
|
171
|
+
when :Date
|
172
|
+
Date.parse(value)
|
173
|
+
when :String
|
174
|
+
value.to_s
|
175
|
+
when :Integer
|
176
|
+
value.to_i
|
177
|
+
when :Float
|
178
|
+
value.to_f
|
179
|
+
when :BOOLEAN
|
180
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
181
|
+
true
|
182
|
+
else
|
183
|
+
false
|
184
|
+
end
|
185
|
+
when :Object
|
186
|
+
# generic object (usually a Hash), return directly
|
187
|
+
value
|
188
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
189
|
+
inner_type = Regexp.last_match[:inner_type]
|
190
|
+
value.map { |v| _deserialize(inner_type, v) }
|
191
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
192
|
+
k_type = Regexp.last_match[:k_type]
|
193
|
+
v_type = Regexp.last_match[:v_type]
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each do |k, v|
|
196
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
else # model
|
200
|
+
temp_model = DocuSign_Admin.const_get(type).new
|
201
|
+
temp_model.build_from_hash(value)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the string representation of the object
|
206
|
+
# @return [String] String presentation of the object
|
207
|
+
def to_s
|
208
|
+
to_hash.to_s
|
209
|
+
end
|
210
|
+
|
211
|
+
# to_body is an alias to to_hash (backward compatibility)
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
213
|
+
def to_body
|
214
|
+
to_hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the object in the form of hash
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_hash
|
220
|
+
hash = {}
|
221
|
+
self.class.attribute_map.each_pair do |attr, param|
|
222
|
+
value = self.send(attr)
|
223
|
+
next if value.nil?
|
224
|
+
hash[param] = _to_hash(value)
|
225
|
+
end
|
226
|
+
hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Outputs non-array value in the form of hash
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
231
|
+
# @param [Object] value Any valid value
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
233
|
+
def _to_hash(value)
|
234
|
+
if value.is_a?(Array)
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
236
|
+
elsif value.is_a?(Hash)
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
+
end
|
240
|
+
elsif value.respond_to? :to_hash
|
241
|
+
value.to_hash
|
242
|
+
else
|
243
|
+
value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
end
|
248
|
+
end
|