├── sdk
├── .swagger-codegen
│ └── VERSION
├── src
│ └── DocuSign.Admin
│ │ ├── icon.png
│ │ ├── Client
│ │ ├── ExceptionFactory.cs
│ │ ├── IHttpClient.cs
│ │ ├── GlobalConfiguration.cs
│ │ ├── SwaggerDateConverter.cs
│ │ ├── IApiAccessor.cs
│ │ ├── ApiResponse.cs
│ │ ├── DocuSignResponse.cs
│ │ ├── ApiClient.cs
│ │ ├── IReadableConfiguration.cs
│ │ ├── ApiException.cs
│ │ └── DocuSignRequest.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── DocuSign.Admin.csproj
│ │ └── Model
│ │ ├── UserIdentityRequest.cs
│ │ ├── UpdateResponse.cs
│ │ ├── OrganizationSimpleIdObject.cs
│ │ ├── UpdateUsersRequest.cs
│ │ ├── OrgExportSelectedDomain.cs
│ │ ├── AssetGroupAccountClones.cs
│ │ ├── OrganizationExportDomain.cs
│ │ ├── UsersDrilldownResponse.cs
│ │ ├── UpdateUsersEmailRequest.cs
│ │ ├── OrgExportSelectedAccount.cs
│ │ ├── OrganizationExportAccount.cs
│ │ ├── AssetGroupAccountsResponse.cs
│ │ ├── OrgReportListResponse.cs
│ │ ├── SubAccountCreateWorkerResponse.cs
│ │ ├── DomainsResponse.cs
│ │ ├── PermissionsResponse.cs
│ │ ├── MembershipDataRedactionRequest.cs
│ │ ├── OrganizationExportsResponse.cs
│ │ ├── OrganizationImportsResponse.cs
│ │ ├── OrganizationsResponse.cs
│ │ ├── OrganizationAccountsRequest.cs
│ │ ├── ProductPermissionProfilesResponse.cs
│ │ ├── IndividualMembershipDataRedactionRequest.cs
│ │ ├── OrgReportCreateResponse.cs
│ │ ├── DeleteMembershipRequest.cs
│ │ ├── DSGroupRequest.cs
│ │ ├── IdentityProvidersResponse.cs
│ │ ├── DSGroupUsersAddRequest.cs
│ │ ├── ForceActivateMembershipRequest.cs
│ │ ├── OrganizationAccountRequest.cs
│ │ ├── DeleteMembershipsRequest.cs
│ │ ├── DeleteUserIdentityRequest.cs
│ │ ├── LinkResponse.cs
│ │ ├── PermissionProfileResponse.cs
│ │ ├── OrgReportListResponseRequestor.cs
│ │ ├── UsersUpdateResponse.cs
│ │ ├── ErrorDetails.cs
│ │ └── DeleteResponse.cs
├── DocuSign.Admin.sln
└── .gitignore
├── test
├── SdkNetCoreTests
│ ├── docs
│ │ ├── test.csv
│ │ ├── SignTest1.pdf
│ │ ├── SignTest1.docx
│ │ └── organization-user-import.csv
│ └── SdkNetCoreTests.csproj
├── SdkTests462
│ ├── docs
│ │ ├── SignTest1.docx
│ │ ├── SignTest1.pdf
│ │ └── organization-user-import.csv
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── packages.config
│ └── app.config
├── Admin.SdkTests.Common
│ ├── Admin.SdkTests.Common.csproj
│ └── OrganizationImportResponseStatus.cs
└── SdkTests.sln
├── LICENSE
└── .gitignore
/sdk/.swagger-codegen/VERSION:
--------------------------------------------------------------------------------
1 | 2.4.21
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/test.csv:
--------------------------------------------------------------------------------
1 | AccountID,
2 | 123
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-admin-csharp-client/master/sdk/src/DocuSign.Admin/icon.png
--------------------------------------------------------------------------------
/test/SdkTests462/docs/SignTest1.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-admin-csharp-client/master/test/SdkTests462/docs/SignTest1.docx
--------------------------------------------------------------------------------
/test/SdkTests462/docs/SignTest1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-admin-csharp-client/master/test/SdkTests462/docs/SignTest1.pdf
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/SignTest1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-admin-csharp-client/master/test/SdkNetCoreTests/docs/SignTest1.pdf
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/SignTest1.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/docusign/docusign-admin-csharp-client/master/test/SdkNetCoreTests/docs/SignTest1.docx
--------------------------------------------------------------------------------
/test/Admin.SdkTests.Common/Admin.SdkTests.Common.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard1.4
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/test/SdkTests462/docs/organization-user-import.csv:
--------------------------------------------------------------------------------
1 | AccountID,AccountName,FirstName,LastName,UserEmail,eSignPermissionProfile,Group,Language,UserTitle,CompanyName,AddressLine1,AddressLine2,City,StateRegionProvince,PostalCode,Phone,LoginPolicy,AutoActivate
2 | ,Sample Account,John,Markson,John@testing.test,Account Administrator,Everyone,en,Mr.,Some Division,123 4th St,Suite C1,Seattle,WA,8178,2065559999,fedAuthRequired,
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/docs/organization-user-import.csv:
--------------------------------------------------------------------------------
1 | AccountID,AccountName,FirstName,LastName,UserEmail,eSignPermissionProfile,Group,Language,UserTitle,CompanyName,AddressLine1,AddressLine2,City,StateRegionProvince,PostalCode,Phone,LoginPolicy,AutoActivate
2 | ,Sample Account,John,Markson,John@testing.test,Account Administrator,Everyone,en,Mr.,Some Division,123 4th St,Suite C1,Seattle,WA,8178,2065559999,fedAuthRequired,
--------------------------------------------------------------------------------
/test/Admin.SdkTests.Common/OrganizationImportResponseStatus.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Converters;
3 |
4 | namespace Admin.SdkTests.Common
5 | {
6 | [JsonConverter(typeof(StringEnumConverter))]
7 | public enum OrganizationImportResponseStatus
8 | {
9 | unknown,
10 | queued,
11 | processed_with_issues,
12 | processed_with_errors,
13 | failed,
14 | completed,
15 | in_process,
16 | timed_out_queued,
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/test/SdkTests462/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | [assembly: AssemblyTitle("SdkTests462")]
6 | [assembly: AssemblyDescription("")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: AssemblyCompany("")]
9 | [assembly: AssemblyProduct("SdkTests462")]
10 | [assembly: AssemblyCopyright("Copyright © 2021")]
11 | [assembly: AssemblyTrademark("")]
12 | [assembly: AssemblyCulture("")]
13 |
14 | [assembly: ComVisible(false)]
15 |
16 | [assembly: Guid("85e87805-9989-439d-8436-e8c894fb4dc1")]
17 |
18 | // [assembly: AssemblyVersion("1.0.*")]
19 | [assembly: AssemblyVersion("1.0.0.0")]
20 | [assembly: AssemblyFileVersion("1.0.0.0")]
21 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/ExceptionFactory.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 |
12 | using System;
13 |
14 | namespace DocuSign.Admin.Client
15 | {
16 | ///
17 | /// A delegate to ExceptionFactory method
18 | ///
19 | /// Method name
20 | /// Response
21 | /// Exceptions
22 | public delegate Exception ExceptionFactory(string methodName, DocuSignResponse response);
23 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/IHttpClient.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System.Net;
12 | using System.Threading;
13 | using System.Threading.Tasks;
14 |
15 | namespace DocuSign.Admin.Client
16 | {
17 | public interface IHttpClient
18 | {
19 | void AddDefaultRequestHeader(string header, string value);
20 |
21 | DocuSignResponse SendRequest(DocuSignRequest request);
22 |
23 | Task SendRequestAsync(DocuSignRequest request, CancellationToken cancellationToken);
24 | }
25 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | // Setting ComVisible to false makes the types in this assembly not visible
9 | // to COM components. If you need to access a type in this assembly from
10 | // COM, set the ComVisible attribute to true on that type.
11 | [assembly: ComVisible(false)]
12 |
13 | // Version information for an assembly consists of the following four values:
14 | //
15 | // Major Version
16 | // Minor Version
17 | // Build Number
18 | // Revision
19 | //
20 | // You can specify all the values or you can default the Build and Revision Numbers
21 | // by using the '*' as shown below:
22 | // [assembly: AssemblyVersion("1.0.*")]
23 | internal class AssemblyInformation
24 | {
25 | public const string AssemblyInformationalVersion = "2.0.2";
26 | }
--------------------------------------------------------------------------------
/sdk/DocuSign.Admin.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 2012
3 | VisualStudioVersion = 12.0.0.0
4 | MinimumVisualStudioVersion = 10.0.0.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocuSign.Admin", "src\DocuSign.Admin\DocuSign.Admin.csproj", "{1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}"
6 | EndProject
7 | Global
8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
9 | Debug|Any CPU = Debug|Any CPU
10 | Release|Any CPU = Release|Any CPU
11 | EndGlobalSection
12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
13 | {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14 | {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
15 | {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
16 | {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Release|Any CPU.Build.0 = Release|Any CPU
17 | EndGlobalSection
18 | GlobalSection(SolutionProperties) = preSolution
19 | HideSolutionNode = FALSE
20 | EndGlobalSection
21 | EndGlobal
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/GlobalConfiguration.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 |
12 | using System;
13 | using System.Reflection;
14 | using System.Collections.Generic;
15 | using System.IO;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading;
19 |
20 | namespace DocuSign.Admin.Client
21 | {
22 | ///
23 | /// provides a compile-time extension point for globally configuring
24 | /// API Clients.
25 | ///
26 | ///
27 | /// A customized implementation via partial class may reside in another file and may
28 | /// be excluded from automatic generation via a .swagger-codegen-ignore file.
29 | ///
30 | public partial class GlobalConfiguration : Configuration
31 | {
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/SwaggerDateConverter.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using Newtonsoft.Json.Converters;
12 |
13 | namespace DocuSign.Admin.Client
14 | {
15 | ///
16 | /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339
17 | /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
18 | ///
19 | public class SwaggerDateConverter : IsoDateTimeConverter
20 | {
21 | ///
22 | /// Initializes a new instance of the class.
23 | ///
24 | public SwaggerDateConverter()
25 | {
26 | // full-date = date-fullyear "-" date-month "-" date-mday
27 | DateTimeFormat = "yyyy-MM-dd";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2021 - Docusign, Inc. (https://www.docusign.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/IApiAccessor.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 |
12 | using System;
13 |
14 | namespace DocuSign.Admin.Client
15 | {
16 | ///
17 | /// Represents configuration aspects required to interact with the API endpoints.
18 | ///
19 | public interface IApiAccessor
20 | {
21 | ///
22 | /// Gets or sets the ApiClient object
23 | ///
24 | /// An instance of the ApiClient
25 | DocuSignClient ApiClient {get; set;}
26 |
27 | ///
28 | /// Gets the base path of the API client.
29 | ///
30 | /// The base path
31 | String GetBasePath();
32 |
33 | ///
34 | /// Provides a factory method hook for the creation of exceptions.
35 | ///
36 | ExceptionFactory ExceptionFactory { get; set; }
37 | }
38 | }
--------------------------------------------------------------------------------
/test/SdkNetCoreTests/SdkNetCoreTests.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 |
6 | false
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | ..\..\sdk\src\DocuSign.Admin\bin\Debug\netstandard2.0\DocuSign.Admin.dll
27 |
28 |
29 |
30 |
31 |
32 | Always
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/test/SdkTests462/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/ApiResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 |
14 | namespace DocuSign.Admin.Client
15 | {
16 | ///
17 | /// API Response
18 | ///
19 | public class ApiResponse
20 | {
21 | ///
22 | /// Gets or sets the status code (HTTP status code)
23 | ///
24 | /// The status code.
25 | public int StatusCode { get; private set; }
26 |
27 | ///
28 | /// Gets or sets the HTTP headers
29 | ///
30 | /// HTTP headers
31 | public IDictionary Headers { get; private set; }
32 |
33 | ///
34 | /// Gets or sets the data (parsed HTTP body)
35 | ///
36 | /// The data.
37 | public T Data { get; private set; }
38 |
39 | ///
40 | /// Initializes a new instance of the class.
41 | ///
42 | /// HTTP status code.
43 | /// HTTP headers.
44 | /// Data (parsed HTTP body)
45 | public ApiResponse(int statusCode, IDictionary headers, T data)
46 | {
47 | this.StatusCode= statusCode;
48 | this.Headers = headers;
49 | this.Data = data;
50 | }
51 |
52 | }
53 |
54 | }
55 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/DocuSignResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.Net;
14 | using System.Net.Http.Headers;
15 |
16 | namespace DocuSign.Admin.Client
17 | {
18 | public class DocuSignResponse
19 | {
20 | readonly HttpStatusCode statusCode = HttpStatusCode.OK;
21 | readonly IDictionary headers = null;
22 | readonly string errorMessage = string.Empty;
23 | readonly string contentType = string.Empty;
24 | readonly byte[] rawBytes = null;
25 | readonly Exception exception = null;
26 |
27 | public byte[] RawBytes => rawBytes;
28 |
29 | public string ContentType => contentType;
30 |
31 | public HttpStatusCode StatusCode => statusCode;
32 |
33 | public string Content => rawBytes != null ? System.Text.Encoding.UTF8.GetString(rawBytes) : null;
34 |
35 | public string ErrorMessage => errorMessage;
36 |
37 | public IDictionary Headers => headers;
38 |
39 | public Exception Exception => exception;
40 |
41 | public DocuSignResponse(HttpStatusCode _statusCode, IDictionary _headers, byte[] _rawBytes, string _contentType)
42 | {
43 | statusCode = _statusCode;
44 | headers = _headers;
45 | rawBytes = _rawBytes;
46 | contentType = _contentType;
47 | }
48 |
49 | public DocuSignResponse(Exception _exception, HttpStatusCode _statusCode = HttpStatusCode.InternalServerError)
50 | {
51 | exception = _exception;
52 | errorMessage = _exception?.Message ?? string.Empty;
53 | statusCode = _statusCode;
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/test/SdkTests.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.7.34202.233
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkNetCoreTests", "SdkNetCoreTests\SdkNetCoreTests.csproj", "{9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkTests462", "SdkTests462\SdkTests462.csproj", "{85E87805-9989-439D-8436-E8C894FB4DC1}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Admin.SdkTests.Common", "Admin.SdkTests.Common\Admin.SdkTests.Common.csproj", "{5A9EE67B-1062-4EA9-AA83-A71432F3EBC1}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {9AB776C7-A1C3-4047-ABAB-C7B89D939EC6}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {85E87805-9989-439D-8436-E8C894FB4DC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {85E87805-9989-439D-8436-E8C894FB4DC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {85E87805-9989-439D-8436-E8C894FB4DC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {85E87805-9989-439D-8436-E8C894FB4DC1}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {5A9EE67B-1062-4EA9-AA83-A71432F3EBC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {5A9EE67B-1062-4EA9-AA83-A71432F3EBC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {5A9EE67B-1062-4EA9-AA83-A71432F3EBC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {5A9EE67B-1062-4EA9-AA83-A71432F3EBC1}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {10DCC3EC-815B-4DE3-A9E8-C4AADE9AB546}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/DocuSign.Admin.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net462;netstandard2.0
5 | true
6 | DocuSign.Admin
7 | The Docusign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
8 | DocuSign Inc.
9 | DocuSign
10 | Copyright © Docusign 2024
11 | DocuSign.Admin
12 | DocuSign
13 | Library
14 | $(NoWarn);CS1591
15 | Properties
16 | DocuSign.Admin
17 | DocuSign.Admin
18 | en-US
19 | 2.0.2
20 |
21 | true
22 | true
23 | Docusign.Admin;REST;Admin;docusign;Admin;api
24 | icon.png
25 | https://github.com/docusign/docusign-admin-csharp-client
26 | https://github.com/docusign/docusign-admin-csharp-client/blob/master/LICENSE
27 | https://github.com/docusign/docusign-admin-csharp-client
28 | git
29 | [v2.0.2] - Admin API v2.1-1.4.1 - 11/15/2024
30 |
31 |
32 | NET462
33 |
34 |
35 | NETSTANDARD2_0
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/ApiClient.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Net;
13 | using System.Net.Http;
14 |
15 | namespace DocuSign.Admin.Client
16 | {
17 | ///
18 | /// API client is mainly responsible for making the HTTP call to the API backend.
19 | ///
20 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient instead.", false)]
21 | public class ApiClient : DocuSignClient
22 | {
23 | ///
24 | /// Initializes a new instance of the class
25 | /// with default configuration and base path (https://api-d.docusign.net/Management).
26 | ///
27 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient() instead.", false)]
28 | public ApiClient() : base() { }
29 |
30 | ///
31 | /// Initializes a new instance of the class
32 | /// with default base path (https://api-d.docusign.net/Management).
33 | ///
34 | /// An instance of Configuration.
35 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(Configuration) instead.", false)]
36 | public ApiClient(Configuration configuration) : base(configuration) { }
37 |
38 | ///
39 | /// Initializes a new instance of the class
40 | /// with default configuration.
41 | ///
42 | /// The base path.
43 | /// An optional WebProxy instance.
44 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(string, IWebProxy) instead.", false)]
45 | public ApiClient(String apiBase, IWebProxy proxy = null) : base(apiBase, proxy) { }
46 |
47 | ///
48 | /// Initializes a new instance of the class
49 | /// with default configuration.
50 | ///
51 | /// The base path.
52 | /// The oAuth base path.
53 | /// An optional WebProxy instance.
54 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(String, String, WebProxy) instead.", false)]
55 | public ApiClient(String apiBase, String oAuthBase, IWebProxy proxy = null) : base(apiBase, oAuthBase, proxy) { }
56 | }
57 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/IReadableConfiguration.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 |
12 | using System.Collections.Generic;
13 |
14 | namespace DocuSign.Admin.Client
15 | {
16 | ///
17 | /// Represents a readable-only configuration contract.
18 | ///
19 | public interface IReadableConfiguration
20 | {
21 | ///
22 | /// Gets the access token.
23 | ///
24 | /// Access token.
25 | string AccessToken { get; }
26 |
27 | ///
28 | /// Gets the API key.
29 | ///
30 | /// API key.
31 | IDictionary ApiKey { get; }
32 |
33 | ///
34 | /// Gets the API key prefix.
35 | ///
36 | /// API key prefix.
37 | IDictionary ApiKeyPrefix { get; }
38 |
39 | ///
40 | /// Gets the base path.
41 | ///
42 | /// Base path.
43 | string BasePath { get; }
44 |
45 | ///
46 | /// Gets the date time format.
47 | ///
48 | /// Date time foramt.
49 | string DateTimeFormat { get; }
50 |
51 | ///
52 | /// Gets the default header.
53 | ///
54 | /// Default header.
55 | IDictionary DefaultHeader { get; }
56 |
57 | ///
58 | /// Gets the temp folder path.
59 | ///
60 | /// Temp folder path.
61 | string TempFolderPath { get; }
62 |
63 | ///
64 | /// Gets the HTTP connection timeout (in milliseconds)
65 | ///
66 | /// HTTP connection timeout.
67 | int Timeout { get; }
68 |
69 | ///
70 | /// Gets the user agent.
71 | ///
72 | /// User agent.
73 | string UserAgent { get; }
74 |
75 | ///
76 | /// Gets the username.
77 | ///
78 | /// Username.
79 | string Username { get; }
80 |
81 | ///
82 | /// Gets the password.
83 | ///
84 | /// Password.
85 | string Password { get; }
86 |
87 | ///
88 | /// Gets the API key with prefix.
89 | ///
90 | /// API key identifier (authentication scheme).
91 | /// API key with prefix.
92 | string GetApiKeyWithPrefix(string apiKeyIdentifier);
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/test/SdkTests462/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/ApiException.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 |
12 | using System;
13 | using System.Collections.Generic;
14 | using System.Linq;
15 |
16 | namespace DocuSign.Admin.Client
17 | {
18 | ///
19 | /// API Exception
20 | ///
21 | public class ApiException : Exception
22 | {
23 | ///
24 | /// Gets or sets the error code (HTTP status code)
25 | ///
26 | /// The error code (HTTP status code).
27 | public int ErrorCode { get; set; }
28 |
29 | ///
30 | /// Gets or sets the error content (body json object)
31 | ///
32 | /// The error content (Http response body).
33 | public dynamic ErrorContent { get; private set; }
34 |
35 | ///
36 | /// Gets or sets the error message
37 | ///
38 | /// The error message.
39 | public string ErrorMessage { get; set; }
40 |
41 | ///
42 | /// Gets or sets the HTTP headers
43 | ///
44 | /// HTTP headers
45 | public IDictionary Headers { get; private set; }
46 |
47 | ///
48 | /// Initializes a new instance of the class.
49 | ///
50 | public ApiException() { }
51 |
52 | ///
53 | /// Initializes a new instance of the class.
54 | ///
55 | /// HTTP status code.
56 | /// Error message.
57 | public ApiException(int errorCode, string message) : base(message)
58 | {
59 | this.ErrorCode = errorCode;
60 | this.ErrorMessage = message;
61 | }
62 |
63 | ///
64 | /// Initializes a new instance of the class.
65 | ///
66 | /// HTTP status code.
67 | /// Error message.
68 | /// Error content.
69 | /// DocuSignResponse object.
70 | public ApiException(int errorCode, string message, dynamic errorContent = null, DocuSignResponse response = null) : base(response.Exception?.Message ?? message, response.Exception?.InnerException)
71 | {
72 | this.ErrorCode = errorCode;
73 | this.ErrorContent = errorContent;
74 | if (response != null && response.Headers != null)
75 | {
76 | this.ErrorMessage = response.ErrorMessage;
77 | this.Headers = response.Headers.ToDictionary(x => x.Key, x => x.Value.ToString());
78 | }
79 | }
80 | }
81 | }
--------------------------------------------------------------------------------
/sdk/.gitignore:
--------------------------------------------------------------------------------
1 | # Ref: https://gist.github.com/kmorcinek/2710267
2 | # Download this file using PowerShell v3 under Windows with the following comand
3 | # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
4 |
5 | # User-specific files
6 | *.suo
7 | *.user
8 | *.sln.docstates
9 | ./nuget
10 |
11 | # Build results
12 |
13 | [Dd]ebug/
14 | [Rr]elease/
15 | x64/
16 | build/
17 | [Bb]in/
18 | [Oo]bj/
19 |
20 | # NuGet Packages
21 | *.nupkg
22 | # The packages folder can be ignored because of Package Restore
23 | **/packages/*
24 | # except build/, which is used as an MSBuild target.
25 | !**/packages/build/
26 | # Uncomment if necessary however generally it will be regenerated when needed
27 | #!**/packages/repositories.config
28 |
29 | # MSTest test Results
30 | [Tt]est[Rr]esult*/
31 | [Bb]uild[Ll]og.*
32 |
33 | *_i.c
34 | *_p.c
35 | *.ilk
36 | *.meta
37 | *.obj
38 | *.pch
39 | *.pdb
40 | *.pgc
41 | *.pgd
42 | *.rsp
43 | *.sbr
44 | *.tlb
45 | *.tli
46 | *.tlh
47 | *.tmp
48 | *.tmp_proj
49 | *.log
50 | *.vspscc
51 | *.vssscc
52 | .builds
53 | *.pidb
54 | *.log
55 | *.scc
56 |
57 | # OS generated files #
58 | .DS_Store*
59 | ehthumbs.db
60 | Icon?
61 | Thumbs.db
62 |
63 | # Visual C++ cache files
64 | ipch/
65 | *.aps
66 | *.ncb
67 | *.opensdf
68 | *.sdf
69 | *.cachefile
70 |
71 | # Visual Studio profiler
72 | *.psess
73 | *.vsp
74 | *.vspx
75 |
76 | # Guidance Automation Toolkit
77 | *.gpState
78 |
79 | # ReSharper is a .NET coding add-in
80 | _ReSharper*/
81 | *.[Rr]e[Ss]harper
82 |
83 | # TeamCity is a build add-in
84 | _TeamCity*
85 |
86 | # DotCover is a Code Coverage Tool
87 | *.dotCover
88 |
89 | # NCrunch
90 | *.ncrunch*
91 | .*crunch*.local.xml
92 |
93 | # Installshield output folder
94 | [Ee]xpress/
95 |
96 | # DocProject is a documentation generator add-in
97 | DocProject/buildhelp/
98 | DocProject/Help/*.HxT
99 | DocProject/Help/*.HxC
100 | DocProject/Help/*.hhc
101 | DocProject/Help/*.hhk
102 | DocProject/Help/*.hhp
103 | DocProject/Help/Html2
104 | DocProject/Help/html
105 |
106 | # Click-Once directory
107 | publish/
108 |
109 | # Publish Web Output
110 | *.Publish.xml
111 |
112 | # Windows Azure Build Output
113 | csx
114 | *.build.csdef
115 |
116 | # Windows Store app package directory
117 | AppPackages/
118 |
119 | # Others
120 | sql/
121 | *.Cache
122 | ClientBin/
123 | [Ss]tyle[Cc]op.*
124 | ~$*
125 | *~
126 | *.dbmdl
127 | *.[Pp]ublish.xml
128 | *.pfx
129 | *.publishsettings
130 | modulesbin/
131 | tempbin/
132 |
133 | # EPiServer Site file (VPP)
134 | AppData/
135 |
136 | # RIA/Silverlight projects
137 | Generated_Code/
138 |
139 | # Backup & report files from converting an old project file to a newer
140 | # Visual Studio version. Backup files are not needed, because we have git ;-)
141 | _UpgradeReport_Files/
142 | Backup*/
143 | UpgradeLog*.XML
144 | UpgradeLog*.htm
145 |
146 | # vim
147 | *.txt~
148 | *.swp
149 | *.swo
150 |
151 | # svn
152 | .svn
153 |
154 | # SQL Server files
155 | **/App_Data/*.mdf
156 | **/App_Data/*.ldf
157 | **/App_Data/*.sdf
158 |
159 |
160 | #LightSwitch generated files
161 | GeneratedArtifacts/
162 | _Pvt_Extensions/
163 | ModelManifest.xml
164 |
165 | # =========================
166 | # Windows detritus
167 | # =========================
168 |
169 | # Windows image file caches
170 | Thumbs.db
171 | ehthumbs.db
172 |
173 | # Folder config file
174 | Desktop.ini
175 |
176 | # Recycle Bin used on file shares
177 | $RECYCLE.BIN/
178 |
179 | # Mac desktop service store files
180 | .DS_Store
181 |
182 | # SASS Compiler cache
183 | .sass-cache
184 |
185 | # Visual Studio 2014 CTP
186 | **/*.sln.ide
187 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Ref: https://gist.github.com/kmorcinek/2710267
2 | # Download this file using PowerShell v3 under Windows with the following comand
3 | # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
4 |
5 | # User-specific files
6 | *.suo
7 | *.user
8 | *.sln.docstates
9 | *.vs
10 | *.vscode
11 | ./nuget
12 |
13 | # Build results
14 |
15 | [Dd]ebug/
16 | [Rr]elease/
17 | x64/
18 | build/
19 | [Bb]in/
20 | [Oo]bj/
21 |
22 | # NuGet Packages
23 | *.nupkg
24 | # The packages folder can be ignored because of Package Restore
25 | **/packages/*
26 | # except build/, which is used as an MSBuild target.
27 | !**/packages/build/
28 | # Uncomment if necessary however generally it will be regenerated when needed
29 | #!**/packages/repositories.config
30 |
31 | # MSTest test Results
32 | [Tt]est[Rr]esult*/
33 | [Bb]uild[Ll]og.*
34 |
35 | *_i.c
36 | *_p.c
37 | *.ilk
38 | *.meta
39 | *.obj
40 | *.pch
41 | *.pdb
42 | *.pgc
43 | *.pgd
44 | *.rsp
45 | *.sbr
46 | *.tlb
47 | *.tli
48 | *.tlh
49 | *.tmp
50 | *.tmp_proj
51 | *.log
52 | *.vspscc
53 | *.vssscc
54 | .builds
55 | *.pidb
56 | *.log
57 | *.scc
58 |
59 | # OS generated files #
60 | .DS_Store*
61 | ehthumbs.db
62 | Icon?
63 | Thumbs.db
64 |
65 | # Visual C++ cache files
66 | ipch/
67 | *.aps
68 | *.ncb
69 | *.opensdf
70 | *.sdf
71 | *.cachefile
72 |
73 | # Visual Studio profiler
74 | *.psess
75 | *.vsp
76 | *.vspx
77 |
78 | # Guidance Automation Toolkit
79 | *.gpState
80 |
81 | # ReSharper is a .NET coding add-in
82 | _ReSharper*/
83 | *.[Rr]e[Ss]harper
84 |
85 | # TeamCity is a build add-in
86 | _TeamCity*
87 |
88 | # DotCover is a Code Coverage Tool
89 | *.dotCover
90 |
91 | # NCrunch
92 | *.ncrunch*
93 | .*crunch*.local.xml
94 |
95 | # Installshield output folder
96 | [Ee]xpress/
97 |
98 | # DocProject is a documentation generator add-in
99 | DocProject/buildhelp/
100 | DocProject/Help/*.HxT
101 | DocProject/Help/*.HxC
102 | DocProject/Help/*.hhc
103 | DocProject/Help/*.hhk
104 | DocProject/Help/*.hhp
105 | DocProject/Help/Html2
106 | DocProject/Help/html
107 |
108 | # Click-Once directory
109 | publish/
110 |
111 | # Publish Web Output
112 | *.Publish.xml
113 |
114 | # Windows Azure Build Output
115 | csx
116 | *.build.csdef
117 |
118 | # Windows Store app package directory
119 | AppPackages/
120 |
121 | # Others
122 | sql/
123 | *.Cache
124 | ClientBin/
125 | [Ss]tyle[Cc]op.*
126 | ~$*
127 | *~
128 | *.dbmdl
129 | *.[Pp]ublish.xml
130 | *.pfx
131 | *.publishsettings
132 | modulesbin/
133 | tempbin/
134 |
135 | # EPiServer Site file (VPP)
136 | AppData/
137 |
138 | # RIA/Silverlight projects
139 | Generated_Code/
140 |
141 | # Backup & report files from converting an old project file to a newer
142 | # Visual Studio version. Backup files are not needed, because we have git ;-)
143 | _UpgradeReport_Files/
144 | Backup*/
145 | UpgradeLog*.XML
146 | UpgradeLog*.htm
147 |
148 | # vim
149 | *.txt~
150 | *.swp
151 | *.swo
152 |
153 | # svn
154 | .svn
155 |
156 | # SQL Server files
157 | **/App_Data/*.mdf
158 | **/App_Data/*.ldf
159 | **/App_Data/*.sdf
160 |
161 |
162 | #LightSwitch generated files
163 | GeneratedArtifacts/
164 | _Pvt_Extensions/
165 | ModelManifest.xml
166 |
167 | # =========================
168 | # Windows detritus
169 | # =========================
170 |
171 | # Windows image file caches
172 | Thumbs.db
173 | ehthumbs.db
174 |
175 | # Folder config file
176 | Desktop.ini
177 |
178 | # Recycle Bin used on file shares
179 | $RECYCLE.BIN/
180 |
181 | # Mac desktop service store files
182 | .DS_Store
183 |
184 | # SASS Compiler cache
185 | .sass-cache
186 |
187 | # Visual Studio 2014 CTP
188 | **/*.sln.ide
189 |
190 |
191 | # =========================
192 | # Project Specific Files
193 | # =========================
194 |
195 | **/DocuSign.Maestro/packages.config
196 | sdk/.swagger-codegen-ignore
197 | sdk/build.sh
198 | sdk/.travis.yml
199 | sdk/git_push.sh
200 | sdk/build.bat
201 | **/*.pubxml
202 | *.snk
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/UserIdentityRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// UserIdentityRequest
26 | ///
27 | [DataContract]
28 | public partial class UserIdentityRequest : IEquatable, IValidatableObject
29 | {
30 | public UserIdentityRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Id.
39 | public UserIdentityRequest(Guid? Id = default(Guid?))
40 | {
41 | this.Id = Id;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Id
46 | ///
47 | [DataMember(Name="id", EmitDefaultValue=false)]
48 | public Guid? Id { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class UserIdentityRequest {\n");
57 | sb.Append(" Id: ").Append(Id).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as UserIdentityRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if UserIdentityRequest instances are equal
84 | ///
85 | /// Instance of UserIdentityRequest to be compared
86 | /// Boolean
87 | public bool Equals(UserIdentityRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Id == other.Id ||
96 | this.Id != null &&
97 | this.Id.Equals(other.Id)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Id != null)
113 | hash = hash * 59 + this.Id.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/UpdateResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// UpdateResponse
26 | ///
27 | [DataContract]
28 | public partial class UpdateResponse : IEquatable, IValidatableObject
29 | {
30 | public UpdateResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Status.
39 | public UpdateResponse(string Status = default(string))
40 | {
41 | this.Status = Status;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Status
46 | ///
47 | [DataMember(Name="status", EmitDefaultValue=false)]
48 | public string Status { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class UpdateResponse {\n");
57 | sb.Append(" Status: ").Append(Status).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as UpdateResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if UpdateResponse instances are equal
84 | ///
85 | /// Instance of UpdateResponse to be compared
86 | /// Boolean
87 | public bool Equals(UpdateResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Status == other.Status ||
96 | this.Status != null &&
97 | this.Status.Equals(other.Status)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Status != null)
113 | hash = hash * 59 + this.Status.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationSimpleIdObject.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationSimpleIdObject
26 | ///
27 | [DataContract]
28 | public partial class OrganizationSimpleIdObject : IEquatable, IValidatableObject
29 | {
30 | public OrganizationSimpleIdObject()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Id.
39 | public OrganizationSimpleIdObject(Guid? Id = default(Guid?))
40 | {
41 | this.Id = Id;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Id
46 | ///
47 | [DataMember(Name="id", EmitDefaultValue=false)]
48 | public Guid? Id { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationSimpleIdObject {\n");
57 | sb.Append(" Id: ").Append(Id).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationSimpleIdObject);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationSimpleIdObject instances are equal
84 | ///
85 | /// Instance of OrganizationSimpleIdObject to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationSimpleIdObject other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Id == other.Id ||
96 | this.Id != null &&
97 | this.Id.Equals(other.Id)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Id != null)
113 | hash = hash * 59 + this.Id.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Client/DocuSignRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.Linq;
14 | using System.Net.Http;
15 | using System.Text;
16 | using System.Threading.Tasks;
17 |
18 | namespace DocuSign.Admin.Client
19 | {
20 | public class FileParameter
21 | {
22 | public FileParameter(string name, string fileName, string contentDisposition, byte[] content)
23 | {
24 | Name = name;
25 | FileName = fileName;
26 | ContentDisposition = contentDisposition;
27 | Content = content;
28 | }
29 |
30 | public string Name { get; set; }
31 |
32 | public string FileName { get; set; }
33 |
34 | public string ContentDisposition { get; set; }
35 |
36 | public byte[] Content { get; set; }
37 |
38 | }
39 |
40 | public class DocuSignRequest
41 | {
42 | public HttpMethod Method { get; }
43 |
44 | public string Url { get; }
45 |
46 | public Object BodyContent { get; set; }
47 |
48 | public String ContentType { get; set; }
49 |
50 | public String ContentDisposition { get; set; }
51 |
52 | ///
53 | /// Query parameters
54 | ///
55 | public List> QueryParams { get; private set; }
56 |
57 | ///
58 | /// Post parameters
59 | ///
60 | public List> PostParams { get; private set; }
61 |
62 | ///
63 | /// Header parameters
64 | ///
65 | public List> HeaderParams { get; private set; }
66 |
67 | ///
68 | /// Path parameters
69 | ///
70 | public List> PathParams { get; private set; }
71 |
72 | public List FileParams { get; private set; }
73 |
74 | public DocuSignRequest(HttpMethod method, string path) : this(method, path, null, null, null, null, null, null, null, null) { }
75 |
76 | public DocuSignRequest(HttpMethod method, string path, string contentType) : this(method, path, null, null, null, null, null, null, contentType, null) { }
77 |
78 | public DocuSignRequest(HttpMethod method, string path, List> queryParams = null, Object bodyContent = null,
79 | List> headerParams = null, List> postParams = null, List> pathParams = null,
80 | List fileParams = null, string contentType = null, string contentDisposition = null)
81 | {
82 | Method = method;
83 |
84 | Url = path;
85 | ContentType = contentType;
86 | ContentDisposition = contentDisposition;
87 | BodyContent = bodyContent;
88 | QueryParams = queryParams ?? new List>();
89 | PostParams = postParams ?? new List>();
90 | HeaderParams = headerParams ?? new List>();
91 | PathParams = pathParams ?? new List>();
92 | FileParams = fileParams ?? new List();
93 | }
94 |
95 | public void AddHeaderParameter(string name, string value) => HeaderParams.Add(new KeyValuePair(name, value));
96 |
97 | public void AddPostParameter(string name, string value) => PostParams.Add(new KeyValuePair(name, value));
98 |
99 | public void AddQueryParameter(string name, string value) => QueryParams.Add(new KeyValuePair(name, value));
100 |
101 | public void AddPathParameter(string name, string value) => PathParams.Add(new KeyValuePair(name, value));
102 |
103 | public void AddFileParameter(string name, string fileName, string contentDisposition, byte[] content) => FileParams.Add(new FileParameter(name, fileName, contentDisposition, content));
104 | }
105 | }
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/UpdateUsersRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// UpdateUsersRequest
26 | ///
27 | [DataContract]
28 | public partial class UpdateUsersRequest : IEquatable, IValidatableObject
29 | {
30 | public UpdateUsersRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Users.
39 | public UpdateUsersRequest(List Users = default(List))
40 | {
41 | this.Users = Users;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Users
46 | ///
47 | [DataMember(Name="users", EmitDefaultValue=false)]
48 | public List Users { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class UpdateUsersRequest {\n");
57 | sb.Append(" Users: ").Append(Users).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as UpdateUsersRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if UpdateUsersRequest instances are equal
84 | ///
85 | /// Instance of UpdateUsersRequest to be compared
86 | /// Boolean
87 | public bool Equals(UpdateUsersRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Users == other.Users ||
96 | this.Users != null &&
97 | this.Users.SequenceEqual(other.Users)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Users != null)
113 | hash = hash * 59 + this.Users.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrgExportSelectedDomain.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrgExportSelectedDomain
26 | ///
27 | [DataContract]
28 | public partial class OrgExportSelectedDomain : IEquatable, IValidatableObject
29 | {
30 | public OrgExportSelectedDomain()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Domain.
39 | public OrgExportSelectedDomain(string Domain = default(string))
40 | {
41 | this.Domain = Domain;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Domain
46 | ///
47 | [DataMember(Name="domain", EmitDefaultValue=false)]
48 | public string Domain { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrgExportSelectedDomain {\n");
57 | sb.Append(" Domain: ").Append(Domain).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrgExportSelectedDomain);
80 | }
81 |
82 | ///
83 | /// Returns true if OrgExportSelectedDomain instances are equal
84 | ///
85 | /// Instance of OrgExportSelectedDomain to be compared
86 | /// Boolean
87 | public bool Equals(OrgExportSelectedDomain other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Domain == other.Domain ||
96 | this.Domain != null &&
97 | this.Domain.Equals(other.Domain)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Domain != null)
113 | hash = hash * 59 + this.Domain.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/AssetGroupAccountClones.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// AssetGroupAccountClones
26 | ///
27 | [DataContract]
28 | public partial class AssetGroupAccountClones : IEquatable, IValidatableObject
29 | {
30 |
31 | ///
32 | /// Initializes a new instance of the class.
33 | ///
34 | [JsonConstructorAttribute]
35 | public AssetGroupAccountClones()
36 | {
37 | }
38 |
39 | ///
40 | /// The list of asset group accounts.
41 | ///
42 | /// The list of asset group accounts.
43 | [DataMember(Name="assetGroupWorks", EmitDefaultValue=false)]
44 | public List AssetGroupWorks { get; private set; }
45 | ///
46 | /// Returns the string presentation of the object
47 | ///
48 | /// String presentation of the object
49 | public override string ToString()
50 | {
51 | var sb = new StringBuilder();
52 | sb.Append("class AssetGroupAccountClones {\n");
53 | sb.Append(" AssetGroupWorks: ").Append(AssetGroupWorks).Append("\n");
54 | sb.Append("}\n");
55 | return sb.ToString();
56 | }
57 |
58 | ///
59 | /// Returns the JSON string presentation of the object
60 | ///
61 | /// JSON string presentation of the object
62 | public string ToJson()
63 | {
64 | return JsonConvert.SerializeObject(this, Formatting.Indented);
65 | }
66 |
67 | ///
68 | /// Returns true if objects are equal
69 | ///
70 | /// Object to be compared
71 | /// Boolean
72 | public override bool Equals(object obj)
73 | {
74 | // credit: http://stackoverflow.com/a/10454552/677735
75 | return this.Equals(obj as AssetGroupAccountClones);
76 | }
77 |
78 | ///
79 | /// Returns true if AssetGroupAccountClones instances are equal
80 | ///
81 | /// Instance of AssetGroupAccountClones to be compared
82 | /// Boolean
83 | public bool Equals(AssetGroupAccountClones other)
84 | {
85 | // credit: http://stackoverflow.com/a/10454552/677735
86 | if (other == null)
87 | return false;
88 |
89 | return
90 | (
91 | this.AssetGroupWorks == other.AssetGroupWorks ||
92 | this.AssetGroupWorks != null &&
93 | this.AssetGroupWorks.SequenceEqual(other.AssetGroupWorks)
94 | );
95 | }
96 |
97 | ///
98 | /// Gets the hash code
99 | ///
100 | /// Hash code
101 | public override int GetHashCode()
102 | {
103 | // credit: http://stackoverflow.com/a/263416/677735
104 | unchecked // Overflow is fine, just wrap
105 | {
106 | int hash = 41;
107 | // Suitable nullity checks etc, of course :)
108 | if (this.AssetGroupWorks != null)
109 | hash = hash * 59 + this.AssetGroupWorks.GetHashCode();
110 | return hash;
111 | }
112 | }
113 |
114 | public IEnumerable Validate(ValidationContext validationContext)
115 | {
116 | yield break;
117 | }
118 | }
119 | }
120 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationExportDomain.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationExportDomain
26 | ///
27 | [DataContract]
28 | public partial class OrganizationExportDomain : IEquatable, IValidatableObject
29 | {
30 | public OrganizationExportDomain()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Domain.
39 | public OrganizationExportDomain(string Domain = default(string))
40 | {
41 | this.Domain = Domain;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Domain
46 | ///
47 | [DataMember(Name="domain", EmitDefaultValue=false)]
48 | public string Domain { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationExportDomain {\n");
57 | sb.Append(" Domain: ").Append(Domain).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationExportDomain);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationExportDomain instances are equal
84 | ///
85 | /// Instance of OrganizationExportDomain to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationExportDomain other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Domain == other.Domain ||
96 | this.Domain != null &&
97 | this.Domain.Equals(other.Domain)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Domain != null)
113 | hash = hash * 59 + this.Domain.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/UsersDrilldownResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// UsersDrilldownResponse
26 | ///
27 | [DataContract]
28 | public partial class UsersDrilldownResponse : IEquatable, IValidatableObject
29 | {
30 | public UsersDrilldownResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Users.
39 | public UsersDrilldownResponse(List Users = default(List))
40 | {
41 | this.Users = Users;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Users
46 | ///
47 | [DataMember(Name="users", EmitDefaultValue=false)]
48 | public List Users { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class UsersDrilldownResponse {\n");
57 | sb.Append(" Users: ").Append(Users).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as UsersDrilldownResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if UsersDrilldownResponse instances are equal
84 | ///
85 | /// Instance of UsersDrilldownResponse to be compared
86 | /// Boolean
87 | public bool Equals(UsersDrilldownResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Users == other.Users ||
96 | this.Users != null &&
97 | this.Users.SequenceEqual(other.Users)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Users != null)
113 | hash = hash * 59 + this.Users.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/UpdateUsersEmailRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// UpdateUsersEmailRequest
26 | ///
27 | [DataContract]
28 | public partial class UpdateUsersEmailRequest : IEquatable, IValidatableObject
29 | {
30 | public UpdateUsersEmailRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Users.
39 | public UpdateUsersEmailRequest(List Users = default(List))
40 | {
41 | this.Users = Users;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Users
46 | ///
47 | [DataMember(Name="users", EmitDefaultValue=false)]
48 | public List Users { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class UpdateUsersEmailRequest {\n");
57 | sb.Append(" Users: ").Append(Users).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as UpdateUsersEmailRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if UpdateUsersEmailRequest instances are equal
84 | ///
85 | /// Instance of UpdateUsersEmailRequest to be compared
86 | /// Boolean
87 | public bool Equals(UpdateUsersEmailRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Users == other.Users ||
96 | this.Users != null &&
97 | this.Users.SequenceEqual(other.Users)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Users != null)
113 | hash = hash * 59 + this.Users.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrgExportSelectedAccount.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrgExportSelectedAccount
26 | ///
27 | [DataContract]
28 | public partial class OrgExportSelectedAccount : IEquatable, IValidatableObject
29 | {
30 | public OrgExportSelectedAccount()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// AccountId.
39 | public OrgExportSelectedAccount(Guid? AccountId = default(Guid?))
40 | {
41 | this.AccountId = AccountId;
42 | }
43 |
44 | ///
45 | /// Gets or Sets AccountId
46 | ///
47 | [DataMember(Name="account_id", EmitDefaultValue=false)]
48 | public Guid? AccountId { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrgExportSelectedAccount {\n");
57 | sb.Append(" AccountId: ").Append(AccountId).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrgExportSelectedAccount);
80 | }
81 |
82 | ///
83 | /// Returns true if OrgExportSelectedAccount instances are equal
84 | ///
85 | /// Instance of OrgExportSelectedAccount to be compared
86 | /// Boolean
87 | public bool Equals(OrgExportSelectedAccount other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.AccountId == other.AccountId ||
96 | this.AccountId != null &&
97 | this.AccountId.Equals(other.AccountId)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.AccountId != null)
113 | hash = hash * 59 + this.AccountId.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationExportAccount.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationExportAccount
26 | ///
27 | [DataContract]
28 | public partial class OrganizationExportAccount : IEquatable, IValidatableObject
29 | {
30 | public OrganizationExportAccount()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// AccountId.
39 | public OrganizationExportAccount(Guid? AccountId = default(Guid?))
40 | {
41 | this.AccountId = AccountId;
42 | }
43 |
44 | ///
45 | /// Gets or Sets AccountId
46 | ///
47 | [DataMember(Name="account_id", EmitDefaultValue=false)]
48 | public Guid? AccountId { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationExportAccount {\n");
57 | sb.Append(" AccountId: ").Append(AccountId).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationExportAccount);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationExportAccount instances are equal
84 | ///
85 | /// Instance of OrganizationExportAccount to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationExportAccount other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.AccountId == other.AccountId ||
96 | this.AccountId != null &&
97 | this.AccountId.Equals(other.AccountId)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.AccountId != null)
113 | hash = hash * 59 + this.AccountId.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/AssetGroupAccountsResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// AssetGroupAccountsResponse
26 | ///
27 | [DataContract]
28 | public partial class AssetGroupAccountsResponse : IEquatable, IValidatableObject
29 | {
30 |
31 | ///
32 | /// Initializes a new instance of the class.
33 | ///
34 | [JsonConstructorAttribute]
35 | public AssetGroupAccountsResponse()
36 | {
37 | }
38 |
39 | ///
40 | /// The list of asset group accounts.
41 | ///
42 | /// The list of asset group accounts.
43 | [DataMember(Name="assetGroupAccounts", EmitDefaultValue=false)]
44 | public List AssetGroupAccounts { get; private set; }
45 | ///
46 | /// Returns the string presentation of the object
47 | ///
48 | /// String presentation of the object
49 | public override string ToString()
50 | {
51 | var sb = new StringBuilder();
52 | sb.Append("class AssetGroupAccountsResponse {\n");
53 | sb.Append(" AssetGroupAccounts: ").Append(AssetGroupAccounts).Append("\n");
54 | sb.Append("}\n");
55 | return sb.ToString();
56 | }
57 |
58 | ///
59 | /// Returns the JSON string presentation of the object
60 | ///
61 | /// JSON string presentation of the object
62 | public string ToJson()
63 | {
64 | return JsonConvert.SerializeObject(this, Formatting.Indented);
65 | }
66 |
67 | ///
68 | /// Returns true if objects are equal
69 | ///
70 | /// Object to be compared
71 | /// Boolean
72 | public override bool Equals(object obj)
73 | {
74 | // credit: http://stackoverflow.com/a/10454552/677735
75 | return this.Equals(obj as AssetGroupAccountsResponse);
76 | }
77 |
78 | ///
79 | /// Returns true if AssetGroupAccountsResponse instances are equal
80 | ///
81 | /// Instance of AssetGroupAccountsResponse to be compared
82 | /// Boolean
83 | public bool Equals(AssetGroupAccountsResponse other)
84 | {
85 | // credit: http://stackoverflow.com/a/10454552/677735
86 | if (other == null)
87 | return false;
88 |
89 | return
90 | (
91 | this.AssetGroupAccounts == other.AssetGroupAccounts ||
92 | this.AssetGroupAccounts != null &&
93 | this.AssetGroupAccounts.SequenceEqual(other.AssetGroupAccounts)
94 | );
95 | }
96 |
97 | ///
98 | /// Gets the hash code
99 | ///
100 | /// Hash code
101 | public override int GetHashCode()
102 | {
103 | // credit: http://stackoverflow.com/a/263416/677735
104 | unchecked // Overflow is fine, just wrap
105 | {
106 | int hash = 41;
107 | // Suitable nullity checks etc, of course :)
108 | if (this.AssetGroupAccounts != null)
109 | hash = hash * 59 + this.AssetGroupAccounts.GetHashCode();
110 | return hash;
111 | }
112 | }
113 |
114 | public IEnumerable Validate(ValidationContext validationContext)
115 | {
116 | yield break;
117 | }
118 | }
119 | }
120 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrgReportListResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrgReportListResponse
26 | ///
27 | [DataContract]
28 | public partial class OrgReportListResponse : IEquatable, IValidatableObject
29 | {
30 | public OrgReportListResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Reports.
39 | public OrgReportListResponse(List Reports = default(List))
40 | {
41 | this.Reports = Reports;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Reports
46 | ///
47 | [DataMember(Name="reports", EmitDefaultValue=false)]
48 | public List Reports { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrgReportListResponse {\n");
57 | sb.Append(" Reports: ").Append(Reports).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrgReportListResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if OrgReportListResponse instances are equal
84 | ///
85 | /// Instance of OrgReportListResponse to be compared
86 | /// Boolean
87 | public bool Equals(OrgReportListResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Reports == other.Reports ||
96 | this.Reports != null &&
97 | this.Reports.SequenceEqual(other.Reports)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Reports != null)
113 | hash = hash * 59 + this.Reports.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/SubAccountCreateWorkerResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// SubAccountCreateWorkerResponse
26 | ///
27 | [DataContract]
28 | public partial class SubAccountCreateWorkerResponse : IEquatable, IValidatableObject
29 | {
30 |
31 | ///
32 | /// Initializes a new instance of the class.
33 | ///
34 | [JsonConstructorAttribute]
35 | public SubAccountCreateWorkerResponse()
36 | {
37 | }
38 |
39 | ///
40 | /// The list of create acccount processes
41 | ///
42 | /// The list of create acccount processes
43 | [DataMember(Name="assetGroupWorks", EmitDefaultValue=false)]
44 | public List AssetGroupWorks { get; private set; }
45 | ///
46 | /// Returns the string presentation of the object
47 | ///
48 | /// String presentation of the object
49 | public override string ToString()
50 | {
51 | var sb = new StringBuilder();
52 | sb.Append("class SubAccountCreateWorkerResponse {\n");
53 | sb.Append(" AssetGroupWorks: ").Append(AssetGroupWorks).Append("\n");
54 | sb.Append("}\n");
55 | return sb.ToString();
56 | }
57 |
58 | ///
59 | /// Returns the JSON string presentation of the object
60 | ///
61 | /// JSON string presentation of the object
62 | public string ToJson()
63 | {
64 | return JsonConvert.SerializeObject(this, Formatting.Indented);
65 | }
66 |
67 | ///
68 | /// Returns true if objects are equal
69 | ///
70 | /// Object to be compared
71 | /// Boolean
72 | public override bool Equals(object obj)
73 | {
74 | // credit: http://stackoverflow.com/a/10454552/677735
75 | return this.Equals(obj as SubAccountCreateWorkerResponse);
76 | }
77 |
78 | ///
79 | /// Returns true if SubAccountCreateWorkerResponse instances are equal
80 | ///
81 | /// Instance of SubAccountCreateWorkerResponse to be compared
82 | /// Boolean
83 | public bool Equals(SubAccountCreateWorkerResponse other)
84 | {
85 | // credit: http://stackoverflow.com/a/10454552/677735
86 | if (other == null)
87 | return false;
88 |
89 | return
90 | (
91 | this.AssetGroupWorks == other.AssetGroupWorks ||
92 | this.AssetGroupWorks != null &&
93 | this.AssetGroupWorks.SequenceEqual(other.AssetGroupWorks)
94 | );
95 | }
96 |
97 | ///
98 | /// Gets the hash code
99 | ///
100 | /// Hash code
101 | public override int GetHashCode()
102 | {
103 | // credit: http://stackoverflow.com/a/263416/677735
104 | unchecked // Overflow is fine, just wrap
105 | {
106 | int hash = 41;
107 | // Suitable nullity checks etc, of course :)
108 | if (this.AssetGroupWorks != null)
109 | hash = hash * 59 + this.AssetGroupWorks.GetHashCode();
110 | return hash;
111 | }
112 | }
113 |
114 | public IEnumerable Validate(ValidationContext validationContext)
115 | {
116 | yield break;
117 | }
118 | }
119 | }
120 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DomainsResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DomainsResponse
26 | ///
27 | [DataContract]
28 | public partial class DomainsResponse : IEquatable, IValidatableObject
29 | {
30 | public DomainsResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// ReservedDomains.
39 | public DomainsResponse(List ReservedDomains = default(List))
40 | {
41 | this.ReservedDomains = ReservedDomains;
42 | }
43 |
44 | ///
45 | /// Gets or Sets ReservedDomains
46 | ///
47 | [DataMember(Name="reserved_domains", EmitDefaultValue=false)]
48 | public List ReservedDomains { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class DomainsResponse {\n");
57 | sb.Append(" ReservedDomains: ").Append(ReservedDomains).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as DomainsResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if DomainsResponse instances are equal
84 | ///
85 | /// Instance of DomainsResponse to be compared
86 | /// Boolean
87 | public bool Equals(DomainsResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.ReservedDomains == other.ReservedDomains ||
96 | this.ReservedDomains != null &&
97 | this.ReservedDomains.SequenceEqual(other.ReservedDomains)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.ReservedDomains != null)
113 | hash = hash * 59 + this.ReservedDomains.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/PermissionsResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// PermissionsResponse
26 | ///
27 | [DataContract]
28 | public partial class PermissionsResponse : IEquatable, IValidatableObject
29 | {
30 | public PermissionsResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Permissions.
39 | public PermissionsResponse(List Permissions = default(List))
40 | {
41 | this.Permissions = Permissions;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Permissions
46 | ///
47 | [DataMember(Name="permissions", EmitDefaultValue=false)]
48 | public List Permissions { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class PermissionsResponse {\n");
57 | sb.Append(" Permissions: ").Append(Permissions).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as PermissionsResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if PermissionsResponse instances are equal
84 | ///
85 | /// Instance of PermissionsResponse to be compared
86 | /// Boolean
87 | public bool Equals(PermissionsResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Permissions == other.Permissions ||
96 | this.Permissions != null &&
97 | this.Permissions.SequenceEqual(other.Permissions)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Permissions != null)
113 | hash = hash * 59 + this.Permissions.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/MembershipDataRedactionRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// MembershipDataRedactionRequest
26 | ///
27 | [DataContract]
28 | public partial class MembershipDataRedactionRequest : IEquatable, IValidatableObject
29 | {
30 | public MembershipDataRedactionRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// AccountId.
39 | public MembershipDataRedactionRequest(Guid? AccountId = default(Guid?))
40 | {
41 | this.AccountId = AccountId;
42 | }
43 |
44 | ///
45 | /// Gets or Sets AccountId
46 | ///
47 | [DataMember(Name="account_id", EmitDefaultValue=false)]
48 | public Guid? AccountId { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class MembershipDataRedactionRequest {\n");
57 | sb.Append(" AccountId: ").Append(AccountId).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as MembershipDataRedactionRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if MembershipDataRedactionRequest instances are equal
84 | ///
85 | /// Instance of MembershipDataRedactionRequest to be compared
86 | /// Boolean
87 | public bool Equals(MembershipDataRedactionRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.AccountId == other.AccountId ||
96 | this.AccountId != null &&
97 | this.AccountId.Equals(other.AccountId)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.AccountId != null)
113 | hash = hash * 59 + this.AccountId.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationExportsResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationExportsResponse
26 | ///
27 | [DataContract]
28 | public partial class OrganizationExportsResponse : IEquatable, IValidatableObject
29 | {
30 | public OrganizationExportsResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Exports.
39 | public OrganizationExportsResponse(List Exports = default(List))
40 | {
41 | this.Exports = Exports;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Exports
46 | ///
47 | [DataMember(Name="exports", EmitDefaultValue=false)]
48 | public List Exports { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationExportsResponse {\n");
57 | sb.Append(" Exports: ").Append(Exports).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationExportsResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationExportsResponse instances are equal
84 | ///
85 | /// Instance of OrganizationExportsResponse to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationExportsResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Exports == other.Exports ||
96 | this.Exports != null &&
97 | this.Exports.SequenceEqual(other.Exports)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Exports != null)
113 | hash = hash * 59 + this.Exports.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationImportsResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationImportsResponse
26 | ///
27 | [DataContract]
28 | public partial class OrganizationImportsResponse : IEquatable, IValidatableObject
29 | {
30 | public OrganizationImportsResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Imports.
39 | public OrganizationImportsResponse(List Imports = default(List))
40 | {
41 | this.Imports = Imports;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Imports
46 | ///
47 | [DataMember(Name="imports", EmitDefaultValue=false)]
48 | public List Imports { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationImportsResponse {\n");
57 | sb.Append(" Imports: ").Append(Imports).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationImportsResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationImportsResponse instances are equal
84 | ///
85 | /// Instance of OrganizationImportsResponse to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationImportsResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Imports == other.Imports ||
96 | this.Imports != null &&
97 | this.Imports.SequenceEqual(other.Imports)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Imports != null)
113 | hash = hash * 59 + this.Imports.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationsResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationsResponse
26 | ///
27 | [DataContract]
28 | public partial class OrganizationsResponse : IEquatable, IValidatableObject
29 | {
30 | public OrganizationsResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Organizations.
39 | public OrganizationsResponse(List Organizations = default(List))
40 | {
41 | this.Organizations = Organizations;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Organizations
46 | ///
47 | [DataMember(Name="organizations", EmitDefaultValue=false)]
48 | public List Organizations { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationsResponse {\n");
57 | sb.Append(" Organizations: ").Append(Organizations).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationsResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationsResponse instances are equal
84 | ///
85 | /// Instance of OrganizationsResponse to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationsResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Organizations == other.Organizations ||
96 | this.Organizations != null &&
97 | this.Organizations.SequenceEqual(other.Organizations)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Organizations != null)
113 | hash = hash * 59 + this.Organizations.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationAccountsRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationAccountsRequest
26 | ///
27 | [DataContract]
28 | public partial class OrganizationAccountsRequest : IEquatable, IValidatableObject
29 | {
30 | public OrganizationAccountsRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Accounts.
39 | public OrganizationAccountsRequest(List Accounts = default(List))
40 | {
41 | this.Accounts = Accounts;
42 | }
43 |
44 | ///
45 | /// Gets or Sets Accounts
46 | ///
47 | [DataMember(Name="accounts", EmitDefaultValue=false)]
48 | public List Accounts { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrganizationAccountsRequest {\n");
57 | sb.Append(" Accounts: ").Append(Accounts).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrganizationAccountsRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if OrganizationAccountsRequest instances are equal
84 | ///
85 | /// Instance of OrganizationAccountsRequest to be compared
86 | /// Boolean
87 | public bool Equals(OrganizationAccountsRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.Accounts == other.Accounts ||
96 | this.Accounts != null &&
97 | this.Accounts.SequenceEqual(other.Accounts)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.Accounts != null)
113 | hash = hash * 59 + this.Accounts.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/ProductPermissionProfilesResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// ProductPermissionProfilesResponse
26 | ///
27 | [DataContract]
28 | public partial class ProductPermissionProfilesResponse : IEquatable, IValidatableObject
29 | {
30 |
31 | ///
32 | /// Initializes a new instance of the class.
33 | ///
34 | [JsonConstructorAttribute]
35 | public ProductPermissionProfilesResponse()
36 | {
37 | }
38 |
39 | ///
40 | /// Gets or Sets ProductPermissionProfiles
41 | ///
42 | [DataMember(Name="product_permission_profiles", EmitDefaultValue=false)]
43 | public List ProductPermissionProfiles { get; private set; }
44 | ///
45 | /// Returns the string presentation of the object
46 | ///
47 | /// String presentation of the object
48 | public override string ToString()
49 | {
50 | var sb = new StringBuilder();
51 | sb.Append("class ProductPermissionProfilesResponse {\n");
52 | sb.Append(" ProductPermissionProfiles: ").Append(ProductPermissionProfiles).Append("\n");
53 | sb.Append("}\n");
54 | return sb.ToString();
55 | }
56 |
57 | ///
58 | /// Returns the JSON string presentation of the object
59 | ///
60 | /// JSON string presentation of the object
61 | public string ToJson()
62 | {
63 | return JsonConvert.SerializeObject(this, Formatting.Indented);
64 | }
65 |
66 | ///
67 | /// Returns true if objects are equal
68 | ///
69 | /// Object to be compared
70 | /// Boolean
71 | public override bool Equals(object obj)
72 | {
73 | // credit: http://stackoverflow.com/a/10454552/677735
74 | return this.Equals(obj as ProductPermissionProfilesResponse);
75 | }
76 |
77 | ///
78 | /// Returns true if ProductPermissionProfilesResponse instances are equal
79 | ///
80 | /// Instance of ProductPermissionProfilesResponse to be compared
81 | /// Boolean
82 | public bool Equals(ProductPermissionProfilesResponse other)
83 | {
84 | // credit: http://stackoverflow.com/a/10454552/677735
85 | if (other == null)
86 | return false;
87 |
88 | return
89 | (
90 | this.ProductPermissionProfiles == other.ProductPermissionProfiles ||
91 | this.ProductPermissionProfiles != null &&
92 | this.ProductPermissionProfiles.SequenceEqual(other.ProductPermissionProfiles)
93 | );
94 | }
95 |
96 | ///
97 | /// Gets the hash code
98 | ///
99 | /// Hash code
100 | public override int GetHashCode()
101 | {
102 | // credit: http://stackoverflow.com/a/263416/677735
103 | unchecked // Overflow is fine, just wrap
104 | {
105 | int hash = 41;
106 | // Suitable nullity checks etc, of course :)
107 | if (this.ProductPermissionProfiles != null)
108 | hash = hash * 59 + this.ProductPermissionProfiles.GetHashCode();
109 | return hash;
110 | }
111 | }
112 |
113 | public IEnumerable Validate(ValidationContext validationContext)
114 | {
115 | yield break;
116 | }
117 | }
118 | }
119 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/IndividualMembershipDataRedactionRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// IndividualMembershipDataRedactionRequest
26 | ///
27 | [DataContract]
28 | public partial class IndividualMembershipDataRedactionRequest : IEquatable, IValidatableObject
29 | {
30 | public IndividualMembershipDataRedactionRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// UserId.
39 | public IndividualMembershipDataRedactionRequest(Guid? UserId = default(Guid?))
40 | {
41 | this.UserId = UserId;
42 | }
43 |
44 | ///
45 | /// Gets or Sets UserId
46 | ///
47 | [DataMember(Name="user_id", EmitDefaultValue=false)]
48 | public Guid? UserId { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class IndividualMembershipDataRedactionRequest {\n");
57 | sb.Append(" UserId: ").Append(UserId).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as IndividualMembershipDataRedactionRequest);
80 | }
81 |
82 | ///
83 | /// Returns true if IndividualMembershipDataRedactionRequest instances are equal
84 | ///
85 | /// Instance of IndividualMembershipDataRedactionRequest to be compared
86 | /// Boolean
87 | public bool Equals(IndividualMembershipDataRedactionRequest other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.UserId == other.UserId ||
96 | this.UserId != null &&
97 | this.UserId.Equals(other.UserId)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.UserId != null)
113 | hash = hash * 59 + this.UserId.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrgReportCreateResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrgReportCreateResponse
26 | ///
27 | [DataContract]
28 | public partial class OrgReportCreateResponse : IEquatable, IValidatableObject
29 | {
30 | public OrgReportCreateResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// ReportCorrelationId.
39 | public OrgReportCreateResponse(Guid? ReportCorrelationId = default(Guid?))
40 | {
41 | this.ReportCorrelationId = ReportCorrelationId;
42 | }
43 |
44 | ///
45 | /// Gets or Sets ReportCorrelationId
46 | ///
47 | [DataMember(Name="report_correlation_id", EmitDefaultValue=false)]
48 | public Guid? ReportCorrelationId { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class OrgReportCreateResponse {\n");
57 | sb.Append(" ReportCorrelationId: ").Append(ReportCorrelationId).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as OrgReportCreateResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if OrgReportCreateResponse instances are equal
84 | ///
85 | /// Instance of OrgReportCreateResponse to be compared
86 | /// Boolean
87 | public bool Equals(OrgReportCreateResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.ReportCorrelationId == other.ReportCorrelationId ||
96 | this.ReportCorrelationId != null &&
97 | this.ReportCorrelationId.Equals(other.ReportCorrelationId)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.ReportCorrelationId != null)
113 | hash = hash * 59 + this.ReportCorrelationId.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DeleteMembershipRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DeleteMembershipRequest
26 | ///
27 | [DataContract]
28 | public partial class DeleteMembershipRequest : IEquatable, IValidatableObject
29 | {
30 | public DeleteMembershipRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Id (required).
39 | public DeleteMembershipRequest(Guid? Id = default(Guid?))
40 | {
41 | // to ensure "Id" is required (not null)
42 | if (Id == null)
43 | {
44 | throw new InvalidDataException("Id is a required property for DeleteMembershipRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.Id = Id;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets Id
54 | ///
55 | [DataMember(Name="id", EmitDefaultValue=false)]
56 | public Guid? Id { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class DeleteMembershipRequest {\n");
65 | sb.Append(" Id: ").Append(Id).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as DeleteMembershipRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if DeleteMembershipRequest instances are equal
92 | ///
93 | /// Instance of DeleteMembershipRequest to be compared
94 | /// Boolean
95 | public bool Equals(DeleteMembershipRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Id == other.Id ||
104 | this.Id != null &&
105 | this.Id.Equals(other.Id)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.Id != null)
121 | hash = hash * 59 + this.Id.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DSGroupRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DSGroupRequest
26 | ///
27 | [DataContract]
28 | public partial class DSGroupRequest : IEquatable, IValidatableObject
29 | {
30 | public DSGroupRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// DsGroupId (required).
39 | public DSGroupRequest(Guid? DsGroupId = default(Guid?))
40 | {
41 | // to ensure "DsGroupId" is required (not null)
42 | if (DsGroupId == null)
43 | {
44 | throw new InvalidDataException("DsGroupId is a required property for DSGroupRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.DsGroupId = DsGroupId;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets DsGroupId
54 | ///
55 | [DataMember(Name="ds_group_id", EmitDefaultValue=false)]
56 | public Guid? DsGroupId { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class DSGroupRequest {\n");
65 | sb.Append(" DsGroupId: ").Append(DsGroupId).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as DSGroupRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if DSGroupRequest instances are equal
92 | ///
93 | /// Instance of DSGroupRequest to be compared
94 | /// Boolean
95 | public bool Equals(DSGroupRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.DsGroupId == other.DsGroupId ||
104 | this.DsGroupId != null &&
105 | this.DsGroupId.Equals(other.DsGroupId)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.DsGroupId != null)
121 | hash = hash * 59 + this.DsGroupId.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/IdentityProvidersResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// IdentityProvidersResponse
26 | ///
27 | [DataContract]
28 | public partial class IdentityProvidersResponse : IEquatable, IValidatableObject
29 | {
30 | public IdentityProvidersResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// IdentityProviders.
39 | public IdentityProvidersResponse(List IdentityProviders = default(List))
40 | {
41 | this.IdentityProviders = IdentityProviders;
42 | }
43 |
44 | ///
45 | /// Gets or Sets IdentityProviders
46 | ///
47 | [DataMember(Name="identity_providers", EmitDefaultValue=false)]
48 | public List IdentityProviders { get; set; }
49 | ///
50 | /// Returns the string presentation of the object
51 | ///
52 | /// String presentation of the object
53 | public override string ToString()
54 | {
55 | var sb = new StringBuilder();
56 | sb.Append("class IdentityProvidersResponse {\n");
57 | sb.Append(" IdentityProviders: ").Append(IdentityProviders).Append("\n");
58 | sb.Append("}\n");
59 | return sb.ToString();
60 | }
61 |
62 | ///
63 | /// Returns the JSON string presentation of the object
64 | ///
65 | /// JSON string presentation of the object
66 | public string ToJson()
67 | {
68 | return JsonConvert.SerializeObject(this, Formatting.Indented);
69 | }
70 |
71 | ///
72 | /// Returns true if objects are equal
73 | ///
74 | /// Object to be compared
75 | /// Boolean
76 | public override bool Equals(object obj)
77 | {
78 | // credit: http://stackoverflow.com/a/10454552/677735
79 | return this.Equals(obj as IdentityProvidersResponse);
80 | }
81 |
82 | ///
83 | /// Returns true if IdentityProvidersResponse instances are equal
84 | ///
85 | /// Instance of IdentityProvidersResponse to be compared
86 | /// Boolean
87 | public bool Equals(IdentityProvidersResponse other)
88 | {
89 | // credit: http://stackoverflow.com/a/10454552/677735
90 | if (other == null)
91 | return false;
92 |
93 | return
94 | (
95 | this.IdentityProviders == other.IdentityProviders ||
96 | this.IdentityProviders != null &&
97 | this.IdentityProviders.SequenceEqual(other.IdentityProviders)
98 | );
99 | }
100 |
101 | ///
102 | /// Gets the hash code
103 | ///
104 | /// Hash code
105 | public override int GetHashCode()
106 | {
107 | // credit: http://stackoverflow.com/a/263416/677735
108 | unchecked // Overflow is fine, just wrap
109 | {
110 | int hash = 41;
111 | // Suitable nullity checks etc, of course :)
112 | if (this.IdentityProviders != null)
113 | hash = hash * 59 + this.IdentityProviders.GetHashCode();
114 | return hash;
115 | }
116 | }
117 |
118 | public IEnumerable Validate(ValidationContext validationContext)
119 | {
120 | yield break;
121 | }
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DSGroupUsersAddRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DSGroupUsersAddRequest
26 | ///
27 | [DataContract]
28 | public partial class DSGroupUsersAddRequest : IEquatable, IValidatableObject
29 | {
30 | public DSGroupUsersAddRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// UserIds (required).
39 | public DSGroupUsersAddRequest(List UserIds = default(List))
40 | {
41 | // to ensure "UserIds" is required (not null)
42 | if (UserIds == null)
43 | {
44 | throw new InvalidDataException("UserIds is a required property for DSGroupUsersAddRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.UserIds = UserIds;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets UserIds
54 | ///
55 | [DataMember(Name="user_ids", EmitDefaultValue=false)]
56 | public List UserIds { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class DSGroupUsersAddRequest {\n");
65 | sb.Append(" UserIds: ").Append(UserIds).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as DSGroupUsersAddRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if DSGroupUsersAddRequest instances are equal
92 | ///
93 | /// Instance of DSGroupUsersAddRequest to be compared
94 | /// Boolean
95 | public bool Equals(DSGroupUsersAddRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.UserIds == other.UserIds ||
104 | this.UserIds != null &&
105 | this.UserIds.SequenceEqual(other.UserIds)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.UserIds != null)
121 | hash = hash * 59 + this.UserIds.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/ForceActivateMembershipRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// ForceActivateMembershipRequest
26 | ///
27 | [DataContract]
28 | public partial class ForceActivateMembershipRequest : IEquatable, IValidatableObject
29 | {
30 | public ForceActivateMembershipRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// SiteId (required).
39 | public ForceActivateMembershipRequest(int? SiteId = default(int?))
40 | {
41 | // to ensure "SiteId" is required (not null)
42 | if (SiteId == null)
43 | {
44 | throw new InvalidDataException("SiteId is a required property for ForceActivateMembershipRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.SiteId = SiteId;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets SiteId
54 | ///
55 | [DataMember(Name="site_id", EmitDefaultValue=false)]
56 | public int? SiteId { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class ForceActivateMembershipRequest {\n");
65 | sb.Append(" SiteId: ").Append(SiteId).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as ForceActivateMembershipRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if ForceActivateMembershipRequest instances are equal
92 | ///
93 | /// Instance of ForceActivateMembershipRequest to be compared
94 | /// Boolean
95 | public bool Equals(ForceActivateMembershipRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.SiteId == other.SiteId ||
104 | this.SiteId != null &&
105 | this.SiteId.Equals(other.SiteId)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.SiteId != null)
121 | hash = hash * 59 + this.SiteId.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrganizationAccountRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrganizationAccountRequest
26 | ///
27 | [DataContract]
28 | public partial class OrganizationAccountRequest : IEquatable, IValidatableObject
29 | {
30 | public OrganizationAccountRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// AccountId (required).
39 | public OrganizationAccountRequest(Guid? AccountId = default(Guid?))
40 | {
41 | // to ensure "AccountId" is required (not null)
42 | if (AccountId == null)
43 | {
44 | throw new InvalidDataException("AccountId is a required property for OrganizationAccountRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.AccountId = AccountId;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets AccountId
54 | ///
55 | [DataMember(Name="account_id", EmitDefaultValue=false)]
56 | public Guid? AccountId { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class OrganizationAccountRequest {\n");
65 | sb.Append(" AccountId: ").Append(AccountId).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as OrganizationAccountRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if OrganizationAccountRequest instances are equal
92 | ///
93 | /// Instance of OrganizationAccountRequest to be compared
94 | /// Boolean
95 | public bool Equals(OrganizationAccountRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.AccountId == other.AccountId ||
104 | this.AccountId != null &&
105 | this.AccountId.Equals(other.AccountId)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.AccountId != null)
121 | hash = hash * 59 + this.AccountId.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DeleteMembershipsRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DeleteMembershipsRequest
26 | ///
27 | [DataContract]
28 | public partial class DeleteMembershipsRequest : IEquatable, IValidatableObject
29 | {
30 | public DeleteMembershipsRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Accounts (required).
39 | public DeleteMembershipsRequest(List Accounts = default(List))
40 | {
41 | // to ensure "Accounts" is required (not null)
42 | if (Accounts == null)
43 | {
44 | throw new InvalidDataException("Accounts is a required property for DeleteMembershipsRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.Accounts = Accounts;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets Accounts
54 | ///
55 | [DataMember(Name="accounts", EmitDefaultValue=false)]
56 | public List Accounts { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class DeleteMembershipsRequest {\n");
65 | sb.Append(" Accounts: ").Append(Accounts).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as DeleteMembershipsRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if DeleteMembershipsRequest instances are equal
92 | ///
93 | /// Instance of DeleteMembershipsRequest to be compared
94 | /// Boolean
95 | public bool Equals(DeleteMembershipsRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Accounts == other.Accounts ||
104 | this.Accounts != null &&
105 | this.Accounts.SequenceEqual(other.Accounts)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.Accounts != null)
121 | hash = hash * 59 + this.Accounts.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DeleteUserIdentityRequest.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DeleteUserIdentityRequest
26 | ///
27 | [DataContract]
28 | public partial class DeleteUserIdentityRequest : IEquatable, IValidatableObject
29 | {
30 | public DeleteUserIdentityRequest()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Identities (required).
39 | public DeleteUserIdentityRequest(List Identities = default(List))
40 | {
41 | // to ensure "Identities" is required (not null)
42 | if (Identities == null)
43 | {
44 | throw new InvalidDataException("Identities is a required property for DeleteUserIdentityRequest and cannot be null");
45 | }
46 | else
47 | {
48 | this.Identities = Identities;
49 | }
50 | }
51 |
52 | ///
53 | /// Gets or Sets Identities
54 | ///
55 | [DataMember(Name="identities", EmitDefaultValue=false)]
56 | public List Identities { get; set; }
57 | ///
58 | /// Returns the string presentation of the object
59 | ///
60 | /// String presentation of the object
61 | public override string ToString()
62 | {
63 | var sb = new StringBuilder();
64 | sb.Append("class DeleteUserIdentityRequest {\n");
65 | sb.Append(" Identities: ").Append(Identities).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as DeleteUserIdentityRequest);
88 | }
89 |
90 | ///
91 | /// Returns true if DeleteUserIdentityRequest instances are equal
92 | ///
93 | /// Instance of DeleteUserIdentityRequest to be compared
94 | /// Boolean
95 | public bool Equals(DeleteUserIdentityRequest other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Identities == other.Identities ||
104 | this.Identities != null &&
105 | this.Identities.SequenceEqual(other.Identities)
106 | );
107 | }
108 |
109 | ///
110 | /// Gets the hash code
111 | ///
112 | /// Hash code
113 | public override int GetHashCode()
114 | {
115 | // credit: http://stackoverflow.com/a/263416/677735
116 | unchecked // Overflow is fine, just wrap
117 | {
118 | int hash = 41;
119 | // Suitable nullity checks etc, of course :)
120 | if (this.Identities != null)
121 | hash = hash * 59 + this.Identities.GetHashCode();
122 | return hash;
123 | }
124 | }
125 |
126 | public IEnumerable Validate(ValidationContext validationContext)
127 | {
128 | yield break;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/LinkResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// LinkResponse
26 | ///
27 | [DataContract]
28 | public partial class LinkResponse : IEquatable, IValidatableObject
29 | {
30 | public LinkResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Rel.
39 | /// Href.
40 | public LinkResponse(string Rel = default(string), string Href = default(string))
41 | {
42 | this.Rel = Rel;
43 | this.Href = Href;
44 | }
45 |
46 | ///
47 | /// Gets or Sets Rel
48 | ///
49 | [DataMember(Name="rel", EmitDefaultValue=false)]
50 | public string Rel { get; set; }
51 | ///
52 | /// Gets or Sets Href
53 | ///
54 | [DataMember(Name="href", EmitDefaultValue=false)]
55 | public string Href { get; set; }
56 | ///
57 | /// Returns the string presentation of the object
58 | ///
59 | /// String presentation of the object
60 | public override string ToString()
61 | {
62 | var sb = new StringBuilder();
63 | sb.Append("class LinkResponse {\n");
64 | sb.Append(" Rel: ").Append(Rel).Append("\n");
65 | sb.Append(" Href: ").Append(Href).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as LinkResponse);
88 | }
89 |
90 | ///
91 | /// Returns true if LinkResponse instances are equal
92 | ///
93 | /// Instance of LinkResponse to be compared
94 | /// Boolean
95 | public bool Equals(LinkResponse other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Rel == other.Rel ||
104 | this.Rel != null &&
105 | this.Rel.Equals(other.Rel)
106 | ) &&
107 | (
108 | this.Href == other.Href ||
109 | this.Href != null &&
110 | this.Href.Equals(other.Href)
111 | );
112 | }
113 |
114 | ///
115 | /// Gets the hash code
116 | ///
117 | /// Hash code
118 | public override int GetHashCode()
119 | {
120 | // credit: http://stackoverflow.com/a/263416/677735
121 | unchecked // Overflow is fine, just wrap
122 | {
123 | int hash = 41;
124 | // Suitable nullity checks etc, of course :)
125 | if (this.Rel != null)
126 | hash = hash * 59 + this.Rel.GetHashCode();
127 | if (this.Href != null)
128 | hash = hash * 59 + this.Href.GetHashCode();
129 | return hash;
130 | }
131 | }
132 |
133 | public IEnumerable Validate(ValidationContext validationContext)
134 | {
135 | yield break;
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/PermissionProfileResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// PermissionProfileResponse
26 | ///
27 | [DataContract]
28 | public partial class PermissionProfileResponse : IEquatable, IValidatableObject
29 | {
30 | public PermissionProfileResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Id.
39 | /// Name.
40 | public PermissionProfileResponse(long? Id = default(long?), string Name = default(string))
41 | {
42 | this.Id = Id;
43 | this.Name = Name;
44 | }
45 |
46 | ///
47 | /// Gets or Sets Id
48 | ///
49 | [DataMember(Name="id", EmitDefaultValue=false)]
50 | public long? Id { get; set; }
51 | ///
52 | /// Gets or Sets Name
53 | ///
54 | [DataMember(Name="name", EmitDefaultValue=false)]
55 | public string Name { get; set; }
56 | ///
57 | /// Returns the string presentation of the object
58 | ///
59 | /// String presentation of the object
60 | public override string ToString()
61 | {
62 | var sb = new StringBuilder();
63 | sb.Append("class PermissionProfileResponse {\n");
64 | sb.Append(" Id: ").Append(Id).Append("\n");
65 | sb.Append(" Name: ").Append(Name).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as PermissionProfileResponse);
88 | }
89 |
90 | ///
91 | /// Returns true if PermissionProfileResponse instances are equal
92 | ///
93 | /// Instance of PermissionProfileResponse to be compared
94 | /// Boolean
95 | public bool Equals(PermissionProfileResponse other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Id == other.Id ||
104 | this.Id != null &&
105 | this.Id.Equals(other.Id)
106 | ) &&
107 | (
108 | this.Name == other.Name ||
109 | this.Name != null &&
110 | this.Name.Equals(other.Name)
111 | );
112 | }
113 |
114 | ///
115 | /// Gets the hash code
116 | ///
117 | /// Hash code
118 | public override int GetHashCode()
119 | {
120 | // credit: http://stackoverflow.com/a/263416/677735
121 | unchecked // Overflow is fine, just wrap
122 | {
123 | int hash = 41;
124 | // Suitable nullity checks etc, of course :)
125 | if (this.Id != null)
126 | hash = hash * 59 + this.Id.GetHashCode();
127 | if (this.Name != null)
128 | hash = hash * 59 + this.Name.GetHashCode();
129 | return hash;
130 | }
131 | }
132 |
133 | public IEnumerable Validate(ValidationContext validationContext)
134 | {
135 | yield break;
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/OrgReportListResponseRequestor.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// OrgReportListResponseRequestor
26 | ///
27 | [DataContract]
28 | public partial class OrgReportListResponseRequestor : IEquatable, IValidatableObject
29 | {
30 | public OrgReportListResponseRequestor()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Id.
39 | /// Name.
40 | public OrgReportListResponseRequestor(Guid? Id = default(Guid?), string Name = default(string))
41 | {
42 | this.Id = Id;
43 | this.Name = Name;
44 | }
45 |
46 | ///
47 | /// Gets or Sets Id
48 | ///
49 | [DataMember(Name="id", EmitDefaultValue=false)]
50 | public Guid? Id { get; set; }
51 | ///
52 | /// Gets or Sets Name
53 | ///
54 | [DataMember(Name="name", EmitDefaultValue=false)]
55 | public string Name { get; set; }
56 | ///
57 | /// Returns the string presentation of the object
58 | ///
59 | /// String presentation of the object
60 | public override string ToString()
61 | {
62 | var sb = new StringBuilder();
63 | sb.Append("class OrgReportListResponseRequestor {\n");
64 | sb.Append(" Id: ").Append(Id).Append("\n");
65 | sb.Append(" Name: ").Append(Name).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as OrgReportListResponseRequestor);
88 | }
89 |
90 | ///
91 | /// Returns true if OrgReportListResponseRequestor instances are equal
92 | ///
93 | /// Instance of OrgReportListResponseRequestor to be compared
94 | /// Boolean
95 | public bool Equals(OrgReportListResponseRequestor other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Id == other.Id ||
104 | this.Id != null &&
105 | this.Id.Equals(other.Id)
106 | ) &&
107 | (
108 | this.Name == other.Name ||
109 | this.Name != null &&
110 | this.Name.Equals(other.Name)
111 | );
112 | }
113 |
114 | ///
115 | /// Gets the hash code
116 | ///
117 | /// Hash code
118 | public override int GetHashCode()
119 | {
120 | // credit: http://stackoverflow.com/a/263416/677735
121 | unchecked // Overflow is fine, just wrap
122 | {
123 | int hash = 41;
124 | // Suitable nullity checks etc, of course :)
125 | if (this.Id != null)
126 | hash = hash * 59 + this.Id.GetHashCode();
127 | if (this.Name != null)
128 | hash = hash * 59 + this.Name.GetHashCode();
129 | return hash;
130 | }
131 | }
132 |
133 | public IEnumerable Validate(ValidationContext validationContext)
134 | {
135 | yield break;
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/UsersUpdateResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// UsersUpdateResponse
26 | ///
27 | [DataContract]
28 | public partial class UsersUpdateResponse : IEquatable, IValidatableObject
29 | {
30 | public UsersUpdateResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Success.
39 | /// Users.
40 | public UsersUpdateResponse(bool? Success = default(bool?), List Users = default(List))
41 | {
42 | this.Success = Success;
43 | this.Users = Users;
44 | }
45 |
46 | ///
47 | /// Gets or Sets Success
48 | ///
49 | [DataMember(Name="success", EmitDefaultValue=false)]
50 | public bool? Success { get; set; }
51 | ///
52 | /// Gets or Sets Users
53 | ///
54 | [DataMember(Name="users", EmitDefaultValue=false)]
55 | public List Users { get; set; }
56 | ///
57 | /// Returns the string presentation of the object
58 | ///
59 | /// String presentation of the object
60 | public override string ToString()
61 | {
62 | var sb = new StringBuilder();
63 | sb.Append("class UsersUpdateResponse {\n");
64 | sb.Append(" Success: ").Append(Success).Append("\n");
65 | sb.Append(" Users: ").Append(Users).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as UsersUpdateResponse);
88 | }
89 |
90 | ///
91 | /// Returns true if UsersUpdateResponse instances are equal
92 | ///
93 | /// Instance of UsersUpdateResponse to be compared
94 | /// Boolean
95 | public bool Equals(UsersUpdateResponse other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Success == other.Success ||
104 | this.Success != null &&
105 | this.Success.Equals(other.Success)
106 | ) &&
107 | (
108 | this.Users == other.Users ||
109 | this.Users != null &&
110 | this.Users.SequenceEqual(other.Users)
111 | );
112 | }
113 |
114 | ///
115 | /// Gets the hash code
116 | ///
117 | /// Hash code
118 | public override int GetHashCode()
119 | {
120 | // credit: http://stackoverflow.com/a/263416/677735
121 | unchecked // Overflow is fine, just wrap
122 | {
123 | int hash = 41;
124 | // Suitable nullity checks etc, of course :)
125 | if (this.Success != null)
126 | hash = hash * 59 + this.Success.GetHashCode();
127 | if (this.Users != null)
128 | hash = hash * 59 + this.Users.GetHashCode();
129 | return hash;
130 | }
131 | }
132 |
133 | public IEnumerable Validate(ValidationContext validationContext)
134 | {
135 | yield break;
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/ErrorDetails.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// ErrorDetails
26 | ///
27 | [DataContract]
28 | public partial class ErrorDetails : IEquatable, IValidatableObject
29 | {
30 | public ErrorDetails()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Error.
39 | /// ErrorDescription.
40 | public ErrorDetails(string Error = default(string), string ErrorDescription = default(string))
41 | {
42 | this.Error = Error;
43 | this.ErrorDescription = ErrorDescription;
44 | }
45 |
46 | ///
47 | /// Gets or Sets Error
48 | ///
49 | [DataMember(Name="error", EmitDefaultValue=false)]
50 | public string Error { get; set; }
51 | ///
52 | /// Gets or Sets ErrorDescription
53 | ///
54 | [DataMember(Name="error_description", EmitDefaultValue=false)]
55 | public string ErrorDescription { get; set; }
56 | ///
57 | /// Returns the string presentation of the object
58 | ///
59 | /// String presentation of the object
60 | public override string ToString()
61 | {
62 | var sb = new StringBuilder();
63 | sb.Append("class ErrorDetails {\n");
64 | sb.Append(" Error: ").Append(Error).Append("\n");
65 | sb.Append(" ErrorDescription: ").Append(ErrorDescription).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as ErrorDetails);
88 | }
89 |
90 | ///
91 | /// Returns true if ErrorDetails instances are equal
92 | ///
93 | /// Instance of ErrorDetails to be compared
94 | /// Boolean
95 | public bool Equals(ErrorDetails other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Error == other.Error ||
104 | this.Error != null &&
105 | this.Error.Equals(other.Error)
106 | ) &&
107 | (
108 | this.ErrorDescription == other.ErrorDescription ||
109 | this.ErrorDescription != null &&
110 | this.ErrorDescription.Equals(other.ErrorDescription)
111 | );
112 | }
113 |
114 | ///
115 | /// Gets the hash code
116 | ///
117 | /// Hash code
118 | public override int GetHashCode()
119 | {
120 | // credit: http://stackoverflow.com/a/263416/677735
121 | unchecked // Overflow is fine, just wrap
122 | {
123 | int hash = 41;
124 | // Suitable nullity checks etc, of course :)
125 | if (this.Error != null)
126 | hash = hash * 59 + this.Error.GetHashCode();
127 | if (this.ErrorDescription != null)
128 | hash = hash * 59 + this.ErrorDescription.GetHashCode();
129 | return hash;
130 | }
131 | }
132 |
133 | public IEnumerable Validate(ValidationContext validationContext)
134 | {
135 | yield break;
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/sdk/src/DocuSign.Admin/Model/DeleteResponse.cs:
--------------------------------------------------------------------------------
1 | /*
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 |
11 | using System;
12 | using System.Collections.Generic;
13 | using System.IO;
14 | using System.Linq;
15 | using System.Runtime.Serialization;
16 | using System.Text;
17 | using System.Text.RegularExpressions;
18 | using Newtonsoft.Json;
19 | using Newtonsoft.Json.Converters;
20 | using System.ComponentModel.DataAnnotations;
21 |
22 | namespace DocuSign.Admin.Model
23 | {
24 | ///
25 | /// DeleteResponse
26 | ///
27 | [DataContract]
28 | public partial class DeleteResponse : IEquatable, IValidatableObject
29 | {
30 | public DeleteResponse()
31 | {
32 | // Empty Constructor
33 | }
34 |
35 | ///
36 | /// Initializes a new instance of the class.
37 | ///
38 | /// Success.
39 | /// Identities.
40 | public DeleteResponse(bool? Success = default(bool?), List Identities = default(List))
41 | {
42 | this.Success = Success;
43 | this.Identities = Identities;
44 | }
45 |
46 | ///
47 | /// Gets or Sets Success
48 | ///
49 | [DataMember(Name="success", EmitDefaultValue=false)]
50 | public bool? Success { get; set; }
51 | ///
52 | /// Gets or Sets Identities
53 | ///
54 | [DataMember(Name="identities", EmitDefaultValue=false)]
55 | public List Identities { get; set; }
56 | ///
57 | /// Returns the string presentation of the object
58 | ///
59 | /// String presentation of the object
60 | public override string ToString()
61 | {
62 | var sb = new StringBuilder();
63 | sb.Append("class DeleteResponse {\n");
64 | sb.Append(" Success: ").Append(Success).Append("\n");
65 | sb.Append(" Identities: ").Append(Identities).Append("\n");
66 | sb.Append("}\n");
67 | return sb.ToString();
68 | }
69 |
70 | ///
71 | /// Returns the JSON string presentation of the object
72 | ///
73 | /// JSON string presentation of the object
74 | public string ToJson()
75 | {
76 | return JsonConvert.SerializeObject(this, Formatting.Indented);
77 | }
78 |
79 | ///
80 | /// Returns true if objects are equal
81 | ///
82 | /// Object to be compared
83 | /// Boolean
84 | public override bool Equals(object obj)
85 | {
86 | // credit: http://stackoverflow.com/a/10454552/677735
87 | return this.Equals(obj as DeleteResponse);
88 | }
89 |
90 | ///
91 | /// Returns true if DeleteResponse instances are equal
92 | ///
93 | /// Instance of DeleteResponse to be compared
94 | /// Boolean
95 | public bool Equals(DeleteResponse other)
96 | {
97 | // credit: http://stackoverflow.com/a/10454552/677735
98 | if (other == null)
99 | return false;
100 |
101 | return
102 | (
103 | this.Success == other.Success ||
104 | this.Success != null &&
105 | this.Success.Equals(other.Success)
106 | ) &&
107 | (
108 | this.Identities == other.Identities ||
109 | this.Identities != null &&
110 | this.Identities.SequenceEqual(other.Identities)
111 | );
112 | }
113 |
114 | ///
115 | /// Gets the hash code
116 | ///
117 | /// Hash code
118 | public override int GetHashCode()
119 | {
120 | // credit: http://stackoverflow.com/a/263416/677735
121 | unchecked // Overflow is fine, just wrap
122 | {
123 | int hash = 41;
124 | // Suitable nullity checks etc, of course :)
125 | if (this.Success != null)
126 | hash = hash * 59 + this.Success.GetHashCode();
127 | if (this.Identities != null)
128 | hash = hash * 59 + this.Identities.GetHashCode();
129 | return hash;
130 | }
131 | }
132 |
133 | public IEnumerable Validate(ValidationContext validationContext)
134 | {
135 | yield break;
136 | }
137 | }
138 | }
139 |
--------------------------------------------------------------------------------