OpenSource » SampleCode » NexPortWebApiClient
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Update new API client:
- Add SearchDirectory api

- Move GetOrganizations api to AdminApi
- Add GroupMembershipIds property to CreateInvoiceItemRequest
- Code cleanup

Changeset 2bbc3f68499f

Parent 3d5e60ea4d83

by Profile picture of Thai NguyenThai Nguyen

Changes to 79 files · Browse files at 2bbc3f68499f Showing diff from parent 3d5e60ea4d83 Diff from another changeset...

 
141
142
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
145
146
 
253
254
255
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
257
258
 
406
407
408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
410
411
 
518
519
520
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
521
522
523
 
1543
1544
1545
1546
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1547
1548
1549
 
2287
2288
2289
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2290
2291
2292
 
2297
2298
2299
2300
 
2301
2302
2303
 
2363
2364
2365
2366
 
2367
2368
2369
 
2377
2378
2379
2380
 
2381
2382
2383
 
2443
2444
2445
2446
 
2447
2448
2449
 
2455
2456
2457
2458
 
2459
2460
2461
 
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
 
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
 
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
 
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
 
1647
1648
1649
 
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
 
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
 
2731
2732
2733
 
2734
2735
2736
2737
 
2797
2798
2799
 
2800
2801
2802
2803
 
2811
2812
2813
 
2814
2815
2816
2817
 
2877
2878
2879
 
2880
2881
2882
2883
 
2889
2890
2891
 
2892
2893
2894
2895
@@ -141,6 +141,30 @@
  ApiResponse<List<GetCustomProfileFieldsResponse>> AdminApiGetCustomProfileFieldsWithHttpInfo(string orgId, string accessToken, string fieldId = null);     /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>List&lt;OrganizationResponseItem&gt;</returns> + List<OrganizationResponseItem> AdminApiGetOrganizations(string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null); + + /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>ApiResponse of List&lt;OrganizationResponseItem&gt;</returns> + ApiResponse<List<OrganizationResponseItem>> AdminApiGetOrganizationsWithHttpInfo(string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null); + + /// <summary>   /// Gets subscription information for the user in the organization. Valid parameter combinations are: 1. user_id and org_short_name, 2. user_id and org_id, 3. subscription_id. Requires the View User Subscriptions permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> @@ -253,6 +277,34 @@
  ApiResponse<List<GetUserResponse>> AdminApiGetUsersWithHttpInfo(string accessToken, string searchTerm = null, int? page = null, int? perPage = null);     /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>List&lt;DirectoryResponseItem&gt;</returns> + List<DirectoryResponseItem> AdminApiSearchDirectory(int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null); + + /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>ApiResponse of List&lt;DirectoryResponseItem&gt;</returns> + ApiResponse<List<DirectoryResponseItem>> AdminApiSearchDirectoryWithHttpInfo(int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null); + + /// <summary>   /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> @@ -406,6 +458,30 @@
  Task<ApiResponse<List<GetCustomProfileFieldsResponse>>> AdminApiGetCustomProfileFieldsAsyncWithHttpInfo(string orgId, string accessToken, string fieldId = null);     /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of List&lt;OrganizationResponseItem&gt;</returns> + Task<List<OrganizationResponseItem>> AdminApiGetOrganizationsAsync(string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null); + + /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of ApiResponse (List&lt;OrganizationResponseItem&gt;)</returns> + Task<ApiResponse<List<OrganizationResponseItem>>> AdminApiGetOrganizationsAsyncWithHttpInfo(string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null); + + /// <summary>   /// Gets subscription information for the user in the organization. Valid parameter combinations are: 1. user_id and org_short_name, 2. user_id and org_id, 3. subscription_id. Requires the View User Subscriptions permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> @@ -518,6 +594,34 @@
  Task<ApiResponse<List<GetUserResponse>>> AdminApiGetUsersAsyncWithHttpInfo(string accessToken, string searchTerm = null, int? page = null, int? perPage = null);     /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of List&lt;DirectoryResponseItem&gt;</returns> + Task<List<DirectoryResponseItem>> AdminApiSearchDirectoryAsync(int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null); + + /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of ApiResponse (List&lt;DirectoryResponseItem&gt;)</returns> + Task<ApiResponse<List<DirectoryResponseItem>>> AdminApiSearchDirectoryAsyncWithHttpInfo(int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null); + + /// <summary>   /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> @@ -1543,7 +1647,160 @@
  }     /// <summary> - /// Gets subscription information for the user in the organization. Valid parameter combinations are: 1. user_id and org_short_name, 2. user_id and org_id, 3. subscription_id. Requires the View User Subscriptions permission in the subscription organization or an ancestor. + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>List&lt;OrganizationResponseItem&gt;</returns> + public List<OrganizationResponseItem> AdminApiGetOrganizations (string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null) + { + var localVarResponse = AdminApiGetOrganizationsWithHttpInfo(accessToken, orgId, orgShortName, page, perPage); + return localVarResponse.Data; + } + + /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>ApiResponse of List&lt;OrganizationResponseItem&gt;</returns> + public ApiResponse< List<OrganizationResponseItem> > AdminApiGetOrganizationsWithHttpInfo(string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null) + { + // verify the required parameter 'accessToken' is set + if (accessToken == null) + throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApiApi->AdminApiGetOrganizations"); + + var localVarPath = "/api/v1/AdminApi/GetOrganizations"; + var localVarPathParams = new Dictionary<string, string>(); + var localVarQueryParams = new List<KeyValuePair<string, string>>(); + var localVarHeaderParams = new Dictionary<string, string>(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary<string, string>(); + var localVarFileParams = new Dictionary<string, FileParameter>(); + object localVarPostBody = null; + + // to determine the Content-Type header + var localVarHttpContentTypes = new string [] { + }; + var localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + var localVarHttpHeaderAccepts = new string [] { + "application/json", + "text/json" + }; + var localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "org_id", orgId)); // query parameter + if (orgShortName != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "org_short_name", orgShortName)); // query parameter + if (page != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (perPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "per_page", perPage)); // query parameter + if (accessToken != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "access_token", accessToken)); // query parameter + + + // make the HTTP request + var localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + var localVarStatusCode = (int) localVarResponse.StatusCode; + + var exception = ExceptionFactory?.Invoke("AdminApiGetOrganizations", localVarResponse); + if (exception != null) throw exception; + + return new ApiResponse<List<OrganizationResponseItem>>(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (List<OrganizationResponseItem>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<OrganizationResponseItem>))); + } + + /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of List&lt;OrganizationResponseItem&gt;</returns> + public async System.Threading.Tasks.Task<List<OrganizationResponseItem>> AdminApiGetOrganizationsAsync (string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null) + { + var localVarResponse = await AdminApiGetOrganizationsAsyncWithHttpInfo(accessToken, orgId, orgShortName, page, perPage); + return localVarResponse.Data; + + } + + /// <summary> + /// Returns a list of sub organizations (as well as the parent organization) corresponding to the given id or short name. Each item in the list will contain the org id, org name, and org short name. Results are in alphabetical order by org name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="orgId">Id of the parent organization (optional)</param> + /// <param name="orgShortName">Short name of the parent organization (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of ApiResponse (List&lt;OrganizationResponseItem&gt;)</returns> + public async System.Threading.Tasks.Task<ApiResponse<List<OrganizationResponseItem>>> AdminApiGetOrganizationsAsyncWithHttpInfo(string accessToken, string orgId = null, string orgShortName = null, int? page = null, int? perPage = null) + { + // verify the required parameter 'accessToken' is set + if (accessToken == null) + throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApiApi->AdminApiGetOrganizations"); + + var localVarPath = "/api/v1/AdminApi/GetOrganizations"; + var localVarPathParams = new Dictionary<string, string>(); + var localVarQueryParams = new List<KeyValuePair<string, string>>(); + var localVarHeaderParams = new Dictionary<string, string>(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary<string, string>(); + var localVarFileParams = new Dictionary<string, FileParameter>(); + object localVarPostBody = null; + + // to determine the Content-Type header + var localVarHttpContentTypes = new string [] { + }; + var localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + var localVarHttpHeaderAccepts = new string [] { + "application/json", + "text/json" + }; + var localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (orgId != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "org_id", orgId)); // query parameter + if (orgShortName != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "org_short_name", orgShortName)); // query parameter + if (page != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (perPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "per_page", perPage)); // query parameter + if (accessToken != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "access_token", accessToken)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + var localVarStatusCode = (int) localVarResponse.StatusCode; + + var exception = ExceptionFactory?.Invoke("AdminApiGetOrganizations", localVarResponse); + if (exception != null) throw exception; + + return new ApiResponse<List<OrganizationResponseItem>>(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (List<OrganizationResponseItem>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<OrganizationResponseItem>))); + } + + /// <summary> + /// Gets subscription information for the user in the organization. Valid parameter combinations are: 1. user_id and org_short_name, 2. user_id and org_id, 3. subscription_id. Requires the View User Subscriptions permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -2287,6 +2544,183 @@
  /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>List&lt;DirectoryResponseItem&gt;</returns> + public List<DirectoryResponseItem> AdminApiSearchDirectory (int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null) + { + var localVarResponse = AdminApiSearchDirectoryWithHttpInfo(searchOperator, baseOrgId, accessToken, name, shortName, page, perPage); + return localVarResponse.Data; + } + + /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>ApiResponse of List&lt;DirectoryResponseItem&gt;</returns> + public ApiResponse< List<DirectoryResponseItem> > AdminApiSearchDirectoryWithHttpInfo(int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null) + { + // verify the required parameter 'searchOperator' is set + if (searchOperator == null) + throw new ApiException(400, "Missing required parameter 'searchOperator' when calling AdminApiApi->AdminApiSearchDirectory"); + // verify the required parameter 'baseOrgId' is set + if (baseOrgId == null) + throw new ApiException(400, "Missing required parameter 'baseOrgId' when calling AdminApiApi->AdminApiSearchDirectory"); + // verify the required parameter 'accessToken' is set + if (accessToken == null) + throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApiApi->AdminApiSearchDirectory"); + + var localVarPath = "/api/v1/AdminApi/SearchDirectory"; + var localVarPathParams = new Dictionary<string, string>(); + var localVarQueryParams = new List<KeyValuePair<string, string>>(); + var localVarHeaderParams = new Dictionary<string, string>(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary<string, string>(); + var localVarFileParams = new Dictionary<string, FileParameter>(); + object localVarPostBody = null; + + // to determine the Content-Type header + var localVarHttpContentTypes = new string [] { + }; + var localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + var localVarHttpHeaderAccepts = new string [] { + "application/json", + "text/json" + }; + var localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchOperator != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "search_operator", searchOperator)); // query parameter + if (baseOrgId != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "base_org_id", baseOrgId)); // query parameter + if (name != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter + if (shortName != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "short_name", shortName)); // query parameter + if (page != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (perPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "per_page", perPage)); // query parameter + if (accessToken != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "access_token", accessToken)); // query parameter + + + // make the HTTP request + var localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + var localVarStatusCode = (int) localVarResponse.StatusCode; + + var exception = ExceptionFactory?.Invoke("AdminApiSearchDirectory", localVarResponse); + if (exception != null) throw exception; + + return new ApiResponse<List<DirectoryResponseItem>>(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (List<DirectoryResponseItem>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<DirectoryResponseItem>))); + } + + /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of List&lt;DirectoryResponseItem&gt;</returns> + public async System.Threading.Tasks.Task<List<DirectoryResponseItem>> AdminApiSearchDirectoryAsync (int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null) + { + var localVarResponse = await AdminApiSearchDirectoryAsyncWithHttpInfo(searchOperator, baseOrgId, accessToken, name, shortName, page, perPage); + return localVarResponse.Data; + + } + + /// <summary> + /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="searchOperator">Searching logic. Either using disjunction logic or conjunction logic</param> + /// <param name="baseOrgId">The id of the base organization to lookup</param> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="name">The organization/group name (optional)</param> + /// <param name="shortName">The organization/group short name (optional)</param> + /// <param name="page">Which page of results to start on (optional)</param> + /// <param name="perPage">How many results to show per page (optional)</param> + /// <returns>Task of ApiResponse (List&lt;DirectoryResponseItem&gt;)</returns> + public async System.Threading.Tasks.Task<ApiResponse<List<DirectoryResponseItem>>> AdminApiSearchDirectoryAsyncWithHttpInfo(int? searchOperator, string baseOrgId, string accessToken, string name = null, string shortName = null, int? page = null, int? perPage = null) + { + // verify the required parameter 'searchOperator' is set + if (searchOperator == null) + throw new ApiException(400, "Missing required parameter 'searchOperator' when calling AdminApiApi->AdminApiSearchDirectory"); + // verify the required parameter 'baseOrgId' is set + if (baseOrgId == null) + throw new ApiException(400, "Missing required parameter 'baseOrgId' when calling AdminApiApi->AdminApiSearchDirectory"); + // verify the required parameter 'accessToken' is set + if (accessToken == null) + throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApiApi->AdminApiSearchDirectory"); + + var localVarPath = "/api/v1/AdminApi/SearchDirectory"; + var localVarPathParams = new Dictionary<string, string>(); + var localVarQueryParams = new List<KeyValuePair<string, string>>(); + var localVarHeaderParams = new Dictionary<string, string>(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary<string, string>(); + var localVarFileParams = new Dictionary<string, FileParameter>(); + object localVarPostBody = null; + + // to determine the Content-Type header + var localVarHttpContentTypes = new string [] { + }; + var localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + var localVarHttpHeaderAccepts = new string [] { + "application/json", + "text/json" + }; + var localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (searchOperator != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "search_operator", searchOperator)); // query parameter + if (baseOrgId != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "base_org_id", baseOrgId)); // query parameter + if (name != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter + if (shortName != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "short_name", shortName)); // query parameter + if (page != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query parameter + if (perPage != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "per_page", perPage)); // query parameter + if (accessToken != null) localVarQueryParams.AddRange(Configuration.ApiClient.ParameterToKeyValuePairs("", "access_token", accessToken)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + var localVarStatusCode = (int) localVarResponse.StatusCode; + + var exception = ExceptionFactory?.Invoke("AdminApiSearchDirectory", localVarResponse); + if (exception != null) throw exception; + + return new ApiResponse<List<DirectoryResponseItem>>(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (List<DirectoryResponseItem>) Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<DirectoryResponseItem>))); + } + + /// <summary> + /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains subscriber id and dictionary of key/value pairs</param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <returns>SetCustomProfileFieldValuesResponse</returns> @@ -2297,7 +2731,7 @@
  }     /// <summary> - /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor. + /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains subscriber id and dictionary of key/value pairs</param> @@ -2363,7 +2797,7 @@
  }     /// <summary> - /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor. + /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains subscriber id and dictionary of key/value pairs</param> @@ -2377,7 +2811,7 @@
  }     /// <summary> - /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor. + /// Sets the custom profile field values for a subscription based on the subscriber id and key/value pairs in the request. Requires the Edit User Profile permission in the subscription organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains subscriber id and dictionary of key/value pairs</param> @@ -2443,7 +2877,7 @@
  }     /// <summary> - /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code. + /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -2455,7 +2889,7 @@
  }     /// <summary> - /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code. + /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
Show Entire File NexportApi/​Api/​LearningApiApi.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes
 
4
5
6
7
 
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
4
5
6
 
7
8
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -4,23 +4,17 @@
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)   *   * OpenAPI spec version: v1 - * + *   * Generated by: https://github.com/swagger-api/swagger-codegen.git   */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
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
52
53
54
55
 
 
 
 
56
57
58
59
60
61
 
 
 
 
62
63
64
65
66
67
 
 
 
 
68
69
70
71
72
73
74
 
 
 
 
 
75
76
77
78
79
80
 
 
 
 
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
52
53
54
55
56
 
 
 
 
57
58
59
60
61
62
 
 
 
 
 
63
64
65
66
67
68
69
 
 
 
 
70
71
72
73
74
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
@@ -1,218 +1,211 @@
-/* - * NexportVirtualCampus - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter; - -namespace NexportApi.Model -{ - /// <summary> - /// Model used to determine what, if anything, went wrong with an api request - /// </summary> - [DataContract] - public class ApiErrorEntity : IEquatable<ApiErrorEntity>, IValidatableObject - { - /// <summary> - /// Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; - /// </summary> - /// <value>Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; - /// </value> - public enum ErrorCodeEnum +/* + * NexportVirtualCampus + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Text; +using System.Collections.Generic; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; + +namespace NexportApi.Model +{ + /// <summary> + /// Model used to determine what, if anything, went wrong with an api request + /// </summary> + [DataContract] + public class ApiErrorEntity : IEquatable<ApiErrorEntity>, IValidatableObject + { + /// <summary> + /// Used to denote the kind of error that occurred, if any. + /// NoError=0; + /// UnknownError=1; + /// ValidationError=2; + /// ItemNotFound=3; + /// AuthenticationError=4; + /// AuthorizationError=5; + /// </summary> + /// <value>Used to denote the kind of error that occurred, if any. + /// NoError=0; + /// UnknownError=1; + /// ValidationError=2; + /// ItemNotFound=3; + /// AuthenticationError=4; + /// AuthorizationError=5; + /// </value> + public enum ErrorCodeEnum   { - /// <summary> - /// Enum NoError for value: 0 - /// </summary> - [Display(Name = "No Error")] + /// <summary> + /// Enum NoError for value: 0 + /// </summary> + [Display(Name = "No Error")]   NoError = 0,   - /// <summary> - /// Enum UnknownError for value: 1 - /// </summary> - [Display(Name = "Unknown Error")] + /// <summary> + /// Enum UnknownError for value: 1 + /// </summary> + [Display(Name = "Unknown Error")]   UnknownError = 1,   - /// <summary> - /// Enum ValidationError for value: 2 - /// </summary> - [Display(Name = "Validation Error")] + /// <summary> + /// Enum ValidationError for value: 2 + /// </summary> + [Display(Name = "Validation Error")]   ValidationError = 2,   - /// <summary> - /// Enum ItemNotFound for value: 3 - /// </summary> - //[EnumMember(Value = "3")] - [Display(Name = "Item Not Found")] + /// <summary> + /// Enum ItemNotFound for value: 3 + /// </summary> + //[EnumMember(Value = "3")] + [Display(Name = "Item Not Found")]   ItemNotFound = 3,   - /// <summary> - /// Enum AuthenticationError for value: 4 - /// </summary> - [Display(Name = "Authentication Error")] + /// <summary> + /// Enum AuthenticationError for value: 4 + /// </summary> + [Display(Name = "Authentication Error")]   AuthenticationError = 4,   - /// <summary> - /// Enum AuthorizationError for value: 5 - /// </summary> - [Display(Name = "Authorization Error")] - AuthorizationError = 5 - } - - /// <summary> - /// Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; - /// </summary> - /// <value>Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; - /// </value> - [DataMember(Name="error_code", EmitDefaultValue=true)] - public ErrorCodeEnum ErrorCode { get; set; } - - /// <summary> - /// Initializes a new instance of the <see cref="ApiErrorEntity" /> class. - /// </summary> - [JsonConstructor] - protected ApiErrorEntity() { } - - /// <summary> - /// Initializes a new instance of the <see cref="ApiErrorEntity" /> class. - /// </summary> - /// <param name="errorCode">Used to denote the kind of error that occurred, if any. NoError=0; UnknownError=1; ValidationError=2; ItemNotFound=3; AuthenticationError=4; AuthorizationError=5; (required).</param> - /// <param name="errorMessage">Message describing what caused the error to occur.</param> - public ApiErrorEntity(ErrorCodeEnum errorCode = ErrorCodeEnum.NoError, string errorMessage = default(string)) - { - // to ensure "errorCode" is required (not null) - ErrorCode = errorCode; - ErrorMessage = errorMessage; - } - - - /// <summary> - /// Message describing what caused the error to occur - /// </summary> - /// <value>Message describing what caused the error to occur</value> - [DataMember(Name="error_message", EmitDefaultValue=false)] - public string ErrorMessage { get; set; } - - /// <summary> - /// Returns the string presentation of the object - /// </summary> - /// <returns>String presentation of the object</returns> - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ApiErrorEntity {\n"); - sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n"); - sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// <summary> - /// Returns the JSON string presentation of the object - /// </summary> - /// <returns>JSON string presentation of the object</returns> - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// <summary> - /// Returns true if objects are equal - /// </summary> - /// <param name="input">Object to be compared</param> - /// <returns>Boolean</returns> - public override bool Equals(object input) - { - return Equals(input as ApiErrorEntity); - } - - /// <summary> - /// Returns true if ApiErrorEntity instances are equal - /// </summary> - /// <param name="input">Instance of ApiErrorEntity to be compared</param> - /// <returns>Boolean</returns> - public bool Equals(ApiErrorEntity input) - { - if (input == null) - return false; - - return - ( - ErrorCode == input.ErrorCode || - ErrorCode.Equals(input.ErrorCode) - ) && - ( - ErrorMessage == input.ErrorMessage || - (ErrorMessage != null && - ErrorMessage.Equals(input.ErrorMessage)) - ); - } - - /// <summary> - /// Gets the hash code - /// </summary> - /// <returns>Hash code</returns> - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - var hashCode = 41; - if (ErrorCode != null) - hashCode = hashCode * 59 + ErrorCode.GetHashCode(); - if (ErrorMessage != null) - hashCode = hashCode * 59 + ErrorMessage.GetHashCode(); - return hashCode; - } - } - - /// <summary> - /// To validate all properties of the instance - /// </summary> - /// <param name="validationContext">Validation context</param> - /// <returns>Validation Result</returns> - IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } -} + /// <summary> + /// Enum AuthorizationError for value: 5 + /// </summary> + [Display(Name = "Authorization Error")] + AuthorizationError = 5 + } + + /// <summary> + /// Used to denote the kind of error that occurred, if any. + /// NoError=0; + /// UnknownError=1; + /// ValidationError=2; + /// ItemNotFound=3; + /// AuthenticationError=4; + /// AuthorizationError=5; + /// </summary> + /// <value>Used to denote the kind of error that occurred, if any. + /// NoError=0; + /// UnknownError=1; + /// ValidationError=2; + /// ItemNotFound=3; + /// AuthenticationError=4; + /// AuthorizationError=5; + /// </value> + [DataMember(Name="error_code", EmitDefaultValue=true)] + public ErrorCodeEnum ErrorCode { get; set; } + + /// <summary> + /// Initializes a new instance of the <see cref="ApiErrorEntity" /> class. + /// </summary> + [JsonConstructor] + protected ApiErrorEntity() { } + + /// <summary> + /// Initializes a new instance of the <see cref="ApiErrorEntity" /> class. + /// </summary> + /// <param name="errorCode">Used to denote the kind of error that occurred, if any. NoError=0; UnknownError=1; ValidationError=2; ItemNotFound=3; AuthenticationError=4; AuthorizationError=5; (required).</param> + /// <param name="errorMessage">Message describing what caused the error to occur.</param> + public ApiErrorEntity(ErrorCodeEnum errorCode = ErrorCodeEnum.NoError, string errorMessage = default(string)) + { + // to ensure "errorCode" is required (not null) + ErrorCode = errorCode; + ErrorMessage = errorMessage; + } + + + /// <summary> + /// Message describing what caused the error to occur + /// </summary> + /// <value>Message describing what caused the error to occur</value> + [DataMember(Name="error_message", EmitDefaultValue=false)] + public string ErrorMessage { get; set; } + + /// <summary> + /// Returns the string presentation of the object + /// </summary> + /// <returns>String presentation of the object</returns> + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApiErrorEntity {\n"); + sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n"); + sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// <summary> + /// Returns the JSON string presentation of the object + /// </summary> + /// <returns>JSON string presentation of the object</returns> + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// <summary> + /// Returns true if objects are equal + /// </summary> + /// <param name="input">Object to be compared</param> + /// <returns>Boolean</returns> + public override bool Equals(object input) + { + return Equals(input as ApiErrorEntity); + } + + /// <summary> + /// Returns true if ApiErrorEntity instances are equal + /// </summary> + /// <param name="input">Instance of ApiErrorEntity to be compared</param> + /// <returns>Boolean</returns> + public bool Equals(ApiErrorEntity input) + { + if (input == null) + return false; + + return + ( + ErrorCode == input.ErrorCode || + ErrorCode.Equals(input.ErrorCode) + ) && + ( + ErrorMessage == input.ErrorMessage || + (ErrorMessage != null && + ErrorMessage.Equals(input.ErrorMessage)) + ); + } + + /// <summary> + /// Gets the hash code + /// </summary> + /// <returns>Hash code</returns> + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + var hashCode = 41; + if (ErrorCode != null) + hashCode = hashCode * 59 + ErrorCode.GetHashCode(); + if (ErrorMessage != null) + hashCode = hashCode * 59 + ErrorMessage.GetHashCode(); + return hashCode; + } + } + + /// <summary> + /// To validate all properties of the instance + /// </summary> + /// <param name="validationContext">Validation context</param> + /// <returns>Validation Result</returns> + IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +}
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
12
13
14
 
 
15
 
16
17
 
18
 
19
20
21
@@ -12,15 +12,10 @@
 using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
12
13
14
 
 
15
 
16
17
 
18
 
19
20
21
@@ -12,15 +12,10 @@
 using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
111
112
113
114
 
 
115
116
117
 
123
124
125
 
126
127
128
 
176
177
178
 
 
 
 
 
 
 
179
180
181
 
191
192
193
 
194
195
196
 
263
264
265
 
 
 
 
 
266
267
268
 
291
292
293
 
 
294
295
296
 
12
13
14
 
 
15
 
16
17
 
18
 
19
20
21
 
106
107
108
 
109
110
111
112
113
 
119
120
121
122
123
124
125
 
173
174
175
176
177
178
179
180
181
182
183
184
185
 
195
196
197
198
199
200
201
 
268
269
270
271
272
273
274
275
276
277
278
 
301
302
303
304
305
306
307
308
@@ -12,15 +12,10 @@
 using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  { @@ -111,7 +106,8 @@
  /// <param name="utcAccessExpirationDate">Can be used to set the redemption expiration date once a redemption is created for this invoice item. Redemption expiration will be set based on UtcAccessExpirationDate first if it is set..</param>   /// <param name="accessExpirationTimeLimit">Can be used to calculate the redemption expiration date once a redemption is created for this invoice item. Redemption will be set based on AccessExpirationTimeLimit if UtcAccessExpirationDate is not set. Redemption expiration date will be set to redemption date + AccessExpirationTimeLimit..</param>   /// <param name="subscriptionOrgId">Can be used to create the subscription within the specified organization for the student when the invoice item is redeemed. Enrollment associated with this invoice item will also be created for the subscription..</param> - public CreateInvoiceItemRequest(string invoiceId = default(string), string productId = default(string), ProductTypeEnum? productType = default(ProductTypeEnum?), decimal? cost = default(decimal?), string note = default(string), DateTime? utcAccessExpirationDate = default(DateTime?), string accessExpirationTimeLimit = default(string), string subscriptionOrgId = default(string)) + /// <param name="groupMembershipIds">Can be used to create the membership within the specified groups for the student when the invoice item is redeemed..</param> + public CreateInvoiceItemRequest(string invoiceId = default(string), string productId = default(string), ProductTypeEnum? productType = default(ProductTypeEnum?), decimal? cost = default(decimal?), string note = default(string), DateTime? utcAccessExpirationDate = default(DateTime?), string accessExpirationTimeLimit = default(string), string subscriptionOrgId = default(string), List<string> groupMembershipIds = default(List<string>))   {   // to ensure "invoiceId" is required (not null)   InvoiceId = invoiceId ?? throw new InvalidDataException("invoiceId is a required property for CreateInvoiceItemRequest and cannot be null");; @@ -123,6 +119,7 @@
  UtcAccessExpirationDate = utcAccessExpirationDate;   AccessExpirationTimeLimit = accessExpirationTimeLimit;   SubscriptionOrgId = subscriptionOrgId; + GroupMembershipIds = groupMembershipIds;   }     /// <summary> @@ -176,6 +173,13 @@
  public string SubscriptionOrgId { get; set; }     /// <summary> + /// Can be used to create the membership within the specified groups for the student when the invoice item is redeemed. + /// </summary> + /// <value>Can be used to create the membership within the specified groups for the student when the invoice item is redeemed.</value> + [DataMember(Name="group_membership_ids", EmitDefaultValue=false)] + public List<string> GroupMembershipIds { get; set; } + + /// <summary>   /// Returns the string presentation of the object   /// </summary>   /// <returns>String presentation of the object</returns> @@ -191,6 +195,7 @@
  sb.Append(" UtcAccessExpirationDate: ").Append(UtcAccessExpirationDate).Append("\n");   sb.Append(" AccessExpirationTimeLimit: ").Append(AccessExpirationTimeLimit).Append("\n");   sb.Append(" SubscriptionOrgId: ").Append(SubscriptionOrgId).Append("\n"); + sb.Append(" GroupMembershipIds: ").Append(GroupMembershipIds).Append("\n");   sb.Append("}\n");   return sb.ToString();   } @@ -263,6 +268,11 @@
  SubscriptionOrgId == input.SubscriptionOrgId ||   (SubscriptionOrgId != null &&   SubscriptionOrgId.Equals(input.SubscriptionOrgId)) + ) && + ( + GroupMembershipIds == input.GroupMembershipIds || + GroupMembershipIds != null && + GroupMembershipIds.SequenceEqual(input.GroupMembershipIds)   );   }   @@ -291,6 +301,8 @@
  hashCode = hashCode * 59 + AccessExpirationTimeLimit.GetHashCode();   if (SubscriptionOrgId != null)   hashCode = hashCode * 59 + SubscriptionOrgId.GetHashCode(); + if (GroupMembershipIds != null) + hashCode = hashCode * 59 + GroupMembershipIds.GetHashCode();   return hashCode;   }   }
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
This file's diff was not loaded because this changeset is very large. Load changes
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
 
12
 
 
13
 
14
15
 
16
 
17
18
19
@@ -9,18 +9,11 @@
  */    using System; -using System.Linq; -using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
9
10
11
 
12
13
 
 
14
 
15
16
 
17
 
18
19
20
@@ -9,18 +9,12 @@
  */    using System; -using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
12
13
14
 
 
15
 
16
17
 
18
 
19
20
21
@@ -12,15 +12,10 @@
 using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
 
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
12
13
14
 
 
15
 
16
17
 
18
 
19
20
21
@@ -12,15 +12,10 @@
 using System.Linq;  using System.IO;  using System.Text; -using System.Text.RegularExpressions; -using System.Collections;  using System.Collections.Generic; -using System.Collections.ObjectModel;  using System.Runtime.Serialization;  using Newtonsoft.Json; -using Newtonsoft.Json.Converters;  using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = NexportApi.Client.SwaggerDateConverter;    namespace NexportApi.Model  {
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
Show Entire File NexportApi/​Model/​SsoRequest.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes
Show Entire File NexportApi/​Model/​SsoResponse.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
Show Entire File NexportApi/​NexportApi.csproj Stacked
This file's diff was not loaded because this changeset is very large. Load changes